Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
M
mini-wms
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
周海峰
mini-wms
Commits
02e541a7
Commit
02e541a7
authored
Dec 08, 2025
by
zhangtw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
物料表及组件点击分类树节点不刷表bug
parent
23d827ff
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
10 行增加
和
20 行删除
+10
-20
ruoyi-admin-vue/src/views/inventory/materials/index.vue
+10
-20
没有找到文件。
ruoyi-admin-vue/src/views/inventory/materials/index.vue
View file @
02e541a7
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
:default-expand-all=
"true"
:default-expand-all=
"true"
:highlight-current=
"true"
:highlight-current=
"true"
:loading=
"loadingTree"
:loading=
"loadingTree"
@
selected-change=
"handleCategoryChange
"
@
node-click=
"handleTreeClick
"
>
>
<!-- 自定义节点内容插槽 -->
<!-- 自定义节点内容插槽 -->
<
template
#
node-content=
"{ node, data }"
>
<
template
#
node-content=
"{ node, data }"
>
...
@@ -548,26 +548,16 @@ export default {
...
@@ -548,26 +548,16 @@ export default {
return
result
return
result
},
},
/** 处理
分类选择变化
*/
/** 处理
树节点点击
*/
handle
CategoryChange
(
selectedD
ata
)
{
handle
TreeClick
(
d
ata
)
{
console
.
log
(
'
选择分类变化:'
,
selectedD
ata
)
console
.
log
(
'
点击树节点:'
,
d
ata
)
this
.
selectedCategories
=
selectedData
;
this
.
currentNodeId
=
data
.
sid
// 更新查询参数,按选中的分类筛选物料
// 更新查询参数,按选中的分类筛选物料
if
(
selectedData
.
length
>
0
)
{
this
.
queryParams
.
categoryCode
=
data
.
categoryCode
// 获取所有选中分类的编码
this
.
queryParams
.
categoryNameInput
=
null
// 清空名称输入
this
.
queryParams
.
categoryCodes
=
selectedData
.
map
(
item
=>
item
.
categoryCode
);
this
.
queryParams
.
pageNum
=
1
// 清空单个分类编码和名称输入
this
.
getList
()
this
.
queryParams
.
categoryCode
=
null
;
this
.
queryParams
.
categoryNameInput
=
null
;
}
else
{
// 未选中任何分类,清空所有分类相关参数
this
.
queryParams
.
categoryCodes
=
[];
this
.
queryParams
.
categoryCode
=
null
;
}
this
.
queryParams
.
pageNum
=
1
;
this
.
getList
();
},
},
/** 查询物料列表 */
/** 查询物料列表 */
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论