From ed2f130164f4145560b4176da6629890c0806ded Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期四, 10 八月 2023 18:11:27 +0800 Subject: [PATCH] 服务管理模块联调 --- src/views/client/followupRecords/index.vue | 27 ++++++++++++++++++++++++--- 1 files changed, 24 insertions(+), 3 deletions(-) diff --git a/src/views/client/followupRecords/index.vue b/src/views/client/followupRecords/index.vue index a9486b0..3572cff 100644 --- a/src/views/client/followupRecords/index.vue +++ b/src/views/client/followupRecords/index.vue @@ -9,6 +9,9 @@ ref="searchCommonView" :query-class-options="queryClassOptions" :search-options="searchOptions" + :search-sel="searchSel" + @searchClick="searchClick" + @resetClick="resetClick" /> <div class="btn-pager"> <PublicFunctionBtnView :statistics="true" :operates-list="operatesList" @batchDelete="delClick" /> @@ -103,7 +106,12 @@ visible: false, infomation: {} }, - selValueList: [] + selValueList: [], + searchSel: { + value: "topic", + label: "" + }, + search_map: {} } }, created() { @@ -129,14 +137,15 @@ this.searchOptions = [] for (let i = 0; i < this.tableList.tableColumn.length; i++) { const label = this.tableList.tableColumn[i].label - this.searchOptions.push({ value: (i + 1).toString(), label: label }) + const value = this.tableList.tableColumn[i].prop + this.searchOptions.push({ value: value, label: label }) } }, // 璇锋眰鏁版嵁 async getData() { this.loading = true await getFollowRecordList({ - keyword: "", + search_map: this.search_map, page: this.pagerOptions.currPage, pageSize: this.pagerOptions.pageSize }) @@ -169,6 +178,18 @@ this.loading = false }) }, + // 鎼滅储 + searchClick(val, content) { + console.log(val, content) + this.search_map = { + [val.value]: content + } + this.getData() + }, + resetClick() { + this.search_map = {} + this.getData() + }, // 鏂板缓 addBtnClick() { this.editConfig.visible = true -- Gitblit v1.8.0