diff --git a/z_ele/src/views/system/config-set/index.vue b/z_ele/src/views/system/config-set/index.vue
index eb92e45..6f68906 100644
--- a/z_ele/src/views/system/config-set/index.vue
+++ b/z_ele/src/views/system/config-set/index.vue
@@ -1,11 +1,56 @@
-
-
-
+
+
+
+
+
+
+ 同步配置
+
+ {{ configList }}
+
+
-
+defineOptions({name: 'SystemConfigSet'});
+
+
+const configList = ref([]);
+/** 搜索 */
+const reload = () => {
+ listConfig({group: configGroup.value, limit: 999}).then((data)=>{
+ configList.value = data || [];
+ });
+};
+
+const groupItems = ref([]);
+const configGroup = ref("");
+onMounted(async () => {
+ // 配置分组
+ const group = [];
+ const {valueData} = await getSysConfig("config_group");
+ for (const name in valueData) {
+ group.push({name: name, label: valueData[name]})
+ }
+ groupItems.value = group
+ if (group.length > 0) {
+ configGroup.value = group[0].name
+ }
+ reload();
+})
+
diff --git a/z_ele/src/views/system/config/index.vue b/z_ele/src/views/system/config/index.vue
index 036a2ed..2437aef 100644
--- a/z_ele/src/views/system/config/index.vue
+++ b/z_ele/src/views/system/config/index.vue
@@ -33,13 +33,6 @@
>
添加
-
-
-
-
-
-
-
@@ -75,7 +68,6 @@ import type {
DatasourceFunction,
Columns
} from 'ele-admin-plus/es/ele-pro-table/types';
-// import { Refresh } from "@element-plus/icons-vue"
import {PlusOutlined,} from '@/components/icons';
import ConfigSearch from './components/config-search.vue';
import ConfigEdit from './components/config-edit.vue';
@@ -155,7 +147,7 @@ const showEdit = ref(false);
/** 表格数据源 */
const datasource: DatasourceFunction = ({pages, where, orders}) => {
- return listConfig({...where, ...orders, ...pages, group: configGroup.value});
+ return listConfig({...where, ...orders, ...pages, group: configGroup.value, limit: 999});
};
/** 搜索 */