From a8e09b3e46e3f15725870a499d408a6ecd04c7f1 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期五, 12 四月 2024 16:45:41 +0800 Subject: [PATCH] 只有一条数据的时候,新增和放弃操作的问题修改 --- src/views/systemSetting/dataDictionary/index.vue | 12 +++++------- 1 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/views/systemSetting/dataDictionary/index.vue b/src/views/systemSetting/dataDictionary/index.vue index 9c1b9da..5a6c444 100644 --- a/src/views/systemSetting/dataDictionary/index.vue +++ b/src/views/systemSetting/dataDictionary/index.vue @@ -247,12 +247,8 @@ }) }, rowClick(row,type){ - if(type==="鏌ョ湅"){ - this.editConfig.dialogTitle="鏌ョ湅" - this.editConfig.visible=true - this.editConfig.infomitton={...row,TabsIndex:this.TabsIndex} - }else if(type==="淇敼"){ - this.editConfig.dialogTitle="淇敼" + if(type!=="鍒犻櫎"){ + this.editConfig.dialogTitle=type this.editConfig.visible=true this.editConfig.infomitton={...row,TabsIndex:this.TabsIndex} }else if(type==="鍒犻櫎"){ @@ -270,7 +266,9 @@ }); } }) - }) + }).catch(() => { + console.log("鍙栨秷鍒犻櫎") + }); } } } -- Gitblit v1.8.0