From 46360914af9cff8973182e5eb88404c00dc7d6d1 Mon Sep 17 00:00:00 2001 From: SunTao <328867980@qq.com> Date: Tue, 18 Feb 2025 16:17:45 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E6=B5=B7=E4=BF=A1=E5=AD=97?= =?UTF-8?q?=E5=85=B8=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/xj/hisense/dictionary.js | 53 ++++ src/views/xj/hisense/bridge/index.vue | 3 +- .../dictionary/components/add-dictionary.vue | 160 ++++++++++ src/views/xj/hisense/dictionary/index.vue | 282 ++++++++++++++++++ src/views/xj/hisense/inter-change/index.vue | 1 + src/views/xj/hisense/ramp/index.vue | 1 + .../xj/hisense/route-information/index.vue | 3 +- src/views/xj/hisense/station/index.vue | 1 + src/views/xj/hisense/task-area/index.vue | 1 + src/views/xj/hisense/tunnel/index.vue | 1 + src/views/xj/hisense/work-station/index.vue | 3 +- 11 files changed, 506 insertions(+), 3 deletions(-) create mode 100644 src/api/xj/hisense/dictionary.js create mode 100644 src/views/xj/hisense/dictionary/components/add-dictionary.vue create mode 100644 src/views/xj/hisense/dictionary/index.vue diff --git a/src/api/xj/hisense/dictionary.js b/src/api/xj/hisense/dictionary.js new file mode 100644 index 0000000..69db1ac --- /dev/null +++ b/src/api/xj/hisense/dictionary.js @@ -0,0 +1,53 @@ +/* + * @Author: SunTao 328867980@qq.com + * @Date: 2025-02-13 09:11:50 + * @LastEditors: SunTao 328867980@qq.com + * @LastEditTime: 2025-02-18 13:45:45 + * @FilePath: \znxjxt-ui\src\api\xj\hisense\inter-change.js + * @Description: 海信-桥梁 + */ +import request from "@/utils/request"; + +// 获取列表数据 +export function getList(query) { + return request({ + url: "/hxDic/page", + method: "get", + params: query, + }); +} + +// 新增数据 +export function add(data) { + return request({ + url: "/hxDic", + method: "post", + data, + }); +} + +// 更新数据 +export function updata(data) { + return request({ + url: "/hxDic", + method: "put", + data, + }); +} + +// 删除数据 +export function delData(id) { + return request({ + url: `/hxDic/${id}`, + method: "delete", + }); +} + +// 获取互通立交下拉数据 +export function getDropDown(params) { + return request({ + url: "/hxDic/dicType/dropdown", + method: "get", + params, + }); +} diff --git a/src/views/xj/hisense/bridge/index.vue b/src/views/xj/hisense/bridge/index.vue index f6b6d06..10658c9 100644 --- a/src/views/xj/hisense/bridge/index.vue +++ b/src/views/xj/hisense/bridge/index.vue @@ -2,7 +2,7 @@ * @Author: SunTao 328867980@qq.com * @Date: 2025-02-12 14:35:34 * @LastEditors: SunTao 328867980@qq.com - * @LastEditTime: 2025-02-17 16:01:33 + * @LastEditTime: 2025-02-18 15:28:21 * @FilePath: \znxjxt-ui\src\views\xj\hisense\bridge\index.vue * @Description: 海信-桥梁 --> @@ -165,6 +165,7 @@ export default { defectType: "", } this.searchForm = {} + this.getTableData(); }, /** diff --git a/src/views/xj/hisense/dictionary/components/add-dictionary.vue b/src/views/xj/hisense/dictionary/components/add-dictionary.vue new file mode 100644 index 0000000..0eb02d6 --- /dev/null +++ b/src/views/xj/hisense/dictionary/components/add-dictionary.vue @@ -0,0 +1,160 @@ + + + + + + diff --git a/src/views/xj/hisense/dictionary/index.vue b/src/views/xj/hisense/dictionary/index.vue new file mode 100644 index 0000000..3b27eb7 --- /dev/null +++ b/src/views/xj/hisense/dictionary/index.vue @@ -0,0 +1,282 @@ + + + + + + + diff --git a/src/views/xj/hisense/inter-change/index.vue b/src/views/xj/hisense/inter-change/index.vue index 30b7e66..bf7b5e4 100644 --- a/src/views/xj/hisense/inter-change/index.vue +++ b/src/views/xj/hisense/inter-change/index.vue @@ -165,6 +165,7 @@ export default { defectType: "", } this.searchForm = {} + this.getTableData(); }, /** diff --git a/src/views/xj/hisense/ramp/index.vue b/src/views/xj/hisense/ramp/index.vue index c20450a..8b82c78 100644 --- a/src/views/xj/hisense/ramp/index.vue +++ b/src/views/xj/hisense/ramp/index.vue @@ -166,6 +166,7 @@ export default { defectType: "", } this.searchForm = {} + this.getTableData(); }, /** diff --git a/src/views/xj/hisense/route-information/index.vue b/src/views/xj/hisense/route-information/index.vue index 64a6c91..9da9992 100644 --- a/src/views/xj/hisense/route-information/index.vue +++ b/src/views/xj/hisense/route-information/index.vue @@ -2,7 +2,7 @@ * @Author: SunTao 328867980@qq.com * @Date: 2025-02-12 14:40:41 * @LastEditors: SunTao 328867980@qq.com - * @LastEditTime: 2025-02-17 16:50:12 + * @LastEditTime: 2025-02-18 15:28:52 * @FilePath: \znxjxt-ui\src\views\xj\hisense\route-information\index.vue * @Description: 海信-道路信息 --> @@ -163,6 +163,7 @@ export default { defectType: "", } this.searchForm = {} + this.getTableData(); }, /** diff --git a/src/views/xj/hisense/station/index.vue b/src/views/xj/hisense/station/index.vue index f92e894..ac88b90 100644 --- a/src/views/xj/hisense/station/index.vue +++ b/src/views/xj/hisense/station/index.vue @@ -163,6 +163,7 @@ export default { defectType: "", } this.searchForm = {} + this.getTableData(); }, /** diff --git a/src/views/xj/hisense/task-area/index.vue b/src/views/xj/hisense/task-area/index.vue index 4e6b5e2..dca4964 100644 --- a/src/views/xj/hisense/task-area/index.vue +++ b/src/views/xj/hisense/task-area/index.vue @@ -164,6 +164,7 @@ export default { defectType: "", } this.searchForm = {} + this.getTableData(); }, /** diff --git a/src/views/xj/hisense/tunnel/index.vue b/src/views/xj/hisense/tunnel/index.vue index 17352f0..6a9a581 100644 --- a/src/views/xj/hisense/tunnel/index.vue +++ b/src/views/xj/hisense/tunnel/index.vue @@ -163,6 +163,7 @@ export default { defectType: "", } this.searchForm = {} + this.getTableData(); }, /** diff --git a/src/views/xj/hisense/work-station/index.vue b/src/views/xj/hisense/work-station/index.vue index 0666bf9..020201f 100644 --- a/src/views/xj/hisense/work-station/index.vue +++ b/src/views/xj/hisense/work-station/index.vue @@ -2,7 +2,7 @@ * @Author: SunTao 328867980@qq.com * @Date: 2025-02-12 14:09:49 * @LastEditors: SunTao 328867980@qq.com - * @LastEditTime: 2025-02-17 13:14:02 + * @LastEditTime: 2025-02-18 15:29:30 * @FilePath: \znxjxt-ui\src\views\xj\hisense\work-station\index.vue * @Description: 海信-工作站 --> @@ -162,6 +162,7 @@ export default { defectType: "", } this.searchForm = {} + this.getTableData(); }, /**