代码优化

This commit is contained in:
BianLzhaoMin 2024-12-04 10:52:22 +08:00
parent 399b067bdf
commit 2de641d81d
7 changed files with 1500 additions and 20 deletions

11
components.d.ts vendored
View File

@ -8,22 +8,15 @@ export {}
declare module 'vue' { declare module 'vue' {
export interface GlobalComponents { export interface GlobalComponents {
Breadcrumb: typeof import('./src/components/Breadcrumb/index.vue')['default'] Breadcrumb: typeof import('./src/components/Breadcrumb/index.vue')['default']
ElBadge: typeof import('element-plus/es')['ElBadge']
ElBreadcrumb: typeof import('element-plus/es')['ElBreadcrumb']
ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem']
ElButton: typeof import('element-plus/es')['ElButton'] ElButton: typeof import('element-plus/es')['ElButton']
ElCarousel: typeof import('element-plus/es')['ElCarousel']
ElCarouselItem: typeof import('element-plus/es')['ElCarouselItem']
ElCascader: typeof import('element-plus/es')['ElCascader'] ElCascader: typeof import('element-plus/es')['ElCascader']
ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
ElCol: typeof import('element-plus/es')['ElCol'] ElCol: typeof import('element-plus/es')['ElCol']
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
ElDatePicker: typeof import('element-plus/es')['ElDatePicker'] ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
ElDialog: typeof import('element-plus/es')['ElDialog'] ElDialog: typeof import('element-plus/es')['ElDialog']
ElEmpty: typeof import('element-plus/es')['ElEmpty'] ElEmpty: typeof import('element-plus/es')['ElEmpty']
ElForm: typeof import('element-plus/es')['ElForm'] ElForm: typeof import('element-plus/es')['ElForm']
ElFormItem: typeof import('element-plus/es')['ElFormItem'] ElFormItem: typeof import('element-plus/es')['ElFormItem']
ElHeader: typeof import('element-plus/es')['ElHeader']
ElIcon: typeof import('element-plus/es')['ElIcon'] ElIcon: typeof import('element-plus/es')['ElIcon']
ElImage: typeof import('element-plus/es')['ElImage'] ElImage: typeof import('element-plus/es')['ElImage']
ElInput: typeof import('element-plus/es')['ElInput'] ElInput: typeof import('element-plus/es')['ElInput']
@ -34,12 +27,8 @@ declare module 'vue' {
ElPagination: typeof import('element-plus/es')['ElPagination'] ElPagination: typeof import('element-plus/es')['ElPagination']
ElPopconfirm: typeof import('element-plus/es')['ElPopconfirm'] ElPopconfirm: typeof import('element-plus/es')['ElPopconfirm']
ElProgress: typeof import('element-plus/es')['ElProgress'] ElProgress: typeof import('element-plus/es')['ElProgress']
ElRadioButton: typeof import('element-plus/es')['ElRadioButton']
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
ElRow: typeof import('element-plus/es')['ElRow'] ElRow: typeof import('element-plus/es')['ElRow']
ElSelect: typeof import('element-plus/es')['ElSelect'] ElSelect: typeof import('element-plus/es')['ElSelect']
ElStep: typeof import('element-plus/es')['ElStep']
ElSteps: typeof import('element-plus/es')['ElSteps']
ElTable: typeof import('element-plus/es')['ElTable'] ElTable: typeof import('element-plus/es')['ElTable']
ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
ElTag: typeof import('element-plus/es')['ElTag'] ElTag: typeof import('element-plus/es')['ElTag']

4
env/.env.dev vendored
View File

@ -7,9 +7,9 @@ VITE_API_URL = '/proxyApi'
# 开发环境接口地址 # 开发环境接口地址
# VITE_proxyTarget = 'http://10.40.92.74:8080' #盛旭 # VITE_proxyTarget = 'http://10.40.92.74:8080' #盛旭
# VITE_proxyTarget = 'http://192.168.2.246:28080' # 马帅 VITE_proxyTarget = 'http://192.168.2.246:28080' # 马帅
# VITE_proxyTarget = 'http://192.168.2.123:28080' # 梁超 # VITE_proxyTarget = 'http://192.168.2.123:28080' # 梁超
VITE_proxyTarget = 'http://192.168.0.244:28580' # 测试服务 # VITE_proxyTarget = 'http://192.168.0.244:28580' # 测试服务
# VITE_proxyTarget = 'http://192.168.2.129:18080' # 马帅 # VITE_proxyTarget = 'http://192.168.2.129:18080' # 马帅
# VITE_proxyTarget = 'http://10.40.92.185:9206' # 赵福海 ( 设备类型) # VITE_proxyTarget = 'http://10.40.92.185:9206' # 赵福海 ( 设备类型)

BIN
src/assets/img/empty_bg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

View File

@ -851,7 +851,7 @@ const handleRemove = (list: any, index: Number) => {
</el-table-column> </el-table-column>
<el-table-column prop="name" label="操作" min-width="160px" align="center"> <el-table-column prop="name" label="操作" min-width="160px" align="center">
<template #default="{ row }"> <template #default="{ row }">
<el-button size="small" @click="previewRowInfo(row)">查看</el-button> <el-button type="primary" size="small" @click="previewRowInfo(row)">查看</el-button>
<el-button <el-button
v-if="row.maStatus == 0 || row.maStatus == 1" v-if="row.maStatus == 0 || row.maStatus == 1"
size="small" size="small"
@ -862,16 +862,16 @@ const handleRemove = (list: any, index: Number) => {
</el-button> </el-button>
<el-button <el-button
v-if="row.maStatus == 2" v-if="row.maStatus == 2"
size="mini" size="small"
type="warning" type="primary"
@click="handleUpdateUpDown(row, 1)" @click="handleUpdateUpDown(row, 1)"
> >
下架 下架
</el-button> </el-button>
<el-button <el-button
v-if="row.maStatus == 1" v-if="row.maStatus == 1"
size="mini" size="small"
type="warning" type="primary"
@click="handleUpdateUpDown(row, 2)" @click="handleUpdateUpDown(row, 2)"
> >
上架 上架

File diff suppressed because it is too large Load Diff

View File

@ -740,7 +740,7 @@ const confirmFail = async (index: number) => {
</div> </div>
</template> </template>
<el-empty v-else description="暂无数据" /> <el-empty v-else />
<PagingComponent <PagingComponent
v-if="total > 0" v-if="total > 0"
@getList="getList" @getList="getList"
@ -1144,4 +1144,12 @@ const confirmFail = async (index: number) => {
margin-right: 6px; margin-right: 6px;
width: 95%; width: 95%;
} }
.empty-container {
background: url('@/assets/img/empty_bg.png') no-repeat;
width: 300px;
height: 60px !important;
background-color: skyblue;
z-index: 9999;
}
</style> </style>

View File

@ -954,7 +954,7 @@ const handleViewWord = () => {
</div> </div>
</template> </template>
<el-empty v-else description="暂无数据" /> <el-empty v-else />
<PagingComponent <PagingComponent
v-if="total > 0" v-if="total > 0"
@getList="getList" @getList="getList"