From e358d69fc18870584dd2d9f531910b7838ea27d9 Mon Sep 17 00:00:00 2001 From: wangting <wangting@vci-tech.com> Date: 星期四, 02 一月 2025 09:58:53 +0800 Subject: [PATCH] 调整行点击后的回调 --- Source/plt-web/plt-web-ui/src/views/system/fileCab/index.vue | 18 +++++++++++------- 1 files changed, 11 insertions(+), 7 deletions(-) diff --git a/Source/plt-web/plt-web-ui/src/views/system/fileCab/index.vue b/Source/plt-web/plt-web-ui/src/views/system/fileCab/index.vue index 62de377..3f47257 100644 --- a/Source/plt-web/plt-web-ui/src/views/system/fileCab/index.vue +++ b/Source/plt-web/plt-web-ui/src/views/system/fileCab/index.vue @@ -149,7 +149,7 @@ }, // 鏂板 - rowSaveHandler(row, done,loading) { + rowSaveHandler(row, done, loading) { savePvolume(row).then(res => { if (res.data.code === 200) { this.$message.success(res.data.obj); @@ -162,7 +162,7 @@ }, // 缂栬緫 - rowUpdateHandler(row, index, done,loading) { + rowUpdateHandler(row, index, done, loading) { updatePvolume(row).then(res => { if (res.data.code === 200) { this.$message.success(res.data.obj); @@ -200,7 +200,7 @@ }, // 瀵煎嚭 exportClickHandler() { - if(this.ids == null || this.ids == ""){ + if (this.ids == null || this.ids == "") { this.$message({ type: 'warning', message: '璇峰嬀閫夎瀵煎嚭鐨勬暟鎹�!' @@ -217,8 +217,8 @@ }, //鍒嗛厤鎴愬憳 - userHandler(row,index){ - this.currentRow=row; + userHandler(row, index) { + this.currentRow = row; Promise.all([ listUserUnInRoleOid({pkRole: row.id}), listUserByRoleOid({pkRole: row.id}) @@ -259,8 +259,12 @@ row, this.$refs.crud, this.lastIndex, - (newIndex) => { this.lastIndex = newIndex; }, - () => { this.selectionList = []; } + (newIndex) => { + this.lastIndex = newIndex; + }, + () => { + this.selectionList = [row]; + } ); }, } -- Gitblit v1.9.3