diff --git a/ruoyi-ui/src/views/board/info/index.vue b/ruoyi-ui/src/views/board/info/index.vue
index 800108f1..06ac73ca 100644
--- a/ruoyi-ui/src/views/board/info/index.vue
+++ b/ruoyi-ui/src/views/board/info/index.vue
@@ -79,12 +79,8 @@
-
-
-
-
-
-
+
+
@@ -145,21 +141,12 @@
/>
-
-
-
-
-
-
-
+
+
@@ -180,6 +167,7 @@ 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";
+import {protocolTreeSelect} from "@/api/board/protocol";
export default {
name: "Info",
@@ -199,6 +187,9 @@ export default {
roadGroupOptions: [],
// 情报板类型列表
boardTypeOptions: [],
+ boardTypeId: null,
+ // 情报板协议树
+ boardProtocolOptions: [],
// 显示搜索条件
showSearch: true,
// 总条数
@@ -242,12 +233,9 @@ export default {
boardSizeType: [
{required: true, message: "情报板类型不能为空", trigger: "blur"}
],
- boardBrand: [
+ boardBrandProtocol: [
{required: true, message: "情报板品牌不能为空", trigger: "blur"}
],
- boardCommunicationProtocol: [
- {required: true, message: "情报板通讯协议不能为空", trigger: "blur"}
- ],
boardIp: [
{required: true, message: "情报板IP不能为空", trigger: "blur"},
{
@@ -263,6 +251,7 @@ export default {
this.getList();
this.getRoadTree();
this.getBoardTypeList();
+ this.getProtocolTree();
},
methods: {
/** 查询情报板信息列表 */
@@ -376,6 +365,12 @@ export default {
this.boardTypeOptions = response.rows;
});
},
+ /** 查询情报板协议树 */
+ getProtocolTree() {
+ protocolTreeSelect().then(response => {
+ this.boardProtocolOptions = response.data;
+ });
+ },
}
};