From b8a587fd00f77209f00c3fa1b278f3583011f233 Mon Sep 17 00:00:00 2001
From: JiangQiming <291854119@qq.com>
Date: Fri, 24 Mar 2023 16:31:24 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20bug#10540=E3=80=8110885=E3=80=8110818?=
=?UTF-8?q?=E3=80=8110566=E3=80=8110418?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Detail/Function/components/Simple.vue | 31 ++++++-------------
src/views/media/Device/Channel/Live/index.vue | 9 +++++-
src/views/system/Relationship/index.vue | 3 ++
3 files changed, 20 insertions(+), 23 deletions(-)
diff --git a/src/views/device/Instance/Detail/Function/components/Simple.vue b/src/views/device/Instance/Detail/Function/components/Simple.vue
index 93f4cd82..fb0f2247 100644
--- a/src/views/device/Instance/Detail/Function/components/Simple.vue
+++ b/src/views/device/Instance/Detail/Function/components/Simple.vue
@@ -61,26 +61,10 @@
"
:itemType="record.type"
:options="
- record.type === 'enum'
- ? (
- record?.options
- ?.elements || []
- ).map((item:any) => ({
- label: item.text,
- value: item.value,
- }))
- : record.type === 'boolean'
- ? [
- {
- label: '是',
- value: true,
- },
- {
- label: '否',
- value: false,
- },
- ]
- : undefined
+ (record?.options || []).map((item:any) => ({
+ label: item.text,
+ value: item.value,
+ }))
"
/>
@@ -107,7 +91,10 @@
执行结果:
-
+
{{ func.executeResult }}