优化
This commit is contained in:
parent
97c8f4410a
commit
22e2a330ef
@ -331,12 +331,7 @@ export default {
|
|||||||
},
|
},
|
||||||
async handleGetNext () {
|
async handleGetNext () {
|
||||||
this.loadingTi = true
|
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 obj = { status: 1, menuName: this.tableInfo.result ? '提交了结果值' : '提交了评分' }
|
||||||
const params = Object.assign({}, { resultRecordId: this.$route.query.id || '' }, obj)
|
const params = Object.assign({}, { resultRecordId: this.$route.query.id || '' }, obj)
|
||||||
let res = await apiSaveapproval(params)
|
let res = await apiSaveapproval(params)
|
||||||
@ -345,6 +340,13 @@ export default {
|
|||||||
this.$message.error(res.msg)
|
this.$message.error(res.msg)
|
||||||
return
|
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({
|
this.$message({
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
type: 'success'
|
type: 'success'
|
||||||
@ -362,7 +364,7 @@ export default {
|
|||||||
if (res.code !== 200) return
|
if (res.code !== 200) return
|
||||||
this.scoreList = res.data
|
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
|
this.loadingZan = true
|
||||||
let res = await apiSaveDetail(params)
|
let res = await apiSaveDetail(params)
|
||||||
this.loadingZan = false
|
this.loadingZan = false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user