From 2e7f611bdfb28fdc16e2bc4fc19498851fe364d1 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期一, 24 七月 2023 09:46:54 +0800
Subject: [PATCH] 动态组件

---
 Source/UBCS-WEB/src/components/Tree/attrCrud.vue |   23 +++++++++++------------
 1 files changed, 11 insertions(+), 12 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/Tree/attrCrud.vue b/Source/UBCS-WEB/src/components/Tree/attrCrud.vue
index d5f83d3..ec68c50 100644
--- a/Source/UBCS-WEB/src/components/Tree/attrCrud.vue
+++ b/Source/UBCS-WEB/src/components/Tree/attrCrud.vue
@@ -1,6 +1,6 @@
 <template>
   <div>
-    <div style="display: flex;flex-wrap: wrap;" v-if="this.crudArrayFlag">
+    <div style="display: flex;flex-wrap: wrap;" v-if="this.crudArrayFlag"class="app">
 
       <!--鏂板-->
       <el-button v-if="attrEditVisible == false && attrFlagChiledren==false && crudLCStatus=='Editing'" size="small" type="primary" icon="el-icon-plus" @click="busineHandle">娣诲姞 {{ msg }}</el-button>
@@ -72,11 +72,6 @@
           <el-table :data="tableData" style="width: 100%" @cell-click="handleCellClick"
                     @selection-change="handleSelectionChange">
             <!-- 娓叉煋琛ㄦ牸鍒楀強浼犲弬 -->
-            <el-table-column label="搴忓彿" type="index"></el-table-column>
-            <el-table-column
-              type="selection"
-              width="55">
-            </el-table-column>
             <el-table-column label="閫夐」鍊�" prop="key">
               <template slot-scope="{ row }">
                 <!-- 缂栬緫鍜屽睍绀洪�昏緫 -->
@@ -1477,7 +1472,8 @@
             sortAttrFlag: 'false',
             queryAttrFlag: 'true',
             seniorQueryAttrFlag: 'true',
-            attrTableWidth: 120
+            attrTableWidth: 120,
+            ts:""
           })
           this.ProData.push(JSON.parse(JSON.stringify(this.busineAddList)))
         }
@@ -1487,7 +1483,8 @@
     },
     //涓氬姟绫诲瀷閫夋嫨
     businessSelect(selection, row) {
-      this.busineSelectList = selection
+      this.busineSelectList = selection;
+      console.log(selection)
     },
     // 浠庝笟鍔$被鍨嬩腑閫夋嫨鏁版嵁寮圭獥
     busineHandle() {
@@ -1817,9 +1814,9 @@
     //缁勫悎瑙勫垯纭畾
     updataFormlaContent(val) {
       if(this.CurrentCell){
-        this.$set(this.CurrentCell, 'componentRule', JSON.stringify(val))
+        this.$set(this.CurrentCell, 'componentRule', val.replace(/"/g, ''))
       }else {
-        this.$set(this.attrRow, 'componentRule', JSON.stringify(val))
+        this.$set(this.attrRow, 'componentRule', val.replace(/"/g, ''))
       }
 
     },
@@ -1851,7 +1848,9 @@
 </script>
 
 <style scoped lang="scss" >
-/deep/ .el-button {
-  margin: 0 10px 10px 0;
+.app {
+   /deep/ .el-button {
+   margin: 0 10px 10px 0;
+   }
 }
 </style>

--
Gitblit v1.9.3