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 });