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 () { handleBack () {
const name = this.$route.query.name const name = this.$route.query.name
if (name) { if (name) {
return this.$router.replace({name: name.replace('/', '-')}) return this.$router.replace({name: name.replace('XXX', '-')})
} }
this.$router.go(-1) this.$router.go(-1)
} }

View File

@ -66,17 +66,16 @@ export default {
console.log('res: ', res) console.log('res: ', res)
this.isLoading = true this.isLoading = true
if (res.code === 503) { if (res.code === 503) {
this.$confirm(res.msg, '提示', { this.$alert(res.msg, '提示', {
confirmButtonText: '确定', confirmButtonText: '确定'
cancelButtonText: '取消',
type: 'warning'
}).then(async () => { }).then(async () => {
parmas.confirm = 1
let res1 = await apiAssessManagerChange(parmas)
this.isLoading = false this.isLoading = false
this.$loadingEnd() this.$loadingEnd()
if (res1.code !== 200) return this.$message.error(res1.msg) // let res1 = await apiAssessManagerChange(parmas)
history.go(-1) // this.isLoading = false
// this.$loadingEnd()
// if (res1.code !== 200) return this.$message.error(res1.msg)
// history.go(-1)
}).catch(() => { }).catch(() => {
this.isLoading = false this.isLoading = false
this.$loadingEnd() this.$loadingEnd()

View File

@ -209,7 +209,7 @@ export default {
this.$message.error(res.msg) this.$message.error(res.msg)
return 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({ this.$message({
message: res.msg, message: res.msg,
type: 'success' type: 'success'