Commit b35c1b18 by crushh

update: dist

parent 87b11dad
......@@ -164,6 +164,7 @@ export default {
let arr = [];
if (this.form.callFlag == 1) {
const res = await this.$refs.defineTime.submit();
console.log(res);
if (!res) return;
res.timeRangeList.forEach(item => {
if (Object.keys(item).length) {
......
......@@ -134,13 +134,18 @@ export default {
});
if (minutes < 240) {
this.$message.error('自定义时段不少于4个小时');
return;
return false;
} else {
return true;
}
},
submit() {
return new Promise(resolve => {
this.handleCallTime();
this.$refs.defineTime.validate(val => {
if (!this.handleCallTime()) {
resolve(false);
return;
}
this.$refs.defineTime.validate((val, obj) => {
if (val) {
resolve(this.form);
} else {
......
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