From 487754376a1eb675d430a64b7a4aa9e7ffeb405b Mon Sep 17 00:00:00 2001
From: zhuzhuanzhuan
Date: 星期五, 25 八月 2023 09:54:15 +0800
Subject: [PATCH] 调整

---
 src/views/mdc/base/modules/UnplannedDowntimemManager/UnplannedDowntimemManagerModalEdit.vue |   32 ++++++++++++++++++++++----------
 1 files changed, 22 insertions(+), 10 deletions(-)

diff --git a/src/views/mdc/base/modules/UnplannedDowntimemManager/UnplannedDowntimemManagerModalEdit.vue b/src/views/mdc/base/modules/UnplannedDowntimemManager/UnplannedDowntimemManagerModalEdit.vue
index b524ed4..118aa60 100644
--- a/src/views/mdc/base/modules/UnplannedDowntimemManager/UnplannedDowntimemManagerModalEdit.vue
+++ b/src/views/mdc/base/modules/UnplannedDowntimemManager/UnplannedDowntimemManagerModalEdit.vue
@@ -36,15 +36,15 @@
         <a-row :gutter="24">
           <a-col :span="24">
             <a-form-item label="绫诲瀷" :labelCol="labelColLong" :wrapperCol="wrapperColLong">
-              <a-input :disabled="disableSubmit" placeholder="璇疯緭鍏ョ被鍨�"
-                       :triggerChange="true"
-                       v-decorator="['noplanType', validatorRules.noplanType]"/>
+              <j-dict-select-tag :readOnly="disableSubmit" placeholder="璇烽�夋嫨绫诲瀷"
+                                 :triggerChange="true" dictCode="mdc_noplan_type"
+                                 v-decorator="['noplanType', validatorRules.noplanType]" allow-clear/>
             </a-form-item>
           </a-col>
         </a-row>
         <a-row :gutter="24">
           <a-form-item label="澶囨敞" :labelCol="labelColLong" :wrapperCol="wrapperColLong">
-            <a-textarea  :disabled="disableSubmit"  v-decorator="['remark', validatorRules.remark]" placeholder="璇疯緭鍏ュ娉�"  ></a-textarea>
+            <a-textarea :maxLength="20" :disabled="disableSubmit"  v-decorator="['remark', validatorRules.remark]" placeholder="璇疯緭鍏ュ娉�"  ></a-textarea>
           </a-form-item>
         </a-row>
       </a-form>
@@ -60,7 +60,6 @@
   import pick from 'lodash.pick'
   // import DeviceRepairListModel from './DeviceRepairListModel'
   // import DeviceRepairEditListModel from './DeviceRepairEditListModel'
-  // import JDate from './JDate'
   import {
     getAction,
     postAction,
@@ -70,10 +69,10 @@
     duplicateCheck
   } from '@/api/api'
   import AFormItem from 'ant-design-vue/es/form/FormItem'
-
+  import JDate from '../deviceRepair/JDate'
   export default {
     name: 'UnplannedDowntimemManagerModalEdit',
-    components: { AFormItem },
+    components: { AFormItem,JDate },
     // components: {DeviceRepairListModel,JDate,DeviceRepairEditListModel},
     props: {},
     data() {
@@ -261,7 +260,12 @@
             let startOne = start.replace(/:/g,'');
             let endOne = end.replace(/:/g,'');
             if(startOne>=endOne){
-              that.$message.warning("缁撴潫鏃堕棿涓嶈兘灏忎簬寮�濮嬫椂闂�");
+              // that.$message.warning("缁撴潫鏃堕棿涓嶈兘灏忎簬寮�濮嬫椂闂�");
+              that.$notification.warning({
+                message:'娑堟伅',
+                description:"缁撴潫鏃堕棿涓嶈兘灏忎簬寮�濮嬫椂闂�"
+              });
+
               // console.log(this.model)
               // this.endTime = ''
               that.confirmLoading = false
@@ -276,11 +280,19 @@
               }
               obj.then((res) => {
                 if (res.success) {
-                  that.$message.success("娣诲姞鎴愬姛")
+                  // that.$message.success("娣诲姞鎴愬姛")
+                  that.$notification.success({
+                    message:'娑堟伅',
+                    description:"娣诲姞鎴愬姛"
+                  });
                   // that.$message.success(res.message)
                   that.$emit('ok', res.result)
                 } else {
-                  that.$message.warning(res.message)
+                  // that.$message.warning(res.message)
+                  that.$notification.warning({
+                    message:'娑堟伅',
+                    description:res.message
+                  });
                 }
               }).finally(() => {
                 that.confirmLoading = false

--
Gitblit v1.9.3