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 @@ ...@@ -195,11 +195,7 @@
label="分享模式:" label="分享模式:"
:prop="'missionList.' + index1 + '.sharingMethod'" :prop="'missionList.' + index1 + '.sharingMethod'"
:rules="taskFormRules.sharingMethod" :rules="taskFormRules.sharingMethod"
v-if=" v-if="itm.missonType && itm.missonType != 1"
itm.missonType &&
itm.missonType != 1 &&
itm.sharingMethod
"
> >
<el-checkbox-group v-model="itm.sharingMethod"> <el-checkbox-group v-model="itm.sharingMethod">
<el-checkbox label="1">微信群发</el-checkbox> <el-checkbox label="1">微信群发</el-checkbox>
...@@ -1009,6 +1005,24 @@ export default { ...@@ -1009,6 +1005,24 @@ export default {
}, },
// 提交任务 // 提交任务
submitTask() { 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) => { this.taskList.map((item) => {
item.missionList.map((itm) => { item.missionList.map((itm) => {
...@@ -1032,24 +1046,6 @@ export default { ...@@ -1032,24 +1046,6 @@ export default {
delete itm.taskid 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.startTime = this.startTime
params.endTime = this.endTime params.endTime = this.endTime
params.activityImage = this.activityImage 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!