优化
This commit is contained in:
parent
a95e2fcdc4
commit
57a6117b76
@ -278,12 +278,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)
|
||||
@ -292,6 +287,12 @@ export default {
|
||||
this.$message.error(res.msg)
|
||||
return
|
||||
}
|
||||
let res1 = await apiSaveDetail(Object.assign({}, this.obj, this.score, { commentId: res.commentId }))
|
||||
if (res1.code !== 200) {
|
||||
this.$message.error(res1.msg)
|
||||
this.loadingTi = false
|
||||
return
|
||||
}
|
||||
this.$message({
|
||||
message: res.msg,
|
||||
type: 'success'
|
||||
@ -306,7 +307,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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user