diff --git a/src/api/infoApi.js b/src/api/infoApi.js index ecaed75..93b5b1b 100644 --- a/src/api/infoApi.js +++ b/src/api/infoApi.js @@ -111,7 +111,7 @@ const infoApi = { }, // 获取通讯状态 getTxStatus(params) { - return postPBRequest(`/driver`, params, 54004); + return postPBRequest(`/driver`, params, 54002); }, // 获取支持的通讯驱动 diff --git a/src/components/PzSet.vue b/src/components/PzSet.vue index 320a89e..e1efa94 100644 --- a/src/components/PzSet.vue +++ b/src/components/PzSet.vue @@ -344,7 +344,9 @@ export default { } const res = await infoApi.getCom(parm); if (res.code == 0) { - state.comArr = res.data; + state.comArr = res.data.sort((a,b) => { + return (a.name > b.name ? 1 : -1) + }); state.form2.com_name = state.comArr[0].name; } }; diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index bd5269a..9d9b7d2 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -63,13 +63,13 @@ export default { iconName: 'Management', children: [], }, - { - id: 2, - name: "规则引擎", - index: "/rules", - iconName: 'Management', - children: [], - }, + // { + // id: 2, + // name: "规则引擎", + // index: "/rules", + // iconName: 'Management', + // children: [], + // }, // { // id: 4, // name: "透传管理", @@ -98,11 +98,11 @@ export default { // name: "实时数据", // index: "/data", // }, - { - id: 3 - 3, - name: "上报管理", - index: "/report", - }, + // { + // id: 3 - 3, + // name: "上报管理", + // index: "/report", + // }, ], }, ], diff --git a/src/views/Model.vue b/src/views/Model.vue index 21f3c6d..db1ca4d 100644 --- a/src/views/Model.vue +++ b/src/views/Model.vue @@ -4,7 +4,7 @@