From f2c0dc24a5142ddc08912456d55c80351cf4d9b6 Mon Sep 17 00:00:00 2001
From: zhangxp <zhangxp@chicecm.com>
Date: 星期三, 14 六月 2023 14:46:47 +0800
Subject: [PATCH] 优化穿梭框

---
 Source/UBCS-WEB/src/views/flow/flowPath.vue |   29 ++++++++++++++++-------------
 1 files changed, 16 insertions(+), 13 deletions(-)

diff --git a/Source/UBCS-WEB/src/views/flow/flowPath.vue b/Source/UBCS-WEB/src/views/flow/flowPath.vue
index 2040668..e14690f 100644
--- a/Source/UBCS-WEB/src/views/flow/flowPath.vue
+++ b/Source/UBCS-WEB/src/views/flow/flowPath.vue
@@ -1,14 +1,12 @@
 <template>
     <div>
         <el-button @click="outerVisible = true">娴佺▼娴嬭瘯</el-button>
-        <el-button @click="visibleFlow = true">妯℃澘娴佺▼</el-button>
         <el-button @click="visibleStage = true">妯℃澘闃舵</el-button>
-        <el-button @click="visibleTable = true">table绌挎妗�</el-button>
+        <el-button @click="handleTable">table绌挎妗�</el-button>
         <flow-business :visible.sync="outerVisible"></flow-business>
-        <flow-path :visible.sync="visibleFlow" code="8b5e2017-990f-454a-9c39-4c4eeeb57553"></flow-path>
-        <stage :visible.sync="visibleStage" code="8b5e2017-990f-454a-9c39-4c4eeeb57553"></stage>
+        <stage code="8b5e2017-990f-454a-9c39-4c4eeeb57553"></stage>
         <table-transfer :visible.sync="visibleTable" v-model="value" :dataList="list" :columns="columns" keyName="id"
-            @change="change"></table-transfer>
+            @save="handleSave"></table-transfer>
     </div>
 </template>
 
@@ -29,11 +27,11 @@
             let data = []
             for (let i = 0; i < 5; i++) {
                 let item = {
-                    id: `${i+1}`,
+                    id: `${i + 1}`,
                     name: 'name',
-                    address: '闆嗗洟鐮�',
-                    data:'',
-                    checked:false,
+                    address: `闆嗗洟鐮�${i + 1}`,
+                    data: '',
+                    checked: i === 1 ? true : false,
                 }
                 data.push(item)
             }
@@ -41,7 +39,7 @@
         }
         return {
             list: getTables(),
-            value: [],
+            value: ['2'],
             outerVisible: false,
             visibleFlow: false,
             visibleStage: false,
@@ -73,10 +71,15 @@
         }
     },
     methods: {
-        change(val) {
-            console.log(val);
-            console.log(this.value)
+        handleSave(event) {
+            console.log(event)
         },
+        handleTable(){
+            this.visibleTable = true
+            // this.$nextTick(()=>{
+
+            // })
+        }
     }
 }
 </script>

--
Gitblit v1.9.3