From 3457909638c660c0cfcb521b6104ab64c679b914 Mon Sep 17 00:00:00 2001
From: zenglf <18502938215@163.com>
Date: 星期二, 19 九月 2023 16:23:16 +0800
Subject: [PATCH] 修改页面左右展示比例

---
 src/views/eam/modules/equipmentCategory/EquipmentCategoryModel.vue |   30 ++++++++++++------------------
 1 files changed, 12 insertions(+), 18 deletions(-)

diff --git a/src/views/eam/modules/equipmentCategory/EquipmentCategoryModel.vue b/src/views/eam/modules/equipmentCategory/EquipmentCategoryModel.vue
index 1ad133f..c559867 100644
--- a/src/views/eam/modules/equipmentCategory/EquipmentCategoryModel.vue
+++ b/src/views/eam/modules/equipmentCategory/EquipmentCategoryModel.vue
@@ -46,7 +46,7 @@
         </a-row>-->
 
         <a-row :gutter="24">
-          <a-col :span="24">
+          <a-col :span="12">
             <a-form-item
               label="璁惧鍒嗙被缂栧彿"
               :labelCol="labelCol"
@@ -60,9 +60,7 @@
               />
             </a-form-item>
           </a-col>
-        </a-row>
-        <a-row :gutter="24" v-if="parentId!='-1'">
-          <a-col :span="24">
+          <a-col :span="12" v-if="parentId!='-1'">
             <a-form-item
               label="璁惧鍒嗙被鍚嶇О"
               :labelCol="labelCol"
@@ -76,9 +74,7 @@
               />
             </a-form-item>
           </a-col>
-        </a-row>
-       <a-row :gutter="24" v-if="parentId=='-1'">
-          <a-col :span="24">
+          <a-col :span="12" v-if="parentId=='-1'">
             <a-form-item
               label="璁惧鍒嗙被鍚嶇О"
               :labelCol="labelCol"
@@ -95,9 +91,8 @@
             </a-form-item>
           </a-col>
         </a-row>
-
-        <a-row :gutter="24">
-          <a-col :span="24">
+          <a-row :gutter="24">
+          <a-col :span="12">
             <a-form-item
               :labelCol="labelCol"
               :wrapperCol="wrapperCol"
@@ -113,9 +108,7 @@
               />
             </a-form-item>
           </a-col>
-        </a-row>
-        <a-row :gutter="24">
-          <a-col :span="24">
+          <a-col :span="12">
             <a-form-item
               :labelCol="labelCol"
               :wrapperCol="wrapperCol"
@@ -132,8 +125,8 @@
             </a-form-item>
           </a-col>
         </a-row>
-        <a-row :gutter="24">
-          <a-col :span="24">
+          <a-row :gutter="24">
+          <a-col :span="12">
             <a-form-item
               :labelCol="labelCol"
               :wrapperCol="wrapperCol"
@@ -148,7 +141,6 @@
             </a-form-item>
           </a-col>
         </a-row>
-
       </a-form>
       <a-divider  v-if="title!='鏂板'" orientation="center" style="font-size: large;font-style: italic;color: #66aeed;"> 閫夋嫨瀛愯澶囧垎绫讳娇鍏惰窡闅忕埗璁惧鍒嗙被灞炴�� </a-divider>
       <a-tabs
@@ -247,10 +239,10 @@
       parentId: '',
       model: {},
       labelCol: {
-        span:3
+        span:7
       },
       wrapperCol: {
-        span:21
+        span:17
       },
       confirmLoading: false,
       form: this.$form.createForm(this),
@@ -405,6 +397,7 @@
     close() {
       this.$emit('close');
       this.visible = false;
+      this.onClearSelected();
     },
     onSelectChange(selectedRowKeys, selectionRows) {
         this.selectedRowKeys = selectedRowKeys;
@@ -470,6 +463,7 @@
             that.confirmLoading = false;
             that.$bus.$emit('loadData')
             that.close();
+            that.onClearSelected();
           })
         }
       })

--
Gitblit v1.9.3