diff --git a/apps/web-antd/src/views/iot/rule/scene/form/configs/DeviceTriggerConfig.vue b/apps/web-antd/src/views/iot/rule/scene/form/configs/DeviceTriggerConfig.vue index f03e05d35..ff43820bd 100644 --- a/apps/web-antd/src/views/iot/rule/scene/form/configs/DeviceTriggerConfig.vue +++ b/apps/web-antd/src/views/iot/rule/scene/form/configs/DeviceTriggerConfig.vue @@ -161,11 +161,11 @@ function removeConditionGroup() { @click="addSubGroup" :disabled="(trigger.conditionGroups?.length || 0) >= maxSubGroups" > - + 添加子条件组 @@ -215,7 +215,7 @@ function removeConditionGroup() { @click="removeSubGroup(subGroupIndex)" class="hover:bg-red-50" > - + 删除组 @@ -258,7 +258,7 @@ function removeConditionGroup() { class="p-24px rounded-8px border-2 border-dashed border-orange-200 bg-orange-50 text-center" >
- +

暂无子条件组

点击上方"添加子条件组"按钮开始配置

diff --git a/apps/web-antd/src/views/iot/rule/scene/form/configs/SubConditionGroupConfig.vue b/apps/web-antd/src/views/iot/rule/scene/form/configs/SubConditionGroupConfig.vue index 9494408a1..09a6ede5f 100644 --- a/apps/web-antd/src/views/iot/rule/scene/form/configs/SubConditionGroupConfig.vue +++ b/apps/web-antd/src/views/iot/rule/scene/form/configs/SubConditionGroupConfig.vue @@ -136,7 +136,7 @@ function updateCondition(index: number, condition: TriggerCondition) { v-if="subGroup!.length > 1" class="hover:bg-red-50" > - +
diff --git a/apps/web-antd/src/views/iot/rule/scene/form/sections/ActionSection.vue b/apps/web-antd/src/views/iot/rule/scene/form/sections/ActionSection.vue index f8dfa3b5d..baeda4d13 100644 --- a/apps/web-antd/src/views/iot/rule/scene/form/sections/ActionSection.vue +++ b/apps/web-antd/src/views/iot/rule/scene/form/sections/ActionSection.vue @@ -100,7 +100,7 @@ function removeAction(index: number) { * @param type 执行器类型 */ function updateActionType(index: number, type: number) { - actions.value[index].type = type.toString(); + actions.value[index]!.type = type.toString(); onActionTypeChange(actions.value[index] as Action, type); } @@ -119,7 +119,7 @@ function updateAction(index: number, action: Action) { * @param alertConfigId 告警配置ID */ function updateActionAlertConfig(index: number, alertConfigId?: number) { - actions.value[index].alertConfigId = alertConfigId; + actions.value[index]!.alertConfigId = alertConfigId; if (actions.value[index]) { actions.value[index].alertConfigId = alertConfigId; } @@ -220,7 +220,7 @@ function onActionTypeChange(action: Action, type: any) { @click="removeAction(index)" class="hover:bg-red-50" > - + 删除
diff --git a/apps/web-antd/src/views/iot/rule/scene/form/sections/TriggerSection.vue b/apps/web-antd/src/views/iot/rule/scene/form/sections/TriggerSection.vue index 4f938f54a..0b63019b5 100644 --- a/apps/web-antd/src/views/iot/rule/scene/form/sections/TriggerSection.vue +++ b/apps/web-antd/src/views/iot/rule/scene/form/sections/TriggerSection.vue @@ -71,7 +71,7 @@ function removeTrigger(index: number) { * @param type 触发器类型 */ function updateTriggerType(index: number, type: number) { - triggers.value[index].type = type; + triggers.value[index]!.type = type.toString(); onTriggerTypeChange(index, type); } @@ -90,7 +90,7 @@ function updateTriggerDeviceConfig(index: number, newTrigger: Trigger) { * @param cronExpression CRON 表达式 */ function updateTriggerCronConfig(index: number, cronExpression?: string) { - triggers.value[index].cronExpression = cronExpression; + triggers.value[index]!.cronExpression = cronExpression; } /** @@ -99,7 +99,7 @@ function updateTriggerCronConfig(index: number, cronExpression?: string) { * @param _ 触发器类型(未使用) */ function onTriggerTypeChange(index: number, _: number) { - const triggerItem = triggers.value[index]; + const triggerItem = triggers.value[index]!; triggerItem.productId = undefined; triggerItem.deviceId = undefined; triggerItem.identifier = undefined; @@ -127,7 +127,7 @@ onMounted(() => { {{ triggers.length }} 个触发器 @@ -173,7 +173,7 @@ onMounted(() => { @click="removeTrigger(index)" class="hover:bg-red-50" > - + 删除 @@ -203,7 +203,10 @@ onMounted(() => {
- + 定时触发配置 diff --git a/apps/web-antd/src/views/mall/home/modules/shortcut-card.vue b/apps/web-antd/src/views/mall/home/modules/shortcut-card.vue index ea3fb3a33..6780fd759 100644 --- a/apps/web-antd/src/views/mall/home/modules/shortcut-card.vue +++ b/apps/web-antd/src/views/mall/home/modules/shortcut-card.vue @@ -14,7 +14,7 @@ const router = useRouter(); const menuList = [ { name: '用户管理', - icon: 'ep:user-filled', + icon: 'lucide:user', bgColor: 'bg-red-400', routerName: 'MemberUser', }, @@ -26,7 +26,7 @@ const menuList = [ }, { name: '订单管理', - icon: 'ep:list', + icon: 'lucide:list', bgColor: 'bg-yellow-500', routerName: 'TradeOrder', }, @@ -44,13 +44,13 @@ const menuList = [ }, { name: '优惠券', - icon: 'ep:ticket', + icon: 'lucide:ticket', bgColor: 'bg-blue-500', routerName: 'PromotionCoupon', }, { name: '拼团活动', - icon: 'fa:group', + icon: 'lucide:users', bgColor: 'bg-purple-500', routerName: 'PromotionBargainActivity', },