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