diff --git a/src/api/system/device.js b/src/api/system/device.js index 3a7dfa3..bb4b346 100644 --- a/src/api/system/device.js +++ b/src/api/system/device.js @@ -92,3 +92,23 @@ export function resetDevice(deviceId) { method: 'put' }) } + +// 批量修改型号 +export function batchUpdateModel(deviceIds, modelId) { + return request({ + url: `/system/device/batchUpdateModel`, + method: 'put', + data: { + deviceIds, + modelId + } + }) +} + +// 设备开关 +export function switchDevice(deviceId, open) { + return request({ + url: `/system/device/${deviceId}/switch?open=${open}`, + method: 'put' + }) +} diff --git a/src/components/Business/Model/modelDialog.vue b/src/components/Business/Model/modelDialog.vue index 1cb26c0..c1947f1 100644 --- a/src/components/Business/Model/modelDialog.vue +++ b/src/components/Business/Model/modelDialog.vue @@ -2,7 +2,7 @@ diff --git a/src/views/ss/store/index.vue b/src/views/ss/store/index.vue index b9c99f4..7354ea9 100644 --- a/src/views/ss/store/index.vue +++ b/src/views/ss/store/index.vue @@ -134,12 +134,15 @@ - - - + + + + + + @@ -342,7 +345,8 @@ export default { createBy: null, updateTime: null, updateBy: null, - deleted: null + deleted: null, + show: true }; this.resetForm("form"); }, diff --git a/src/views/ss/suit/index.vue b/src/views/ss/suit/index.vue index a7d7b79..515611a 100644 --- a/src/views/ss/suit/index.vue +++ b/src/views/ss/suit/index.vue @@ -92,6 +92,7 @@ +