From ac7c4b4c9f2a56137431e9befa900ca792045bdb Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期二, 11 七月 2023 18:11:40 +0800
Subject: [PATCH] 主数据 主题库 租户管理bug修复

---
 Source/UBCS-WEB/src/views/system/tenant.vue              |  270 +++++++++++++++--------------
 Source/UBCS-WEB/src/components/Tree/classifyTrees.vue    |   31 +--
 Source/UBCS-WEB/src/views/modeling/BusinessAdd.vue       |   11 +
 Source/UBCS-WEB/src/api/GetItem.js                       |   17 +
 Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue    |   25 ++
 Source/UBCS-WEB/src/components/Tree/classifyTreeform.vue |  141 ++++++++-------
 Source/UBCS-WEB/vue.config.js                            |    4 
 Source/UBCS-WEB/src/components/Master/MasterTree.vue     |    1 
 Source/UBCS-WEB/src/components/Tree/attrCrud.vue         |   10 
 9 files changed, 278 insertions(+), 232 deletions(-)

diff --git a/Source/UBCS-WEB/src/api/GetItem.js b/Source/UBCS-WEB/src/api/GetItem.js
index 6b82a9c..a6464c9 100644
--- a/Source/UBCS-WEB/src/api/GetItem.js
+++ b/Source/UBCS-WEB/src/api/GetItem.js
@@ -29,3 +29,20 @@
     }
   })
 }
+// 鏂板鏁版嵁
+export function addSaveCode(data) {
+  return request({
+    url: 'api/ubcs-code/ubcs-code/mdmEngineController/addSaveCode',
+    method: 'post',
+    data
+  })
+}
+//淇敼鏁版嵁
+export function editSaveCode(data) {
+  return request({
+    url: 'api/ubcs-code/ubcs-code/mdmEngineController/editSaveCode',
+    method: 'put',
+    data
+  })
+}
+
diff --git a/Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue b/Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue
index 75413c2..be3ea00 100644
--- a/Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue
+++ b/Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue
@@ -79,7 +79,7 @@
   </basic-container>
 </template>
 <script>
-import {MasterTable, TableData, FindData} from "@/api/GetItem";
+import {MasterTable, TableData, FindData,addSaveCode,editSaveCode} from "@/api/GetItem";
 import {listCodeAttributeByClassId} from "@/api/integration/integration.js";
 import integrationTransfer from "@/views/integration/integrationTransfer";
 import SetPersonnel from "@/components/template/SetPersonnel";
@@ -213,7 +213,8 @@
     codeClassifyOid: {
       handler(newval, oldval) {
         this.codeClassifyOid = newval;
-        this.parameter.vars.codeClassifyOid = newval
+        this.parameter.vars.codeClassifyOid = newval;
+        console.log('瀛�',newval)
       },
       deep: true,
     },
@@ -421,6 +422,7 @@
     },
     //澶氶��
     handleSelectionChange(row) {
+      console.log(row)
       if (this.row) {
         this.rowOid = row[0].oid;
       } else {
@@ -485,16 +487,26 @@
       }
     },
     //澧炲姞淇濆瓨
-    AddSumbit() {
+    AddSumbit(val) {
       this.addvisible = false;
+      console.log(val)
+      addSaveCode(val).then(res=>{
+        console.log(res)
+        this.onLoad()
+      })
     },
     EditSumbit(val) {
       this.editvisible = false;
+      console.log(val)
+      editSaveCode(val).then(res=>{
+        console.log(res)
+        this.onLoad()
+      })
     },
     openBatchImport(type) {
-      this.batchImportData.visible = true
-      this.batchImportData.type = type
-      this.batchImportData.codeClassifyOid = this.codeClassifyOid
+      this.batchImportData.visible = true;
+      this.batchImportData.type = type;
+      this.batchImportData.codeClassifyOid = this.codeClassifyOid;
     }
   },
 };
@@ -505,7 +517,6 @@
   .el-table--scrollable-x .el-table__body-wrapper {
     overflow: auto !important;
   }
-
   .el-table__fixed-right-patch {
     background-color: #f5f7fa !important;
   }
diff --git a/Source/UBCS-WEB/src/components/Master/MasterTree.vue b/Source/UBCS-WEB/src/components/Master/MasterTree.vue
index dd92b72..ea42225 100644
--- a/Source/UBCS-WEB/src/components/Master/MasterTree.vue
+++ b/Source/UBCS-WEB/src/components/Master/MasterTree.vue
@@ -156,6 +156,7 @@
         this.TableRend(); // TableHeadRend() 鏂规硶瀹屾垚鍚庡啀鎵ц TableRend()
         this.$emit('nodeClick',this.templateOids)
         this.$emit("codeClassifyOid", this.nodeClickList.oid )
+        console.log('鏍�',this.nodeClickList.oid)
       } catch (error) {
         // 澶勭悊閿欒
         this.$message.error(error)
diff --git a/Source/UBCS-WEB/src/components/Tree/attrCrud.vue b/Source/UBCS-WEB/src/components/Tree/attrCrud.vue
index faa8b02..92ee657 100644
--- a/Source/UBCS-WEB/src/components/Tree/attrCrud.vue
+++ b/Source/UBCS-WEB/src/components/Tree/attrCrud.vue
@@ -1816,11 +1816,9 @@
 </script>
 
 <style scoped lang="scss" >
-///deep/ .el-button {
-//  margin: 0 10px 10px 0;
-//}
-.app el-button{
-  z-index: 1;
-  margin: 0 10px 10px 0 !important;
+.app {
+   /deep/ .el-button {
+     margin: 0 10px 10px 0;
+     }
 }
 </style>
diff --git a/Source/UBCS-WEB/src/components/Tree/classifyTreeform.vue b/Source/UBCS-WEB/src/components/Tree/classifyTreeform.vue
index 5eb3f23..9a71b38 100644
--- a/Source/UBCS-WEB/src/components/Tree/classifyTreeform.vue
+++ b/Source/UBCS-WEB/src/components/Tree/classifyTreeform.vue
@@ -2,7 +2,7 @@
   <div>
     <avue-form v-model="loneTreeNewForm" :option="option" v-if="flag == 'renonly'">
     </avue-form>
-    <avue-form v-model="loneTreeNewForm" :option="options" @submit="submits" v-else-if="flag == 'edit'">
+    <avue-form v-model="loneTreeNewForm" :option="this.options" @submit="submits" v-else-if="flag == 'edit'">
     </avue-form>
     <div>
 <!--     缂栫爜瑙勫垯-->
@@ -255,70 +255,7 @@
           },
         ]
       },
-      options: {
-        column: [
-          {
-            label: '涓婚搴�/鍒嗙被缂栧彿',
-            prop: 'id',
-            labelWidth:128,
-            rules: [{
-              required: true,
-              message: "涓婚搴�/鍒嗙被缂栧彿",
-              trigger: "blur"
-            }]
-          },
-          {
-            label: '涓婚搴�/鍒嗙被鍚嶇О',
-            prop: 'name',
-            labelWidth:128,
-            rules: [{
-              required: true,
-              message: "涓婚搴�/鍒嗙被鍚嶇О",
-              trigger: "blur"
-            }]
-          },
-          {
-            label:"鎻忚堪",
-            prop:"description",
-            labelWidth:128,
-          },
-          {
-            label: '瀛樺偍鐨勪笟鍔$被鍨�',
-            prop: 'btmtypename',
-            labelWidth:128,
-            focus:this.btmFoucus,
-            readonly: true,
-            display:false,
-            rules: [{
-              required: true,
-              message: "瀛樺偍鐨勪笟鍔$被鍨�",
-              trigger: "blur"
-            }]
-          },
-          {
-            label:"缂栫爜瑙勫垯",
-            prop:"coderuleoidName",
-            labelWidth:128,
-            focus:this.CodeFoucus,
-            readonly: true,
-          },
-          {
-            label:"鍏抽敭灞炴�ф煡璇㈣鍒�",
-            prop:"codekeyattrrepeatoidName",
-            labelWidth:128,
-            focus:this.Keyfouce,
-            readonly: true,
-          },
-          {
-            label:"鐩镐技鏌ヨ瑙勫垯",
-            prop:"codeResembleRuleOidName",
-            labelWidth:128,
-            focus: this.simFouce,
-            readonly: true,
-          },
 
-        ]
-      },
       FormList: {},
       masterSelectList:[],
       KeySelectLIst:[],
@@ -326,6 +263,75 @@
       btmSelectList:[]
     }
   },
+  computed:{
+    options(){
+      return{
+          column: [
+            {
+              label: '涓婚搴�/鍒嗙被缂栧彿',
+              prop: 'id',
+              labelWidth:128,
+              rules: [{
+                required: true,
+                message: "涓婚搴�/鍒嗙被缂栧彿",
+                trigger: "blur"
+              }]
+            },
+            {
+              label: '涓婚搴�/鍒嗙被鍚嶇О',
+              prop: 'name',
+              labelWidth:128,
+              rules: [{
+                required: true,
+                message: "涓婚搴�/鍒嗙被鍚嶇О",
+                trigger: "blur"
+              }]
+            },
+            {
+              label:"鎻忚堪",
+              prop:"description",
+              labelWidth:128,
+            },
+            {
+              label: '瀛樺偍鐨勪笟鍔$被鍨�',
+              prop: 'btmtypename',
+              labelWidth:128,
+              focus:this.btmFoucus,
+                // readonly: true,
+              display:this.TreeFlag,
+              rules: [{
+                required: true,
+                message: "瀛樺偍鐨勪笟鍔$被鍨�",
+                trigger: "blur"
+              }]
+            },
+            {
+              label:"缂栫爜瑙勫垯",
+              prop:"coderuleoidName",
+              labelWidth:128,
+              focus:this.CodeFoucus,
+              readonly: true,
+            },
+            {
+              label:"鍏抽敭灞炴�ф煡璇㈣鍒�",
+              prop:"codekeyattrrepeatoidName",
+              labelWidth:128,
+              focus:this.Keyfouce,
+              readonly: true,
+            },
+            {
+              label:"鐩镐技鏌ヨ瑙勫垯",
+              prop:"codeResembleRuleOidName",
+              labelWidth:128,
+              focus: this.simFouce,
+              readonly: true,
+            },
+
+          ]
+
+      }
+    }
+  },
   watch:{
     nodeClickList:{
       handler(newval,oldval){
@@ -333,6 +339,13 @@
       },
       deep:true,
       immediate:true
+    },
+    TreeFlag:{
+      handler(newval,oldval){
+        console.log('鏍戠姸鎬�',newval,oldval)
+      },
+      deep:true,
+      immediate:true
     }
   },
   created() {
diff --git a/Source/UBCS-WEB/src/components/Tree/classifyTrees.vue b/Source/UBCS-WEB/src/components/Tree/classifyTrees.vue
index 23167e8..c659dfa 100644
--- a/Source/UBCS-WEB/src/components/Tree/classifyTrees.vue
+++ b/Source/UBCS-WEB/src/components/Tree/classifyTrees.vue
@@ -3,8 +3,8 @@
   <el-container>
     <!--    宸︿晶鑿滃崟-->
     <el-aside >
-      <basic-container style="height: 85vh; max-height: 155vh; overflow-y: scroll;"@click.native="handleClickOutside" >
-        <div @click.native="handleClickOutside">
+      <basic-container style="height: 85vh; max-height: 155vh; overflow-y: scroll;">
+        <div>
         <div>
           <div style="display: flex;justify-content: space-around">
             <el-button plain size="small" type="primary" @click="TreeAdd">娣诲姞</el-button>
@@ -33,7 +33,7 @@
             <el-form-item label="缂栫爜瑙勫垯锛�" label-width="150px">
               <el-input v-model="TreeAddform.codeRuleOidName" autocomplete="off" style="width: 585px" @focus="CodeFoucus"></el-input>
             </el-form-item>
-            <el-form-item label="涓氬姟绫诲瀷锛�" label-width="150px" v-if="TreeFlag==false">
+            <el-form-item label="涓氬姟绫诲瀷锛�" label-width="150px" v-if="TreeFlagCode==false">
               <el-input v-model="TreeAddform.btmTypeName" autocomplete="off" style="width: 585px" @focus="btmFoucus"></el-input>
             </el-form-item>
             <el-form-item label="鍏抽敭灞炴�ф煡璇㈣鍒欙細" label-width="150px">
@@ -52,7 +52,7 @@
         </el-dialog>
         <!--        淇敼瀵硅瘽妗�-->
         <el-dialog :visible.sync="TreeEditFormVisible" append-to-body title="淇敼鍒嗙被">
-          <classifyTreeform ref="childForm" :loneTreeNewForm="TreeList" :nodeList="nodeList" :flag="'edit'" @MasterHandler="MasterHandler" :Editclose=" ()=>{TreeEditFormVisible=false}" :TreeFlag="TreeFlag" ::nodeClickList="nodeClickList"></classifyTreeform>
+          <classifyTreeform ref="childForm" :loneTreeNewForm="TreeList" :nodeList="nodeList" :flag="'edit'" @MasterHandler="MasterHandler" :Editclose=" ()=>{TreeEditFormVisible=false}" :TreeFlag="TreeFlagCode" ::nodeClickList="nodeClickList"></classifyTreeform>
         </el-dialog>
         <avue-tree ref="tree" v-model="CloneTreeAvueform" v-loading="loading" :data="CloneTreedata" :defaultExpandAll="false"
                    :option="Treeoption"
@@ -330,7 +330,7 @@
   data() {
     return {
       //鏍戣妭鐐规樉绀洪殣钘�
-      TreeFlag:false,
+      TreeFlagCode:false,
       //缂栫爜瑙勫垯
       MasterdialogVisible:false,
       masterData:[],
@@ -633,6 +633,10 @@
       if (e.target.nodeName !== 'SPAN') {
         this.$refs.tree.setCurrentKey(null)
         this.nodeClickList = {}
+        this.TreeList=[]
+        this.TreeFlagCode=false
+        console.log('鍚嶵reeList',this.TreeList)
+        console.log('鍚巒odeClickList',this.nodeClickList)
       }
     }, true)
   },
@@ -682,18 +686,6 @@
     }
   },
   methods: {
-    //鏍戣妭鐐瑰け鍘荤劍鐐�
-    handleClickOutside(event) {
-      const treeElement = this.$refs.tree.$el;
-      const targetElement = event.target;
-      if (!treeElement.contains(targetElement)) {
-        // 鍦ㄦ爲缁勪欢澶栭儴鐐瑰嚮锛屾竻绌洪�夋嫨鐘舵��
-        // this.nodeClickList=[];
-        // this.CloneTreeAvueform={}
-        console.log(this.nodeClickList  )
-        console.log(this.CloneTreeAvueform)
-      }
-    },
     //缂栫爜瑙勫垯澶辩劍
     CodeFoucus(){
       this.MasterdialogVisible=true;
@@ -1039,7 +1031,7 @@
     },
     //淇敼鍥炲~
     TreeEdit() {
-      if (this.nodeClickList == "") {
+      if ( Object.keys(this.nodeClickList).length<1) {
         this.$message({
           type: 'warning',
           message: '璇峰厛浠庢爲涓婇�夋嫨涓�鏉℃暟鎹�!'
@@ -1119,9 +1111,8 @@
     //鏍戠偣鍑讳簨浠�
     async nodeClick(data) {
       //瀹氫箟涓�涓ā鏉垮睘鎬d锛屾暟鎹槸妯℃澘绠$悊琛ㄦ牸閲岄潰鐨刼id
-      console.log('鏍�',data)
       if(data.parentId == ""){
-        this.TreeFlag=true;
+        this.TreeFlagCode=true;
       }
       this.nodeClickList = data
       this.ProData=[]
diff --git a/Source/UBCS-WEB/src/views/modeling/BusinessAdd.vue b/Source/UBCS-WEB/src/views/modeling/BusinessAdd.vue
index 3a057e4..e8abccc 100644
--- a/Source/UBCS-WEB/src/views/modeling/BusinessAdd.vue
+++ b/Source/UBCS-WEB/src/views/modeling/BusinessAdd.vue
@@ -142,6 +142,15 @@
             type: Array
         }
     },
+  watch:{
+    btmType:{
+      handler(newval,oldval){
+        console.log('鐩戝惉',newval,oldval)
+      },
+      deep:true,
+      immediate:true
+    }
+  },
     data() {
         return {
             form: {},
@@ -359,7 +368,7 @@
         },
         // 灞炴�ф睜鍔犺浇
         attrRefOnLoad(){
-            if (!this.attrRef.queryNotIn || (this.attrRef.queryNotIn === '' && this.btmType.attributes !== [])){
+            if (this.attrRef.queryNotIn != ''){
               this.attrRef.queryNotIn = '';
                this.btmType.attributes.forEach(item => {
                   this.attrRef.queryNotIn += (item.id + ",")
diff --git a/Source/UBCS-WEB/src/views/system/tenant.vue b/Source/UBCS-WEB/src/views/system/tenant.vue
index 96ce15c..665513f 100644
--- a/Source/UBCS-WEB/src/views/system/tenant.vue
+++ b/Source/UBCS-WEB/src/views/system/tenant.vue
@@ -1,6 +1,6 @@
 <template>
   <basic-container>
-    <avue-crud :option="option"
+    <avue-crud :option="this.option"
                :table-loading="loading"
                :data="data"
                ref="crud"
@@ -61,7 +61,7 @@
         <el-tag>{{ row.expireTime ? row.expireTime : '涓嶉檺鍒�' }}</el-tag>
       </template>
     </avue-crud>
-    
+
     <el-dialog title="绉熸埛鏁版嵁婧愰厤缃�"
                append-to-body
                :visible.sync="datasourceBox"
@@ -90,7 +90,7 @@
   remove,
   update,
   add,
-  setting,
+  // setting,
   datasource,
   packageInfo,
   packageSetting
@@ -115,117 +115,6 @@
         pageSize: 10,
         currentPage: 1,
         total: 0
-      },
-      option: {
-        height: 'auto',
-        calcHeight: 30,
-        tip: false,
-        searchShow: true,
-        searchMenuSpan: 6,
-        border: true,
-        index: true,
-        selection: true,
-        viewBtn: true,
-        dialogWidth: 900,
-        dialogClickModal: false,
-        highlightCurrentRow: true, //琛岄�変腑鏃堕珮浜�
-        column: [
-          {
-            label: "绉熸埛ID",
-            prop: "tenantId",
-            width: 100,
-            search: true,
-            addDisplay: false,
-            editDisplay: false,
-            span: 24,
-            rules: [{
-              required: true,
-              message: "璇疯緭鍏ョ鎴稩D",
-              trigger: "blur"
-            }]
-          },
-          {
-            label: "鍏ㄧО",
-            prop: "fullName",
-            width: 120,
-            span:24,
-            rules: [{
-              required: true,
-              message: "璇疯緭鍏ュ叏绉�",
-              trigger: "blur"
-            }]
-          },
-          {
-            label: "绉熸埛鍚嶇О",
-            prop: "tenantName",
-            search: true,
-            width: 180,
-            span: 24,
-            rules: [{
-              required: true,
-              message: "璇疯緭鍏ュ弬鏁板悕绉�",
-              trigger: "blur"
-            }]
-          },
-          {
-            label: "鑱旂郴浜�",
-            prop: "linkman",
-            width: 150,
-            search: true,
-            rules: [{
-              required: true,
-              message: "璇疯緭鍏ヨ仈绯讳汉",
-              trigger: "blur"
-            }]
-          },
-          {
-            label: "鑱旂郴鐢佃瘽",
-            prop: "contactNumber",
-            width: 150,
-          },
-          {
-            label: "鑱旂郴鍦板潃",
-            prop: "address",
-            span: 24,
-            minRows: 2,
-            type: "textarea",
-            hide: true,
-          },
-          {
-            label: '寮�鍚笁鍛�',
-            prop: 'ssaEnable',
-            type: 'radio',
-            width: 100,
-            value:0,
-            disabled:Boolean,
-            dicData: [{
-              label: '寮�鍚�',
-              value: 0
-            }, {
-              label: '涓嶅紑鍚�',
-              value: 1
-            },],
-          },
-          {
-            label: "缁戝畾鍩熷悕",
-            prop: "domainUrl",
-            span: 24,
-          },
-          {
-            label: "绯荤粺鑳屾櫙",
-            prop: "backgroundUrl",
-            type: 'upload',
-            listType: 'picture-img',
-            dataType: 'string',
-            action: '/api/ubcs-resource/oss/endpoint/put-file',
-            propsHttp: {
-              res: 'data',
-              url: 'link',
-            },
-            hide: true,
-            span: 24,
-          },
-        ]
       },
       data: [],
       settingForm: {},
@@ -298,14 +187,12 @@
           },
         ]
       },
+      BooleanFlag:Boolean,
     };
   },
 
   created() {
-    // 鑾峰彇鍒皌rue杩樻槸false鐩存帴璧嬪�硷紝瀹氫箟鏂规硶浼氬氨鏄幏鍙栦笉鍒帮紝涓嶇煡閬撲粈涔堥棶棰橈紝寮哄埗鐢↗SON.parse浼氬湪鍚庨潰杩藉姞涓�涓猟isabled锛屾墍浠ョ洿鎺ヨ幏鍙栥�傚悗鏈熷鏋滄坊鍔燾loumn浼氬嚭鐜癰ug锛岀敤foreach寰幆鍑篶olumn鍦ㄥ垽鏂璽ype鏄惁绛変簬radio锛岀劧鍚庡皢鍗曠嫭radio鐨刣isabled鏀逛负res.data.data
-    this.$axios.get('/api/ubcs-system/tenant/find-ssa-enable').then(res => {
-      this.option.column[6].disabled= res.data.data
-    });
+    this.initBoolean()
   },
   watch: {
     'packageForm.packageId'() {
@@ -336,9 +223,128 @@
     },
     tenantId() {
       return this.selectionList[0].tenantId;
+    },
+    option(){
+      return{
+          height: 'auto',
+          calcHeight: 30,
+          tip: false,
+          searchShow: true,
+          searchMenuSpan: 6,
+          border: true,
+          index: true,
+          selection: true,
+          viewBtn: true,
+          dialogWidth: 900,
+          dialogClickModal: false,
+          highlightCurrentRow: true, //琛岄�変腑鏃堕珮浜�
+          column: [
+            {
+              label: "绉熸埛ID",
+              prop: "tenantId",
+              width: 100,
+              search: true,
+              addDisplay: false,
+              editDisplay: false,
+              span: 24,
+              rules: [{
+                required: true,
+                message: "璇疯緭鍏ョ鎴稩D",
+                trigger: "blur"
+              }]
+            },
+            {
+              label: "鍏ㄧО",
+              prop: "fullName",
+              width: 120,
+              span:24,
+              rules: [{
+                required: true,
+                message: "璇疯緭鍏ュ叏绉�",
+                trigger: "blur"
+              }]
+            },
+            {
+              label: "绉熸埛鍚嶇О",
+              prop: "tenantName",
+              search: true,
+              width: 180,
+              span: 24,
+              rules: [{
+                required: true,
+                message: "璇疯緭鍏ュ弬鏁板悕绉�",
+                trigger: "blur"
+              }]
+            },
+            {
+              label: "鑱旂郴浜�",
+              prop: "linkman",
+              width: 150,
+              search: true,
+              rules: [{
+                required: true,
+                message: "璇疯緭鍏ヨ仈绯讳汉",
+                trigger: "blur"
+              }]
+            },
+            {
+              label: "鑱旂郴鐢佃瘽",
+              prop: "contactNumber",
+              width: 150,
+            },
+            {
+              label: "鑱旂郴鍦板潃",
+              prop: "address",
+              span: 24,
+              minRows: 2,
+              type: "textarea",
+              hide: true,
+            },
+            {
+              label: '寮�鍚笁鍛�',
+              prop: 'ssaEnable',
+              type: 'radio',
+              width: 100,
+              value:0,
+              disabled:this.BooleanFlag ,
+              dicData: [{
+                label: '寮�鍚�',
+                value: 0
+              }, {
+                label: '涓嶅紑鍚�',
+                value: 1
+              },],
+            },
+            {
+              label: "缁戝畾鍩熷悕",
+              prop: "domainUrl",
+              span: 24,
+            },
+            {
+              label: "绯荤粺鑳屾櫙",
+              prop: "backgroundUrl",
+              type: 'upload',
+              listType: 'picture-img',
+              dataType: 'string',
+              action: '/api/ubcs-resource/oss/endpoint/put-file',
+              propsHttp: {
+                res: 'data',
+                url: 'link',
+              },
+              hide: true,
+              span: 24,
+            },
+          ]
+      }
     }
   },
   methods: {
+    initBoolean(){
+      this.$axios.get('/api/ubcs-system/tenant/find-ssa-enable').then(res => {
+        this.BooleanFlag=res.data.data;
+        console.log('---',res)
+      });
+    },
     initData() {
       getMenuTree().then(res => {
         const column = this.findObject(this.packageOption.column, "menuId");
@@ -510,20 +516,20 @@
     handlePackageSetting() {
       this.packageSettingBox = true;
     },
-    handleSubmit(form, done, loading) {
-      setting(this.ids, form).then(() => {
-        this.onLoad(this.page);
-        this.$message({
-          type: "success",
-          message: "閰嶇疆鎴愬姛!"
-        });
-        done();
-        this.box = false;
-      }, error => {
-        window.console.log(error);
-        loading();
-      });
-    },
+    // handleSubmit(form, done, loading) {
+    //   setting(this.ids, form).then(() => {
+    //     this.onLoad(this.page);
+    //     this.$message({
+    //       type: "success",
+    //       message: "閰嶇疆鎴愬姛!"
+    //     });
+    //     done();
+    //     this.box = false;
+    //   }, error => {
+    //     window.console.log(error);
+    //     loading();
+    //   });
+    // },
     handleDatasourceSubmit(form, done, loading) {
       datasource(this.tenantId, form.datasourceId).then(() => {
         this.$message({
diff --git a/Source/UBCS-WEB/vue.config.js b/Source/UBCS-WEB/vue.config.js
index 0991057..63a88c9 100644
--- a/Source/UBCS-WEB/vue.config.js
+++ b/Source/UBCS-WEB/vue.config.js
@@ -28,8 +28,8 @@
         //鏈湴鏈嶅姟鎺ュ彛鍦板潃
         // target: 'http://localhost:37000',
         // target: 'http://192.168.1.51:37000',
-        // target: 'http://192.168.1.46:37000',
-        target: 'http://dev.vci-tech.com:37000',
+        target: 'http://192.168.1.46:37000',
+        // target: 'http://dev.vci-tech.com:37000',
         // target: 'http://192.168.1.51:37000/',
         // target: 'http://192.168.1.104:37000',
         // target: 'http://192.168.1.63:37000',

--
Gitblit v1.9.3