Commit c58578cc by 前端

bug修复

1 parent e00ae862
......@@ -526,7 +526,7 @@ export default {
}
})
if (materialFlag) {
document.querySelector('.upload-video').value = ''
document.querySelector('.upload-img').value = ''
this.$message.error(
'为规范小程序显示样式,专属链接不能与图片或视频同时配置'
)
......
......@@ -1005,24 +1005,6 @@ 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) => {
......@@ -1046,6 +1028,24 @@ 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!