Commit 3dcf9ffb authored by linxin's avatar linxin

add

parents 80bb8a78 a7e11343
...@@ -646,14 +646,15 @@ export default { ...@@ -646,14 +646,15 @@ export default {
} }
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
vm.hlsPopup.hideLoading()
vm.isComputed = true vm.isComputed = true
vm.calculeFlag = true vm.calculeFlag = true
vm.saveTed = true vm.saveTed = true
hlsPopup.showLongCenter('计算成功') hlsPopup.showLongCenter('计算成功')
vm.goPlan() vm.goPlan()
} else { } else {
vm.hlsPopup.hideLoading()
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
}) })
......
...@@ -766,8 +766,8 @@ export default { ...@@ -766,8 +766,8 @@ export default {
if (isEmpty) { if (isEmpty) {
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
vm.hlsPopup.hideLoading()
vm.saveTed = true vm.saveTed = true
vm.$router.push({ vm.$router.push({
name: 'CreateRentInfo', name: 'CreateRentInfo',
...@@ -778,6 +778,7 @@ export default { ...@@ -778,6 +778,7 @@ export default {
}, },
}) })
} else { } else {
vm.hlsPopup.hideLoading()
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
}) })
......
...@@ -640,13 +640,14 @@ export default { ...@@ -640,13 +640,14 @@ export default {
} }
vm.hlsPopup.showLoading('请稍候') vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) { vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
vm.hlsPopup.hideLoading()
vm.hlsPopup.showSuccess('提交成功') vm.hlsPopup.showSuccess('提交成功')
vm.$router.push({ vm.$router.push({
name: 'MyInfo', name: 'MyInfo',
}) })
} else { } else {
vm.hlsPopup.hideLoading()
vm.hlsPopup.showLongCenter(res.message) vm.hlsPopup.showLongCenter(res.message)
} }
}) })
......
...@@ -12,7 +12,7 @@ axios.interceptors.request.use(config => { ...@@ -12,7 +12,7 @@ axios.interceptors.request.use(config => {
cancel = c cancel = c
}) })
if (promiseArr[config.url]) { if (promiseArr[config.url]) {
promiseArr[config.url]('操作取消') promiseArr[config.url]('正在计算中,请稍后...')
promiseArr[config.url] = cancel promiseArr[config.url] = cancel
} else { } else {
promiseArr[config.url] = cancel promiseArr[config.url] = cancel
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment