我喜欢的音乐
This commit is contained in:
@@ -162,7 +162,8 @@
|
||||
type="datetime"
|
||||
format="yyyy-MM-dd HH:mm:ss"
|
||||
value-format="yyyy-MM-dd HH:mm:ss"
|
||||
placeholder="请选择计划发送时间">
|
||||
placeholder="请选择计划发送时间"
|
||||
:picker-options="pickerOptions">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
@@ -328,6 +329,13 @@ export default {
|
||||
sendTime: [
|
||||
{ required: true, message: "计划发送时间不能为空", trigger: "blur" }
|
||||
]
|
||||
},
|
||||
// 日期选择器配置
|
||||
pickerOptions: {
|
||||
disabledDate(time) {
|
||||
// 禁用今天之前的日期
|
||||
return time.getTime() < Date.now() - 8.64e7; // 减去一天的毫秒数,确保今天可选
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -402,6 +410,8 @@ export default {
|
||||
const id = row.id || this.ids
|
||||
getNotifications(id).then(response => {
|
||||
this.form = response.data
|
||||
// 编辑时清空计划发送时间,让用户重新选择
|
||||
this.form.sendTime = null
|
||||
this.open = true
|
||||
this.title = "修改通知"
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user