切换导航条
此项目
正在载入...
登录
何书鹏
/
recruit
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
Karson
8 years ago
提交
84c394aad252f69b2d6936768ee002ba51c70f71
1 个父辈
7f8e8999
master
新增默认支持LIKE %...%中*表示任意字符的功能
修正调试模式下的version值 修复附件管理链接错误的BUG 修复普通搜索在多表格显示下错误渲染的BUG
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
4 行增加
和
4 行删除
application/common/behavior/Common.php
public/assets/js/backend/general/attachment.js
public/assets/js/bootstrap-table-commonsearch.js
application/common/behavior/Common.php
查看文件 @
84c394a
...
...
@@ -26,7 +26,7 @@ class Common
Config
::
set
(
'upload.cdnurl'
,
$cdnurl
);
}
// 如果是调试模式将version置为当前的时间戳可避免缓存
if
(
!
Config
::
get
(
'app_debug'
))
if
(
Config
::
get
(
'app_debug'
))
{
Config
::
set
(
'site.version'
,
time
());
}
...
...
public/assets/js/backend/general/attachment.js
查看文件 @
84c394a
...
...
@@ -119,7 +119,7 @@ define(['jquery', 'bootstrap', 'backend', 'form', 'table'], function ($, undefin
}
},
url
:
function
(
value
,
row
,
index
)
{
return
'<a href="'
+
Backend
.
api
.
cdnurl
(
value
)
+
'" target="_blank" class="label bg-green">'
+
value
+
'</a>'
;
return
'<a href="'
+
row
.
fullurl
+
'" target="_blank" class="label bg-green">'
+
value
+
'</a>'
;
},
}
}
...
...
public/assets/js/bootstrap-table-commonsearch.js
查看文件 @
84c394a
...
...
@@ -18,7 +18,7 @@
var
vModal
=
sprintf
(
"<div id=\"commonSearchContent_%s\" class=\"common-search-table %s\">"
,
that
.
options
.
idTable
,
that
.
options
.
searchFormVisible
?
""
:
"hidden"
);
vModal
+=
vFormCommon
.
join
(
''
);
vModal
+=
"</div>"
;
$
(
"#myTabContent"
).
before
(
$
(
vModal
));
that
.
$container
.
prepend
(
$
(
vModal
));
var
form
=
$
(
"#commonSearchForm"
+
"_"
+
that
.
options
.
idTable
);
...
...
@@ -181,7 +181,7 @@
var
value
=
$
(
"[name='"
+
name
+
"']:checked"
).
val
();
}
}
else
{
var
value
=
(
typeof
vObjCol
.
process
===
'function'
)
?
vObjCol
.
process
(
obj
.
val
())
:
obj
.
val
(
);
var
value
=
(
typeof
vObjCol
.
process
===
'function'
)
?
vObjCol
.
process
(
obj
.
val
())
:
(
sym
==
'LIKE %...%'
?
obj
.
val
().
replace
(
/
\*
/g
,
'%'
)
:
obj
.
val
()
);
}
if
(
value
==
''
&&
sym
.
indexOf
(
"NULL"
)
==
-
1
)
{
return
true
;
...
...
请
注册
或
登录
后发表评论