diff --git a/src/api/system/config.js b/src/api/system/config.js
index a404d82..65d1f86 100644
--- a/src/api/system/config.js
+++ b/src/api/system/config.js
@@ -1,60 +1,60 @@
-import request from '@/utils/request'
+import request from "@/utils/request";
// 查询参数列表
export function listConfig(query) {
return request({
- url: '/system/config/list',
- method: 'get',
- params: query
- })
+ url: "/system/config/list",
+ method: "get",
+ params: query,
+ });
}
// 查询参数详细
export function getConfig(configId) {
return request({
- url: '/system/config/' + configId,
- method: 'get'
- })
+ url: "/system/config/" + configId,
+ method: "get",
+ });
}
// 根据参数键名查询参数值
export function getConfigKey(configKey) {
return request({
- url: '/system/config/configKey/' + configKey,
- method: 'get'
- })
+ url: "/system/config/configKey/" + configKey,
+ method: "get",
+ });
}
// 新增参数配置
export function addConfig(data) {
return request({
- url: '/system/config',
- method: 'post',
- data: data
- })
+ url: "/system/config",
+ method: "post",
+ data: data,
+ });
}
// 修改参数配置
export function updateConfig(data) {
return request({
- url: '/system/config',
- method: 'put',
- data: data
- })
+ url: "/system/config",
+ method: "put",
+ data: data,
+ });
}
// 删除参数配置
export function delConfig(configId) {
return request({
- url: '/system/config/' + configId,
- method: 'delete'
- })
+ url: "/system/config/" + configId,
+ method: "delete",
+ });
}
// 刷新参数缓存
export function refreshCache() {
return request({
- url: '/system/config/refreshCache',
- method: 'delete'
- })
+ url: "/system/config/refreshCache",
+ method: "delete",
+ });
}
diff --git a/src/constant/dict.js b/src/constant/dict.js
index b46534d..3264ff0 100644
--- a/src/constant/dict.js
+++ b/src/constant/dict.js
@@ -14,15 +14,15 @@ export const sys_normal_disable = [
export const sys_user_gender = [
{
label: "男",
- value: "0"
+ value: "0",
},
{
label: "女",
- value: "1"
+ value: "1",
},
{
label: "未知",
- value: "2"
+ value: "2",
},
];
@@ -42,11 +42,11 @@ export const menu_show_hide = [
export const sys_yes_no = [
{
label: "否",
- value: "N"
+ value: "N",
},
{
label: "是",
value: "Y",
elTagType: "danger",
},
-];
\ No newline at end of file
+];
diff --git a/src/store/modules/user.js b/src/store/modules/user.js
index e41cccf..902f307 100644
--- a/src/store/modules/user.js
+++ b/src/store/modules/user.js
@@ -85,7 +85,7 @@ const useUserStore = defineStore("user", {
});
},
},
- persist: [{ paths: ["tenant", /*"userInfoRes"*/], storage: localStorage }],
+ persist: [{ paths: ["tenant" /*"userInfoRes"*/], storage: localStorage }],
});
export default useUserStore;
diff --git a/src/views/system/config/index.vue b/src/views/system/config/index.vue
index ff1642f..844af74 100644
--- a/src/views/system/config/index.vue
+++ b/src/views/system/config/index.vue
@@ -1,162 +1,252 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
-
-
- 新增
-
-
- 修改
-
-
- 删除
-
-
- 导出
-
-
- 刷新缓存
-
-
-
+
+
+ 新增
+
+
+
+ 修改
+
+
+
+ 删除
+
+
+
+ 导出
+
+
+
+ 刷新缓存
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ parseTime(scope.row.createTime) }}
-
-
-
-
- 修改
- 删除
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.createTime) }}
+
+
+
+
+ 修改
+
+ 删除
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ dict.label }}
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ dict.label }}
+
+
+
+
+
+
+
+
+
+
+
+
-