From 7ff3f607595a30fc66924eb4b60ff00407afbbc2 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期三, 05 七月 2023 19:30:34 +0800
Subject: [PATCH] 代码整合

---
 Source/UBCS-WEB/src/components/Tree/attrCrud.vue |   42 +++++++++++++++++++++++++++++++++---------
 1 files changed, 33 insertions(+), 9 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/Tree/attrCrud.vue b/Source/UBCS-WEB/src/components/Tree/attrCrud.vue
index cdf2b52..1909549 100644
--- a/Source/UBCS-WEB/src/components/Tree/attrCrud.vue
+++ b/Source/UBCS-WEB/src/components/Tree/attrCrud.vue
@@ -12,6 +12,18 @@
       <el-button icon="el-icon-menu" size="small" @click="attrVisibleHandle">灞炴�у垎缁�</el-button>
       </el-button-group>
       <el-button-group>
+<<<<<<< HEAD
+        <!--        鍒嗙被娉ㄥ叆-->
+        <el-button icon="el-icon-magic-stick" size="small" @click="injectBtn">鍒嗙被娉ㄥ叆</el-button>
+          <!--    缁勫悎瑙勫垯-->
+          <el-button size="small" @click="isShowHandler">缁勫悎瑙勫垯</el-button>
+        <!--        鏋氫妇娉ㄥ叆-->
+        <el-button size="small" @click="enmuVisHandle">鏋氫妇娉ㄥ叆</el-button>
+        <!--    绾ц仈灞炴��-->
+        <el-button size="small" @click="CascadeHandle">绾ц仈灞炴��</el-button>
+        <!--    棰勮鎺掑簭-->
+        <el-button size="small" icon="el-icon-arrow-down">棰勮鎺掑簭</el-button>
+=======
       <!--        鍒嗙被娉ㄥ叆-->
       <el-button icon="el-icon-magic-stick" size="small" @click="injectBtn">鍒嗙被娉ㄥ叆</el-button>
         <!--    缁勫悎瑙勫垯-->
@@ -21,9 +33,9 @@
       <!--    绾ц仈灞炴��-->
       <el-button size="small" @click="CascadeHandle">绾ц仈灞炴��</el-button>
       <!--    棰勮鎺掑簭-->
-      <el-button size="small" icon="el-icon-arrow-down">棰勮鎺掑簭</el-button>
+      <el-button size="small" @click="orderHandle" icon="el-icon-arrow-down">棰勮鎺掑簭</el-button>
+>>>>>>> 92e7dde00a56aff46e01efe72e1f7ab9b76dcf69
       </el-button-group>
-      <el-button-group>
       <!--    淇濆瓨-->
       <el-button size="small" @click="addsHandler" icon="el-icon-check">淇濆瓨</el-button>
       <!--    鍒犻櫎-->
@@ -31,8 +43,7 @@
       <!--    閲嶇疆-->
       <el-button size="small" @click="reset" icon="el-icon-refresh-right">閲嶇疆</el-button>
       <!--    鍚屾鍒板叾浠栨ā鏉�-->
-      <el-button size="small"@click="syncHandle" icon="el-icon-share">鍚屾鍒板叾浠栨ā鏉�</el-button>
-      </el-button-group>
+      <el-button size="small" @click="syncHandle">鍚屾鍒板叾浠栨ā鏉�</el-button>
       <!--    缂栫爜鐢宠棰勮-->
       <el-button size="small" @click="applicationHandle" style="">缂栫爜鐢宠棰勮</el-button>
       <!--        楠岃瘉瑙勫垯-->
@@ -232,10 +243,12 @@
     </div>
     <el-table :data="ProData"
               style="width: 100%"
+              height="280"
               @cell-click="handleCellClicks"
               @select="selectHandle"
               @selection-change="selectionChange"
               v-if="this.crudArrayFlag"
+              ref="referAttrCrud"
     >
       <el-table-column
         type="selection"
@@ -253,8 +266,8 @@
         <template slot-scope="{ row }">
           <el-input v-if="editingRows === row && editShows== item.prop && (item.edit == 'text' || item.edit == 'select' ||item.edit == 'refer')" v-model="row[item.prop]"
                     @blur="saveRows"></el-input>
-          <el-input-number controls-position="right" v-if="editingRows === row && editShows== item.prop && item.edit == 'number'" v-model="row[item.prop]"
-                           @blur="saveRows"></el-input-number>
+          <el-input-number size="small" controls-position="right" v-if="editingRows === row && editShows== item.prop && item.edit == 'number'" v-model="row[item.prop]"
+                           @blur="saveRows" :style="{width:(item.width-10)+'px'}"></el-input-number>
           <el-switch
             v-if="item.edit === 'switch'" v-model="row[item.prop]" active-value="true"
             inactive-value="false">
@@ -265,7 +278,7 @@
       <el-table-column
         fixed="right"
         label="鎿嶄綔"
-        width="120">
+        width="70">
         <template slot-scope="scope">
           <el-button
             size="small"
@@ -992,7 +1005,7 @@
           label: '鎺掑簭鍙�',
           sortable: true,
           edit: 'number',
-          width: 70,
+          width: 100,
           fixed: true
         }, {
             label: "灞炴�ц嫳鏂囩紪鍙�",
@@ -1384,6 +1397,10 @@
         })
       }
     },
+    // 鎺掑簭棰勮鎸夐挳
+    orderHandle(){
+      this.$refs.referAttrCrud.sort("orderNum");
+    },
     //琛ㄦ牸鍗曢��
     selectHandle(selection, row) {
       this.attrOid = row.oid;
@@ -1497,7 +1514,14 @@
     },
     //鍒嗙被娉ㄥ叆淇濆瓨
     injectAddHandle() {
-      this.$set(this.attrRow, 'classifyInvokeLevel', this.injectOption);
+      let data = {
+        "娉ㄥ叆绫诲瀷": this.injectOption.type,
+        "娉ㄥ叆绫诲瀷鍚嶇О": this.injectOption.set,
+        "灞傜骇璁剧疆": this.injectOption.injectNum,
+        "鏄惁鍙慨鏀�": this.injectOption.change
+      }
+      console.log(this.injectOption)      
+      this.$set(this.attrRow, 'classifyInvokeLevel', data);
       this.injectVisible = false
     },
     //鍒嗙被娉ㄥ叆娓呯┖

--
Gitblit v1.9.3