This commit is contained in:
xiongchengqiang 2020-12-16 15:48:52 +08:00
parent 97c8f4410a
commit 22e2a330ef

View File

@ -331,12 +331,7 @@ export default {
},
async handleGetNext () {
this.loadingTi = true
let res1 = await apiSaveDetail(Object.assign({}, this.obj, this.score))
if (res1.code !== 200) {
this.$message.error(res1.msg)
this.loadingTi = false
return
}
const obj = { status: 1, menuName: this.tableInfo.result ? '提交了结果值' : '提交了评分' }
const params = Object.assign({}, { resultRecordId: this.$route.query.id || '' }, obj)
let res = await apiSaveapproval(params)
@ -345,6 +340,13 @@ export default {
this.$message.error(res.msg)
return
}
this.obj.commentId = res.commentId
let res1 = await apiSaveDetail(Object.assign({}, this.obj, this.score))
if (res1.code !== 200) {
this.$message.error(res1.msg)
this.loadingTi = false
return
}
this.$message({
message: res.msg,
type: 'success'
@ -362,7 +364,7 @@ export default {
if (res.code !== 200) return
this.scoreList = res.data
},
async handleSaveDetail (params = Object.assign({}, this.obj, this.score)) {
async handleSaveDetail (params = Object.assign({}, this.obj, this.score, {save: 1})) {
this.loadingZan = true
let res = await apiSaveDetail(params)
this.loadingZan = false