From 791a300d7a34e3ec9714c6f3a1cbaaeceacb1ab1 Mon Sep 17 00:00:00 2001 From: liyongde <1419499670@qq.com> Date: Fri, 18 Oct 2024 13:43:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9F=BA=E7=A1=80=E5=88=86=E7=B1=BBvue-?= =?UTF-8?q?treeselect=E4=B8=8D=E6=98=BE=E7=A4=BA=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../standard/service/dao/ClassStandard.java | 5 +-- .../service/dto/ClassStandardTrees.java | 1 + .../master/storagevehicleinfo/index.vue | 44 +++++++++---------- 3 files changed, 24 insertions(+), 26 deletions(-) diff --git a/lms/nladmin-system/src/main/java/org/nl/wms/basedata/master/standard/service/dao/ClassStandard.java b/lms/nladmin-system/src/main/java/org/nl/wms/basedata/master/standard/service/dao/ClassStandard.java index 49807de..132af7b 100644 --- a/lms/nladmin-system/src/main/java/org/nl/wms/basedata/master/standard/service/dao/ClassStandard.java +++ b/lms/nladmin-system/src/main/java/org/nl/wms/basedata/master/standard/service/dao/ClassStandard.java @@ -4,14 +4,11 @@ import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; import lombok.Data; import lombok.EqualsAndHashCode; -import java.math.BigDecimal; - /** + * 基础分类实体 * @Author: lyd * @Date: 2024/10/15 */ diff --git a/lms/nladmin-system/src/main/java/org/nl/wms/basedata/master/standard/service/dto/ClassStandardTrees.java b/lms/nladmin-system/src/main/java/org/nl/wms/basedata/master/standard/service/dto/ClassStandardTrees.java index ace001a..9d77acf 100644 --- a/lms/nladmin-system/src/main/java/org/nl/wms/basedata/master/standard/service/dto/ClassStandardTrees.java +++ b/lms/nladmin-system/src/main/java/org/nl/wms/basedata/master/standard/service/dto/ClassStandardTrees.java @@ -11,6 +11,7 @@ import java.io.Serializable; import java.util.List; /** + * vue-tree-select所需要的实体 * @Author: lyd * @Description: vue-tree-select所需要的实体 * @Date: 2023/5/12 diff --git a/lms/nladmin-ui/src/views/wms/basedata/master/storagevehicleinfo/index.vue b/lms/nladmin-ui/src/views/wms/basedata/master/storagevehicleinfo/index.vue index fe96be1..0dde8cd 100644 --- a/lms/nladmin-ui/src/views/wms/basedata/master/storagevehicleinfo/index.vue +++ b/lms/nladmin-ui/src/views/wms/basedata/master/storagevehicleinfo/index.vue @@ -42,7 +42,7 @@ @keyup.enter.native="crud.toQuery" /> - + @@ -68,7 +68,7 @@ width="450px" > - +
- - + + - - + + - - + + @@ -107,17 +107,17 @@ style="width: 100%;" @selection-change="crud.selectionChangeHandler" > - - - - - - + + + + + + - - + + - - + + - + @@ -291,7 +291,7 @@ export default { parent_class_code: 'vehicle_type' } crudClassstandard.getClassType(param).then(res => { - const data = res.content + const data = res this.buildTree(data) this.classes1 = data }) @@ -307,10 +307,10 @@ export default { }) }, // 获取子节点数据 - loadChildNodes({ action, parentNode, callback }) { + loadChildNodes({ action, parentNode, callback }) { // 展开显示子级数据,只需要吧父类底下的子级返回去 if (action === LOAD_CHILDREN_OPTIONS) { crudClassstandard.getClass({ pid: parentNode.id }).then(res => { - parentNode.children = res.content.map(function(obj) { + parentNode.children = res.map(function(obj) { if (obj.hasChildren) { obj.children = null }