From ed52d8cb0db78eb8bff70329ac01a38d50d7f672 Mon Sep 17 00:00:00 2001
From: wangting <675591594@qq.com>
Date: 星期三, 04 十二月 2024 16:20:13 +0800
Subject: [PATCH] 数据授权

---
 Source/plt-web/plt-web-ui/src/views/authority/ui/dataAuthorization/index.vue |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/Source/plt-web/plt-web-ui/src/views/authority/ui/dataAuthorization/index.vue b/Source/plt-web/plt-web-ui/src/views/authority/ui/dataAuthorization/index.vue
index f8c8799..f1c21f7 100644
--- a/Source/plt-web/plt-web-ui/src/views/authority/ui/dataAuthorization/index.vue
+++ b/Source/plt-web/plt-web-ui/src/views/authority/ui/dataAuthorization/index.vue
@@ -47,7 +47,7 @@
           width="70%"
           @close="addDialogClose">
             <div>
-              <data-view ref="editView" key="editView" :btmNode="nodeRow" :selectRow="selectRow" :actionMap="actionMap" :readOnly="false" :height="clientHeight-340"></data-view>
+              <data-view ref="editView" key="editView" :btmNode="nodeRow" :selectRow="title === 'add'?{}:selectRow" :actionMap="actionMap" :readOnly="false" :height="clientHeight-260"></data-view>
             </div>
             <span slot="footer" class="dialog-footer">
                <el-button size="small" type="primary" @click="addDialogSavaHandler">纭� 瀹�</el-button>
@@ -170,9 +170,9 @@
     },
     getTableList() {
       getData(this.nodeRow.attributes.name).then(res => {
-        /*if(typeof res.data == 'string'){
+        if(typeof res.data == 'string'){
           res.data=eval('('+res.data +')')
-        }*/
+        }
         if(res.data.obj.tableHeader){
           this.option.column=[ {
             label: '瑙勫垯鍚嶇О',
@@ -255,8 +255,8 @@
     },
     //淇敼
     editHandler(){
-      if (func.isEmptyObject(this.nodeRow)) {
-        this.$message.error('璇疯嚦灏戦�夋嫨涓�鏉℃暟鎹�');
+      if (func.isEmptyObject(this.selectRow)) {
+        this.$message.error('璇烽�夋嫨涓�鏉℃暟鎹�');
         return;
       }
       this.title = 'edit';
@@ -278,7 +278,7 @@
     },
     //鍒犻櫎
     delHandler(){
-      if (func.isEmptyObject(this.nodeRow)) {
+      if (func.isEmptyObject(this.selectRow)) {
         this.$message.error('璇烽�夋嫨鏁版嵁');
         return;
       }

--
Gitblit v1.9.3