25341
This commit is contained in:
@@ -161,7 +161,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
add(status) {
|
add(status) {
|
||||||
if(status==1){
|
// if(status==1){
|
||||||
if (!this.form.title) return this.$u.toast("请输入公告标题")
|
if (!this.form.title) return this.$u.toast("请输入公告标题")
|
||||||
|
|
||||||
if (!this.form.content) return this.$u.toast("请输入公告内容")
|
if (!this.form.content) return this.$u.toast("请输入公告内容")
|
||||||
@@ -171,7 +171,7 @@
|
|||||||
if(this.index==1 && !this.form.releaseTime) return this.$u.toast("请选择定时发送时间")
|
if(this.index==1 && !this.form.releaseTime) return this.$u.toast("请选择定时发送时间")
|
||||||
|
|
||||||
if(this.form.releaseTime && new Date(this.form.releaseTime).getTime() < Date.now()) return this.$u.toast("发送时间不能小于当前时间");
|
if(this.form.releaseTime && new Date(this.form.releaseTime).getTime() < Date.now()) return this.$u.toast("发送时间不能小于当前时间");
|
||||||
}
|
// }
|
||||||
|
|
||||||
this.$http.post("/app/appannouncement/addOrUpdate", {
|
this.$http.post("/app/appannouncement/addOrUpdate", {
|
||||||
...this.form,
|
...this.form,
|
||||||
|
|||||||
Reference in New Issue
Block a user