diff --git a/src/api/kitchen/devices.js b/src/api/kitchen/devices.js index eff06044..187276f4 100644 --- a/src/api/kitchen/devices.js +++ b/src/api/kitchen/devices.js @@ -76,4 +76,73 @@ export function getKitchenDeviceUsageApi(data) { }, params: data }) -} \ No newline at end of file +} + + + +// 查询设备位置列表 +export function getKitchenSubPlaceListApi(data) { + return request({ + url: '/smart-canteen/kitchen_sub_place/list', + method: 'get', + headers: { + "merchant-id":"378915229716713472", + }, + params: data + }) +} + + +// 查询设备位置列表-全量 +export function getKitchenSubPlaceListAllApi(data) { + return request({ + url: '/smart-canteen/kitchen_sub_place/listAll', + method: 'get', + headers: { + "merchant-id":"378915229716713472", + }, + params: data + }) +} + +// 设备新增位置 +export function addKitchenSubPlaceApi(data) { + return request({ + url: '/smart-canteen/kitchen_sub_place', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) +} + +// 修改设备位置 +export function editKitchenSubPlaceApi(data) { + return request({ + url: '/smart-canteen/kitchen_sub_place/edit', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) +} + +// 删除设备位置 +export function delKitchenSubPlaceApi(Id) { + return request({ + url: '/smart-canteen/kitchen_sub_place/del/'+Id, + method: 'post', + headers: { + "merchant-id":"378915229716713472", + } + }) +} + + + + + + + diff --git a/src/views/kitchen/devicesManage/deviesInfo/index.vue b/src/views/kitchen/devicesManage/deviesInfo/index.vue index d1fa777e..fc9e1a32 100644 --- a/src/views/kitchen/devicesManage/deviesInfo/index.vue +++ b/src/views/kitchen/devicesManage/deviesInfo/index.vue @@ -51,7 +51,7 @@ - + diff --git a/src/views/kitchen/staffManage/staff/index.vue b/src/views/kitchen/staffManage/staff/index.vue index 25423502..9e44f0a5 100644 --- a/src/views/kitchen/staffManage/staff/index.vue +++ b/src/views/kitchen/staffManage/staff/index.vue @@ -21,10 +21,10 @@ - - - - + + + + @@ -661,7 +661,7 @@ export default { this.accessAuthorityList[index2].deviceName = this.devicesOptions[index].deviceName; this.accessAuthorityList[index2].deviceType = this.devicesOptions[index].deviceType; this.accessAuthorityList[index2].privilegeValue = 1; - this.accessAuthorityList[index2].location = this.devicesOptions[index].subPlace; + this.accessAuthorityList[index2].location = this.devicesOptions[index].subPlaceName; this.loading2=true this.setDisabled() this.loading2=false