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 |   27 +++++++++++++++++++++++----
 1 files changed, 23 insertions(+), 4 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/Tree/attrCrud.vue b/Source/UBCS-WEB/src/components/Tree/attrCrud.vue
index ea33289..1909549 100644
--- a/Source/UBCS-WEB/src/components/Tree/attrCrud.vue
+++ b/Source/UBCS-WEB/src/components/Tree/attrCrud.vue
@@ -12,6 +12,7 @@
       <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>
           <!--    缁勫悎瑙勫垯-->
@@ -22,6 +23,18 @@
         <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>
+        <!--    缁勫悎瑙勫垯-->
+        <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" @click="orderHandle" icon="el-icon-arrow-down">棰勮鎺掑簭</el-button>
+>>>>>>> 92e7dde00a56aff46e01efe72e1f7ab9b76dcf69
       </el-button-group>
       <!--    淇濆瓨-->
       <el-button size="small" @click="addsHandler" icon="el-icon-check">淇濆瓨</el-button>
@@ -230,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"
@@ -251,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">
@@ -263,7 +278,7 @@
       <el-table-column
         fixed="right"
         label="鎿嶄綔"
-        width="120">
+        width="70">
         <template slot-scope="scope">
           <el-button
             size="small"
@@ -990,7 +1005,7 @@
           label: '鎺掑簭鍙�',
           sortable: true,
           edit: 'number',
-          width: 70,
+          width: 100,
           fixed: true
         }, {
             label: "灞炴�ц嫳鏂囩紪鍙�",
@@ -1382,6 +1397,10 @@
         })
       }
     },
+    // 鎺掑簭棰勮鎸夐挳
+    orderHandle(){
+      this.$refs.referAttrCrud.sort("orderNum");
+    },
     //琛ㄦ牸鍗曢��
     selectHandle(selection, row) {
       this.attrOid = row.oid;

--
Gitblit v1.9.3