按钮loading-企标复审流程

This commit is contained in:
zyn
2023-11-03 09:56:04 +08:00
parent e9a0963c1f
commit b9a2004888
6 changed files with 47 additions and 8 deletions
@@ -1194,6 +1194,7 @@ export default {
//流程保存
handleSave(){
this.saveLoading = true
this.isSubmit = true
let _formData = new FormData()
_formData.append('id', this.bpnId || '')
_formData.append('createUser', this.$store.getters.userInfo.userId)
@@ -1206,11 +1207,11 @@ export default {
commentText: this.commentText
}))
saveTaskFirst(_formData).then(res => {
this.saveLoading = false
this.$message.success('保存成功')
this.bpnId = res.result
}).catch(e => {
}).finally(() => {
this.saveLoading = false
this.isSubmit = false
})
},
startProcessRollBack() {
@@ -1268,6 +1269,7 @@ export default {
if(boo){
this.isSubmit = true
this.saveLoading = true
// this.qbfsForm.fileList = this.fileList
this.qbfsForm.commentText = this.commentText
// 批量发起列表流程
@@ -1289,12 +1291,18 @@ export default {
})
}
}
this.isSubmit = false
this.saveLoading = false
} else {
this.isSubmit = false
this.saveLoading = false
}
}
const time = setInterval(() => {
const list = this.qbfsForm.modelData.filter ( item => item.processStatus === '1')
if(list && this.qbfsForm.modelData && list.length === this.qbfsForm.modelData.length){
this.isSubmit = false
this.saveLoading = false
clearInterval(time)
this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
}
@@ -531,6 +531,7 @@ export default {
//流程保存
handleSave(){
this.saveLoading = true
this.isSubmit = true
let _formData = new FormData()
_formData.append('id', this.bpnId || '')
_formData.append('createUser', this.$store.getters.userInfo.userId)
@@ -543,11 +544,11 @@ export default {
commentText: this.commentText
}))
saveTaskForPub(_formData).then(res => {
this.saveLoading = false
this.$message.success('保存成功')
this.bpnId = res.result
}).catch(e => {
}).finally(() => {
this.saveLoading = false
this.isSubmit = false
})
},
processEditFile(id) {
@@ -641,6 +642,9 @@ export default {
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
this.saveLoading = false
})
},
// 请求转换流程图
@@ -516,6 +516,7 @@ export default {
//流程保存
handleSave(){
this.saveLoading = true
this.isSubmit = true
let _formData = new FormData()
_formData.append('id', this.bpnId || '')
_formData.append('createUser', this.$store.getters.userInfo.userId)
@@ -528,11 +529,11 @@ export default {
commentText: this.commentText
}))
saveTaskForPub(_formData).then(res => {
this.saveLoading = false
this.$message.success('保存成功')
this.bpnId = res.result
}).catch(e => {
}).finally(() => {
this.saveLoading = false
this.isSubmit = false
})
},
processEditFile(id) {
@@ -611,6 +612,9 @@ export default {
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
this.saveLoading = false
})
},
// 请求转换流程图
@@ -675,6 +675,8 @@ export default {
}
this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
}
this.isSubmit = false
this.saveLoading = false
}, e => {
});
}else {
@@ -722,6 +724,9 @@ export default {
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
this.saveLoading = false
})
},
// 请求转换流程图
@@ -3068,6 +3068,7 @@ export default {
// }
this.saveLoading = true
this.isSubmit = true
let _formData = new FormData()
this.fileInfoHandle()
_formData.append('id', this.bpnId || '')
@@ -3085,8 +3086,9 @@ export default {
this.saveLoading = false
this.$message.success('保存成功')
this.bpnId = res.result
}).catch(e => {
}).finally(() => {
this.saveLoading = false
this.isSubmit = false
})
},
fileInfoHandle(){
@@ -3290,11 +3292,22 @@ export default {
} else {
this.$message.warning(res.data)
}
this.submitLoading = false
this.isSubmit = false
})
} else {
this.submitLoading = false
this.isSubmit = false
}
})
} else {
this.submitLoading = false
this.isSubmit = false
}
})
} else {
this.submitLoading = false
this.isSubmit = false
}
})
// this.$http.get('lawss/activiti/startProcess', {type: 'buss1'}, {
@@ -511,6 +511,7 @@ export default {
//流程保存
handleSave(){
this.saveLoading = true
this.isSubmit = true
let _formData = new FormData()
_formData.append('id', this.bpnId || '')
_formData.append('createUser', this.$store.getters.userInfo.userId)
@@ -526,8 +527,9 @@ export default {
this.saveLoading = false
this.$message.success('保存成功')
this.bpnId = res.result
}).catch(e => {
}).finally(() => {
this.saveLoading = false
this.isSubmit = false
})
},
processEditFile(id) {
@@ -606,6 +608,9 @@ export default {
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
this.saveLoading = false
})
},
// 请求转换流程图