fix:修改病害通知单匝道和互通立交交换参数

This commit is contained in:
SunTao 2025-02-21 16:44:36 +08:00
parent fb2e653074
commit 42882582bb
2 changed files with 17 additions and 13 deletions

View File

@ -139,16 +139,16 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="匝道立交:" prop="rampIntOrientation"> <el-form-item label="匝道立交:" prop="rampInterchangeCode">
<el-select v-model="editForm.rampIntOrientation" placeholder="请选择匝道立交" filterable remote clearable <el-select v-model="editForm.rampInterchangeCode" placeholder="请选择匝道立交" filterable remote clearable
reserve-keyword :filter-method="handleRampIntOrientation" @change="changeRampIntOrientation"> 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> :label="item.label" :value="item.value"></el-option> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="匝道立交方向:" prop="rampInterchangeCode"> <el-form-item label="匝道立交方向:" prop="rampIntOrientation">
<el-select v-model="editForm.rampInterchangeCode" placeholder="请选择匝道立交方向" clearable> <el-select v-model="editForm.rampIntOrientation" placeholder="请选择匝道立交方向" clearable>
<el-option v-for="item in rampInterchangeCodeList" :key="item.value" :label="item.label" <el-option v-for="item in rampInterchangeCodeList" :key="item.value" :label="item.label"
:value="item.value" /> :value="item.value" />
</el-select> </el-select>
@ -350,9 +350,9 @@ export default {
stationLocation: "", stationLocation: "",
// //
rampType: "", rampType: "",
//
rampInterchangeCode: "",
// //
rampInterchangeCode: "",
//
rampIntOrientation: "", rampIntOrientation: "",
// id // id
defectId: "", defectId: "",
@ -440,10 +440,10 @@ export default {
], ],
rampType: [{ required: true, message: "请选择匝道", trigger: "change" }], rampType: [{ required: true, message: "请选择匝道", trigger: "change" }],
rampInterchangeCode: [ rampInterchangeCode: [
{ required: true, message: "请选择匝道立交方向", trigger: "change" }, { required: true, message: "请选择匝道立交", trigger: "change" },
], ],
rampIntOrientation: [ rampIntOrientation: [
{ required: true, message: "请选择匝道立交", trigger: "change" }, { required: true, message: "请选择匝道立交方向", trigger: "change" },
], ],
segmentId: [ segmentId: [
{ required: true, message: "请选择路段", trigger: "change" }, { required: true, message: "请选择路段", trigger: "change" },
@ -667,7 +667,7 @@ export default {
if (!value) { if (!value) {
this.handleRampIntOrientation() this.handleRampIntOrientation()
} }
this.editForm.rampInterchangeCode = "" this.editForm.rampIntOrientation = ""
this.handleRampInterchangeCode() this.handleRampInterchangeCode()
}, },
@ -677,7 +677,7 @@ export default {
* @return {*} * @return {*}
*/ */
handleRampInterchangeCode() { handleRampInterchangeCode() {
getRampDropDown({ crossid: this.editForm.rampIntOrientation }).then(({ code, data }) => { getRampDropDown({ crossid: this.editForm.rampInterchangeCode }).then(({ code, data }) => {
if (code === 200) { if (code === 200) {
this.rampInterchangeCodeList = data this.rampInterchangeCodeList = data
} }

View File

@ -2,7 +2,7 @@
* @Author: SunTao 328867980@qq.com * @Author: SunTao 328867980@qq.com
* @Date: 2024-11-20 11:58:33 * @Date: 2024-11-20 11:58:33
* @LastEditors: SunTao 328867980@qq.com * @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 * @FilePath: \znxjxt-ui\src\views\xj\document\maintenance-notice\index.vue
* @Description: 养护通知单 * @Description: 养护通知单
--> -->
@ -78,6 +78,8 @@
@click="handleDelete(null)">删除 @click="handleDelete(null)">删除
</el-button> </el-button>
</el-col> </el-col>
<el-col :span=8><span>病害长度{{ lengthSum }}</span><span style="margin-left: 1rem;">病害总面积{{ areaSum
}}平方米</span></el-col>
</el-row> </el-row>
<!-- 表格 --> <!-- 表格 -->
<el-table class="notice-table" ref="noticeTable" :data="noticeList" @selection-change="handleSelectionChange" <el-table class="notice-table" ref="noticeTable" :data="noticeList" @selection-change="handleSelectionChange"
@ -466,6 +468,8 @@ export default {
getMaintenanceNoticeList(dataItem) getMaintenanceNoticeList(dataItem)
.then(({ code, data }) => { .then(({ code, data }) => {
if (code === 200) { if (code === 200) {
this.lengthSum = data.len.totalLen;
this.areaSum = data.len.totalArea.toFixed(3)
this.noticeList = data.table.rows; this.noticeList = data.table.rows;
this.tableTotal = data.table.total; this.tableTotal = data.table.total;
} }