优化
This commit is contained in:
parent
2b8c85a87b
commit
b65740865b
@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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()
|
||||||
|
|||||||
@ -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'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user