优化
This commit is contained in:
parent
2b8c85a87b
commit
b65740865b
@ -31,7 +31,7 @@ export default {
|
||||
handleBack () {
|
||||
const name = this.$route.query.name
|
||||
if (name) {
|
||||
return this.$router.replace({name: name.replace('/', '-')})
|
||||
return this.$router.replace({name: name.replace('XXX', '-')})
|
||||
}
|
||||
this.$router.go(-1)
|
||||
}
|
||||
|
||||
@ -66,17 +66,16 @@ export default {
|
||||
console.log('res: ', res)
|
||||
this.isLoading = true
|
||||
if (res.code === 503) {
|
||||
this.$confirm(res.msg, '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
this.$alert(res.msg, '提示', {
|
||||
confirmButtonText: '确定'
|
||||
}).then(async () => {
|
||||
parmas.confirm = 1
|
||||
let res1 = await apiAssessManagerChange(parmas)
|
||||
this.isLoading = false
|
||||
this.$loadingEnd()
|
||||
if (res1.code !== 200) return this.$message.error(res1.msg)
|
||||
history.go(-1)
|
||||
// let res1 = await apiAssessManagerChange(parmas)
|
||||
// this.isLoading = false
|
||||
// this.$loadingEnd()
|
||||
// if (res1.code !== 200) return this.$message.error(res1.msg)
|
||||
// history.go(-1)
|
||||
}).catch(() => {
|
||||
this.isLoading = false
|
||||
this.$loadingEnd()
|
||||
|
||||
@ -209,7 +209,7 @@ export default {
|
||||
this.$message.error(res.msg)
|
||||
return
|
||||
}
|
||||
this.$router.push({ name: 'assessment-stepList', query: { id: res.data.id, name: 'assessment/homeList' } })
|
||||
this.$router.push({ name: 'assessment-stepList', query: { id: res.data.id, name: 'assessmentXXXhomeList' } })
|
||||
this.$message({
|
||||
message: res.msg,
|
||||
type: 'success'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user