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

部门编辑bug

parent 26b1a15a
......@@ -98,21 +98,38 @@ export default {
this.entity.property[1] == 1 ||
this.entity.property[2] == 1
) {
location;
isProduction = 1;
} else {
isProduction = 0;
}
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 = {
parentTitle:this.row.parent.name,
parentTitle: parentTitle,
id: this.entity.id,
name: this.entity.name, //部门名称
parent_Id: this.entity.parent_Id, //上级部门 [id]
code: this.entity.code, //部门编号
organization_Id: this.entity.organization_Id, //组织类型 [id]
location: location.join(","), //省市县
location: location, //省市县
isProduction: isProduction, //是否生产班组:1是,0否
property: property //属性
};
......@@ -144,6 +161,7 @@ export default {
},
watch: {
"row.id"(v) {
console.log(this.row);
this.city_level = [];
let model = {
name: this.row.name,
......@@ -154,7 +172,7 @@ export default {
property: this.row.property,
id: this.row.id,
organization_Id: this.row.organization_Id,
organizationType: this.row.organizationType,
organizationType: this.row.organizationType
};
if (!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