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 }}
@@ -192,7 +179,7 @@ const newFunctions = computed(() => { executeResult: '', }); }); - // console.log('newFunctions: ', result) + // console.log('newFunctions: ', result); return result; }); diff --git a/src/views/media/Device/Channel/Live/index.vue b/src/views/media/Device/Channel/Live/index.vue index 6874d884..6acc86c1 100644 --- a/src/views/media/Device/Channel/Live/index.vue +++ b/src/views/media/Device/Channel/Live/index.vue @@ -25,7 +25,14 @@
刷新
-
重置
+
+ + 重置 + +