From 1f23871f1db8e1de0562817bcc2f5d5c1b3f125f Mon Sep 17 00:00:00 2001 From: wangxingyuan <2944009893@qq.com> Date: Tue, 18 Mar 2025 10:39:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=81=94=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/api/basedata/alg/alg.js | 41 +++ src/api/basedata/alg/subtype.js | 52 +++ src/api/basedata/eqpbook/channel.js | 53 +++ src/api/basedata/station.js | 55 +++ src/views/administration/administration.vue | 9 +- src/views/basedata/alg/index.vue | 218 ++++++++++-- src/views/basedata/alg/subtype/index.vue | 330 +++++++++++++++--- src/views/basedata/eqpbook/channel/index.vue | 220 ++++++++++-- src/views/basedata/station/index.vue | 343 ++++++++++++++++--- 10 files changed, 1138 insertions(+), 184 deletions(-) create mode 100644 src/api/basedata/alg/alg.js create mode 100644 src/api/basedata/alg/subtype.js create mode 100644 src/api/basedata/eqpbook/channel.js create mode 100644 src/api/basedata/station.js diff --git a/package.json b/package.json index 0b26652..0d9163f 100644 --- a/package.json +++ b/package.json @@ -48,6 +48,7 @@ "js-beautify": "1.13.0", "js-cookie": "3.0.1", "jsencrypt": "3.0.0-rc.1", + "linq": "^4.0.3", "md5.js": "^1.3.5", "nprogress": "0.2.0", "quill": "2.0.2", diff --git a/src/api/basedata/alg/alg.js b/src/api/basedata/alg/alg.js new file mode 100644 index 0000000..77df722 --- /dev/null +++ b/src/api/basedata/alg/alg.js @@ -0,0 +1,41 @@ +import request from '@/utils/request'; +// 初始化list +export function getList(query) { + return request({ + url: '/basedata/alg/list', + method: 'get', + params: query + }) +} +export function postRemove(query) { + return request({ + url: `/basedata/alg/remove/${query}`, + method: 'post', + // params: query + }) +} + +// 新增 +export function postAdd(query) { + return request({ + url: '/basedata/alg', + method: 'post', + data: query + }) +} + +// 编辑查询 +export function getItem(query) { + return request({ + url: `/basedata/alg/${query}`, + method: 'get', + }) +} +// 编辑 +export function edit(query) { + return request({ + url: `/basedata/alg/edit`, + method: 'post', + data: query + }) +} \ No newline at end of file diff --git a/src/api/basedata/alg/subtype.js b/src/api/basedata/alg/subtype.js new file mode 100644 index 0000000..68ead37 --- /dev/null +++ b/src/api/basedata/alg/subtype.js @@ -0,0 +1,52 @@ +import request from '@/utils/request'; +// 初始化list +export function getList(query) { + return request({ + url: '/basedata/subtype/list', + method: 'get', + params: query + }) +} +// 删除 +export function postRemove(query) { + return request({ + url: `/basedata/subtype/remove/${query}`, + method: 'post', + // params: query + }) +} + +// 算法主类型查询 +export function getAlgTypeList(query) { + return request({ + url: '/basedata/subtype/getAlgTypeList/', + method: 'get', + // params: query + }) +} + + +// 新增 +export function postAdd(query) { + return request({ + url: '/basedata/subtype', + method: 'post', + data: query + }) +} + +// 编辑查询 +export function getItem(query) { + return request({ + url: `/basedata/subtype/${query}`, + method: 'get', + }) +} +// 编辑 +export function edit(query) { + return request({ + url: `/basedata/subtype/edit`, + method: 'post', + data: query + }) +} \ No newline at end of file diff --git a/src/api/basedata/eqpbook/channel.js b/src/api/basedata/eqpbook/channel.js new file mode 100644 index 0000000..8b54185 --- /dev/null +++ b/src/api/basedata/eqpbook/channel.js @@ -0,0 +1,53 @@ +import request from '@/utils/request'; +// 初始化list +export function getList(query) { + return request({ + url: '/basedata/eqpbook/channel/list', + method: 'get', + params: query + }) +} +// 删除 +export function postRemove(query) { + return request({ + url: `/basedata/eqpbook/channel/remove/${query}`, + method: 'post', + // params: query + }) +} +// 设备 + +export function eqpbookList(query) { + return request({ + url: `/basedata/eqpbook/list`, + method: 'get', + params: { + pageNum: 1, + pageSize: 100000 + } + }) +} +// 新增 +export function postAdd(query) { + return request({ + url: '/basedata/alg', + method: 'post', + data: query + }) +} + +// 编辑查询 +export function getItem(query) { + return request({ + url: `/basedata/alg/${query}`, + method: 'get', + }) +} +// 编辑 +export function edit(query) { + return request({ + url: `/basedata/alg/edit`, + method: 'post', + data: query + }) +} \ No newline at end of file diff --git a/src/api/basedata/station.js b/src/api/basedata/station.js new file mode 100644 index 0000000..e59c1d1 --- /dev/null +++ b/src/api/basedata/station.js @@ -0,0 +1,55 @@ +import request from '@/utils/request'; +// 初始化list +export function getList(query) { + return request({ + url: '/basedata/station/list', + method: 'get', + params: query + }) +} +// 删除 +export function postRemove(query) { + return request({ + url: `/basedata/station/remove/${query}`, + method: 'post', + // params: query + }) +} +// 新增 +export function postAdd(query) { + return request({ + url: '/basedata/station', + method: 'post', + data: query + }) +} +// 产站类型 +export function stationType(query) { + return request({ + url: '/system/dict/data/type/station_type', + method: 'get', + }) +} +// 编辑查询 +export function getItem(query) { + return request({ + url: `/basedata/station/${query}`, + method: 'get', + }) +} +// 编辑 +export function edit(query) { + return request({ + url: `/basedata/station/edit`, + method: 'post', + data: query + }) +} +// 导出 +export function Export(query) { + return request({ + url: `/basedata/station/export`, + method: 'post', + data: query + }) +} \ No newline at end of file diff --git a/src/views/administration/administration.vue b/src/views/administration/administration.vue index 7bdd45b..4e9e0e9 100644 --- a/src/views/administration/administration.vue +++ b/src/views/administration/administration.vue @@ -150,7 +150,7 @@ - @@ -294,9 +294,9 @@ {{ $t("administration.WalkThrough") }} - + - + -->
- - + + {{ $t('share.search')}} - {{ $t('share.reset')}}{{ $t("share.search") }} + {{ + $t("share.reset") + }} @@ -25,43 +28,68 @@ plain size="mini" @click="add" - >{{ $t('share.new')}}{{ $t("share.new") }} + - {{ $t('share.edit')}} - - - {{ $t('share.delete')}}{{ $t("share.delete") }} - {{ $t('share.export')}} + {{ + $t("share.export") + }} - + - - + + + - + @@ -71,6 +99,7 @@ :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" + @pagination="init" /> - - + + - {{ $t('share.cancel') }} - {{ $t('share.confirm') }} + {{ $t("share.cancel") }} + {{ + $t("share.confirm") + }}
diff --git a/src/views/basedata/station/index.vue b/src/views/basedata/station/index.vue index fbc0094..d76bd3b 100644 --- a/src/views/basedata/station/index.vue +++ b/src/views/basedata/station/index.vue @@ -1,8 +1,13 @@