From 092ec983a3ee195662f1f5cc4f0d196bae8ac3a6 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Fri, 22 Jan 2021 01:31:10 +0800 Subject: [PATCH] 将前端 config 从 system 迁移到 infra 模块,并进行改名~ --- ruoyi-ui/src/api/infra/config.js | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ruoyi-ui/src/api/system/config.js | 62 -------------------------------------------------------------- ruoyi-ui/src/main.js | 2 +- ruoyi-ui/src/views/infra/config/index.vue | 323 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ruoyi-ui/src/views/system/config/index.vue | 323 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 5 files changed, 386 insertions(+), 386 deletions(-) create mode 100644 ruoyi-ui/src/api/infra/config.js delete mode 100644 ruoyi-ui/src/api/system/config.js create mode 100644 ruoyi-ui/src/views/infra/config/index.vue delete mode 100644 ruoyi-ui/src/views/system/config/index.vue diff --git a/ruoyi-ui/src/api/infra/config.js b/ruoyi-ui/src/api/infra/config.js new file mode 100644 index 0000000..eec1517 --- /dev/null +++ b/ruoyi-ui/src/api/infra/config.js @@ -0,0 +1,62 @@ +import request from '@/utils/request' + +// 查询参数列表 +export function listConfig(query) { + return request({ + url: '/infra/config/page', + method: 'get', + params: query + }) +} + +// 查询参数详细 +export function getConfig(configId) { + return request({ + url: '/infra/config/get?id=' + configId, + method: 'get' + }) +} + +// 根据参数键名查询参数值 +export function getConfigKey(configKey) { + return request({ + url: '/infra/config/get-value-by-key?key=' + configKey, + method: 'get' + }) +} + +// 新增参数配置 +export function addConfig(data) { + return request({ + url: '/infra/config/create', + method: 'post', + data: data + }) +} + +// 修改参数配置 +export function updateConfig(data) { + return request({ + url: '/infra/config/update', + method: 'put', + data: data + }) +} + +// 删除参数配置 +export function delConfig(configId) { + return request({ + url: '/infra/config/delete?id=' + configId, + method: 'delete' + }) +} + +// 导出参数 +export function exportConfig(query) { + return request({ + url: '/infra/config/export', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/ruoyi-ui/src/api/system/config.js b/ruoyi-ui/src/api/system/config.js deleted file mode 100644 index eec1517..0000000 --- a/ruoyi-ui/src/api/system/config.js +++ /dev/null @@ -1,62 +0,0 @@ -import request from '@/utils/request' - -// 查询参数列表 -export function listConfig(query) { - return request({ - url: '/infra/config/page', - method: 'get', - params: query - }) -} - -// 查询参数详细 -export function getConfig(configId) { - return request({ - url: '/infra/config/get?id=' + configId, - method: 'get' - }) -} - -// 根据参数键名查询参数值 -export function getConfigKey(configKey) { - return request({ - url: '/infra/config/get-value-by-key?key=' + configKey, - method: 'get' - }) -} - -// 新增参数配置 -export function addConfig(data) { - return request({ - url: '/infra/config/create', - method: 'post', - data: data - }) -} - -// 修改参数配置 -export function updateConfig(data) { - return request({ - url: '/infra/config/update', - method: 'put', - data: data - }) -} - -// 删除参数配置 -export function delConfig(configId) { - return request({ - url: '/infra/config/delete?id=' + configId, - method: 'delete' - }) -} - -// 导出参数 -export function exportConfig(query) { - return request({ - url: '/infra/config/export', - method: 'get', - params: query, - responseType: 'blob' - }) -} diff --git a/ruoyi-ui/src/main.js b/ruoyi-ui/src/main.js index f337ab7..969a93e 100644 --- a/ruoyi-ui/src/main.js +++ b/ruoyi-ui/src/main.js @@ -15,7 +15,7 @@ import permission from './directive/permission' import './assets/icons' // icon import './permission' // permission control import { getDicts } from "@/api/system/dict/data"; -import { getConfigKey } from "@/api/system/config"; +import { getConfigKey } from "@/api/infra/config"; import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, download, handleTree, downloadExcel } from "@/utils/ruoyi"; import Pagination from "@/components/Pagination"; // 自定义表格工具扩展 diff --git a/ruoyi-ui/src/views/infra/config/index.vue b/ruoyi-ui/src/views/infra/config/index.vue new file mode 100644 index 0000000..592a40f --- /dev/null +++ b/ruoyi-ui/src/views/infra/config/index.vue @@ -0,0 +1,323 @@ + + + diff --git a/ruoyi-ui/src/views/system/config/index.vue b/ruoyi-ui/src/views/system/config/index.vue deleted file mode 100644 index f53cedd..0000000 --- a/ruoyi-ui/src/views/system/config/index.vue +++ /dev/null @@ -1,323 +0,0 @@ - - - -- libgit2 0.21.4