refactor(sdy): 调整用户查询条件和表格配置- 在 sdyUser 组件中添加 type=1 查询条件,用于筛选特定类型的用户

- 修改 shopDealerApply 组件中的行键名,从 shopDealerApplyId 改为 applyId
- 更新 shopAdmin 组件中的按钮文本,从"添加"改为"邀请注册"
- 注释掉 .env.development 中的 API URL 配置
This commit is contained in:
2025-09-05 14:38:28 +08:00
parent 7052ccce61
commit c6e6bb02d3
10 changed files with 5 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
VITE_APP_NAME=后台管理(开发环境) VITE_APP_NAME=后台管理(开发环境)
VITE_API_URL=http://127.0.0.1:9200/api #VITE_API_URL=http://127.0.0.1:9200/api
#VITE_SERVER_API_URL=http://127.0.0.1:8000/api #VITE_SERVER_API_URL=http://127.0.0.1:8000/api

View File

@@ -3,7 +3,7 @@
<a-card :bordered="false" :body-style="{ padding: '16px' }"> <a-card :bordered="false" :body-style="{ padding: '16px' }">
<ele-pro-table <ele-pro-table
ref="tableRef" ref="tableRef"
row-key="shopDealerApplyId" row-key="applyId"
:columns="columns" :columns="columns"
:datasource="datasource" :datasource="datasource"
:customRow="customRow" :customRow="customRow"

View File

@@ -319,6 +319,7 @@ const datasource: DatasourceFunction = ({
where.roleId = filters.roles; where.roleId = filters.roles;
where.keywords = searchText.value; where.keywords = searchText.value;
where.isAdmin = 0; where.isAdmin = 0;
where.type = 1;
return pageUsers({page, limit, ...where, ...orders}); return pageUsers({page, limit, ...where, ...orders});
}; };

View File

@@ -20,7 +20,7 @@
<template #icon> <template #icon>
<plus-outlined/> <plus-outlined/>
</template> </template>
<span>添加</span> <span>邀请注册</span>
</a-button> </a-button>
<a-input-search <a-input-search
allow-clear allow-clear

View File

@@ -3,7 +3,7 @@
<a-card :bordered="false" :body-style="{ padding: '16px' }"> <a-card :bordered="false" :body-style="{ padding: '16px' }">
<ele-pro-table <ele-pro-table
ref="tableRef" ref="tableRef"
row-key="shopDealerApplyId" row-key="applyId"
:columns="columns" :columns="columns"
:datasource="datasource" :datasource="datasource"
:customRow="customRow" :customRow="customRow"