Commit 407efc0b by caoyanzhi

fix: 修复编辑时将开始时间改成当前日期导致页面无法编辑的bug

parent 1fe04045
......@@ -111,6 +111,7 @@ export default {
isEdit: this.$route.meta.type === 'edit',
isAdd: this.$route.meta.type === 'add',
isInfo: this.$route.meta.type === 'info',
beginDate: '',
// 人群筛选器可传参数
sceneValue: 'member', // 场景值
useId: '', // 模板id
......@@ -159,7 +160,7 @@ export default {
computed: {
disabled() {
// 若开始时间已过则不可修改,若未过则可修改
return (this.isEdit && new Date() > new Date(this.form.beginDate)) || this.isInfo;
return (this.isEdit && new Date() > new Date(this.beginDate)) || this.isInfo;
},
asideShow() {
return this.$store.state.marketing.asideShow;
......@@ -258,6 +259,7 @@ export default {
if (this.form.expireType) {
this.form.beginDate = result.beginDate || '';
this.form.endDate = result.endDate || '';
this.beginDate = result.beginDate || '';
}
if (res.result.searchId) {
this.useId = res.result.searchId || '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment