From c4bfae66b526d5fbe50c0433341210eb0321c381 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Wed, 03 Sep 2025 11:01:12 +0800
Subject: [PATCH] feat:更新设备调整
---
src/views/device/airport.vue | 19 ++++++++++++++++---
1 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/src/views/device/airport.vue b/src/views/device/airport.vue
index 06ab12d..50f948a 100644
--- a/src/views/device/airport.vue
+++ b/src/views/device/airport.vue
@@ -301,14 +301,15 @@
{
label: '设备类型',
prop: 'domain',
- editDisabled: true,
+ editDisabled: false,
editDisplay: false, //编辑显示
- viewDisplay: true, //查看显示
+ viewDisplay: false, //查看显示
search: false,
slot: true,
searchSpan: 4,
labelWidth: 130,
width: 120,
+ // formatter: (row) => row.domain == 3 ? '机巢' : '无人机'
// rules: [
// {
// required: true,
@@ -316,6 +317,16 @@
// trigger: 'blur',
// },
// ],
+ },
+ {
+ label: '设备类型',
+ prop: 'domainTxt',
+ editDisabled: true,
+ editDisplay: false, //编辑显示
+ viewDisplay: true, //查看显示
+ labelWidth: 130,
+ width: 120,
+ hide: true
},
{
label: '设备型号',
@@ -1334,7 +1345,8 @@
area_code: await this.getFullAreaCode(data.area_code),
area_name: this.form.area_name,
cnmode_code: this.getDockModeText(this.form.mode_code),
- domain: data.domain === 0 ? '无人机' : data.domain === 3 ? '机巢' : '未知',
+ // domain: data.domain === 0 ? '无人机' : data.domain === 3 ? '机巢' : '未知',
+ domainTxt: data.domain === 0 ? '无人机' : data.domain === 3 ? '机巢' : '未知',
cnstatus: this.form.status === false ? '离线' : '在线',
duration_of_insurance: [data?.insure_start_time || '', data?.insure_expired_time || ''],
}
@@ -1377,6 +1389,7 @@
if (e.firmware_status == 4) {
this.connectWebSocket(e)
}
+ e.duration_of_insurance = [e.insure_start_time, e.insure_expired_time]
})
this.data = data.records
this.loading = false
--
Gitblit v1.9.3