From 584e17205f4cabd39bbc1b5d2489a59b48aa739e Mon Sep 17 00:00:00 2001
From: zhuzhuanzhuan
Date: 星期二, 05 九月 2023 16:29:41 +0800
Subject: [PATCH] 报警号管理界面,功能
---
src/views/mdc/base/modules/UnplannedDowntimemManager/UnplannedDowntimemManagerModalEdit.vue | 28 ++++++++++++++++++++--------
1 files changed, 20 insertions(+), 8 deletions(-)
diff --git a/src/views/mdc/base/modules/UnplannedDowntimemManager/UnplannedDowntimemManagerModalEdit.vue b/src/views/mdc/base/modules/UnplannedDowntimemManager/UnplannedDowntimemManagerModalEdit.vue
index 157980f..a508e48 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,
@@ -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