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/dailyMaintenanceStandard/DailyMaintenanceStandardModal.vue |   56 ++++++++++++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 50 insertions(+), 6 deletions(-)

diff --git a/src/views/eam/modules/dailyMaintenanceStandard/DailyMaintenanceStandardModal.vue b/src/views/eam/modules/dailyMaintenanceStandard/DailyMaintenanceStandardModal.vue
index 7350f8d..6088e91 100644
--- a/src/views/eam/modules/dailyMaintenanceStandard/DailyMaintenanceStandardModal.vue
+++ b/src/views/eam/modules/dailyMaintenanceStandard/DailyMaintenanceStandardModal.vue
@@ -33,13 +33,21 @@
               :labelCol="labelCol"
               :wrapperCol="wrapperCol"
             >
-              <a-input-search
+              <!-- <a-input-search
                 :disabled="disableSubmit"
                 placeholder="璇烽�夋嫨瀵硅薄閮ㄩ棬"
                 enter-button
                 @search="onDepartList()"
                 :read-only="true"
                 v-decorator="['useDepartName', validatorRules.useDepartName]"
+              /> -->
+              <a-tree-select
+                style="width: 100%"
+                :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }"
+                :tree-data="treeData"
+                placeholder="璇烽�夋嫨閮ㄩ棬"
+                tree-default-expand-all
+                v-decorator="['departId', validatorRules.useId ]"
               />
             </a-form-item>
           </a-col>
@@ -88,7 +96,7 @@
                 allow-clear
                 :disabled="true"
                 :placeholder="disableSubmit?'':'璇疯緭鍏ヨ矗浠荤彮缁�'"
-                v-decorator="['teamName', validatorRules.teamName ]"
+                v-decorator="['teamName', {} ]"
               />
             </a-form-item>
           </a-col>
@@ -111,7 +119,7 @@
               />
             </a-form-item>
           </a-col>
-          <a-col :span="12">
+          <!-- <a-col :span="12">
             <a-form-item
               label="瀵硅薄閮ㄩ棬Id"
               :labelCol="labelCol"
@@ -124,7 +132,7 @@
                 v-decorator="['departId', validatorRules.useId ]"
               />
             </a-form-item>
-          </a-col>
+          </a-col> -->
           <a-col :span="12">
             <a-form-item
               label="鐝粍Id"
@@ -284,8 +292,9 @@
             v-if="col.dataIndex == 'location'"
             :maxLength="500"
             auto-size
-            placeholder="璇疯緭鍏ヤ綅缃�"
+            placeholder="璇疯緭鍏ヤ繚鍏讳綅缃�"
             @change="(e)=>handleChange(e, record.key, col, index)"
+            :disabled="true"
           />
           <j-image-upload
             :value="text"
@@ -296,6 +305,16 @@
             @change="(e)=>handleChange(e, record.key, col, index)"
           >
           </j-image-upload>
+          <j-dict-select-tag
+            v-if="col.dataIndex == 'maintenanceRole'"
+            :value="text"
+            allow-clear
+            :triggerChange="true"
+            dictCode="maintenance_role"
+            placeholder="璇烽�夋嫨淇濆吇瑙掕壊"
+            style="width: 100%"
+            @change="(e)=>handleChange(e, record.key, col, index)"
+          />
         </div>
       </template>
 
@@ -477,7 +496,7 @@
           width: 150,
         },
         {
-          title: '閮ㄤ綅',
+          title: '淇濆吇閮ㄤ綅',
           align: 'center',
           dataIndex: 'location',
           scopedSlots: { customRender: 'location' },
@@ -488,6 +507,13 @@
           align: 'center',
           dataIndex: 'maintenanceCycleId',
           scopedSlots: { customRender: 'maintenanceCycleId' },
+          width: 150,
+        },
+        {
+          title: '淇濆吇瑙掕壊',
+          align: 'center',
+          dataIndex: 'maintenanceRole',
+          scopedSlots: { customRender: 'maintenanceRole' },
           width: 150,
         },
         {
@@ -508,6 +534,7 @@
       model: {},
       upload: {},
       maintenanceCycles: {},
+      treeData: [],
       labelCol: {
         xs: { span: 24 },
         sm: { span: 6 },
@@ -564,6 +591,7 @@
         realDelete: "/eam/maintenanceStandardDetail/realDelete",
         revise: '/eam/maintenanceStandard/revise',
         getReviseVersion: "/eam/maintenanceStandard/getReviseVersion",
+        loadOptions: '/sys/sysDepart/loadDepartTreeOptions',
       },
 
       dataSource: [],
@@ -583,6 +611,7 @@
           standard: data[i].standard,
           maintenanceMethodName: data[i].maintenanceMethod_dictText,
           maintenanceTool: data[i].maintenanceTool,
+          location: data[i].location,
           maintenanceSpecialtyName: data[i].maintenanceSpecialtyId_dictText,
           maintenanceRequire: data[i].maintenanceRequire,
           workingHourQuota: data[i].workingHourQuota,
@@ -635,6 +664,7 @@
 
     edit(record) {
       let that = this;
+      this.initOptions();
       this.getMaintenanceCycle()
       this.dataSource = [];
       this.form.resetFields();
@@ -669,6 +699,17 @@
         });
       }
     },
+
+    initOptions() {
+      getAction(this.url.loadOptions).then(res => {
+        if (res.success) {
+          this.treeData = res.result
+        } else {
+          this.$message.warning(res.message)
+        }
+      })
+    },
+
 
     onEquipmentList() {
       let data = this.form.getFieldsValue(['departId']);
@@ -793,6 +834,9 @@
         if (column.dataIndex == 'location') {
           target[column.dataIndex] = value.target.value;
         }
+        if (column.dataIndex == 'maintenanceRole') {
+          target[column.dataIndex] = value;
+        }
         //鏄剧ず甯﹁繃鏉ョ殑鏁版嵁
         that.dataSource = temp;
       }

--
Gitblit v1.9.3