feat(情报板定义页面尺寸字段修改):
This commit is contained in:
parent
6c9c561b2c
commit
2c0aeb06fd
|
@ -68,17 +68,6 @@
|
||||||
>删除
|
>删除
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-col>
|
</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>
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
|
@ -89,12 +78,7 @@
|
||||||
<el-table-column label="情报板路段" align="center" prop="roadName"/>
|
<el-table-column label="情报板路段" align="center" prop="roadName"/>
|
||||||
<el-table-column label="情报板方向" align="center" prop="boardDirection"/>
|
<el-table-column label="情报板方向" align="center" prop="boardDirection"/>
|
||||||
<el-table-column label="情报板工桩号" align="center" prop="boardMileage"/>
|
<el-table-column label="情报板工桩号" align="center" prop="boardMileage"/>
|
||||||
<el-table-column label="情报板尺寸" align="center" prop="boardSize">
|
<el-table-column label="情报板类型" align="center" prop="boardSizeName" />
|
||||||
<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="boardBrand"/>
|
<el-table-column label="情报板品牌" align="center" prop="boardBrand"/>
|
||||||
<el-table-column label="情报板通讯协议" align="center" prop="boardCommunicationProtocol">
|
<el-table-column label="情报板通讯协议" align="center" prop="boardCommunicationProtocol">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
@ -150,14 +134,14 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="情报板类型" prop="boardSize">
|
<el-form-item label="情报板类型" prop="boardSize">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="form.boardSize"
|
v-model="form.boardSizeType"
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in dict.type.board_size"
|
v-for="dict in this.boardTypeOptions"
|
||||||
:key="dict.value"
|
:key="dict.id"
|
||||||
:label="dict.label + ' ' + dict.value"
|
:label="dict.name"
|
||||||
:value="dict.value"
|
:value="dict.id"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -195,6 +179,7 @@ import Treeselect from "@riophae/vue-treeselect";
|
||||||
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
||||||
import TextPreview from "@/views/board/component/TextPreview.vue";
|
import TextPreview from "@/views/board/component/TextPreview.vue";
|
||||||
import {roadGroupTreeSelect} from "@/api/board/roadgroup";
|
import {roadGroupTreeSelect} from "@/api/board/roadgroup";
|
||||||
|
import {listBoardType} from "@/api/board/boardtype";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Info",
|
name: "Info",
|
||||||
|
@ -210,8 +195,10 @@ export default {
|
||||||
single: true,
|
single: true,
|
||||||
// 非多个禁用
|
// 非多个禁用
|
||||||
multiple: true,
|
multiple: true,
|
||||||
// 部门树选项
|
// 路段树选项
|
||||||
roadGroupOptions: [],
|
roadGroupOptions: [],
|
||||||
|
// 情报板类型列表
|
||||||
|
boardTypeOptions: [],
|
||||||
// 显示搜索条件
|
// 显示搜索条件
|
||||||
showSearch: true,
|
showSearch: true,
|
||||||
// 总条数
|
// 总条数
|
||||||
|
@ -252,8 +239,8 @@ export default {
|
||||||
boardMileage: [
|
boardMileage: [
|
||||||
{required: true, message: "情报板工桩号不能为空", trigger: "blur"}
|
{required: true, message: "情报板工桩号不能为空", trigger: "blur"}
|
||||||
],
|
],
|
||||||
boardSize: [
|
boardSizeType: [
|
||||||
{required: true, message: "情报板尺寸不能为空", trigger: "blur"}
|
{required: true, message: "情报板类型不能为空", trigger: "blur"}
|
||||||
],
|
],
|
||||||
boardBrand: [
|
boardBrand: [
|
||||||
{required: true, message: "情报板品牌不能为空", trigger: "blur"}
|
{required: true, message: "情报板品牌不能为空", trigger: "blur"}
|
||||||
|
@ -275,6 +262,7 @@ export default {
|
||||||
created() {
|
created() {
|
||||||
this.getList();
|
this.getList();
|
||||||
this.getRoadTree();
|
this.getRoadTree();
|
||||||
|
this.getBoardTypeList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/** 查询情报板信息列表 */
|
/** 查询情报板信息列表 */
|
||||||
|
@ -299,7 +287,7 @@ export default {
|
||||||
boardRoadSection: null,
|
boardRoadSection: null,
|
||||||
boardDirection: null,
|
boardDirection: null,
|
||||||
boardMileage: null,
|
boardMileage: null,
|
||||||
boardSize: null,
|
boardSizeType: null,
|
||||||
boardBrand: null,
|
boardBrand: null,
|
||||||
boardCommunicationProtocol: null,
|
boardCommunicationProtocol: null,
|
||||||
boardIp: null,
|
boardIp: null,
|
||||||
|
@ -382,6 +370,12 @@ export default {
|
||||||
this.roadGroupOptions = response.data;
|
this.roadGroupOptions = response.data;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
/** 查询情报板类型定义 */
|
||||||
|
getBoardTypeList() {
|
||||||
|
listBoardType().then(response => {
|
||||||
|
this.boardTypeOptions = response.rows;
|
||||||
|
});
|
||||||
|
},
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue