兼容SE3

This commit is contained in:
24kycj
2024-12-26 12:57:33 +08:00
parent 9afb630902
commit ed9a236455
2 changed files with 15 additions and 7 deletions
+10 -3
View File
@@ -359,12 +359,19 @@ const actions = {
// 驱动信息 // 驱动信息
} else if (data.resp_name === 'cd_info') { } else if (data.resp_name === 'cd_info') {
const list = data.resp_info.cd_list const list = data.resp_info.cd_list
let cds = [{}, {}] let cds = []
let isBD = false let isBD = false
for (let i = 0; i < list.length; i++) { for (let i = 0; i < list.length; i++) {
if (list[i].dev_type == 3) isBD = true if (list[i].dev_type == 3) isBD = true
if (list[i].cd_pos == 2) cds[0] = list[i] if (i === 0) {
else cds[1] = list[i] cds.push(list[i])
} else {
if (list[i].cd_pos == 2) {
cds.unshift(list[i])
} else {
cds.push(list[i])
}
}
} }
let types = CDTypes let types = CDTypes
let typeLists = cd_types let typeLists = cd_types
+5 -4
View File
@@ -85,7 +85,7 @@
</el-dropdown> </el-dropdown>
</div> </div>
</div> </div>
<div class="device_info_option"> <div v-if="printer_info.strong_list[1]" class="device_info_option">
<div class="device_info_option_box"> <div class="device_info_option_box">
<img src="@/assets/images/device4.png" /> <img src="@/assets/images/device4.png" />
<div class="device_info_option_cap"> <div class="device_info_option_cap">
@@ -202,8 +202,8 @@
<div class="device_right_top_text">光盘{{ cd_list[0].cd_assid && cd_list[0].copy_scheduler ? cd_list[0].cd_assid : '' }}</div> <div class="device_right_top_text">光盘{{ cd_list[0].cd_assid && cd_list[0].copy_scheduler ? cd_list[0].cd_assid : '' }}</div>
</div> </div>
</div> </div>
<div class="device_right_top_line"></div> <div v-if="cd_list[1]" class="device_right_top_line"></div>
<div class="flex_box flex_row_between device_right_top_item"> <div v-if="cd_list[1]" class="flex_box flex_row_between device_right_top_item">
<div class="device_right_top_img"> <div class="device_right_top_img">
<img v-if="cd_list[1].cd_status == 4 && cd_list[1].cd_type" src="@/assets/images/device3.png" /> <img v-if="cd_list[1].cd_status == 4 && cd_list[1].cd_type" src="@/assets/images/device3.png" />
<img v-else src="@/assets/images/device2.png" /> <img v-else src="@/assets/images/device2.png" />
@@ -577,7 +577,8 @@ export default {
that that
.$prompt('请输入管理员密码并点击确定以执行开启服务操作', '温馨提示', { .$prompt('请输入管理员密码并点击确定以执行开启服务操作', '温馨提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消' cancelButtonText: '取消',
inputType: 'password',
}) })
.then(({ value }) => { .then(({ value }) => {
that.serviceLoading = true that.serviceLoading = true