diff --git a/.vscode/settings.json b/.vscode/settings.json index 54be7d8c..7d8aed49 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -83,7 +83,8 @@ "editor.defaultFormatter": "esbenp.prettier-vscode" }, "editor.codeActionsOnSave": { - "source.fixAll.eslint": "explicit" + "source.fixAll.eslint": "explicit", + "source.fixAll.stylelint": "explicit" }, "[vue]": { "editor.defaultFormatter": "rvest.vs-code-prettier-eslint" diff --git a/package.json b/package.json index 48d16a27..8da17220 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "driver.js": "^1.3.1", "echarts": "^5.5.0", "echarts-wordcloud": "^2.1.0", - "element-plus": "2.7.0", + "element-plus": "2.8.0", "fast-xml-parser": "^4.3.2", "highlight.js": "^11.9.0", "jsencrypt": "^3.3.2", diff --git a/src/api/ai/mindmap/index.ts b/src/api/ai/mindmap/index.ts index def113ba..59b4fd86 100644 --- a/src/api/ai/mindmap/index.ts +++ b/src/api/ai/mindmap/index.ts @@ -1,7 +1,20 @@ import { getAccessToken } from '@/utils/auth' import { fetchEventSource } from '@microsoft/fetch-event-source' import { config } from '@/config/axios/config' +import request from '@/config/axios' // AI 思维导图 VO +// AI 思维导图 VO +export interface MindMapVO { + id: number // 编号 + userId: number // 用户编号 + prompt: string // 生成内容提示 + generatedContent: string // 生成的思维导图内容 + platform: string // 平台 + model: string // 模型 + errorMessage: string // 错误信息 +} + +// AI 思维导图生成 VO export interface AiMindMapGenerateReqVO { prompt: string } @@ -34,5 +47,14 @@ export const AiMindMapApi = { onclose: onClose, signal: ctrl.signal }) + }, + + // 查询思维导图分页 + getMindMapPage: async (params: any) => { + return await request.get({ url: `/ai/mind-map/page`, params }) + }, + // 删除思维导图 + deleteMindMap: async (id: number) => { + return await request.delete({ url: `/ai/mind-map/delete?id=` + id }) } } diff --git a/src/api/mall/product/property.ts b/src/api/mall/product/property.ts index 44dc663f..a191d82e 100644 --- a/src/api/mall/product/property.ts +++ b/src/api/mall/product/property.ts @@ -24,20 +24,6 @@ export interface PropertyValueVO { remark?: string } -/** - * 商品属性值的明细 - */ -export interface PropertyValueDetailVO { - /** 属性项的编号 */ - propertyId: number // 属性的编号 - /** 属性的名称 */ - propertyName: string - /** 属性值的编号 */ - valueId: number - /** 属性值的名称 */ - valueName: string -} - // ------------------------ 属性项 ------------------- // 创建属性项 @@ -65,6 +51,11 @@ export const getPropertyPage = (params: PageParam) => { return request.get({ url: '/product/property/page', params }) } +// 获得属性项精简列表 +export const getPropertySimpleList = (): Promise => { + return request.get({ url: '/product/property/simple-list' }) +} + // ------------------------ 属性值 ------------------- // 获得属性值分页 @@ -91,3 +82,8 @@ export const updatePropertyValue = (data: PropertyValueVO) => { export const deletePropertyValue = (id: number) => { return request.delete({ url: `/product/property/value/delete?id=${id}` }) } + +// 获得属性值精简列表 +export const getPropertyValueSimpleList = (propertyId: number): Promise => { + return request.get({ url: '/product/property/value/simple-list', params: { propertyId } }) +} diff --git a/src/api/mall/product/spu.ts b/src/api/mall/product/spu.ts index eee632d5..d44c0f64 100644 --- a/src/api/mall/product/spu.ts +++ b/src/api/mall/product/spu.ts @@ -50,6 +50,8 @@ export interface Spu { giveIntegral?: number // 赠送积分 virtualSalesCount?: number // 虚拟销量 price?: number // 商品价格 + combinationPrice?: number // 商品拼团价格 + seckillPrice?: number // 商品秒杀价格 salesCount?: number // 商品销量 marketPrice?: number // 市场价 costPrice?: number // 成本价 diff --git a/src/api/mall/promotion/seckill/seckillActivity.ts b/src/api/mall/promotion/seckill/seckillActivity.ts index e8346410..4bb0e8b1 100644 --- a/src/api/mall/promotion/seckill/seckillActivity.ts +++ b/src/api/mall/promotion/seckill/seckillActivity.ts @@ -24,6 +24,7 @@ export interface SeckillActivityVO { // 秒杀活动所需属性 export interface SeckillProductVO { skuId: number + spuId: number seckillPrice: number stock: number } diff --git a/src/api/pay/app/index.ts b/src/api/pay/app/index.ts index 4bb06b36..b1a2d0dd 100644 --- a/src/api/pay/app/index.ts +++ b/src/api/pay/app/index.ts @@ -2,6 +2,7 @@ import request from '@/config/axios' export interface AppVO { id: number + appKey: string name: string status: number remark: string diff --git a/src/components/DictTag/src/DictTag.vue b/src/components/DictTag/src/DictTag.vue index 1d075a1b..6414eaab 100644 --- a/src/components/DictTag/src/DictTag.vue +++ b/src/components/DictTag/src/DictTag.vue @@ -1,8 +1,9 @@ diff --git a/src/components/DiyEditor/components/mobile/PromotionCombination/index.vue b/src/components/DiyEditor/components/mobile/PromotionCombination/index.vue index fe6f3a83..ad74703f 100644 --- a/src/components/DiyEditor/components/mobile/PromotionCombination/index.vue +++ b/src/components/DiyEditor/components/mobile/PromotionCombination/index.vue @@ -1,35 +1,35 @@ - - + diff --git a/src/components/DiyEditor/components/mobile/PromotionSeckill/index.vue b/src/components/DiyEditor/components/mobile/PromotionSeckill/index.vue index 1b4113b6..fe092a03 100644 --- a/src/components/DiyEditor/components/mobile/PromotionSeckill/index.vue +++ b/src/components/DiyEditor/components/mobile/PromotionSeckill/index.vue @@ -1,35 +1,35 @@ - - + diff --git a/src/layout/components/Setting/src/Setting.vue b/src/layout/components/Setting/src/Setting.vue index e1908b63..717472ac 100644 --- a/src/layout/components/Setting/src/Setting.vue +++ b/src/layout/components/Setting/src/Setting.vue @@ -126,6 +126,8 @@ const copyConfig = async () => { message: ${appStore.getMessage}, // 标签页 tagsView: ${appStore.getTagsView}, + // 标签页 + tagsViewImmerse: ${appStore.getTagsViewImmerse}, // 标签页图标 getTagsViewIcon: ${appStore.getTagsViewIcon}, // logo diff --git a/src/layout/components/Setting/src/components/InterfaceDisplay.vue b/src/layout/components/Setting/src/components/InterfaceDisplay.vue index ebbbf4bc..3ba5c6b0 100644 --- a/src/layout/components/Setting/src/components/InterfaceDisplay.vue +++ b/src/layout/components/Setting/src/components/InterfaceDisplay.vue @@ -73,6 +73,13 @@ const tagsViewChange = (show: boolean) => { appStore.setTagsView(show) } +// 标签页沉浸 +const tagsViewImmerse = ref(appStore.getTagsViewImmerse) + +const tagsViewImmerseChange = (immerse: boolean) => { + appStore.setTagsViewImmerse(immerse) +} + // 标签页图标 const tagsViewIcon = ref(appStore.getTagsViewIcon) @@ -181,6 +188,11 @@ watch( +
+ {{ t('setting.tagsViewImmerse') }} + +
+
{{ t('setting.tagsViewIcon') }} diff --git a/src/layout/components/TagsView/src/TagsView.vue b/src/layout/components/TagsView/src/TagsView.vue index 7db0cf6f..6061d1fe 100644 --- a/src/layout/components/TagsView/src/TagsView.vue +++ b/src/layout/components/TagsView/src/TagsView.vue @@ -1,7 +1,7 @@ diff --git a/src/views/ai/write/index/components/Left.vue b/src/views/ai/write/index/components/Left.vue index 05cc04a5..74e5d58b 100644 --- a/src/views/ai/write/index/components/Left.vue +++ b/src/views/ai/write/index/components/Left.vue @@ -2,8 +2,8 @@ {{ text }} @@ -14,9 +14,9 @@

{{ label }} {{ hint }} @@ -29,17 +29,17 @@
@@ -49,36 +49,36 @@ >
@@ -93,18 +93,18 @@
重置 - 生成 + 生成

- diff --git a/src/views/mall/product/spu/form/ProductPropertyAddForm.vue b/src/views/mall/product/spu/form/ProductPropertyAddForm.vue index 15c5a8d5..f45281b1 100644 --- a/src/views/mall/product/spu/form/ProductPropertyAddForm.vue +++ b/src/views/mall/product/spu/form/ProductPropertyAddForm.vue @@ -10,7 +10,22 @@ @keydown.enter.prevent="submitForm" > - + + + - + @@ -181,9 +181,6 @@ import { cloneDeep } from 'lodash-es' import { fenToYuan } from '@/utils' defineOptions({ name: 'TradeAfterSale' }) -const props = defineProps<{ - userId?: number -}>() const { push } = useRouter() // 路由跳转 @@ -207,9 +204,9 @@ const queryParams = reactive({ spuName: null, createTime: [], way: null, - type: null, - userId: null + type: null }) + /** 查询列表 */ const getList = async () => { loading.value = true @@ -219,27 +216,27 @@ const getList = async () => { if (data.status === '0') { delete data.status } - if (props.userId) { - data.userId = props.userId - } // 执行查询 const res = await AfterSaleApi.getAfterSalePage(data) - list.value = res.list + list.value = res.list as AfterSaleApi.TradeAfterSaleVO[] total.value = res.total } finally { loading.value = false } } + /** 搜索按钮操作 */ const handleQuery = async () => { queryParams.pageNo = 1 await getList() } + /** 重置按钮操作 */ const resetQuery = () => { queryFormRef.value?.resetFields() handleQuery() } + /** tab 切换 */ const tabClick = async (tab: TabsPaneContext) => { queryParams.status = tab.paneName diff --git a/src/views/member/user/detail/UserAccountInfo.vue b/src/views/member/user/detail/UserAccountInfo.vue index 56a6ab63..49071fdb 100644 --- a/src/views/member/user/detail/UserAccountInfo.vue +++ b/src/views/member/user/detail/UserAccountInfo.vue @@ -2,81 +2,57 @@ {{ user.levelName || '无' }} {{ user.experience || 0 }} {{ user.point || 0 }} {{ user.totalPoint || 0 }} {{ fenToYuan(wallet.balance || 0) }} {{ fenToYuan(wallet.totalExpense || 0) }} {{ fenToYuan(wallet.totalRecharge || 0) }} - -