Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -532,12 +532,23 @@ export default {
|
|||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
if(res.ok){
|
if(res.ok){
|
||||||
this.qblx_pageData.qblxData = res.data
|
if(res.data.length){
|
||||||
|
this.qblx_pageData.qblxData = res.data
|
||||||
|
this.$message.success('文件上传成功')
|
||||||
|
}else{
|
||||||
|
this.$message.warning('请勿上传为空的文件')
|
||||||
|
}
|
||||||
}else{
|
}else{
|
||||||
alert(res.message)
|
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,9 +957,10 @@ export default {
|
|||||||
},
|
},
|
||||||
//流程提交事件
|
//流程提交事件
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
let jsonData = this.qblx_pageData.qblxData
|
if(this.qblx_pageData.qblxData.length){
|
||||||
this.qblx_pageData.qblxFile = this.fileInfoList
|
let jsonData = this.qblx_pageData.qblxData
|
||||||
this.qblx_pageData.commentText = this.commentText;
|
this.qblx_pageData.qblxFile = this.fileInfoList
|
||||||
|
this.qblx_pageData.commentText = this.commentText;
|
||||||
this.$refs["qblx_pageData"].validate((valid) => {
|
this.$refs["qblx_pageData"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$refs["roleForm"].validate(async (valid) => {
|
this.$refs["roleForm"].validate(async (valid) => {
|
||||||
@@ -960,7 +972,7 @@ export default {
|
|||||||
.then(() => {
|
.then(() => {
|
||||||
finishCount++
|
finishCount++
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (finishCount === jsonData.length) {
|
if (finishCount === jsonData.length) {
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
@@ -975,6 +987,10 @@ export default {
|
|||||||
return this.$message.warning("请完善基础信息");
|
return this.$message.warning("请完善基础信息");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}else{
|
||||||
|
this.$message.warning('立项列表不能为空')
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user