Commit dccec6a9 authored by 仇晓婷's avatar 仇晓婷

部门编辑bug

parent 26b1a15a
...@@ -98,21 +98,38 @@ export default { ...@@ -98,21 +98,38 @@ export default {
this.entity.property[1] == 1 || this.entity.property[1] == 1 ||
this.entity.property[2] == 1 this.entity.property[2] == 1
) { ) {
location;
isProduction = 1; isProduction = 1;
} else { } else {
isProduction = 0; isProduction = 0;
} }
let location = this.city_level; let location = this.city_level;
let property = this.propertyList.join(","); let property = this.propertyList;
if (location) {
location = location.join(",");
} else {
location = "";
}
if (property) {
property = property.join(",");
} else {
property = "";
}
let parentTitle = "";
if (this.row.parent) {
parentTitle = this.row.parent.name;
} else {
parentTitle = "";
}
let paramsdata = { let paramsdata = {
parentTitle:this.row.parent.name, parentTitle: parentTitle,
id: this.entity.id, id: this.entity.id,
name: this.entity.name, //部门名称 name: this.entity.name, //部门名称
parent_Id: this.entity.parent_Id, //上级部门 [id] parent_Id: this.entity.parent_Id, //上级部门 [id]
code: this.entity.code, //部门编号 code: this.entity.code, //部门编号
organization_Id: this.entity.organization_Id, //组织类型 [id] organization_Id: this.entity.organization_Id, //组织类型 [id]
location: location.join(","), //省市县 location: location, //省市县
isProduction: isProduction, //是否生产班组:1是,0否 isProduction: isProduction, //是否生产班组:1是,0否
property: property //属性 property: property //属性
}; };
...@@ -144,6 +161,7 @@ export default { ...@@ -144,6 +161,7 @@ export default {
}, },
watch: { watch: {
"row.id"(v) { "row.id"(v) {
console.log(this.row);
this.city_level = []; this.city_level = [];
let model = { let model = {
name: this.row.name, name: this.row.name,
...@@ -154,7 +172,7 @@ export default { ...@@ -154,7 +172,7 @@ export default {
property: this.row.property, property: this.row.property,
id: this.row.id, id: this.row.id,
organization_Id: this.row.organization_Id, organization_Id: this.row.organization_Id,
organizationType: this.row.organizationType, organizationType: this.row.organizationType
}; };
if (!model.property) { if (!model.property) {
model.property = ""; model.property = "";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment