优化
This commit is contained in:
parent
b65740865b
commit
374711de70
@ -91,18 +91,18 @@ export function messageSuccess (params) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
let id = ''
|
const opt = {
|
||||||
export function loading (options = {
|
|
||||||
fullscreen: true,
|
fullscreen: true,
|
||||||
target: document.querySelector('.appamin'),
|
target: document.querySelector('.appamin'),
|
||||||
background: 'rgba(255, 255, 255, 0.8)',
|
background: 'rgba(255, 255, 255, 0.8)',
|
||||||
spinner: 'el-icon-loading',
|
spinner: 'el-icon-loading',
|
||||||
text: '数据加载中'}) {
|
text: '数据加载中'}
|
||||||
id = this.$loading.service(options)
|
export function loading (options = opt) {
|
||||||
|
this.$loading.service(options)
|
||||||
}
|
}
|
||||||
|
|
||||||
export function loadingClose () {
|
export function loadingClose () {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
id.close()
|
this.$loading.service(opt).close()
|
||||||
}, 300)
|
}, 300)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -210,10 +210,6 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.$router.push({ name: 'assessment-stepList', query: { id: res.data.id, name: 'assessmentXXXhomeList' } })
|
this.$router.push({ name: 'assessment-stepList', query: { id: res.data.id, name: 'assessmentXXXhomeList' } })
|
||||||
this.$message({
|
|
||||||
message: res.msg,
|
|
||||||
type: 'success'
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleCallBackChoose (val) {
|
handleCallBackChoose (val) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user