Commit bc4044c6 by 陈羽

update: bugfix

parent 24a936a3
......@@ -136,7 +136,7 @@ export default {
}
};
const validDate = (rule, value, callback) => {
if (this.form.dateType===2 && !this.date[0]) {
if (this.form.dateType === 2 && !this.date[ 0 ]) {
return callback(new Error('请选择指定日期'));
} else {
callback();
......@@ -206,6 +206,7 @@ export default {
this.getDetail();
} else {
this.isAdd = true
this.showStoreCard = true;
}
},
methods: {
......@@ -235,7 +236,7 @@ export default {
this.showStoreCard = true;
},
async onSubmit() {
this.$refs['form'].validate(valid => {
this.$refs[ 'form' ].validate(valid => {
if (valid) {
const params = { ...this.form };
if (this.uuid) {
......
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