diff --git a/src/api/storeManage/deviceManage/mac.js b/src/api/storeManage/deviceManage/mac.js index c2a2e5f..4649b05 100644 --- a/src/api/storeManage/deviceManage/mac.js +++ b/src/api/storeManage/deviceManage/mac.js @@ -2,7 +2,7 @@ import request from '@/utils/request' export function getMac() { return request({ - url: 'api/mac/get', + url: 'api/RFID/getDeviceMac', method: 'get' }) } diff --git a/src/views/archivesManage/outInStorage/inStorage/module/inDialog.vue b/src/views/archivesManage/outInStorage/inStorage/module/inDialog.vue index 7dcd5e3..4449cbb 100644 --- a/src/views/archivesManage/outInStorage/inStorage/module/inDialog.vue +++ b/src/views/archivesManage/outInStorage/inStorage/module/inDialog.vue @@ -143,14 +143,6 @@ export default { singleVisible: false, childData: [], cnName: '', - defaultProps: { children: 'children', label: 'cnName' }, - treeData: [{ - cnName: '档案库', - children: [ - { cnName: '密集架' }, - { cnName: '回转柜' } - ] - }], fieldNum: 1, // 柜号 btnChecked: [], // 校验状态 numArr: [], // 选择器 值 @@ -172,7 +164,7 @@ export default { methods: { // 选中设备 handleNodeClick(data) { - this.cnName = data.cnName + this.cnName = data.deviceTypeId.name console.log(data) // 按钮状态 this.btnChecked = this.childArr(1) diff --git a/src/views/components/DeviceTree.vue b/src/views/components/DeviceTree.vue index 129e91d..50b96e7 100644 --- a/src/views/components/DeviceTree.vue +++ b/src/views/components/DeviceTree.vue @@ -63,7 +63,9 @@ export default { }) }, handleNodeClick(selectedData) { - this.$emit('nodeClick', selectedData) + if (selectedData.deviceName) { + this.$emit('nodeClick', selectedData) + } } } } diff --git a/src/views/storeManage/levelManage/index.vue b/src/views/storeManage/levelManage/index.vue index f206a4a..bdbb7f8 100644 --- a/src/views/storeManage/levelManage/index.vue +++ b/src/views/storeManage/levelManage/index.vue @@ -42,7 +42,7 @@ - + {{ scope.row.update_time | parseTime }}