refactor(sdy): 调整用户查询条件和表格配置- 在 sdyUser 组件中添加 type=1 查询条件,用于筛选特定类型的用户
- 修改 shopDealerApply 组件中的行键名,从 shopDealerApplyId 改为 applyId - 更新 shopAdmin 组件中的按钮文本,从"添加"改为"邀请注册" - 注释掉 .env.development 中的 API URL 配置
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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});
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user