切换导航条
此项目
正在载入...
登录
何书鹏
/
recruit
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
Karson
8 years ago
提交
bde9120b362e32adbcca8a1aa221cb67806b22bc
1 个父辈
102c2c02
修复普通搜索一处语言调用的错误
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
4 行增加
和
6 行删除
public/assets/js/bootstrap-table-commonsearch.js
public/assets/js/require-backend.min.js
public/assets/js/bootstrap-table-commonsearch.js
查看文件 @
bde9120
...
...
@@ -90,7 +90,7 @@
}
else
{
var
isArray
=
vObjCol
.
searchList
.
constructor
===
Array
;
var
searchList
=
[];
searchList
.
push
(
sprintf
(
'<option value="">%s</option>'
,
$
.
fn
.
bootstrapTable
.
locale
s
.
formatCommonChoose
()));
searchList
.
push
(
sprintf
(
'<option value="">%s</option>'
,
that
.
option
s
.
formatCommonChoose
()));
$
.
each
(
vObjCol
.
searchList
,
function
(
key
,
value
)
{
var
isSelect
=
(
isArray
?
value
:
key
)
===
vObjCol
.
defaultValue
?
'selected'
:
''
;
searchList
.
push
(
sprintf
(
"<option value='"
+
(
isArray
?
value
:
key
)
+
"' %s>"
+
value
+
"</option>"
,
isSelect
));
...
...
@@ -214,7 +214,7 @@
'column-common-search.bs.table'
:
'onColumnCommonSearch'
});
$
.
extend
(
$
.
fn
.
bootstrapTable
.
locales
,
{
$
.
extend
(
$
.
fn
.
bootstrapTable
.
locales
[
$
.
fn
.
bootstrapTable
.
defaults
.
locale
]
,
{
formatCommonSearch
:
function
()
{
return
"Common search"
;
},
...
...
public/assets/js/require-backend.min.js
查看文件 @
bde9120
...
...
@@ -7290,7 +7290,7 @@ return d.keepInvalid=a,l},l.datepickerInput=function(a){if(0===arguments.length)
}
else
{
var
isArray
=
vObjCol
.
searchList
.
constructor
===
Array
;
var
searchList
=
[];
searchList
.
push
(
sprintf
(
'<option value="">%s</option>'
,
$
.
fn
.
bootstrapTable
.
locale
s
.
formatCommonChoose
()));
searchList
.
push
(
sprintf
(
'<option value="">%s</option>'
,
that
.
option
s
.
formatCommonChoose
()));
$
.
each
(
vObjCol
.
searchList
,
function
(
key
,
value
)
{
var
isSelect
=
(
isArray
?
value
:
key
)
===
vObjCol
.
defaultValue
?
'selected'
:
''
;
searchList
.
push
(
sprintf
(
"<option value='"
+
(
isArray
?
value
:
key
)
+
"' %s>"
+
value
+
"</option>"
,
isSelect
));
...
...
@@ -7338,7 +7338,6 @@ return d.keepInvalid=a,l},l.datepickerInput=function(a){if(0===arguments.length)
};
var
isSearchAvailble
=
function
(
that
)
{
console
.
log
(
'isSearchAvailble'
);
//只支持服务端搜索
if
(
!
that
.
options
.
commonSearch
||
that
.
options
.
sidePagination
!=
'server'
||
!
that
.
options
.
url
)
{
return
false
;
...
...
@@ -7415,7 +7414,7 @@ return d.keepInvalid=a,l},l.datepickerInput=function(a){if(0===arguments.length)
'column-common-search.bs.table'
:
'onColumnCommonSearch'
});
$
.
extend
(
$
.
fn
.
bootstrapTable
.
locales
,
{
$
.
extend
(
$
.
fn
.
bootstrapTable
.
locales
[
$
.
fn
.
bootstrapTable
.
defaults
.
locale
]
,
{
formatCommonSearch
:
function
()
{
return
"Common search"
;
},
...
...
@@ -7493,7 +7492,6 @@ return d.keepInvalid=a,l},l.datepickerInput=function(a){if(0===arguments.length)
return
;
}
if
(
!
firstLoad
)
{
console
.
log
(
122
);
var
height
=
parseInt
(
$
(
".bootstrap-table"
).
height
());
height
+=
10
;
$
(
"#"
+
this
.
options
.
idTable
).
bootstrapTable
(
"resetView"
,
{
height
:
height
});
...
...
请
注册
或
登录
后发表评论