Commit c58578cc by 前端

bug修复

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