切换导航条
此项目
正在载入...
登录
何书鹏
/
anttest
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
继续操作前请注册或者登录。
下载为
邮件补丁
差异文件
浏览文件
作者
Karson
5 years ago
提交
30c695ff61a5b9261c34d0a131828f333754df56
1 个父辈
c6f44aa0
修复列表开关组件未兼容旧版本BUG
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
4 行增加
和
2 行删除
public/assets/js/require-backend.min.js
public/assets/js/require-table.js
public/assets/js/require-backend.min.js
查看文件 @
30c695f
...
...
@@ -10510,6 +10510,7 @@ define('table',['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstr
toggle
:
function
(
value
,
row
,
index
)
{
var
table
=
this
.
table
;
var
options
=
table
?
table
.
bootstrapTable
(
'getOptions'
)
:
{};
var
pk
=
options
.
pk
||
"id"
;
var
color
=
typeof
this
.
color
!==
'undefined'
?
this
.
color
:
'success'
;
var
yes
=
typeof
this
.
yes
!==
'undefined'
?
this
.
yes
:
1
;
var
no
=
typeof
this
.
no
!==
'undefined'
?
this
.
no
:
0
;
...
...
@@ -10519,7 +10520,7 @@ define('table',['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstr
disable
=
typeof
this
.
disable
===
"function"
?
this
.
disable
.
call
(
this
,
value
,
row
,
index
)
:
this
.
disable
;
}
return
"<a href='javascript:;' data-toggle='tooltip' title='"
+
__
(
'Click to toggle'
)
+
"' class='btn-change "
+
(
disable
?
'btn disabled'
:
''
)
+
"' data-id='"
+
row
[
options
.
pk
]
+
"' "
+
(
url
?
"data-url='"
+
url
+
"'"
:
""
)
+
" data-params='"
+
this
.
field
+
"="
+
(
value
==
yes
?
no
:
yes
)
+
"'><i class='fa fa-toggle-on "
+
(
value
==
yes
?
'text-'
+
color
:
'fa-flip-horizontal text-gray'
)
+
" fa-2x'></i></a>"
;
+
row
[
pk
]
+
"' "
+
(
url
?
"data-url='"
+
url
+
"'"
:
""
)
+
" data-params='"
+
this
.
field
+
"="
+
(
value
==
yes
?
no
:
yes
)
+
"'><i class='fa fa-toggle-on "
+
(
value
==
yes
?
'text-'
+
color
:
'fa-flip-horizontal text-gray'
)
+
" fa-2x'></i></a>"
;
},
url
:
function
(
value
,
row
,
index
)
{
return
'<div class="input-group input-group-sm" style="width:250px;margin:0 auto;"><input type="text" class="form-control input-sm" value="'
+
value
+
'"><span class="input-group-btn input-group-sm"><a href="'
+
value
+
'" target="_blank" class="btn btn-default btn-sm"><i class="fa fa-link"></i></a></span></div>'
;
...
...
public/assets/js/require-table.js
查看文件 @
30c695f
...
...
@@ -525,6 +525,7 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table
toggle
:
function
(
value
,
row
,
index
)
{
var
table
=
this
.
table
;
var
options
=
table
?
table
.
bootstrapTable
(
'getOptions'
)
:
{};
var
pk
=
options
.
pk
||
"id"
;
var
color
=
typeof
this
.
color
!==
'undefined'
?
this
.
color
:
'success'
;
var
yes
=
typeof
this
.
yes
!==
'undefined'
?
this
.
yes
:
1
;
var
no
=
typeof
this
.
no
!==
'undefined'
?
this
.
no
:
0
;
...
...
@@ -534,7 +535,7 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table
disable
=
typeof
this
.
disable
===
"function"
?
this
.
disable
.
call
(
this
,
value
,
row
,
index
)
:
this
.
disable
;
}
return
"<a href='javascript:;' data-toggle='tooltip' title='"
+
__
(
'Click to toggle'
)
+
"' class='btn-change "
+
(
disable
?
'btn disabled'
:
''
)
+
"' data-id='"
+
row
[
options
.
pk
]
+
"' "
+
(
url
?
"data-url='"
+
url
+
"'"
:
""
)
+
" data-params='"
+
this
.
field
+
"="
+
(
value
==
yes
?
no
:
yes
)
+
"'><i class='fa fa-toggle-on "
+
(
value
==
yes
?
'text-'
+
color
:
'fa-flip-horizontal text-gray'
)
+
" fa-2x'></i></a>"
;
+
row
[
pk
]
+
"' "
+
(
url
?
"data-url='"
+
url
+
"'"
:
""
)
+
" data-params='"
+
this
.
field
+
"="
+
(
value
==
yes
?
no
:
yes
)
+
"'><i class='fa fa-toggle-on "
+
(
value
==
yes
?
'text-'
+
color
:
'fa-flip-horizontal text-gray'
)
+
" fa-2x'></i></a>"
;
},
url
:
function
(
value
,
row
,
index
)
{
return
'<div class="input-group input-group-sm" style="width:250px;margin:0 auto;"><input type="text" class="form-control input-sm" value="'
+
value
+
'"><span class="input-group-btn input-group-sm"><a href="'
+
value
+
'" target="_blank" class="btn btn-default btn-sm"><i class="fa fa-link"></i></a></span></div>'
;
...
...
请
注册
或
登录
后发表评论