|
|
@@ -55,7 +55,6 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- stationShow: false,
|
|
|
lineShow: false,
|
|
|
treeData: [],
|
|
|
labelCol: { span: 4 },
|
|
|
@@ -83,22 +82,13 @@ export default {
|
|
|
},
|
|
|
watch: {
|
|
|
'model.deptId': {
|
|
|
- deep: true,
|
|
|
+ immediate: true,
|
|
|
handler: function(newV, oldV) {
|
|
|
this.lineShow = false
|
|
|
this.$nextTick(() => {
|
|
|
this.lineShow = true
|
|
|
})
|
|
|
}
|
|
|
- },
|
|
|
- 'model.lineId': {
|
|
|
- deep: true,
|
|
|
- handler: function(newV, oldV) {
|
|
|
- this.stationShow = false
|
|
|
- this.$nextTick(() => {
|
|
|
- this.stationShow = true
|
|
|
- })
|
|
|
- }
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
@@ -117,7 +107,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
add() {
|
|
|
- this.model = {}
|
|
|
+ this.model = { lineId: null }
|
|
|
this.visible = true
|
|
|
},
|
|
|
edit(record) {
|