Browse Source

【PC端】周报违规校验逻辑修改-王公峰-2020-08-05

master
wanggongfeng 5 years ago
parent
commit
7b9e4ef21d
  1. 14
      src/views/modules/workRecord/weekrecordinfoDetail.vue

14
src/views/modules/workRecord/weekrecordinfoDetail.vue

@ -333,7 +333,12 @@ export default {
}
//
this.$refs['dataForm'].validate((valid) => {
if (!this.isFirst && res.code === 533) {
if (!valid) {
return false
}
this.isAble = true
this.$http[!this.dataForm.id ? 'post' : 'put']('/workRecord/weekrecordinfo/', this.dataForm).then(({ data: res }) => {
if (!this.isFirst && res.code === 533) {
//
this.$confirm('您提交的内容再次被判定为违规, 是否继续提交?', '提示', {
confirmButtonText: '是',
@ -351,12 +356,7 @@ export default {
this.isFirst = false
this.isAble = false
return this.$message.error(res.msg)
} else if (!valid) {
return false
}
this.isAble = true
this.$http[!this.dataForm.id ? 'post' : 'put']('/workRecord/weekrecordinfo/', this.dataForm).then(({ data: res }) => {
if (res.code !== 0) {
} else if (res.code !== 0) {
this.isAble = false
return this.$message.error(res.msg)
}

Loading…
Cancel
Save