feat & bugfix:优化部门模块的代码、提示等

This commit is contained in:
YunaiV
2025-10-26 16:07:18 +08:00
parent 9e75e98a3f
commit da0f6bd183
8 changed files with 9 additions and 29 deletions

View File

@ -1,5 +1,3 @@
import { Rule } from '@form-create/element-ui' //左侧拖拽按钮
// 左侧拖拽按钮 // 左侧拖拽按钮
export interface MenuItem { export interface MenuItem {
label: string label: string
@ -14,24 +12,6 @@ export interface Menu {
list: MenuItem[] list: MenuItem[]
} }
export interface MenuList extends Array<Menu> {}
// 拖拽组件的规则
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 类型 // 通用下拉组件 Props 类型
export interface ApiSelectProps { export interface ApiSelectProps {
name: string // 组件名称 name: string // 组件名称
@ -46,6 +26,6 @@ export interface SelectRuleOption {
label: string // label 名称 label: string // label 名称
name: string // 组件名称 name: string // 组件名称
icon: string // 组件图标 icon: string // 组件图标
props?: any[], // 组件规则 props?: any[] // 组件规则
event?: any[] // 事件配置 event?: any[] // 事件配置
} }

View File

@ -242,7 +242,6 @@ const handleProcessDetail = (row) => {
}) })
} }
// fix: 列表不刷新的问题。
watch( watch(
() => router.currentRoute.value, () => router.currentRoute.value,
() => { () => {

View File

@ -69,7 +69,6 @@ const getOrderData = async () => {
/** 查询商品数据 */ /** 查询商品数据 */
const getProductData = async () => { const getProductData = async () => {
// TODO: @芋艿:这个接口的返回值,是不是用命名字段更好些?
const productCount = await ProductSpuApi.getTabsCount() const productCount = await ProductSpuApi.getTabsCount()
data.productForSale.value = productCount['0'] data.productForSale.value = productCount['0']
data.productInWarehouse.value = productCount['1'] data.productInWarehouse.value = productCount['1']

View File

@ -166,11 +166,15 @@ const handleEditorReset = () => storePageIndex()
//#region 无感刷新 //#region 无感刷新
// 记录标识 // 记录标识
const DIY_PAGE_INDEX_KEY = 'diy_page_index' const DIY_PAGE_INDEX_KEY = 'diy_page_index'
// 1. 记录 // 1. 记录
const storePageIndex = () => function storePageIndex() {
sessionStorage.setItem(DIY_PAGE_INDEX_KEY, `${selectedTemplateItem.value}`) debugger
return sessionStorage.setItem(DIY_PAGE_INDEX_KEY, `${selectedTemplateItem.value}`)
}
// 2. 恢复 // 2. 恢复
const recoverPageIndex = () => { const recoverPageIndex = () => {
debugger
// 恢复重置前的页面,默认是第一个页面 // 恢复重置前的页面,默认是第一个页面
const pageIndex = toNumber(sessionStorage.getItem(DIY_PAGE_INDEX_KEY)) || 0 const pageIndex = toNumber(sessionStorage.getItem(DIY_PAGE_INDEX_KEY)) || 0
// 移除标记 // 移除标记

View File

@ -68,7 +68,6 @@
min-width="100" min-width="100"
prop="marketPrice" prop="marketPrice"
/> />
<el-table-column label="原价" min-width="100" prop="marketPrice" />
<el-table-column align="center" label="活动状态" min-width="100" prop="status"> <el-table-column align="center" label="活动状态" min-width="100" prop="status">
<template #default="scope"> <template #default="scope">
<dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status" /> <dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status" />

View File

@ -20,7 +20,7 @@ const crudSchemas = reactive<CrudSchema[]>([
} }
}, },
{ {
label: '积分商城活动商品', label: '活动商品',
field: 'spuId', field: 'spuId',
isTable: true, isTable: true,
isSearch: false, isSearch: false,

View File

@ -29,7 +29,6 @@ const terminalChartOptions = reactive<EChartsOption>({
orient: 'vertical', orient: 'vertical',
left: 'right' left: 'right'
}, },
roseType: 'area',
series: [ series: [
{ {
name: '会员终端', name: '会员终端',