fix:修改病害通知单匝道和互通立交交换参数
This commit is contained in:
parent
fb2e653074
commit
42882582bb
@ -139,16 +139,16 @@
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="匝道立交:" prop="rampIntOrientation">
|
||||
<el-select v-model="editForm.rampIntOrientation" placeholder="请选择匝道立交" filterable remote clearable
|
||||
<el-form-item label="匝道立交:" prop="rampInterchangeCode">
|
||||
<el-select v-model="editForm.rampInterchangeCode" placeholder="请选择匝道立交" filterable remote clearable
|
||||
reserve-keyword :filter-method="handleRampIntOrientation" @change="changeRampIntOrientation">
|
||||
<el-option v-for="(item, index) in rampIntOrientationList" :key="`rampIntOrientation-name-${index}`"
|
||||
<el-option v-for="(item, index) in rampIntOrientationList" :key="`rampInterchangeCode-name-${index}`"
|
||||
:label="item.label" :value="item.value"></el-option> </el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="匝道立交方向:" prop="rampInterchangeCode">
|
||||
<el-select v-model="editForm.rampInterchangeCode" placeholder="请选择匝道立交方向" clearable>
|
||||
<el-form-item label="匝道立交方向:" prop="rampIntOrientation">
|
||||
<el-select v-model="editForm.rampIntOrientation" placeholder="请选择匝道立交方向" clearable>
|
||||
<el-option v-for="item in rampInterchangeCodeList" :key="item.value" :label="item.label"
|
||||
:value="item.value" />
|
||||
</el-select>
|
||||
@ -350,9 +350,9 @@ export default {
|
||||
stationLocation: "",
|
||||
// 匝道类型
|
||||
rampType: "",
|
||||
// 匝道立交方向
|
||||
rampInterchangeCode: "",
|
||||
// 匝道立交
|
||||
rampInterchangeCode: "",
|
||||
// 匝道立交方向
|
||||
rampIntOrientation: "",
|
||||
// 病害id
|
||||
defectId: "",
|
||||
@ -440,10 +440,10 @@ export default {
|
||||
],
|
||||
rampType: [{ required: true, message: "请选择匝道", trigger: "change" }],
|
||||
rampInterchangeCode: [
|
||||
{ required: true, message: "请选择匝道立交方向", trigger: "change" },
|
||||
{ required: true, message: "请选择匝道立交", trigger: "change" },
|
||||
],
|
||||
rampIntOrientation: [
|
||||
{ required: true, message: "请选择匝道立交", trigger: "change" },
|
||||
{ required: true, message: "请选择匝道立交方向", trigger: "change" },
|
||||
],
|
||||
segmentId: [
|
||||
{ required: true, message: "请选择路段", trigger: "change" },
|
||||
@ -667,7 +667,7 @@ export default {
|
||||
if (!value) {
|
||||
this.handleRampIntOrientation()
|
||||
}
|
||||
this.editForm.rampInterchangeCode = ""
|
||||
this.editForm.rampIntOrientation = ""
|
||||
this.handleRampInterchangeCode()
|
||||
},
|
||||
|
||||
@ -677,7 +677,7 @@ export default {
|
||||
* @return {*}
|
||||
*/
|
||||
handleRampInterchangeCode() {
|
||||
getRampDropDown({ crossid: this.editForm.rampIntOrientation }).then(({ code, data }) => {
|
||||
getRampDropDown({ crossid: this.editForm.rampInterchangeCode }).then(({ code, data }) => {
|
||||
if (code === 200) {
|
||||
this.rampInterchangeCodeList = data
|
||||
}
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
* @Author: SunTao 328867980@qq.com
|
||||
* @Date: 2024-11-20 11:58:33
|
||||
* @LastEditors: SunTao 328867980@qq.com
|
||||
* @LastEditTime: 2025-02-21 11:43:04
|
||||
* @LastEditTime: 2025-02-21 16:25:56
|
||||
* @FilePath: \znxjxt-ui\src\views\xj\document\maintenance-notice\index.vue
|
||||
* @Description: 养护通知单
|
||||
-->
|
||||
@ -78,6 +78,8 @@
|
||||
@click="handleDelete(null)">删除
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span=8><span>病害长度:{{ lengthSum }}米;</span><span style="margin-left: 1rem;">病害总面积:{{ areaSum
|
||||
}}平方米</span></el-col>
|
||||
</el-row>
|
||||
<!-- 表格 -->
|
||||
<el-table class="notice-table" ref="noticeTable" :data="noticeList" @selection-change="handleSelectionChange"
|
||||
@ -105,7 +107,7 @@
|
||||
<template slot-scope="scope">
|
||||
<span>{{
|
||||
scope.row.inspectDirection === "0" ? "上行" : "下行"
|
||||
}}</span>
|
||||
}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="是否紧急" align="center" prop="urgentFlag">
|
||||
@ -466,6 +468,8 @@ export default {
|
||||
getMaintenanceNoticeList(dataItem)
|
||||
.then(({ code, data }) => {
|
||||
if (code === 200) {
|
||||
this.lengthSum = data.len.totalLen;
|
||||
this.areaSum = data.len.totalArea.toFixed(3)
|
||||
this.noticeList = data.table.rows;
|
||||
this.tableTotal = data.table.total;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user