From d7285e8f5f1b2d51d0b913fc7884447f9d8912d1 Mon Sep 17 00:00:00 2001 From: v Date: Thu, 11 Sep 2025 22:45:42 +0800 Subject: [PATCH] up. --- route/api.php | 1 + .../{member-edit.vue => institution-edit.vue} | 0 ...mber-search.vue => institution-search.vue} | 0 z_ele/src/views/xm/institution/index.vue | 29 ++++++++++--------- 4 files changed, 17 insertions(+), 13 deletions(-) rename z_ele/src/views/xm/institution/components/{member-edit.vue => institution-edit.vue} (100%) rename z_ele/src/views/xm/institution/components/{member-search.vue => institution-search.vue} (100%) diff --git a/route/api.php b/route/api.php index ac552df..4cfa282 100644 --- a/route/api.php +++ b/route/api.php @@ -8,6 +8,7 @@ use app\model\SysDictionary; use app\controller\admin\{auth, GlobalController, xm\ChannelController, + xm\InstitutionController, xm\MemberController, system\CacheController, system\CacheDataController, diff --git a/z_ele/src/views/xm/institution/components/member-edit.vue b/z_ele/src/views/xm/institution/components/institution-edit.vue similarity index 100% rename from z_ele/src/views/xm/institution/components/member-edit.vue rename to z_ele/src/views/xm/institution/components/institution-edit.vue diff --git a/z_ele/src/views/xm/institution/components/member-search.vue b/z_ele/src/views/xm/institution/components/institution-search.vue similarity index 100% rename from z_ele/src/views/xm/institution/components/member-search.vue rename to z_ele/src/views/xm/institution/components/institution-search.vue diff --git a/z_ele/src/views/xm/institution/index.vue b/z_ele/src/views/xm/institution/index.vue index fe2993d..13de5a9 100644 --- a/z_ele/src/views/xm/institution/index.vue +++ b/z_ele/src/views/xm/institution/index.vue @@ -1,7 +1,7 @@ @@ -40,11 +40,14 @@ DatasourceFunction, Columns } from 'ele-admin-plus/es/ele-pro-table/types'; - import MemberSearch from './components/member-search.vue'; - import MemberEdit from './components/member-edit.vue'; + import InstitutionSearch from './components/institution-search.vue'; + import InstitutionEdit from './components/institution-edit.vue'; import { removeRoles } from '@/api/system/role'; - import type { Channel, ChannelParam } from '@/api/xm/channel/model'; - import { pageChannels } from '@/api/xm/channel'; + import type { + Institution, + InstitutionParam + } from '@/api/xm/institution/model'; + import { pageInstitutions } from '@/api/xm/institution'; defineOptions({ name: 'SystemRole' }); @@ -67,7 +70,7 @@ align: 'center' }, { - prop: 'channelId', + prop: 'InstitutionId', label: '渠道ID', width: 80 }, @@ -100,33 +103,33 @@ ]); /** 表格选中数据 */ - const selections = ref([]); + const selections = ref([]); /** 当前编辑数据 */ - const current = ref(null); + const current = ref(null); /** 是否显示编辑弹窗 */ const showEdit = ref(false); /** 表格数据源 */ const datasource: DatasourceFunction = ({ pages, where, orders }) => { - return pageChannels({ ...where, ...orders, ...pages }); + return pageInstitutions({ ...where, ...orders, ...pages }); }; /** 搜索 */ - const reload = (where?: ChannelParam) => { + const reload = (where?: InstitutionParam) => { selections.value = []; tableRef.value?.reload?.({ page: 1, where }); }; /** 打开编辑弹窗 */ - const openEdit = (row?: Channel) => { + const openEdit = (row?: Institution) => { current.value = row ?? null; showEdit.value = true; }; /** 删除单个 */ - const remove = (row?: Channel) => { + const remove = (row?: Institution) => { const rows = row == null ? selections.value : [row]; if (!rows.length) { EleMessage.error({ message: '请至少选择一条数据', plain: true });