From 61500a41c6559976a56e49e1d07f8f5370a4031b Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期三, 17 四月 2024 17:54: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