Commit f9801187 by 匡雅琴

Merge branch 'kuangyq_dev_v3.1.0' into 'v3.1.0'

优化

See merge request !58
2 parents 435b9acb e00ae862
......@@ -195,11 +195,7 @@
label="分享模式:"
:prop="'missionList.' + index1 + '.sharingMethod'"
:rules="taskFormRules.sharingMethod"
v-if="
itm.missonType &&
itm.missonType != 1 &&
itm.sharingMethod
"
v-if="itm.missonType && itm.missonType != 1"
>
<el-checkbox-group v-model="itm.sharingMethod">
<el-checkbox label="1">微信群发</el-checkbox>
......@@ -1009,6 +1005,24 @@ export default {
},
// 提交任务
submitTask() {
try {
this.basicFormValidate()
} catch (err) {
if (err) return
}
this.taskFormValidate()
if (!this.validFlag) {
this.$alert('第' + (this.dayIndex + 1) + '天填写未完成', '警告', {
confirmButtonText: '知道了',
callback: (action) => {
this.validFlag = true
this.activeName = this.dayIndex + ''
},
})
return
}
this.taskFormEmptyValidate()
let params = JSON.parse(JSON.stringify(this.basicForm))
// 遍历
this.taskList.map((item) => {
item.missionList.map((itm) => {
......@@ -1032,24 +1046,6 @@ export default {
delete itm.taskid
})
})
try {
this.basicFormValidate()
} catch (err) {
if (err) return
}
this.taskFormValidate()
if (!this.validFlag) {
this.$alert('第' + (this.dayIndex + 1) + '天填写未完成', '警告', {
confirmButtonText: '知道了',
callback: (action) => {
this.validFlag = true
this.activeName = this.dayIndex + ''
},
})
return
}
this.taskFormEmptyValidate()
let params = JSON.parse(JSON.stringify(this.basicForm))
params.startTime = this.startTime
params.endTime = this.endTime
params.activityImage = this.activityImage
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!