消息通知新增报错时报错bug处理

main
15036302109 8 months ago
parent 4e7b4253a5
commit f1e83fb448

@ -429,6 +429,34 @@ export default {
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
// ,1
let ad = this.allDeptList == true ? 1:0;
this.form.allDept = ad;
if (this.form.allDept == 0)
this.form.deptList = this.form.deptList.join();
else
this.form.deptList = "";
//
if (this.taskShow == 1) {
if (this.form.fileTempName == null || this.form.fileTempName == '') {
this.$modal.alert("请选择模板文件");
return;
}
let fileTemp = this.form.fileTempName.split(",");
let oFile = [];
for (let i = 0; i < fileTemp.length; i++) {
let f = fileTemp[i].split("/");
let f1 = f[f.length-1].split("_");
let fName = [];
for (let j = 0; j < f1.length-1; j++) {
fName.push(f1[j]);
}
let fLast = f1[f1.length-1].split(".");
let f2 = fName.join("_") + "." + fLast[fLast.length-1];
oFile.push(f2);
}
this.form.fileTempOriginalName = oFile.join(",");
}
if (this.form.noticeMessageId != null) {
updateEhsNoticeMessage(this.form).then(response => {
this.$modal.msgSuccess("修改成功");

Loading…
Cancel
Save