|
|
@ -7,6 +7,7 @@ |
|
|
v-model="value" |
|
|
v-model="value" |
|
|
placeholder="请选择" |
|
|
placeholder="请选择" |
|
|
style="margin-left: 20px" |
|
|
style="margin-left: 20px" |
|
|
|
|
|
@change="secltchang" |
|
|
> |
|
|
> |
|
|
<el-option |
|
|
<el-option |
|
|
v-for="item in options" |
|
|
v-for="item in options" |
|
|
@ -27,6 +28,7 @@ |
|
|
<script> |
|
|
<script> |
|
|
import CustomerOrgTree from "../../components/unitGrouping/unitGroupingTable.vue"; |
|
|
import CustomerOrgTree from "../../components/unitGrouping/unitGroupingTable.vue"; |
|
|
import UnitGroupCategory from "../../components/unitGrouping/unitGroupCategory.vue"; |
|
|
import UnitGroupCategory from "../../components/unitGrouping/unitGroupCategory.vue"; |
|
|
|
|
|
import {mapState} from 'vuex' |
|
|
import { getapi } from "@/api/api"; |
|
|
import { getapi } from "@/api/api"; |
|
|
export default { |
|
|
export default { |
|
|
components: { |
|
|
components: { |
|
|
@ -39,12 +41,26 @@ export default { |
|
|
value: "", |
|
|
value: "", |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
|
|
|
computed:{ |
|
|
|
|
|
...mapState['customerOrg'] |
|
|
|
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
this.getitemtype(); |
|
|
this.getitemtype(); |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
secltchang(v) { |
|
|
|
|
|
//let that=this |
|
|
|
|
|
console.log(this.customerOrg); |
|
|
|
|
|
getapi(`/api/app/customer-org-group/in-customer-org-id/${v}`).then(res=>{ |
|
|
|
|
|
// this.customerOrg.personnelgrouping=res.data |
|
|
|
|
|
// console.log(res.data); |
|
|
|
|
|
// console.log(that.customerOrg.personnelgrouping); |
|
|
|
|
|
}) |
|
|
|
|
|
console.log(v); |
|
|
|
|
|
}, |
|
|
|
|
|
//获取单位列表 |
|
|
getitemtype() { |
|
|
getitemtype() { |
|
|
getapi("/api/app/item-type/by-code-all").then((res) => { |
|
|
|
|
|
|
|
|
getapi("/api/app/customer-org/parent-all").then((res) => { |
|
|
this.options = res.data; |
|
|
this.options = res.data; |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|