diff --git a/src/views/rms/FurnitureList/RmsFurnitureList.vue b/src/views/rms/FurnitureList/RmsFurnitureList.vue index c318b1c..88f15e4 100644 --- a/src/views/rms/FurnitureList/RmsFurnitureList.vue +++ b/src/views/rms/FurnitureList/RmsFurnitureList.vue @@ -6,7 +6,7 @@ - + @@ -24,14 +24,16 @@
新增 导出 - + 导入 - + - 删除 + 删除 批量操作 @@ -40,22 +42,14 @@
- @@ -106,200 +95,189 @@ \ No newline at end of file diff --git a/src/views/rms/FurnitureList/modules/RmsFurnitureForm.vue b/src/views/rms/FurnitureList/modules/RmsFurnitureForm.vue index d7724cf..fcaec97 100644 --- a/src/views/rms/FurnitureList/modules/RmsFurnitureForm.vue +++ b/src/views/rms/FurnitureList/modules/RmsFurnitureForm.vue @@ -5,57 +5,57 @@ - + - + - + - + - + - + - + - + - + - + - + @@ -65,32 +65,34 @@ - + - - + + - + - + - + - + @@ -101,89 +103,102 @@ \ No newline at end of file diff --git a/src/views/rms/InstrumentList/RmsInstrumentList.vue b/src/views/rms/InstrumentList/RmsInstrumentList.vue index 0285d30..bf6fbed 100644 --- a/src/views/rms/InstrumentList/RmsInstrumentList.vue +++ b/src/views/rms/InstrumentList/RmsInstrumentList.vue @@ -6,7 +6,7 @@ - + @@ -24,14 +24,16 @@
新增 导出 - + 导入 - + - 删除 + 删除 批量操作 @@ -40,22 +42,14 @@
- @@ -106,198 +95,182 @@ \ No newline at end of file diff --git a/src/views/rms/InstrumentList/modules/RmsInstrumentForm.vue b/src/views/rms/InstrumentList/modules/RmsInstrumentForm.vue index 4180d9f..57b56a3 100644 --- a/src/views/rms/InstrumentList/modules/RmsInstrumentForm.vue +++ b/src/views/rms/InstrumentList/modules/RmsInstrumentForm.vue @@ -5,47 +5,47 @@ - + - + - + - + - + - + - + - + - + @@ -55,37 +55,34 @@ - + - + - - + + - + - + - - - - - - + @@ -96,89 +93,102 @@ \ No newline at end of file diff --git a/src/views/rms/LocationList/RmsLocationList.vue b/src/views/rms/LocationList/RmsLocationList.vue index f96d1c6..2c9af5c 100644 --- a/src/views/rms/LocationList/RmsLocationList.vue +++ b/src/views/rms/LocationList/RmsLocationList.vue @@ -72,11 +72,6 @@ export default { align: "center", dataIndex: 'sortNumber' }, - { - title: '父级存放地址', - align: "center", - dataIndex: 'parentLocationId' - }, { title: '操作', dataIndex: 'action', @@ -109,7 +104,7 @@ export default { selectedRowKeys = selectedRowKeys.join(',') console.log(selectedRowKeys) this.queryParam.id = selectedRowKeys - this.loadData() + this.loadData(1) }, modalFormOk() { this.$refs.locationaTree.getTreeData() diff --git a/src/views/rms/LocationList/modules/RmsLocationForm.vue b/src/views/rms/LocationList/modules/RmsLocationForm.vue index 05af09b..6169d70 100644 --- a/src/views/rms/LocationList/modules/RmsLocationForm.vue +++ b/src/views/rms/LocationList/modules/RmsLocationForm.vue @@ -63,7 +63,7 @@ export default { queryById: "/rms/rmsLocation/queryById" }, treeData: [], - getTreeUrl: '/rms/rmsLocation/getCascader' + getTreeUrl: '/rms/rmsLocation/getCascader?type=0' } }, computed: { diff --git a/src/views/rms/components/locationaTree.vue b/src/views/rms/components/locationaTree.vue index b4d52f2..ea644da 100644 --- a/src/views/rms/components/locationaTree.vue +++ b/src/views/rms/components/locationaTree.vue @@ -69,16 +69,16 @@ export default { //回调到父组件 this.$emit('onSelect', childKeys); }, + //只收集本层和下层的key collectChildKeys(node, keys = []) { if (!node) { return keys; } - // 如果节点有children,递归遍历它们 - if (node.children && node.children.length > 0) { - node.children.forEach(child => { + // 如果节点有children,获取其子节点的key + if (node.children) { + for (let child of node.children) { keys.push(child.key); - this.collectChildKeys(child, keys); - }); + } } return keys; },