切换导航条
此项目
正在载入...
登录
何书鹏
/
recruit
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
Karson
7 years ago
提交
2f2c003f65ceb6878bdbc39ea58a31dd79ecc8b9
1 个父辈
0e41ecf6
修复commonsearch在多表格下datetimerange可能出现的BUG
新增Table.api.getrowdata通过行索引获取行数据
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
16 行增加
和
4 行删除
public/assets/js/bootstrap-table-commonsearch.js
public/assets/js/require-backend.min.js
public/assets/js/require-table.js
public/assets/js/bootstrap-table-commonsearch.js
查看文件 @
2f2c003
...
...
@@ -73,7 +73,7 @@
};
var
column
,
index
;
require
([
'bootstrap-daterangepicker'
],
function
()
{
$
(
".datetimerange"
).
each
(
function
()
{
$
(
".datetimerange"
,
form
).
each
(
function
()
{
$
(
this
).
on
(
'apply.daterangepicker'
,
function
(
ev
,
picker
)
{
callback
.
call
(
picker
,
picker
.
startDate
,
picker
.
endDate
);
});
...
...
public/assets/js/require-backend.min.js
查看文件 @
2f2c003
...
...
@@ -9126,7 +9126,7 @@ return d.keepInvalid=a,l},l.datepickerInput=function(a){if(0===arguments.length)
};
var
column
,
index
;
require
([
'bootstrap-daterangepicker'
],
function
()
{
$
(
".datetimerange"
).
each
(
function
()
{
$
(
".datetimerange"
,
form
).
each
(
function
()
{
$
(
this
).
on
(
'apply.daterangepicker'
,
function
(
ev
,
picker
)
{
callback
.
call
(
picker
,
picker
.
startDate
,
picker
.
endDate
);
});
...
...
@@ -10007,7 +10007,7 @@ define('table',['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstr
title
=
j
.
title
?
j
.
title
:
text
;
confirm
=
j
.
confirm
?
'data-confirm="'
+
j
.
confirm
+
'"'
:
''
;
extend
=
j
.
extend
?
j
.
extend
:
''
;
html
.
push
(
'<a href="'
+
url
+
'" class="'
+
classname
+
'" '
+
(
confirm
?
confirm
+
' '
:
''
)
+
extend
+
' title="'
+
title
+
'" data-table-id="'
+
(
table
?
table
.
attr
(
"id"
)
:
''
)
+
'" data-column-index="'
+
columnIndex
+
'" data-button-index="'
+
i
+
'"><i class="'
+
icon
+
'"></i>'
+
(
text
?
' '
+
text
:
''
)
+
'</a>'
);
html
.
push
(
'<a href="'
+
url
+
'" class="'
+
classname
+
'" '
+
(
confirm
?
confirm
+
' '
:
''
)
+
extend
+
' title="'
+
title
+
'" data-table-id="'
+
(
table
?
table
.
attr
(
"id"
)
:
''
)
+
'" data-column-index="'
+
columnIndex
+
'" data-
row-index="'
+
index
+
'" data-
button-index="'
+
i
+
'"><i class="'
+
icon
+
'"></i>'
+
(
text
?
' '
+
text
:
''
)
+
'</a>'
);
}
});
return
html
.
join
(
' '
);
...
...
@@ -10053,6 +10053,12 @@ define('table',['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstr
// 切换复选框状态
toggleattr
:
function
(
table
)
{
$
(
"input[type='checkbox']"
,
table
).
trigger
(
'click'
);
},
// 根据行索引获取行数据
getrowdata
:
function
(
table
,
index
)
{
index
=
parseInt
(
index
);
var
data
=
table
.
bootstrapTable
(
'getData'
);
return
typeof
data
[
index
]
!==
'undefined'
?
data
[
index
]
:
null
;
}
},
};
...
...
public/assets/js/require-table.js
查看文件 @
2f2c003
...
...
@@ -438,7 +438,7 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table
title
=
j
.
title
?
j
.
title
:
text
;
confirm
=
j
.
confirm
?
'data-confirm="'
+
j
.
confirm
+
'"'
:
''
;
extend
=
j
.
extend
?
j
.
extend
:
''
;
html
.
push
(
'<a href="'
+
url
+
'" class="'
+
classname
+
'" '
+
(
confirm
?
confirm
+
' '
:
''
)
+
extend
+
' title="'
+
title
+
'" data-table-id="'
+
(
table
?
table
.
attr
(
"id"
)
:
''
)
+
'" data-column-index="'
+
columnIndex
+
'" data-button-index="'
+
i
+
'"><i class="'
+
icon
+
'"></i>'
+
(
text
?
' '
+
text
:
''
)
+
'</a>'
);
html
.
push
(
'<a href="'
+
url
+
'" class="'
+
classname
+
'" '
+
(
confirm
?
confirm
+
' '
:
''
)
+
extend
+
' title="'
+
title
+
'" data-table-id="'
+
(
table
?
table
.
attr
(
"id"
)
:
''
)
+
'" data-column-index="'
+
columnIndex
+
'" data-
row-index="'
+
index
+
'" data-
button-index="'
+
i
+
'"><i class="'
+
icon
+
'"></i>'
+
(
text
?
' '
+
text
:
''
)
+
'</a>'
);
}
});
return
html
.
join
(
' '
);
...
...
@@ -484,6 +484,12 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table
// 切换复选框状态
toggleattr
:
function
(
table
)
{
$
(
"input[type='checkbox']"
,
table
).
trigger
(
'click'
);
},
// 根据行索引获取行数据
getrowdata
:
function
(
table
,
index
)
{
index
=
parseInt
(
index
);
var
data
=
table
.
bootstrapTable
(
'getData'
);
return
typeof
data
[
index
]
!==
'undefined'
?
data
[
index
]
:
null
;
}
},
};
...
...
请
注册
或
登录
后发表评论