This commit is contained in:
熊成强 2020-11-11 15:28:15 +08:00
parent 2b8c85a87b
commit b65740865b
3 changed files with 9 additions and 10 deletions

View File

@ -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)
}

View File

@ -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()

View File

@ -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'