diff --git a/sgzb-ui/src/views/warehouseManage/machinery/completeParts/component/addCompleteTools.vue b/sgzb-ui/src/views/warehouseManage/machinery/completeParts/component/addCompleteTools.vue index a75b18ec..15b2da4e 100644 --- a/sgzb-ui/src/views/warehouseManage/machinery/completeParts/component/addCompleteTools.vue +++ b/sgzb-ui/src/views/warehouseManage/machinery/completeParts/component/addCompleteTools.vue @@ -57,6 +57,7 @@ + { + if (e.id == id) { + this.deviceName = e.label + throw new Error() + } else { + if (e.children && e.children.length > 0) { + this.recursionGetDeviceName(e.children, id) + } + } + }) + } catch (error) {} + }, }, } diff --git a/sgzb-ui/src/views/warehouseManage/machinery/completeParts/component/config.js b/sgzb-ui/src/views/warehouseManage/machinery/completeParts/component/config.js index 191e66a1..d5861c11 100644 --- a/sgzb-ui/src/views/warehouseManage/machinery/completeParts/component/config.js +++ b/sgzb-ui/src/views/warehouseManage/machinery/completeParts/component/config.js @@ -15,7 +15,7 @@ export const config = { columnsList: [ { t_width: '', t_props: 'wholeTypeName', t_label: '成套设备名称', }, { t_width: '', t_props: 'typeModelName', t_label: '主体设备', }, - { t_width: '', t_props: 'totalNum', t_label: '配套设备种类数量' }, + { t_width: '', t_label: '配套设备种类数量', t_slot: 'totalNum' }, { t_width: '', t_props: 'nickName', t_label: '创建人', }, { t_width: '', t_props: 'createTime', t_label: '创建日期', }, ], diff --git a/sgzb-ui/src/views/warehouseManage/machinery/completeParts/component/home.vue b/sgzb-ui/src/views/warehouseManage/machinery/completeParts/component/home.vue index 2d5fffe5..c2d723b5 100644 --- a/sgzb-ui/src/views/warehouseManage/machinery/completeParts/component/home.vue +++ b/sgzb-ui/src/views/warehouseManage/machinery/completeParts/component/home.vue @@ -17,6 +17,9 @@ > + +