From 810e34d320111d0101ca8115de5f82db61d080e2 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期四, 21 九月 2023 09:13:54 +0800
Subject: [PATCH] 引用码段JSON字符串bug处理

---
 Source/UBCS-WEB/src/views/integration/systemInfo.vue         |   23 +++++++++++++++++++++++
 Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue  |    4 ++--
 Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue |    4 ++--
 3 files changed, 27 insertions(+), 4 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue b/Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue
index a5cb7ef..cd0af83 100644
--- a/Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue
+++ b/Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue
@@ -167,7 +167,7 @@
       if (this.eventList) {
         this.eventFlag= this.eventList.some(item => {
           if (item.classifyInvokeEditFlag === 'true') {
-            console.log('even', item);
+            // console.log('even', item);
             this.eventObject = item;
             return true;
           }
@@ -182,7 +182,7 @@
       let value=''
       formItemList.forEach((formItem) => {
         formItem = this.resetFormConfig(formItem);
-        console.log(formItem)
+        // console.log(formItem)
         // console.log('formItem.dicData.value',formItem.dicData)
         if (formItem.type === "line") {
           group.push({
diff --git a/Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue b/Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue
index c088933..d108a8e 100644
--- a/Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue
+++ b/Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue
@@ -287,10 +287,10 @@
         }
       })
       let mapFields;
-      if (this.options.mapFields == "") {
+      if (this.options.mapFields === "") {
         mapFields = this.referConfig.fieldMap;
       } else {
-        mapFields = Object.assign(this.referConfig.fieldMap, JSON.parse(this.options.mapFields));
+        mapFields = Object.assign(this.referConfig.fieldMap, this.options.mapFields);
       }
       this.value=value.join(',');
       this.text=text.join(',')
diff --git a/Source/UBCS-WEB/src/views/integration/systemInfo.vue b/Source/UBCS-WEB/src/views/integration/systemInfo.vue
index 2efc562..7cd24b1 100644
--- a/Source/UBCS-WEB/src/views/integration/systemInfo.vue
+++ b/Source/UBCS-WEB/src/views/integration/systemInfo.vue
@@ -25,6 +25,17 @@
       </template>
     </avue-crud>
     <el-dialog :visible.sync="dialogVisible" append-to-body title="鍒嗙被鎺堟潈">
+
+      <el-row>
+        <el-col :span="14">
+          <avue-tree ref="tree"
+                     :option="TreeOption"
+                     :data="TreeData"
+                     v-model="TreeForm"
+                     @check-change="checkChange">
+          </avue-tree>
+        </el-col>
+      </el-row>
     </el-dialog>
   </basic-container>
 </template>
@@ -34,6 +45,14 @@
 export default {
   data() {
     return {
+      TreeOption:{
+        defaultExpandAll: true,
+        multiple: true,
+        addBtn:false,
+        filter:false
+      },
+      TreeData:[],
+      TreeForm:{},
       loading: false,
       dialogVisible:false,
       page: {
@@ -100,6 +119,10 @@
     }
   },
   methods: {
+    //鍒嗙被鎺堟潈澶氶�夊洖璋�
+    checkChange(){
+
+    },
     //鍒嗙被鎺堟潈
     classifyHandler(){
       this.dialogVisible=true;

--
Gitblit v1.9.3