|
@@ -912,7 +912,6 @@ export default {
|
|
handleEdit(params) {
|
|
handleEdit(params) {
|
|
this.getRoles({ page_size: 200, page_no: 1, fixedCondition: ' shop_id = -1', sort: ' role_id', dir: 'desc' })
|
|
this.getRoles({ page_size: 200, page_no: 1, fixedCondition: ' shop_id = -1', sort: ' role_id', dir: 'desc' })
|
|
this.getDevices(params.part_id)
|
|
this.getDevices(params.part_id)
|
|
- this.getSosDeviceSetting(params.id)
|
|
|
|
this.deviceTypeChangeToFrameTypeChange(params.device_type)
|
|
this.deviceTypeChangeToFrameTypeChange(params.device_type)
|
|
this.hasRoleId = params.device_type === DEVICE_TYPE.NURSE_WATCH
|
|
this.hasRoleId = params.device_type === DEVICE_TYPE.NURSE_WATCH
|
|
this.hasAudioId = params.device_type === DEVICE_TYPE.SIMULATE_BED_DEVICE ||
|
|
this.hasAudioId = params.device_type === DEVICE_TYPE.SIMULATE_BED_DEVICE ||
|
|
@@ -920,9 +919,14 @@ export default {
|
|
params.device_type === DEVICE_TYPE.SIMULATE_EMERGENCY_BUTTON ||
|
|
params.device_type === DEVICE_TYPE.SIMULATE_EMERGENCY_BUTTON ||
|
|
params.device_type === DEVICE_TYPE.SIMULATE_DOOR_LIGHT
|
|
params.device_type === DEVICE_TYPE.SIMULATE_DOOR_LIGHT
|
|
this.isVitalSigns = params.device_type === DEVICE_TYPE.VITAL_SIGNS_DEVICE
|
|
this.isVitalSigns = params.device_type === DEVICE_TYPE.VITAL_SIGNS_DEVICE
|
|
- this.hasSosDeviceSettings = params.device_type === DEVICE_TYPE.ALARM_BODY_INDUCTIVE ||
|
|
|
|
|
|
+
|
|
|
|
+ if (params.device_type === DEVICE_TYPE.ALARM_BODY_INDUCTIVE ||
|
|
params.device_type === DEVICE_TYPE.DOOR_LOCK ||
|
|
params.device_type === DEVICE_TYPE.DOOR_LOCK ||
|
|
- params.device_type === DEVICE_TYPE.ALARM_RESTRAINT_BAND
|
|
|
|
|
|
+ params.device_type === DEVICE_TYPE.ALARM_RESTRAINT_BAND) {
|
|
|
|
+ this.hasSosDeviceSettings = true
|
|
|
|
+ this.getSosDeviceSetting(params.id)
|
|
|
|
+ }
|
|
|
|
+
|
|
this.isLedDevice = params.device_type === DEVICE_TYPE.LED_SCREEN
|
|
this.isLedDevice = params.device_type === DEVICE_TYPE.LED_SCREEN
|
|
this.deviceModel = {
|
|
this.deviceModel = {
|
|
...params
|
|
...params
|