优化bug

This commit is contained in:
24kycj
2025-03-18 15:07:29 +08:00
parent b1a711a5ab
commit 16eb5bfa33
3 changed files with 164 additions and 13 deletions
+102 -3
View File
@@ -35,7 +35,10 @@
</div>
<div class="top_left_line"></div>
</div>
<user-info></user-info>
<div class="flex_box">
<div v-if="printer_info.test_use" class="top_tip">您的试用期还剩{{printer_info.test_use}}请及时续费</div>
<user-info></user-info>
</div>
</div>
<div class="content_body">
<!-- 设备 -->
@@ -43,8 +46,8 @@
<!-- 左侧 -->
<div class="device_left">
<div class="flex_box device_left_top">
<img v-if="!printer_info.cover_flag" class="flex_shrink device_img" :src="deviceImg[printer_info.printer_name].img1" />
<img v-else class="flex_shrink device_img" :src="deviceImg[printer_info.printer_name].img2" />
<img v-if="!printer_info.cover_flag" class="flex_shrink device_img" :src="printer_info.printer_name?deviceImg[printer_info.printer_name].img1:deviceImg['4200'].img1" />
<img v-else class="flex_shrink device_img" :src="printer_info.printer_name?deviceImg[printer_info.printer_name].img2:deviceImg['4200'].img2" />
<div class="flex_box flex_row_between device_info">
<div class="device_info_box">
<div class="device_info_main" :class="{ device_info_main1: infoStatus === 1 }">
@@ -483,6 +486,49 @@ export default {
}
this.default_cd = data.strongList
this.printer_info = { ...data }
if (val.printer_name && val.printer_name === 'SE3') {
this.runList = [
{
value: 1,
label: '重启设备'
},
{
value: 2,
label: '清除错误'
},
{
value: 5,
label: '自动匹配光驱'
},
{
value: 7,
label: '进入运输模式'
}
]
} else {
this.runList = [
{
value: 1,
label: '重启设备'
},
{
value: 2,
label: '清除错误'
},
{
value: 5,
label: '自动匹配光驱'
},
{
value: 6,
label: '设置盘仓'
},
{
value: 7,
label: '进入运输模式'
}
]
}
if (this.printer_info.is_set_cddev == 1) {
if (this.is_set_cddev) return
this.is_set_cddev = true
@@ -849,11 +895,60 @@ export default {
that.changeCD.req_info.strong_list[type - 1].strong_type = parseInt(e)
},
sureCD() {
if (that.changeCD.req_info.strong_list[0]&&that.changeCD.req_info.strong_list[1]&&that.changeCD.req_info.strong_list[0].strong_type == that.changeCD.req_info.strong_list[1].strong_type) {
that.$message({
message: '盘仓类型不能相同',
type: 'warning'
})
return
}
that.$store
.dispatch('chat/websocketsend', that.changeCD)
.then(() => {
clearTimeout(outTimer)
that.currentRunVal = 0
let typeLists = [
{
value: 1,
label: 'CD 700MB',
size: 700 * 1024 * 1024
},
{
value: 2,
label: 'DVD 4.7GB',
size: 4.7 * 1024 * 1024 * 1024
},
{
value: 3,
label: 'DVD_DL 8.5GB',
size: 8.5 * 1024 * 1024 * 1024
},
{
value: 4,
label: 'BD 25GB',
size: 25 * 1024 * 1024 * 1024
},
{
value: 5,
label: 'BD_DL 50GB',
size: 50 * 1024 * 1024 * 1024
},
{
value: 6,
label: 'BD_TL 100GB',
size: 100 * 1024 * 1024 * 1024
},
{
value: 7,
label: 'BD_QL 128GB',
size: 128 * 1024 * 1024 * 1024
}
]
let isBD = that.changeCD.req_info.strong_list.findIndex(item => parseInt(item.strong_type) > 3)
if (isBD === -1) {
typeLists = typeLists.slice(0, 3)
}
that.$store.dispatch('chat/setDatas', { name: 'cd_types', data: typeLists })
})
.catch(() => {
clearTimeout(outTimer)
@@ -1102,6 +1197,10 @@ $red: #ff0000;
}
}
}
.top_tip {
font-size: 14px;
color: #ff0000;
}
}
.content_body {
background-color: #f8f8f8;