From 358f12562a20fb4f8cb50a6ff7de1dc4f72ee4fe Mon Sep 17 00:00:00 2001
From: fujunling <2984387807@qq.com>
Date: 星期二, 27 六月 2023 16:24:16 +0800
Subject: [PATCH] fjl

---
 Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue |   49 +++++++++++++++++++++++++------------------------
 1 files changed, 25 insertions(+), 24 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue b/Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue
index a73954c..82279db 100644
--- a/Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue
+++ b/Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue
@@ -27,14 +27,14 @@
           :visible.sync="editvisible"
           @submit="EditSumbit"
         ></FormTemplateDialog>
-        <el-button plain size="small" type="primary">鎵归噺瀵煎叆鐢宠</el-button>
-        <el-button plain size="small" type="primary" @click="historyVisible = true">鍘嗗彶鏁版嵁瀵煎叆</el-button>
+        <el-button plain size="small" type="primary" @click="importDataShow('batchImportApply')">鎵归噺瀵煎叆鐢宠</el-button>
+        <el-button plain size="small" type="primary" @click="importDataShow('historyImport')">鍘嗗彶鏁版嵁瀵煎叆</el-button>
         <el-button plain size="small" type="primary">鎵归噺鐢宠缂栫爜</el-button>
         <el-button plain size="small" type="primary">鎵归噺鍙戝竷</el-button>
         <el-button plain size="small" type="primary">鏌ョ湅娴佺▼鍘嗗彶</el-button>
         <el-button plain size="small" type="primary">鍒犻櫎</el-button>
         <el-button plain size="small" type="primary" @click="setHandler">鍙戝竷</el-button>
-        <set-personnel :visible.sync="visibleFlow"  :parameter="this.parameter"
+        <set-personnel :visible.sync="visibleFlow"  :parameter="parameter"
         ></set-personnel>
         <el-button plain size="small" type="primary" @click="DataChange">鏁版嵁鏇存敼</el-button>
         <FormTemplateDialog
@@ -111,7 +111,7 @@
         @current-change="handleCurrentChange">
       </el-pagination>
     </div>
-    <historyImport :visible.sync="historyVisible" :codeClassifyOid="codeClassifyOid" type="historyImport"></historyImport>
+    <historyImport :visible.sync="importVisible" v-if="importVisible" :codeClassifyOid="codeClassifyOid" :type="importType"></historyImport>
   </basic-container>
 </template>
 <script>
@@ -153,7 +153,6 @@
     },
     templateOid: {
       type: String,
-      default:''
     },
     tableHeadDataFateher: {
       type: Array,
@@ -172,8 +171,8 @@
       similarVisible:false,
       //鍙戝竷
       parameter:{
-        ids:[],
-        code:'',
+        ids:['0000','22222222'],
+        code:this.templateOid,
         type:'PUBLIC',
         template:'妯℃澘template'
       },
@@ -184,6 +183,7 @@
         label: 'name'
       },
       tableHeadFindDatas:[],
+      templateOid: "",
       addvisible: false,
       editvisible: false,
       findvisible: false,
@@ -212,19 +212,28 @@
       items: {},
       seniorQueryColumns: [],
       selectRow: [],
-      historyVisible: false
+      historyVisible: false,
+      importType: undefined, //瀵煎叆绫诲瀷,
+      importVisible: false
     }
   },
   computed: {},
   created() {
-
+    // this.CrudHeaderRend();
+    // this.tableHeadHandle()
   },
   mounted() {
+
   },
   activated() {
     this.doLayout()
   },
   watch: {
+    tableHeadDataFateher:{
+      handler(newval,oldval){
+        this.options=newval.tableDefineVO.seniorQueryColumns
+      }
+    },
     codeClassifyOid: {
       handler(newval, oldval) {
         this.codeClassifyOid = newval;
@@ -247,21 +256,13 @@
         this.page.total = newval;
       }
     },
-    templateOid:{
-      handler(newval,oldval) {
-        this.parameter.code=newval;
-      },
-      deep:true
-    }
   },
   methods: {
     setHandler() {
+      this.visibleFlow = true;
+    },
+    huishouHandler() {
 
-      if (this.selectRow.length <= 0) {
-        this.$message.warning('璇烽�夋嫨涓�鏉℃暟鎹�')
-      }  else {
-        this.visibleFlow = true;
-      }
     },
     openD() {
       this.dialogPush = true;
@@ -396,10 +397,6 @@
       }
       this.selectRow = row;
       console.log(row)
-      row.forEach(item=>{
-        this.parameter.ids.push(item.oid)
-        console.log( this.parameter.ids)
-      })
     },
     //缂栬緫
     editHandler() {
@@ -463,6 +460,10 @@
     EditSumbit(val){
       console.log(val)
       this.editvisible=false
+    },
+    importDataShow(type) {
+      this.importType = type
+      this.importVisible = true
     }
   }
 }

--
Gitblit v1.9.3