From 41332257f7889df6032fa3c64a7f3998e4b65524 Mon Sep 17 00:00:00 2001 From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com> Date: 星期一, 20 五月 2024 18:03:40 +0800 Subject: [PATCH] qxtj --- src/views/system/Blacklist/index.vue | 37 +++++++++++++++++++++---------------- 1 files changed, 21 insertions(+), 16 deletions(-) diff --git a/src/views/system/Blacklist/index.vue b/src/views/system/Blacklist/index.vue index d3ae434..f2072a9 100644 --- a/src/views/system/Blacklist/index.vue +++ b/src/views/system/Blacklist/index.vue @@ -8,10 +8,18 @@ v-show="showSearch" label-width="68px" > - <el-form-item label="濮撳悕" prop="harmCode"> + <el-form-item label="濮撳悕" prop="name"> <el-input - v-model="queryParams.harmCode" - placeholder="璇疯緭鍏ョ紪鐮�" + v-model="queryParams.name" + placeholder="璇疯緭鍏ュ鍚�" + clearable + @keyup.enter.native="handleQuery" + /> + </el-form-item> + <el-form-item label="鎵嬫満鍙�" prop="phone"> + <el-input + v-model="queryParams.phone" + placeholder="璇疯緭鍏ユ墜鏈哄彿" clearable @keyup.enter.native="handleQuery" /> @@ -69,7 +77,7 @@ <pagination v-show="total > 0" :total="total" - :page.sync="queryParams.pageNum" + :page.sync="queryParams.page" :limit.sync="queryParams.pageSize" @pagination="getList" /> @@ -118,16 +126,10 @@ open: false, // 鏌ヨ鍙傛暟 queryParams: { - pageNum: 1, + page: 1, pageSize: 10, - harmpinyin: null, - harmtype: null, - sort: null, - harminfo: null, - externalcode: null, - harmcode: null, - type: null, - protection: null, + name: null, + phone: null, }, // 琛ㄥ崟鍙傛暟 form: {}, @@ -152,8 +154,11 @@ }, methods: { getList() { - getCustomerBlack().then((res) => { - this.harmTypeList = res.data; + this.loading = true + getCustomerBlack(this.queryParams).then((res) => { + this.harmTypeList = res.data.records; + this.total = res.data.total + this.loading = false }); }, @@ -174,7 +179,7 @@ }, /** 鎼滅储鎸夐挳鎿嶄綔 */ handleQuery() { - this.queryParams.pageNum = 1; + this.queryParams.page = 1; this.getList(); }, /** 閲嶇疆鎸夐挳鎿嶄綔 */ -- Gitblit v1.8.0