Commit c93e5c54 by qinjianhui

fix: 问题修改

parent 278ecd7f
......@@ -16,6 +16,8 @@ declare module 'vue' {
ElCarouselItem: typeof import('element-plus/es')['ElCarouselItem']
ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
ElCol: typeof import('element-plus/es')['ElCol']
ElCollapse: typeof import('element-plus/es')['ElCollapse']
ElCollapseItem: typeof import('element-plus/es')['ElCollapseItem']
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
ElDialog: typeof import('element-plus/es')['ElDialog']
......@@ -34,6 +36,7 @@ declare module 'vue' {
ElRadioButton: typeof import('element-plus/es')['ElRadioButton']
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
ElRow: typeof import('element-plus/es')['ElRow']
ElScrollbar: typeof import('element-plus/es')['ElScrollbar']
ElSelect: typeof import('element-plus/es')['ElSelect']
ElSwitch: typeof import('element-plus/es')['ElSwitch']
ElTable: typeof import('element-plus/es')['ElTable']
......
......@@ -83,6 +83,8 @@ export const dynamicComponentMap: Record<string, LazyComponent> = {
'/MyDownloads': () => import('@/views/MyDownloads.vue'),
'/supply/supplierManagement': () =>
import('@/views/supply/supplierManagement/index.vue'),
'/warehouse/warehouse-rule-setting': () =>
import('@/views/warehouse/warehouseRuleSetting/index.vue'),
}
/** dashboard 是登录后的默认页,保留为静态路由 */
......
<template>
<div class="page card h-100 flex-gap-10 overflow-hidden flex">
<div class="status-container">
<div
class="status-item"
:class="{ 'is-active': currentStatus === 'sharedInventory' }"
@click="handleStatusClick('sharedInventory')"
>
<span>共享库存设置</span>
</div>
</div>
<div class="content-container flex-1 flex-column overflow-hidden">
<div class="search-form">
<ElForm ref="searchFormRef" :model="searchForm" inline>
......@@ -118,7 +108,6 @@ import {
} from '@/types/api/warehouse/warehouseRuleSetting'
import usePageList from '@/utils/hooks/usePageList'
import { useValue } from '@/utils/hooks/useValue'
import { ElDatePicker, ElFormItem } from 'element-plus'
import { useWarehouseRuleSettingTableColumns } from './hooks/useWarehouseRuleSettingTableColumns'
import EditFormDialog from './components/EditDialog.vue'
import { WarehouseListData } from '@/types'
......@@ -136,13 +125,9 @@ const handleReset = () => {
dateRange.value = []
search()
}
const currentStatus = ref('sharedInventory')
const editDialogVisible = ref(false)
const editFormRef = ref()
const warehouseList = ref<WarehouseListData[]>([])
const handleStatusClick = (status: string) => {
currentStatus.value = status
}
const {
loading,
......@@ -266,24 +251,6 @@ onMounted(async () => {
})
</script>
<style scoped lang="scss">
.status-container {
width: 160px;
.status-item {
font-size: 14px;
line-height: 30px;
height: 30px;
cursor: pointer;
padding-left: 18px;
&:hover {
background-color: #f5f7fa;
}
&.is-active {
background-color: #ecf5ff;
color: #409eff;
font-weight: 500;
}
}
}
.table-wrapper {
flex: 1;
overflow: hidden;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment