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

部门属性

parent 8d92f0b7
......@@ -106,7 +106,8 @@ export default {
organization_Id: this.entity.organization_Id, //组织类型 [id]
location: this.entity.location, //省市县
isProduction: this.entity.isProduction, //是否生产班组:1是,0否
property: this.entity.property.join() //属性
property: this.entity.property.join(), //属性
parentTitle:this.entity.name, //上级名称
};
Api.create(paramsdata)
.then(r => {
......
......@@ -102,7 +102,8 @@ export default {
organization_Id: this.entity.organization_Id, //组织类型 [id]
location: location, //省市县
isProduction: this.entity.isProduction, //是否生产班组:1是,0否
property: this.entity.property.join() //属性
property: this.entity.property.join(), //属性
parentTitle: ""
};
Api.create(paramsdata)
.then(r => {
......
......@@ -24,7 +24,7 @@
<Radio label="1"></Radio>
<Radio label="0"></Radio>
</RadioGroup>-->
<CheckboxGroup v-model="entity.isProduction">
<CheckboxGroup v-model="entity.property">
<Checkbox label="1">生产班组</Checkbox>
<Checkbox label="2">排产资源</Checkbox>
</CheckboxGroup>
......@@ -133,8 +133,17 @@ export default {
},
watch: {
row(v) {
this.entity = this.row;
this.entity.isProduction = this.row.isProduction.toString();
if (v.property == "1,2") {
this.entity.property = ["1", "2"];
} else if (v.property == "1") {
this.entity.property = ["1"];
} else if (v.property == "2") {
this.entity.property = ["2"];
}else{
this.entity.property=[]
}
this.city_level = this.row.location.split(",");
}
}
......
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