From b82cf6ea881a2d6b8f76f38bb0cef35c69bf5da5 Mon Sep 17 00:00:00 2001 From: lius <Lius2225@163.com> Date: 星期二, 15 八月 2023 11:00:00 +0800 Subject: [PATCH] 提示调整 --- src/views/mdc/base/modules/deviceCalendar/DeviceCalendarModel.vue | 25 +++++++++++++------------ 1 files changed, 13 insertions(+), 12 deletions(-) diff --git a/src/views/mdc/base/modules/deviceCalendar/DeviceCalendarModel.vue b/src/views/mdc/base/modules/deviceCalendar/DeviceCalendarModel.vue index bb315ce..c1ec46a 100644 --- a/src/views/mdc/base/modules/deviceCalendar/DeviceCalendarModel.vue +++ b/src/views/mdc/base/modules/deviceCalendar/DeviceCalendarModel.vue @@ -15,7 +15,7 @@ <a-row :gutter="24"> <a-col :span="24"> <a-form-item label="鐝埗" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> - <a-select v-decorator="['monShiftId', validatorRules.monShiftId]" placeholder="璇烽�夋嫨鐝埗" + <a-select v-decorator="['shiftId', validatorRules.shiftId]" placeholder="璇烽�夋嫨鐝埗" :allowClear='allowClear' @change="initShiftSubList"> <a-select-option v-for="(em,index) in shiftList" :key="index" :value="em.value"> {{ em.label }} @@ -152,10 +152,10 @@ // console.log(data); //閫変腑鏌愬ぉ // }, changeDate(data) { - console.log(data); //宸﹀彸鐐瑰嚮鍒囨崲鏈堜唤 + // console.log(data); //宸﹀彸鐐瑰嚮鍒囨崲鏈堜唤 }, clickToday(data) { - console.log(data); // 璺冲埌浜嗘湰鏈� + //console.log(data); // 璺冲埌浜嗘湰鏈� }, // markChange(){ // @@ -200,13 +200,10 @@ } }, clickDay(today){//閫変腑鏃ユ湡 - // today = this.fun(today) - console.log("褰撳墠閫変腑鏃ユ湡===>", today); let existDate = this.selectDate; let isExist = true; for (var i = 0; i < existDate.length; i++) { if (existDate[i].date === today) { - console.log("褰撳墠鏃ユ湡瀛樺凡鍦�===>",today); this.selectDate.splice(i,1); this.shiData.splice(i,1); this.sendDte.splice(i,1) @@ -214,7 +211,6 @@ } } if (isExist) {//褰撳墠鏃ユ湡瀛樺湪绉婚櫎 - console.log("涓嶅瓨鍦�-娣诲姞===>"); let tempDate = {date: today, className: "mark1"} // let ddd = this.fun(today) let ddd = today @@ -223,8 +219,6 @@ this.shiData.push(ddd) this.sendDte.push(ccc) } - console.log("this.selectDate===>",JSON.stringify(this.selectDate)); - console.log(this.sendDte) }, onSelect(value) { console.log(value); @@ -308,13 +302,20 @@ let formData = Object.assign(this.model, values) formData.dateList = this.sendDte - console.log(formData) postAction(this.url.settingCalendar, formData).then((res) => { if (res.success) { - that.$message.success(res.message) + // that.$message.success(res.message) + that.$notification.success({ + message:'娑堟伅', + description: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