This commit is contained in:
熊成强 2020-11-11 15:38:25 +08:00
parent b65740865b
commit 374711de70
2 changed files with 5 additions and 9 deletions

View File

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

View File

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