|
@@ -40,7 +40,9 @@
|
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
|
<a-form-model-item label="所别" prop="substationId">
|
|
<a-form-model-item label="所别" prop="substationId">
|
|
|
<j-list-select-tag
|
|
<j-list-select-tag
|
|
|
|
|
+ v-if="substationShow"
|
|
|
v-model="model.substationId"
|
|
v-model="model.substationId"
|
|
|
|
|
+ :line-id="model.lineId"
|
|
|
dict-code="substation"
|
|
dict-code="substation"
|
|
|
/>
|
|
/>
|
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
@@ -55,16 +57,16 @@
|
|
|
<a-input v-model="model.pillarCode" />
|
|
<a-input v-model="model.pillarCode" />
|
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
|
<a-form-model-item label="开始公里标" prop="startMarker">
|
|
<a-form-model-item label="开始公里标" prop="startMarker">
|
|
|
- <a-input-number style="width: 100%" v-model="model.startMarker" />
|
|
|
|
|
|
|
+ <a-input-number v-model="model.startMarker" style="width: 100%" />
|
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
|
<a-form-model-item label="结束公里标" prop="endMarker">
|
|
<a-form-model-item label="结束公里标" prop="endMarker">
|
|
|
- <a-input-number style="width: 100%" v-model="model.endMarker" />
|
|
|
|
|
|
|
+ <a-input-number v-model="model.endMarker" style="width: 100%" />
|
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
|
<a-form-model-item label="易搭窝部位" prop="riskSource">
|
|
<a-form-model-item label="易搭窝部位" prop="riskSource">
|
|
|
<a-input v-model="model.riskSource" />
|
|
<a-input v-model="model.riskSource" />
|
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
|
<a-form-model-item label="采取措施" prop="measures">
|
|
<a-form-model-item label="采取措施" prop="measures">
|
|
|
- <a-textarea :maxLength="300" :rows="4" v-model="model.measures" />
|
|
|
|
|
|
|
+ <a-textarea v-model="model.measures" :max-length="300" :rows="4" />
|
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
|
</a-form-model>
|
|
</a-form-model>
|
|
|
</j-modal>
|
|
</j-modal>
|
|
@@ -81,6 +83,7 @@ export default {
|
|
|
return {
|
|
return {
|
|
|
stationShow: false,
|
|
stationShow: false,
|
|
|
lineShow: false,
|
|
lineShow: false,
|
|
|
|
|
+ substationShow: false,
|
|
|
treeData: [],
|
|
treeData: [],
|
|
|
labelCol: { span: 4 },
|
|
labelCol: { span: 4 },
|
|
|
wrapperCol: { span: 19 },
|
|
wrapperCol: { span: 19 },
|
|
@@ -108,9 +111,6 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- created() {
|
|
|
|
|
- this.loadTree()
|
|
|
|
|
- },
|
|
|
|
|
watch: {
|
|
watch: {
|
|
|
'model.deptId': {
|
|
'model.deptId': {
|
|
|
immediate: true,
|
|
immediate: true,
|
|
@@ -125,19 +125,26 @@ export default {
|
|
|
immediate: true,
|
|
immediate: true,
|
|
|
handler: function(newV, oldV) {
|
|
handler: function(newV, oldV) {
|
|
|
this.stationShow = false
|
|
this.stationShow = false
|
|
|
|
|
+ this.substationShow = false
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
this.stationShow = true
|
|
this.stationShow = true
|
|
|
|
|
+ this.substationShow = true
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ created() {
|
|
|
|
|
+ this.loadTree()
|
|
|
|
|
+ },
|
|
|
methods: {
|
|
methods: {
|
|
|
lineChange() {
|
|
lineChange() {
|
|
|
this.model.stationId = undefined
|
|
this.model.stationId = undefined
|
|
|
|
|
+ this.model.substationId = undefined
|
|
|
},
|
|
},
|
|
|
deptChange() {
|
|
deptChange() {
|
|
|
this.model.lineId = undefined
|
|
this.model.lineId = undefined
|
|
|
this.model.stationId = undefined
|
|
this.model.stationId = undefined
|
|
|
|
|
+ this.model.substationId = undefined
|
|
|
},
|
|
},
|
|
|
loadTree() {
|
|
loadTree() {
|
|
|
this.treeData = []
|
|
this.treeData = []
|
|
@@ -148,11 +155,11 @@ export default {
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
add() {
|
|
add() {
|
|
|
- this.model = { lineId: null, stationId: null }
|
|
|
|
|
|
|
+ this.model = { lineId: null, stationId: null, substationId: null }
|
|
|
this.visible = true
|
|
this.visible = true
|
|
|
},
|
|
},
|
|
|
edit(record) {
|
|
edit(record) {
|
|
|
- this.model = Object.assign({}, record)
|
|
|
|
|
|
|
+ this.model = Object.assign({}, record, { substationId: record.substationId ? record.substationId : null })
|
|
|
this.visible = true
|
|
this.visible = true
|
|
|
},
|
|
},
|
|
|
close(isSubmit) {
|
|
close(isSubmit) {
|