|
@@ -15,6 +15,7 @@
|
|
|
<j-list-select-tag
|
|
<j-list-select-tag
|
|
|
v-model="model.lineId"
|
|
v-model="model.lineId"
|
|
|
dict-code="line"
|
|
dict-code="line"
|
|
|
|
|
+ @change="deptChange"
|
|
|
/>
|
|
/>
|
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
|
<a-form-model-item label="所属车间" prop="deptStations">
|
|
<a-form-model-item label="所属车间" prop="deptStations">
|
|
@@ -28,7 +29,7 @@
|
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
|
:tree-data="treeData"
|
|
:tree-data="treeData"
|
|
|
tree-node-filter-prop="label"
|
|
tree-node-filter-prop="label"
|
|
|
- :replace-fields="{children:'children', title:'label', key:'id', value: 'id' }"
|
|
|
|
|
|
|
+ :replace-fields="{children:'children', title:'deptName', key:'deptId', value: 'deptId' }"
|
|
|
/>
|
|
/>
|
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
|
<a-form-model-item label="行别" prop="xingbie">
|
|
<a-form-model-item label="行别" prop="xingbie">
|
|
@@ -104,11 +105,14 @@ export default {
|
|
|
created() {
|
|
created() {
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ deptChange() {
|
|
|
|
|
+ this.model.deptStations = []
|
|
|
|
|
+ },
|
|
|
loadTree(lineId) {
|
|
loadTree(lineId) {
|
|
|
this.treeData = []
|
|
this.treeData = []
|
|
|
getAction(this.url.tree + lineId).then((res) => {
|
|
getAction(this.url.tree + lineId).then((res) => {
|
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
|
- this.treeData = res.data
|
|
|
|
|
|
|
+ this.treeData = res.rows
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|