refactor(shop): 重构商铺相关 API

- 移除 ApiResult 和 PageResult 的冗余导入
- 更新请求路径,移除 MODULES_API_URL 的使用
- 调整请求头,移除不必要的 Content-Type 设置
-统一处理 enabled 字段类型
This commit is contained in:
2025-08-12 00:18:53 +08:00
parent a6097bfc05
commit df910e4344
24 changed files with 689 additions and 933 deletions

View File

@@ -1,6 +1,5 @@
<template>
<div class="page">
<div class="ele-body">
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
<a-card :bordered="false" :body-style="{ padding: '16px' }">
<ele-pro-table
ref="tableRef"
@@ -46,8 +45,7 @@
<!-- 编辑弹窗 -->
<ShopUserRefereeEdit v-model:visible="showEdit" :data="current" @done="reload" />
</div>
</div>
</a-page-header>
</template>
<script lang="ts" setup>
@@ -61,6 +59,7 @@
ColumnItem
} from 'ele-admin-pro/es/ele-pro-table/types';
import Search from './components/search.vue';
import {getPageTitle} from '@/utils/common';
import ShopUserRefereeEdit from './components/shopUserRefereeEdit.vue';
import { pageShopUserReferee, removeShopUserReferee, removeBatchShopUserReferee } from '@/api/shop/shopUserReferee';
import type { ShopUserReferee, ShopUserRefereeParam } from '@/api/shop/shopUserReferee/model';