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 @@