diff --git a/src/components/formula/FormulaConfig.vue b/src/components/formula/FormulaConfig.vue
index b0ddf46..775785d 100644
--- a/src/components/formula/FormulaConfig.vue
+++ b/src/components/formula/FormulaConfig.vue
@@ -1,6 +1,7 @@
@@ -247,14 +254,24 @@ const validateName = (rule: any, value: any, callback: any) => {
]"
>
-
+
{{ labelUnitMap[item.setting_id] }}
-
+
{{ labelUnitMap[item.setting_id] }}
diff --git a/src/components/formula/HomeFormulaConfig.vue b/src/components/formula/HomeFormulaConfig.vue
index a579b74..047ae98 100644
--- a/src/components/formula/HomeFormulaConfig.vue
+++ b/src/components/formula/HomeFormulaConfig.vue
@@ -1,6 +1,7 @@
@@ -59,7 +66,8 @@ const size = 'default'
import { cloneDeep } from 'lodash'
-import { ref, watchEffect } from 'vue'
+import { useDeviceStore } from 'stores/deviceStore'
+import { computed, ref, watchEffect } from 'vue'
import { FtMessage } from '@/libs/message'
import { compareJSON, convertValuesToString } from '@/libs/utils'
@@ -77,6 +78,12 @@ const validatePass = (rule: any, value: any, callback: any, config: Formula.Form
}
callback()
}
+
+const deviceType = computed(() => {
+ return __DEVICE_TYPE__
+})
+
+const deviceStore = useDeviceStore()
@@ -113,6 +120,7 @@ const validatePass = (rule: any, value: any, callback: any, config: Formula.Form