From 8feea28b1d7ca211f6dbbae1f0bf8474cfe1c077 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期五, 26 四月 2024 15:16:36 +0800 Subject: [PATCH] 增薪资方案增加清除的操作+清除操作的逻辑处理点击一次清除上次点击的内容,并且重新组合数据渲染对应样式 --- src/views/systemSetting/workshopManage/index.vue | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/systemSetting/workshopManage/index.vue b/src/views/systemSetting/workshopManage/index.vue index 1f1d1dc..5d500cf 100644 --- a/src/views/systemSetting/workshopManage/index.vue +++ b/src/views/systemSetting/workshopManage/index.vue @@ -118,6 +118,7 @@ // 鎼滅储 onFilterSearch(searchText) { this.getDataParams.keyWord = searchText, + this.pagerOptions.currPage = 1; this.getData() }, // 鏂板 @@ -187,7 +188,7 @@ this.editConfig.infomitton = { ...row, workshop:{ - ID:row.workshopNumber, + number:row.workshopNumber, name:row.workshopName } } @@ -203,11 +204,12 @@ }).then(() => { deleteWorkshopManage({ id: row.ID }).then((res) => { if (res && res.code === 200) { - this.getData() this.$message({ type: 'success', message: '鍒犻櫎鎴愬姛!' }); + this.pagerOptions.currPage = 1; + this.getData() } }) }).catch(() => { -- Gitblit v1.8.0