|
@@ -80,7 +80,7 @@
|
|
|
if(this.id){
|
|
|
let param = {
|
|
|
id:this.id,
|
|
|
- name:this.form.name,
|
|
|
+ name:this.form.name.trim(),
|
|
|
remark:this.form.remark
|
|
|
}
|
|
|
api.modifDeptInfo(param).then((res) => {
|
|
@@ -102,7 +102,11 @@
|
|
|
});
|
|
|
})
|
|
|
}else{
|
|
|
- api.addDeptInfo(this.form).then((res) => {
|
|
|
+ let params = {
|
|
|
+ name:this.form.name.trim(),
|
|
|
+ remark:this.form.remark
|
|
|
+ }
|
|
|
+ api.addDeptInfo(params).then((res) => {
|
|
|
if (res.data.code == '0') {
|
|
|
this.$message({showClose: true,message: this.toast, type: 'success'});
|
|
|
this.$router.push({path: 'LT-YXSJWH-KSWH'});
|