feat(情报板定义页面尺寸字段修改):

This commit is contained in:
fuhao 2024-09-04 15:28:34 +08:00
parent 6c9c561b2c
commit 2c0aeb06fd
No known key found for this signature in database
1 changed files with 20 additions and 26 deletions

View File

@ -68,17 +68,6 @@
>删除
</el-button>
</el-col>
<!-- <el-col :span="1.5">-->
<!-- <el-button-->
<!-- type="warning"-->
<!-- plain-->
<!-- icon="el-icon-download"-->
<!-- size="mini"-->
<!-- @click="handleExport"-->
<!-- v-hasPermi="['board:info:export']"-->
<!-- >导出-->
<!-- </el-button>-->
<!-- </el-col>-->
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
@ -89,12 +78,7 @@
<el-table-column label="情报板路段" align="center" prop="roadName"/>
<el-table-column label="情报板方向" align="center" prop="boardDirection"/>
<el-table-column label="情报板工桩号" align="center" prop="boardMileage"/>
<el-table-column label="情报板尺寸" align="center" prop="boardSize">
<template slot-scope="scope">
<dict-tag :options="dict.type.board_size" :value="scope.row.boardSize"/>
{{ scope.row.boardSize }}
</template>
</el-table-column>
<el-table-column label="情报板类型" align="center" prop="boardSizeName" />
<el-table-column label="情报板品牌" align="center" prop="boardBrand"/>
<el-table-column label="情报板通讯协议" align="center" prop="boardCommunicationProtocol">
<template slot-scope="scope">
@ -150,14 +134,14 @@
</el-form-item>
<el-form-item label="情报板类型" prop="boardSize">
<el-select
v-model="form.boardSize"
v-model="form.boardSizeType"
placeholder="请选择"
>
<el-option
v-for="dict in dict.type.board_size"
:key="dict.value"
:label="dict.label + ' ' + dict.value"
:value="dict.value"
v-for="dict in this.boardTypeOptions"
:key="dict.id"
:label="dict.name"
:value="dict.id"
/>
</el-select>
</el-form-item>
@ -195,6 +179,7 @@ import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
import TextPreview from "@/views/board/component/TextPreview.vue";
import {roadGroupTreeSelect} from "@/api/board/roadgroup";
import {listBoardType} from "@/api/board/boardtype";
export default {
name: "Info",
@ -210,8 +195,10 @@ export default {
single: true,
//
multiple: true,
//
//
roadGroupOptions: [],
//
boardTypeOptions: [],
//
showSearch: true,
//
@ -252,8 +239,8 @@ export default {
boardMileage: [
{required: true, message: "情报板工桩号不能为空", trigger: "blur"}
],
boardSize: [
{required: true, message: "情报板尺寸不能为空", trigger: "blur"}
boardSizeType: [
{required: true, message: "情报板类型不能为空", trigger: "blur"}
],
boardBrand: [
{required: true, message: "情报板品牌不能为空", trigger: "blur"}
@ -275,6 +262,7 @@ export default {
created() {
this.getList();
this.getRoadTree();
this.getBoardTypeList();
},
methods: {
/** 查询情报板信息列表 */
@ -299,7 +287,7 @@ export default {
boardRoadSection: null,
boardDirection: null,
boardMileage: null,
boardSize: null,
boardSizeType: null,
boardBrand: null,
boardCommunicationProtocol: null,
boardIp: null,
@ -382,6 +370,12 @@ export default {
this.roadGroupOptions = response.data;
});
},
/** 查询情报板类型定义 */
getBoardTypeList() {
listBoardType().then(response => {
this.boardTypeOptions = response.rows;
});
},
}
};
</script>