feat(api): 添加根据code查询文章和导航的功能- 在cmsArticle模块中新增getByCode方法,支持根据code查询文章
- 在cmsNavigation模块中新增getByCode方法,支持根据code查询导航 - 优化导出用户列表的文件命名规则,加入租户ID标识
This commit is contained in:
@@ -156,6 +156,7 @@ import {Organization} from '@/api/system/organization/model';
|
||||
import {hasRole} from '@/utils/permission';
|
||||
import {getPageTitle} from "@/utils/common";
|
||||
import router from "@/router";
|
||||
import {getTenantId} from "@/utils/domain";
|
||||
|
||||
// 加载状态
|
||||
const loading = ref(true);
|
||||
@@ -402,7 +403,7 @@ const exportData = async () => {
|
||||
});
|
||||
|
||||
// 生成Excel文件
|
||||
const sheetName = `导出用户列表${dayjs(new Date()).format('YYYYMMDD')}`;
|
||||
const sheetName = `shop_user_${getTenantId()}_${dayjs(new Date()).format('YYYYMMDD')}`;
|
||||
const workbook = {
|
||||
SheetNames: [sheetName],
|
||||
Sheets: {}
|
||||
|
||||
Reference in New Issue
Block a user