Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
SA-WMS
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Ras
SA-WMS
Commits
2753e792
提交
2753e792
authored
5月 18, 2021
作者:
Ras
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
仓库货物报表(在库)新增入库列表筛选功能。
上级
da2d02d1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
17 行增加
和
2 行删除
+17
-2
JEditableTable.vue
src/components/jeecg/JEditableTable.vue
+17
-2
没有找到文件。
src/components/jeecg/JEditableTable.vue
浏览文件 @
2753e792
...
@@ -707,6 +707,13 @@
...
@@ -707,6 +707,13 @@
type
:
Boolean
,
type
:
Boolean
,
default
:
true
default
:
true
},
},
// 是否一直显示编辑框,如果为false则只有点击的时候才出现输入框
compareFields
:
{
type
:
Object
,
default
()
{
return
{}
}
},
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -911,7 +918,7 @@
...
@@ -911,7 +918,7 @@
// 当selectRowIds改变时触发事件
// 当selectRowIds改变时触发事件
selectedRowIds
(
newValue
)
{
selectedRowIds
(
newValue
)
{
this
.
$emit
(
'selectRowChange'
,
cloneObject
(
newValue
).
map
(
i
=>
this
.
getCleanId
(
i
)))
this
.
$emit
(
'selectRowChange'
,
cloneObject
(
newValue
).
map
(
i
=>
this
.
getCleanId
(
i
)))
}
}
,
},
},
mounted
()
{
mounted
()
{
let
vm
=
this
let
vm
=
this
...
@@ -1068,7 +1075,14 @@
...
@@ -1068,7 +1075,14 @@
let
searchSelectValues
=
{
...
this
.
searchSelectValues
}
let
searchSelectValues
=
{
...
this
.
searchSelectValues
}
// 禁用行的id
// 禁用行的id
let
disabledRowIds
=
(
this
.
disabledRowIds
||
[])
let
disabledRowIds
=
(
this
.
disabledRowIds
||
[])
dataSource
.
forEach
((
data
,
newValueIndex
)
=>
{
dataSource
.
forEach
((
data
,
newValueIndex
)
=>
{
//根据件数筛选子表数据
if
(
data
[
this
.
compareFields
.
field1
]
>=
data
[
this
.
compareFields
.
field2
]){
return
;
}
// 不能直接更改数据源的id
// 不能直接更改数据源的id
let
dataId
=
data
.
id
let
dataId
=
data
.
id
// 判断源数据是否带有id
// 判断源数据是否带有id
...
@@ -2706,6 +2720,7 @@
...
@@ -2706,6 +2720,7 @@
return
!!
(
current
&&
current
[
col
.
key
]
===
true
)
return
!!
(
current
&&
current
[
col
.
key
]
===
true
)
},
},
/* ---- 事件监听 ---- */
/* ---- 事件监听 ---- */
// 鼠标弹起事件,用于清空输入状态
// 鼠标弹起事件,用于清空输入状态
...
@@ -2770,7 +2785,7 @@
...
@@ -2770,7 +2785,7 @@
},
},
/* --------------------------- 2020年5月18日 默认span模式 ------------------------------ */
/* --------------------------- 2020年5月18日 默认span模式 ------------------------------ */
},
},
beforeDestroy
()
{
beforeDestroy
()
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论