From caeb0c1b3666655e2e05292c2fcaef82a9808cd1 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期五, 08 九月 2023 20:07:20 +0800
Subject: [PATCH] 代码提交

---
 Source/UBCS-WEB/src/components/code-dialog-page/referConfigFormDialog.vue |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/code-dialog-page/referConfigFormDialog.vue b/Source/UBCS-WEB/src/components/code-dialog-page/referConfigFormDialog.vue
index c093722..134682f 100644
--- a/Source/UBCS-WEB/src/components/code-dialog-page/referConfigFormDialog.vue
+++ b/Source/UBCS-WEB/src/components/code-dialog-page/referConfigFormDialog.vue
@@ -6,6 +6,8 @@
       :visible.sync="isShowReferConfigForm"
       width="90%"
       id="refer-config-form"
+      top="0"
+      class= "avue-dialog avue-dialog--top"
       destroy-on-close
       @close="recoveryDataAndForm('initData')"
       style="height: 115vh; margin-top: -14vh; overflow-y: hidden">
@@ -639,7 +641,7 @@
                                     span: 6,
                                     type: 'switch',
                                 },{
-                                    display: this.form.isPersistence | this.form.isPersistence=='true',
+                                    display: this.form.isPersistence || this.form.isPersistence=='true',
                                     label: '鍙傜収閰嶇疆缂栧彿',
                                     prop: 'id',
                                     tip: '璁剧疆璇ュ弬鐓ч厤缃寔涔呭寲瀛樺偍鏃剁殑缂栧彿銆�',
@@ -650,7 +652,7 @@
                                     }],
                                     span: 6,
                                 },{
-                                    display: this.form.isPersistence | this.form.isPersistence=='true',
+                                    display: this.form.isPersistence || this.form.isPersistence=='true',
                                     label: '鍙傜収閰嶇疆鍚嶇О',
                                     prop: 'name',
                                     tip: '璁剧疆璇ュ弬鐓ч厤缃寔涔呭寲瀛樺偍鏃剁殑鍚嶇О銆�',
@@ -919,7 +921,7 @@
             },
             // 鐩戝惉鐖剁粍浠朵紶鐨勭獥鍙f樉绀洪殣钘忕殑鍊�
             isShowReferConfigForm (){
-                if(this.isShowReferConfigForm){
+                if(this.isShowReferConfigForm && this.codeShowFieldConfigVOS.length <= 0){
                     this.onloadAttrData();
                 }
             }
@@ -982,6 +984,7 @@
                 // console.log(val.referConfig);
                 if(func.notEmpty(val.referConfig)){
                     this.form = JSON.parse(val.referConfig);
+                    this.form.isPersistence = this.form.isPersistence == 'true'||this.form.isPersistence ? true:false;
                     // 鍙傜収寮曠敤鐨勪笟鍔$被鍨嬩笉鍙��
                     // this.referTypeIsReadOnly = true;
                     if((this.form.type == 'default' || this.form.type  == 'grid') && (this.form.codeShowFieldConfigVOS != undefined && this.form.codeShowFieldConfigVOS.length > 0)){
@@ -1049,6 +1052,8 @@
                     return;
                 }
                 Object.assign(this.$data,this.$options.data());
+                //this.preClickAttrRow.$cellEdit = false;
+                //console.log(this.preClickAttrRow.$cellEdit);
                 // 绉婚櫎缁戝畾鍦ㄨ椤甸潰瀵硅瘽妗嗕笂鐨勫叏灞�鐩戝惉浜嬩欢
                 if(this.element != ''){
                    let te = window.removeEventListener('click', this.element)
@@ -1094,7 +1099,7 @@
                     ];
                 }
                 // 寮�鍚寔涔呭寲鍙傜収閰嶇疆
-                if(oldForm.isPersistence=='true' | oldForm.isPersistence){
+                if(oldForm.isPersistence=='true' || oldForm.isPersistence){
                     submittDefaultForm =  submittDefaultForm.concat(['id','name'])
                 }
                 submittDefaultForm = submittDefaultForm.concat(addArray);
@@ -1230,7 +1235,6 @@
                     })
                 }
             },
-
 
         }
     };

--
Gitblit v1.9.3