Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
super_liu
2022-03-07 11:25:46 +08:00
@@ -532,12 +532,23 @@ export default {
_this: this _this: this
}, res => { }, res => {
if(res.ok){ if(res.ok){
if(res.data.length){
this.qblx_pageData.qblxData = res.data this.qblx_pageData.qblxData = res.data
this.$message.success('文件上传成功')
}else{ }else{
alert(res.message) this.$message.warning('请勿上传为空的文件')
}
}else{
this.$confirm(res.message, "提示", {
confirmButtonText: "确认",
confirmButtonClass: "common-button-primary",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
}).catch(() => {
});
} }
}) })
this.$message.success('文件上传成功')
this.importModalshowflag = false this.importModalshowflag = false
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.importFileAboutStand.clearFiles() this.$refs.importFileAboutStand.clearFiles()
@@ -946,6 +957,7 @@ export default {
}, },
//流程提交事件 //流程提交事件
handleSubmit() { handleSubmit() {
if(this.qblx_pageData.qblxData.length){
let jsonData = this.qblx_pageData.qblxData let jsonData = this.qblx_pageData.qblxData
this.qblx_pageData.qblxFile = this.fileInfoList this.qblx_pageData.qblxFile = this.fileInfoList
this.qblx_pageData.commentText = this.commentText; this.qblx_pageData.commentText = this.commentText;
@@ -975,6 +987,10 @@ export default {
return this.$message.warning("请完善基础信息"); return this.$message.warning("请完善基础信息");
} }
}); });
}else{
this.$message.warning('立项列表不能为空')
}
}, },
} }