feat(shop): 添加分销商申请审核相关功能
- 新增审核通过、驳回和批量审核通过分销商申请的 API 接口 - 移除无用的网站 ID 相关代码 - 优化导入导出功能 - 修复一些组件中的小问题
This commit is contained in:
@@ -156,6 +156,10 @@
|
||||
<FileTextOutlined/>
|
||||
系统日志
|
||||
</a-button>
|
||||
<a-button block @click="clearSiteInfoCache">
|
||||
<ClearOutlined/>
|
||||
清除缓存
|
||||
</a-button>
|
||||
<a-button block @click="$router.push('/system/setting')">
|
||||
<SettingOutlined/>
|
||||
系统设置
|
||||
@@ -178,20 +182,23 @@ import {
|
||||
SettingOutlined,
|
||||
AccountBookOutlined,
|
||||
FileTextOutlined,
|
||||
ClearOutlined,
|
||||
MoneyCollectOutlined
|
||||
} from '@ant-design/icons-vue';
|
||||
import {message} from 'ant-design-vue/es';
|
||||
import {openNew} from "@/utils/common";
|
||||
import { useSiteStore } from '@/store/modules/site';
|
||||
import { useStatisticsStore } from '@/store/modules/statistics';
|
||||
import { storeToRefs } from 'pinia';
|
||||
import {useSiteStore} from '@/store/modules/site';
|
||||
import {useStatisticsStore} from '@/store/modules/statistics';
|
||||
import {storeToRefs} from 'pinia';
|
||||
import {removeSiteInfoCache} from "@/api/cms/cmsWebsite";
|
||||
|
||||
// 使用状态管理
|
||||
const siteStore = useSiteStore();
|
||||
const statisticsStore = useStatisticsStore();
|
||||
|
||||
// 从 store 中获取响应式数据
|
||||
const { siteInfo, loading: siteLoading } = storeToRefs(siteStore);
|
||||
const { loading: statisticsLoading } = storeToRefs(statisticsStore);
|
||||
const {siteInfo, loading: siteLoading} = storeToRefs(siteStore);
|
||||
const {loading: statisticsLoading} = storeToRefs(statisticsStore);
|
||||
|
||||
// 系统信息
|
||||
const systemInfo = ref({
|
||||
@@ -215,6 +222,17 @@ const totalSales = computed(() => statisticsStore.totalSales);
|
||||
// 加载状态
|
||||
const loading = computed(() => siteLoading.value || statisticsLoading.value);
|
||||
|
||||
// 清除缓存
|
||||
const clearSiteInfoCache = () => {
|
||||
removeSiteInfoCache('SiteInfo:' + localStorage.getItem('TenantId')).then(
|
||||
(msg) => {
|
||||
if (msg) {
|
||||
message.success(msg);
|
||||
}
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
onMounted(async () => {
|
||||
// 加载网站信息和统计数据
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user