refactor(sdy): 调整用户查询条件和表格配置- 在 sdyUser 组件中添加 type=1 查询条件,用于筛选特定类型的用户
- 修改 shopDealerApply 组件中的行键名,从 shopDealerApplyId 改为 applyId - 更新 shopAdmin 组件中的按钮文本,从"添加"改为"邀请注册" - 注释掉 .env.development 中的 API URL 配置
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
||||
<ele-pro-table
|
||||
ref="tableRef"
|
||||
row-key="shopDealerApplyId"
|
||||
row-key="applyId"
|
||||
:columns="columns"
|
||||
:datasource="datasource"
|
||||
:customRow="customRow"
|
||||
|
||||
@@ -319,6 +319,7 @@ const datasource: DatasourceFunction = ({
|
||||
where.roleId = filters.roles;
|
||||
where.keywords = searchText.value;
|
||||
where.isAdmin = 0;
|
||||
where.type = 1;
|
||||
return pageUsers({page, limit, ...where, ...orders});
|
||||
};
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
<template #icon>
|
||||
<plus-outlined/>
|
||||
</template>
|
||||
<span>添加</span>
|
||||
<span>邀请注册</span>
|
||||
</a-button>
|
||||
<a-input-search
|
||||
allow-clear
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
||||
<ele-pro-table
|
||||
ref="tableRef"
|
||||
row-key="shopDealerApplyId"
|
||||
row-key="applyId"
|
||||
:columns="columns"
|
||||
:datasource="datasource"
|
||||
:customRow="customRow"
|
||||
|
||||
Reference in New Issue
Block a user