导入修改
This commit is contained in:
parent
cca94d7156
commit
daf9b8a51c
@ -839,7 +839,6 @@ export default {
|
||||
},
|
||||
/** 提交按钮 --添加*/
|
||||
submitFormadd() {
|
||||
console.log(this.form, 'this.forma000000000000000000')
|
||||
let reg = new RegExp("-", "g");
|
||||
if (this.formadd.establishDate && this.formadd.revokeDate && new Date(this.formadd.establishDate.replace(reg, "/")) >
|
||||
new Date(this.formadd.revokeDate.replace(reg, "/"))) {
|
||||
@ -863,7 +862,6 @@ export default {
|
||||
console.log(this.form.deptAliasVOS)
|
||||
// this.form.deptAliasVOS[this.indexadd].departmentName = this.formadd.departmentName
|
||||
this.$set(this.form.deptAliasVOS[this.indexadd], 'departmentName', this.formadd.departmentName)
|
||||
// this.$forceUpdate()
|
||||
this.openadd = false;
|
||||
// this.getList();
|
||||
});
|
||||
@ -881,21 +879,17 @@ export default {
|
||||
this.$modal.msgError("必填项请填写完整,再进行提交");
|
||||
} else {
|
||||
secondaryUpload(this.form).then(response => {
|
||||
if(response.code==200){
|
||||
this.$modal.msgSuccess(response.msg);
|
||||
}else{
|
||||
this.$modal.msgError(response.msg);
|
||||
}
|
||||
this.open = false;
|
||||
this.$emit('handleRules')
|
||||
});
|
||||
}).catch(()=>{
|
||||
this.open = false;
|
||||
})
|
||||
}
|
||||
|
||||
// this.$refs["form"].validate(valid => {
|
||||
// if (valid) {
|
||||
// secondaryUpload(this.form).then(response => {
|
||||
// this.$modal.msgSuccess("保存成功");
|
||||
// this.open = false;
|
||||
// this.$emit('handleRules')
|
||||
// });
|
||||
// }
|
||||
// });
|
||||
},
|
||||
// 屏幕resize监听
|
||||
screenChange() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user