From e00361c6bcbb1a56f6dcda22b91bdfcb2736e263 Mon Sep 17 00:00:00 2001 From: YM <479443481@qq.com> Date: 星期五, 26 七月 2024 15:56:27 +0800 Subject: [PATCH] 1 --- src/pages/knowledgeBase/knowledgeBase.vue | 69 +++++++++++++++++++++------------- 1 files changed, 43 insertions(+), 26 deletions(-) diff --git a/src/pages/knowledgeBase/knowledgeBase.vue b/src/pages/knowledgeBase/knowledgeBase.vue index 111bf5d..3371c48 100644 --- a/src/pages/knowledgeBase/knowledgeBase.vue +++ b/src/pages/knowledgeBase/knowledgeBase.vue @@ -47,7 +47,16 @@ class="advancedSeaTrue1" > <h3>楂樼骇鎼滅储</h3> - <MyForm @submit="onSubmit" @reset="resetForm" :from="from" /> + <MyForm + @submit=" + (data) => { + CurrentPage = 1; + onSubmit(data); + } + " + @reset="resetForm" + :from="from" + /> </view> </view> <uni-row @@ -382,7 +391,7 @@ // 琛ㄦ牸鐨勬暟缁� tableData: [], // 鍒嗛〉鐨勬�绘暟 - total: 100, + total: 0, // 褰撳墠椤� CurrentPage: 1, // 涓�椤垫樉绀哄灏戞潯鏁版嵁 @@ -641,6 +650,10 @@ document.querySelector(".fbox1").style.height = box1Height + "px"; } }); + if (this.isAdvancedSearch) { + this.keywords = ""; + this.CurrentPage = 1; + } }, // 楂樼骇鎼滅储 async onSubmit(val) { @@ -657,7 +670,7 @@ this.dynasty.id = currentDynasty.dynastyId; } this.submitData = val; - this.CurrentPage = 1; + let Obj = { keywords: "", //鎼滅储妗嗘绱� name: val.name, //濮撳悕 @@ -669,7 +682,6 @@ dynasty: val.dynasty, //鏈濅唬id dynastyId: this.dynasty.id, //鏈濅唬id institution: val.institution, //鏈烘瀯 - bookId: null, //鏉ユ簮id page: this.CurrentPage, pageSize: this.pageSize }; @@ -760,14 +772,22 @@ PrevClick(val) { if (this.CurrentPage != val) { this.CurrentPage = val; - this.onSearch({ text: this.keywords }); + if (this.isAdvancedSearch) { + this.onSubmit(this.aSearchData); + } else { + this.onSearch({ text: this.keywords }); + } } }, // 涓嬩竴椤� NextClick(val) { if (this.CurrentPage != val) { this.CurrentPage = val; - this.onSearch({ text: this.keywords }); + if (this.isAdvancedSearch) { + this.onSubmit(this.aSearchData); + } else { + this.onSearch({ text: this.keywords }); + } } } } @@ -861,29 +881,26 @@ .lightBo { font-size: 0.14rem !important; - - .is-leaf { - background-color: #c1d3ea !important; - color: #2c2c2c !important; - font-weight: 400; - - .cell { - height: 0.3rem !important; - line-height: 0.3rem !important; - } - } } - .el-table__body-wrapper { - .el-table__row { - height: 0.46rem !important; - line-height: 0.46rem !important; + .lightBo .is-leaf { + background-color: #c1d3ea !important; + color: #2c2c2c !important; + font-weight: 400; + } - .cell { - height: 0.3rem !important; - line-height: 0.3rem !important; - } - } + .lightBo .is-leaf .cell { + height: 0.3rem !important; + line-height: 0.3rem !important; + } + + .el-table__body-wrapper .el-table__row { + height: 0.46rem !important; + line-height: 0.46rem !important; + } + .el-table__body-wrapper .el-table__row .cell { + height: 0.3rem !important; + line-height: 0.3rem !important; } } -- Gitblit v1.9.1