fix: iot warn
This commit is contained in:
@@ -24,7 +24,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
||||
label: '产品',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: getSimpleProductList,
|
||||
api: () => getSimpleProductList(),
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择产品',
|
||||
|
||||
@@ -210,7 +210,8 @@ function handleOperatorChange() {
|
||||
<!-- 设备状态条件配置 -->
|
||||
<div
|
||||
v-if="
|
||||
condition.type === IotRuleSceneTriggerConditionTypeEnum.DEVICE_STATUS
|
||||
condition.type ===
|
||||
IotRuleSceneTriggerConditionTypeEnum.DEVICE_STATUS.toString()
|
||||
"
|
||||
class="gap-16px flex flex-col"
|
||||
>
|
||||
@@ -222,7 +223,7 @@ function handleOperatorChange() {
|
||||
<Select
|
||||
:model-value="condition.operator"
|
||||
@update:model-value="
|
||||
(value) => updateConditionField('operator', value)
|
||||
(value: any) => updateConditionField('operator', value)
|
||||
"
|
||||
placeholder="请选择操作符"
|
||||
class="w-full"
|
||||
|
||||
@@ -120,7 +120,7 @@ const timeValue2 = computed(() => {
|
||||
* @param value 字段值
|
||||
*/
|
||||
function updateConditionField(field: any, value: any) {
|
||||
condition.value[field] = value;
|
||||
(condition.value as any)[field] = value;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user