Commit 5eab100a authored by jiaxu.yan's avatar jiaxu.yan

Merge branch 'develop' into developer/yanjiaxu

parents c461c29f 934f05e9
...@@ -1074,6 +1074,13 @@ export default { ...@@ -1074,6 +1074,13 @@ export default {
closeOnClickModal: false, closeOnClickModal: false,
confirmButtonClass: 'queryBtn' confirmButtonClass: 'queryBtn'
}).then(() => { }).then(() => {
// loading
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(255, 255, 255, 0.8)'
})
// 开始窜数据 // 开始窜数据
for (const key in this.model) { for (const key in this.model) {
// eslint-disable-next-line no-prototype-builtins // eslint-disable-next-line no-prototype-builtins
...@@ -1104,6 +1111,7 @@ export default { ...@@ -1104,6 +1111,7 @@ export default {
if (this.taskId === undefined) { if (this.taskId === undefined) {
createTask(this.taskCreateRequest).then(response => { createTask(this.taskCreateRequest).then(response => {
if (response.code === 200) { if (response.code === 200) {
loading.close()
this.$modal.msgSuccess('发布成功') this.$modal.msgSuccess('发布成功')
this.$router.push({ this.$router.push({
path: '/task/on' path: '/task/on'
...@@ -1121,6 +1129,7 @@ export default { ...@@ -1121,6 +1129,7 @@ export default {
}) })
updateTask(this.taskCreateRequest).then(response => { updateTask(this.taskCreateRequest).then(response => {
if (response.code === 200) { if (response.code === 200) {
loading.close()
this.$modal.msgSuccess('修改成功') this.$modal.msgSuccess('修改成功')
this.$router.push({ this.$router.push({
path: '/task/on' path: '/task/on'
......
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