|
@ -4,6 +4,8 @@ import { sendCmd, syncSendCmd } from 'apis/system' |
|
|
import BtButton from 'components/common/BTButton/index.vue' |
|
|
import BtButton from 'components/common/BTButton/index.vue' |
|
|
import CascadingSelectModal from 'components/common/CascadingSelectModal/index.vue' |
|
|
import CascadingSelectModal from 'components/common/CascadingSelectModal/index.vue' |
|
|
import Config from 'components/home/config.vue' |
|
|
import Config from 'components/home/config.vue' |
|
|
|
|
|
import { getDeviceStatus } from 'libs/deviceComm' |
|
|
|
|
|
import { FtMessageBox } from 'libs/messageBox' |
|
|
import { compareJSON } from 'libs/utils' |
|
|
import { compareJSON } from 'libs/utils' |
|
|
import { cloneDeep } from 'lodash' |
|
|
import { cloneDeep } from 'lodash' |
|
|
import { computed, onMounted, provide, ref, watchEffect } from 'vue' |
|
|
import { computed, onMounted, provide, ref, watchEffect } from 'vue' |
|
@ -158,6 +160,12 @@ const setRealtimeConfig = async (key: string, val: string) => { |
|
|
* @desc 初始化压力类型和强度选项 |
|
|
* @desc 初始化压力类型和强度选项 |
|
|
*/ |
|
|
*/ |
|
|
const onSetPressure = () => { |
|
|
const onSetPressure = () => { |
|
|
|
|
|
// 校验设备状态 |
|
|
|
|
|
const statusName = getDeviceStatus() |
|
|
|
|
|
if (statusName) { |
|
|
|
|
|
FtMessageBox.error(statusName) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
const pressureVal = pressureConfig.value |
|
|
const pressureVal = pressureConfig.value |
|
|
const { typeDisplayNames, types, intensitys } = pressureVal || {} |
|
|
const { typeDisplayNames, types, intensitys } = pressureVal || {} |
|
|
|
|
|
|
|
|