From da0f6bd1838d941cda0ca3bf52bdc8089984e7a8 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 26 Oct 2025 16:07:18 +0800 Subject: [PATCH] =?UTF-8?q?feat=20&=20bugfix=EF=BC=9A=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E9=83=A8=E9=97=A8=E6=A8=A1=E5=9D=97=E7=9A=84=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E3=80=81=E6=8F=90=E7=A4=BA=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/FormCreate/src/type/index.ts | 22 +------------------ src/views/bpm/oa/leave/index.vue | 1 - .../home/components/OperationDataCard.vue | 1 - .../mall/home/components/TradeTrendCard.vue | 2 +- .../mall/promotion/diy/template/decorate.vue | 8 +++++-- .../mall/promotion/point/activity/index.vue | 1 - .../point/activity/pointActivity.data.ts | 2 +- .../member/components/MemberTerminalCard.vue | 1 - 8 files changed, 9 insertions(+), 29 deletions(-) diff --git a/src/components/FormCreate/src/type/index.ts b/src/components/FormCreate/src/type/index.ts index 711a88d90..4a096b968 100644 --- a/src/components/FormCreate/src/type/index.ts +++ b/src/components/FormCreate/src/type/index.ts @@ -1,5 +1,3 @@ -import { Rule } from '@form-create/element-ui' //左侧拖拽按钮 - // 左侧拖拽按钮 export interface MenuItem { label: string @@ -14,24 +12,6 @@ export interface Menu { list: MenuItem[] } -export interface MenuList extends Array {} - -// 拖拽组件的规则 -export interface DragRule { - icon: string - name: string - label: string - children?: string - inside?: true - drag?: true | String - dragBtn?: false - mask?: false - - rule(): Rule - - props(v: any, v1: any): Rule[] -} - // 通用下拉组件 Props 类型 export interface ApiSelectProps { name: string // 组件名称 @@ -46,6 +26,6 @@ export interface SelectRuleOption { label: string // label 名称 name: string // 组件名称 icon: string // 组件图标 - props?: any[], // 组件规则 + props?: any[] // 组件规则 event?: any[] // 事件配置 } diff --git a/src/views/bpm/oa/leave/index.vue b/src/views/bpm/oa/leave/index.vue index 27dbc19e2..1d1d42740 100644 --- a/src/views/bpm/oa/leave/index.vue +++ b/src/views/bpm/oa/leave/index.vue @@ -242,7 +242,6 @@ const handleProcessDetail = (row) => { }) } -// fix: 列表不刷新的问题。 watch( () => router.currentRoute.value, () => { diff --git a/src/views/mall/home/components/OperationDataCard.vue b/src/views/mall/home/components/OperationDataCard.vue index 64d89f7aa..1a1ffb9d4 100644 --- a/src/views/mall/home/components/OperationDataCard.vue +++ b/src/views/mall/home/components/OperationDataCard.vue @@ -69,7 +69,6 @@ const getOrderData = async () => { /** 查询商品数据 */ const getProductData = async () => { - // TODO: @芋艿:这个接口的返回值,是不是用命名字段更好些? const productCount = await ProductSpuApi.getTabsCount() data.productForSale.value = productCount['0'] data.productInWarehouse.value = productCount['1'] diff --git a/src/views/mall/home/components/TradeTrendCard.vue b/src/views/mall/home/components/TradeTrendCard.vue index ad1270eab..0bf284ea2 100644 --- a/src/views/mall/home/components/TradeTrendCard.vue +++ b/src/views/mall/home/components/TradeTrendCard.vue @@ -196,7 +196,7 @@ const getOrderCountTrendComparison = async ( } eChartOptions.xAxis!['data'] = dates eChartOptions.series = series - // legend在4个切换到2个的时候,还是显示成4个,需要手动配置一下 + // legend 在 4 个切换到 2 个的时候,还是显示成 4 个,需要手动配置一下 eChartOptions.legend['data'] = series.map((item) => item.name) loading.value = false } diff --git a/src/views/mall/promotion/diy/template/decorate.vue b/src/views/mall/promotion/diy/template/decorate.vue index 6ebacdd34..63f393188 100644 --- a/src/views/mall/promotion/diy/template/decorate.vue +++ b/src/views/mall/promotion/diy/template/decorate.vue @@ -166,11 +166,15 @@ const handleEditorReset = () => storePageIndex() //#region 无感刷新 // 记录标识 const DIY_PAGE_INDEX_KEY = 'diy_page_index' + // 1. 记录 -const storePageIndex = () => - sessionStorage.setItem(DIY_PAGE_INDEX_KEY, `${selectedTemplateItem.value}`) +function storePageIndex() { + debugger + return sessionStorage.setItem(DIY_PAGE_INDEX_KEY, `${selectedTemplateItem.value}`) +} // 2. 恢复 const recoverPageIndex = () => { + debugger // 恢复重置前的页面,默认是第一个页面 const pageIndex = toNumber(sessionStorage.getItem(DIY_PAGE_INDEX_KEY)) || 0 // 移除标记 diff --git a/src/views/mall/promotion/point/activity/index.vue b/src/views/mall/promotion/point/activity/index.vue index ceceb7b55..e66324072 100644 --- a/src/views/mall/promotion/point/activity/index.vue +++ b/src/views/mall/promotion/point/activity/index.vue @@ -68,7 +68,6 @@ min-width="100" prop="marketPrice" /> -