From 87acc51f22b7e1781d4c4984e95028d8d0aee437 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期一, 19 六月 2023 15:01:26 +0800
Subject: [PATCH] 主数据bug

---
 Source/UBCS-WEB/src/components/Crud/Crud.vue |   28 ++++++++++++++++++++--------
 1 files changed, 20 insertions(+), 8 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/Crud/Crud.vue b/Source/UBCS-WEB/src/components/Crud/Crud.vue
index 53cd177..3f5698a 100644
--- a/Source/UBCS-WEB/src/components/Crud/Crud.vue
+++ b/Source/UBCS-WEB/src/components/Crud/Crud.vue
@@ -11,6 +11,7 @@
           :templateOid="templateOid"
           :type="add"
           :visible.sync="addvisible"
+          @submit="AddSumbit"
         >
         </FormTemplateDialog>
         <el-button plain size="small" type="primary" @click="editHandler">缂栬緫
@@ -24,6 +25,7 @@
           :type="edit"
           :title="'淇敼缂栫爜淇℃伅'"
           :visible.sync="editvisible"
+          @submit="EditSumbit"
         ></FormTemplateDialog>
         <el-button plain size="small" type="primary">鎵归噺瀵煎叆鐢宠</el-button>
         <el-button plain size="small" type="primary">鍘嗗彶鏁版嵁瀵煎叆</el-button>
@@ -61,7 +63,7 @@
       </div>
       <el-row style="height: 700px;width: 100%">
         <el-table v-loading="isLoading" :data="tableData" max-height="700" style="" @cell-click="handleCellClick"
-                  @selection-change="handleSelectionChange" @sort-change="sortChange">
+                  @selection-change="handleSelectionChange" @sort-change="sortChange" v-if="tableData.length != 0">
           <el-table-column
             fixed
             type="selection"
@@ -215,7 +217,7 @@
     codeClassifyOid: {
       handler(newval, oldval) {
         this.codeClassifyOid = newval;
-        this.CrudHeaderRend()
+
       },
       deep: true
     },
@@ -256,10 +258,7 @@
       this.visibleFlow = true
     },
     huishouHandler() {
-      console.log('tem', this.templateOid)
-      console.log('table', this.tableData)
-      console.log('tabheadle', this.tableHeadData)
-      console.log('tableFather', this.tableHeadDataFateher)
+
     },
     openD() {
       this.dialogPush = true;
@@ -402,12 +401,16 @@
     },
     //澶氶��
     handleSelectionChange(row) {
+      this.rowOid = row[0].oid;
+      this.selectRow = row;
       console.log(row)
-      this.rowOid = row.oid
-      this.selectRow = row
     },
     //缂栬緫
     editHandler() {
+      console.log('row',this.rowOid)
+      console.log('temp',this.templateOid)
+      console.log('code',this.codeClassifyOid)
+      console.log('rule',this.coderuleoid)
       if (this.selectRow.length <= 0) {
         this.$message.warning('璇烽�夋嫨涓�鏉℃暟鎹�')
       } else if (this.selectRow.length > 1) {
@@ -443,6 +446,15 @@
       } else {
         this.DataVisible = true
       }
+    },
+    //澧炲姞淇濆瓨
+    AddSumbit(val){
+      console.log(val)
+      this.addvisible=false
+    },
+    EditSumbit(val){
+      console.log(val)
+      this.editvisible=false
     }
   }
 }

--
Gitblit v1.9.3