|
|
@ -1,6 +1,7 @@ |
|
|
|
<script lang="ts" setup> |
|
|
|
import { cloneDeep } from 'lodash' |
|
|
|
import { inject, onMounted, ref, watchEffect } from 'vue' |
|
|
|
import { useDeviceStore } from 'stores/deviceStore' |
|
|
|
import { computed, inject, onMounted, ref, watchEffect } from 'vue' |
|
|
|
|
|
|
|
import { convertValuesToString } from '@/libs/utils' |
|
|
|
import { useFormulaStore } from '@/stores/formulaStore' |
|
|
@ -40,6 +41,12 @@ watchEffect(() => { |
|
|
|
*/ |
|
|
|
const formulaConfigList = formulaStore.formulaConfigList |
|
|
|
const size = 'default' |
|
|
|
|
|
|
|
const deviceType = computed(() => { |
|
|
|
return __DEVICE_TYPE__ |
|
|
|
}) |
|
|
|
|
|
|
|
const deviceStore = useDeviceStore() |
|
|
|
</script> |
|
|
|
|
|
|
|
<template> |
|
|
@ -59,7 +66,8 @@ const size = 'default' |
|
|
|
<el-form-item :label="item.name_ch" :prop="item.setting_id"> |
|
|
|
<template v-if="item.val_type === 'int'"> |
|
|
|
<ft-input |
|
|
|
v-model.number="formData[item.setting_id]" |
|
|
|
v-model="formData[item.setting_id]" |
|
|
|
:type="deviceType === deviceStore.deviceTypeMap.LargeSpaceDM_B ? 'number' : 'default'" |
|
|
|
style="width: 100%" |
|
|
|
:name="item.setting_id" |
|
|
|
:controls="false" |
|
|
@ -71,7 +79,8 @@ const size = 'default' |
|
|
|
</template> |
|
|
|
<template v-if="item.val_type === 'float'"> |
|
|
|
<ft-input |
|
|
|
v-model.number="formData[item.setting_id]" |
|
|
|
v-model="formData[item.setting_id]" |
|
|
|
:type="deviceType === deviceStore.deviceTypeMap.LargeSpaceDM_B ? 'number' : 'default'" |
|
|
|
style="width: 100%" |
|
|
|
:name="item.setting_id" |
|
|
|
:controls="false" |
|
|
@ -83,7 +92,8 @@ const size = 'default' |
|
|
|
</template> |
|
|
|
<template v-else-if="item.val_type === 'enum'"> |
|
|
|
<ft-input |
|
|
|
v-model.number="formData[item.setting_id]" |
|
|
|
v-model="formData[item.setting_id]" |
|
|
|
:type="deviceType === deviceStore.deviceTypeMap.LargeSpaceDM_B ? 'number' : 'default'" |
|
|
|
style="width: 100%" |
|
|
|
:name="item.setting_id" |
|
|
|
:controls="false" |
|
|
|