|
@ -93,7 +93,8 @@ export default { |
|
|
content: '', |
|
|
content: '', |
|
|
state: '', |
|
|
state: '', |
|
|
images: [], |
|
|
images: [], |
|
|
files: [] |
|
|
files: [], |
|
|
|
|
|
isConReview: false |
|
|
}, |
|
|
}, |
|
|
partyFlagArr: [ |
|
|
partyFlagArr: [ |
|
|
{ dictValue: '0', dictName: '居民' }, |
|
|
{ dictValue: '0', dictName: '居民' }, |
|
@ -110,6 +111,7 @@ export default { |
|
|
isAutoRemoveFile: true, |
|
|
isAutoRemoveFile: true, |
|
|
fileloading: false, |
|
|
fileloading: false, |
|
|
pageloading: true, |
|
|
pageloading: true, |
|
|
|
|
|
isFirst: true, |
|
|
isGoToInfo: '0' // 是否回到月报列表:0否;1是 |
|
|
isGoToInfo: '0' // 是否回到月报列表:0否;1是 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -163,6 +165,7 @@ export default { |
|
|
methods: { |
|
|
methods: { |
|
|
init () { |
|
|
init () { |
|
|
this.dataForm.id = this.$route.query.id |
|
|
this.dataForm.id = this.$route.query.id |
|
|
|
|
|
this.dataForm.isConReview = false |
|
|
this.visible = true |
|
|
this.visible = true |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
this.$refs['dataForm'].resetFields() |
|
|
this.$refs['dataForm'].resetFields() |
|
@ -299,7 +302,25 @@ export default { |
|
|
} |
|
|
} |
|
|
this.isAble = true |
|
|
this.isAble = true |
|
|
this.$http[!this.dataForm.id ? 'post' : 'put']('/workRecord/monthexcellentperson/', this.dataForm).then(({ data: res }) => { |
|
|
this.$http[!this.dataForm.id ? 'post' : 'put']('/workRecord/monthexcellentperson/', this.dataForm).then(({ data: res }) => { |
|
|
if (res.code !== 0) { |
|
|
if (!this.isFirst && res.code === 533) { |
|
|
|
|
|
// 不是第一次提交 并且 依然是违规内容 |
|
|
|
|
|
this.$confirm('您提交的内容再次被判定为违规, 是否继续提交?', '提示', { |
|
|
|
|
|
confirmButtonText: '是', |
|
|
|
|
|
cancelButtonText: '否', |
|
|
|
|
|
type: 'warning' |
|
|
|
|
|
}).then(() => { |
|
|
|
|
|
this.dataForm.isConReview = true |
|
|
|
|
|
// 选择“是”继续提交,调用提交方法本身 |
|
|
|
|
|
this.dataFormSubmitHandle() |
|
|
|
|
|
}).catch(() => { |
|
|
|
|
|
this.isAble = false |
|
|
|
|
|
}) |
|
|
|
|
|
return false |
|
|
|
|
|
} else if (res.code === 533) { |
|
|
|
|
|
this.isFirst = false |
|
|
|
|
|
this.isAble = false |
|
|
|
|
|
return this.$message.error(res.msg) |
|
|
|
|
|
} else if (res.code !== 0) { |
|
|
this.isAble = false |
|
|
this.isAble = false |
|
|
return this.$message.error(res.msg) |
|
|
return this.$message.error(res.msg) |
|
|
} |
|
|
} |
|
|