Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
c4dfeab9
S
Skyeye
项目概览
doc_wei
/
Skyeye
通知
1174
Star
154
Fork
127
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Skyeye
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
c4dfeab9
编写于
11月 08, 2018
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
上传组件修改,解决一张图片时无法查看的问题
上级
436fa031
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
42 addition
and
4 deletion
+42
-4
skyeye-web/src/main/webapp/assets/lib/layui/lay/modules/jQuery.upload.min.js
.../webapp/assets/lib/layui/lay/modules/jQuery.upload.min.js
+8
-3
skyeye-web/src/main/webapp/assets/lib/layui/layui.js
skyeye-web/src/main/webapp/assets/lib/layui/layui.js
+33
-0
skyeye-web/src/main/webapp/assets/lib/winui/css/winui.css
skyeye-web/src/main/webapp/assets/lib/winui/css/winui.css
+1
-1
未找到文件。
skyeye-web/src/main/webapp/assets/lib/layui/lay/modules/jQuery.upload.min.js
浏览文件 @
c4dfeab9
...
@@ -30,7 +30,7 @@ layui.define(["jquery"], function(exports) {
...
@@ -30,7 +30,7 @@ layui.define(["jquery"], function(exports) {
var
r
=
a
(
this
),
var
r
=
a
(
this
),
w
=
"
<li class='item'></li>
"
,
w
=
"
<li class='item'></li>
"
,
A
=
a
(
'
<li class="item add"><svg class="icon" viewBox="0 0 1024 1024" version="1" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><defs><style/></defs><path d="M737 436a174 174 0 0 1 172 172 172 172 0 0 1-172 172c-69 1-69 107 0 106 152-2 276-125 278-278S886 332 737 330c-69-1-69 105 0 106zM285 779a174 174 0 0 1-172-172 172 172 0 0 1 172-172c68-1 69-106 0-106A282 282 0 0 0 7 607a281 281 0 0 0 278 278c69 1 68-105 0-106z" fill="#4A5699"/><path d="M340 384a174 174 0 0 1 172-172 172 172 0 0 1 172 172c1 68 106 68 106 0a282 282 0 0 0-278-278 281 281 0 0 0-278 278c-1 68 105 68 106 0z" fill="#C45FA0"/><path d="M545 473c17 17 17 43 0 60L422 656a42 42 0 0 1-60-60l123-123c17-16 43-16 60 0z" fill="#F39A2B"/><path d="M485 473c17-16 44-16 60 0l123 123a42 42 0 0 1-60 60L485 533a42 42 0 0 1 0-60z" fill="#F39A2B"/><path d="M514 634c24 0 43 20 43 43v179a43 43 0 0 1-86 0V677c0-23 19-43 43-43z" fill="#E5594F"/></svg></li>
'
),
A
=
a
(
'
<li class="item add"
style="height:80%"
><svg class="icon" viewBox="0 0 1024 1024" version="1" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><defs><style/></defs><path d="M737 436a174 174 0 0 1 172 172 172 172 0 0 1-172 172c-69 1-69 107 0 106 152-2 276-125 278-278S886 332 737 330c-69-1-69 105 0 106zM285 779a174 174 0 0 1-172-172 172 172 0 0 1 172-172c68-1 69-106 0-106A282 282 0 0 0 7 607a281 281 0 0 0 278 278c69 1 68-105 0-106z" fill="#4A5699"/><path d="M340 384a174 174 0 0 1 172-172 172 172 0 0 1 172 172c1 68 106 68 106 0a282 282 0 0 0-278-278 281 281 0 0 0-278 278c-1 68 105 68 106 0z" fill="#C45FA0"/><path d="M545 473c17 17 17 43 0 60L422 656a42 42 0 0 1-60-60l123-123c17-16 43-16 60 0z" fill="#F39A2B"/><path d="M485 473c17-16 44-16 60 0l123 123a42 42 0 0 1-60 60L485 533a42 42 0 0 1 0-60z" fill="#F39A2B"/><path d="M514 634c24 0 43 20 43 43v179a43 43 0 0 1-86 0V677c0-23 19-43 43-43z" fill="#E5594F"/></svg></li>
'
),
// A = a('<li class="item add"><i class="fa fa-fw fa-plus" style="width:100%;height: 100%;"></i></li>'),
// A = a('<li class="item add"><i class="fa fa-fw fa-plus" style="width:100%;height: 100%;"></i></li>'),
e
=
'
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="300" height="300" class="progress"><g fill="rgba(17,89,164,0.1)"><path d="M 0 70 Q 75 39, 150 70 T 300 70 T 450 70 T 600 70 T 750 70 V 320 H 0 V 0"></path><animateTransform attributeName="transform" attributeType="XML" type="translate" from="0" to="-300" dur="1.5s" repeatCount="indefinite"></animateTransform></g><g fill="rgba(17,89,164,0.15)"><path d="M 0 70 Q 87.5 47, 175 70 T 350 70 T 525 70 T 700 70 T 875 70 T 1050 70 V 320 H 0 V 0"></path><animateTransform attributeName="transform" attributeType="XML" type="translate" from="0" to="-350" dur="3s" repeatCount="indefinite"></animateTransform></g></svg><div class="progressnum"></div>
'
,
e
=
'
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="300" height="300" class="progress"><g fill="rgba(17,89,164,0.1)"><path d="M 0 70 Q 75 39, 150 70 T 300 70 T 450 70 T 600 70 T 750 70 V 320 H 0 V 0"></path><animateTransform attributeName="transform" attributeType="XML" type="translate" from="0" to="-300" dur="1.5s" repeatCount="indefinite"></animateTransform></g><g fill="rgba(17,89,164,0.15)"><path d="M 0 70 Q 87.5 47, 175 70 T 350 70 T 525 70 T 700 70 T 875 70 T 1050 70 V 320 H 0 V 0"></path><animateTransform attributeName="transform" attributeType="XML" type="translate" from="0" to="-350" dur="3s" repeatCount="indefinite"></animateTransform></g></svg><div class="progressnum"></div>
'
,
g
=
'
<svg xmlns="http://www.w3.org/2000/svg" class="delete" version="1" viewBox="0 0 1024 1024"><path fill="#fff" d="M512 70a439 439 0 0 1 442 442 439 439 0 0 1-442 442A439 439 0 0 1 70 512 439 439 0 0 1 512 70m0-40a482 482 0 1 0 0 964 482 482 0 0 0 0-964zm114 253v-1c0-21-17-38-38-38H436c-21 0-38 17-38 38v1H282v74h460v-74H626zM321 396v346c0 21 17 38 38 38h306c21 0 38-17 38-38V396H321zm114 306h-76V474h76v228zm115 0h-76V474h76v228zm115 0h-76V474h76v228z"/></svg>
'
,
g
=
'
<svg xmlns="http://www.w3.org/2000/svg" class="delete" version="1" viewBox="0 0 1024 1024"><path fill="#fff" d="M512 70a439 439 0 0 1 442 442 439 439 0 0 1-442 442A439 439 0 0 1 70 512 439 439 0 0 1 512 70m0-40a482 482 0 1 0 0 964 482 482 0 0 0 0-964zm114 253v-1c0-21-17-38-38-38H436c-21 0-38 17-38 38v1H282v74h460v-74H626zM321 396v346c0 21 17 38 38 38h306c21 0 38-17 38-38V396H321zm114 306h-76V474h76v228zm115 0h-76V474h76v228zm115 0h-76V474h76v228z"/></svg>
'
,
...
@@ -87,6 +87,7 @@ layui.define(["jquery"], function(exports) {
...
@@ -87,6 +87,7 @@ layui.define(["jquery"], function(exports) {
s
=
0
,
s
=
0
,
h
=
""
;
h
=
""
;
var
f
=
0
;
var
f
=
0
;
var
completeUrl
=
""
b
.
attr
(
"
oldurl
"
,
B
.
value
);
b
.
attr
(
"
oldurl
"
,
B
.
value
);
for
(
var
x
in
p
)
{
for
(
var
x
in
p
)
{
if
(
s
<
B
.
num
&&
p
[
s
])
{
if
(
s
<
B
.
num
&&
p
[
s
])
{
...
@@ -101,10 +102,14 @@ layui.define(["jquery"], function(exports) {
...
@@ -101,10 +102,14 @@ layui.define(["jquery"], function(exports) {
"
</li>
"
).
insertBefore
(
A
);
"
</li>
"
).
insertBefore
(
A
);
}
}
r
.
data
(
"
num
"
,
++
f
).
removeClass
(
"
empty
"
);
r
.
data
(
"
num
"
,
++
f
).
removeClass
(
"
empty
"
);
q
()
q
();
if
(
options
.
uploadType
==
'
1
'
){
completeUrl
+=
fileBasePath
+
"
\\
assets
\\
smpropic
\\
"
+
p
[
s
]
+
"
,
"
;
}
}
}
s
++
s
++
;
}
}
b
.
val
(
completeUrl
);
}
else
{
}
else
{
r
.
data
(
"
num
"
,
0
).
addClass
(
"
empty
"
)
r
.
data
(
"
num
"
,
0
).
addClass
(
"
empty
"
)
}
}
...
...
skyeye-web/src/main/webapp/assets/lib/layui/layui.js
浏览文件 @
c4dfeab9
...
@@ -933,4 +933,37 @@ function replaceModelContent(str, ControllerPackageName, ServicePackageName, Ser
...
@@ -933,4 +933,37 @@ function replaceModelContent(str, ControllerPackageName, ServicePackageName, Ser
return
str
;
return
str
;
}
}
function
show
(
id
,
url
)
{
var
imgSuffix
=
[
"
png
"
,
"
jpg
"
,
"
jpeg
"
,
"
gif
"
,
"
bmp
"
];
if
(
imgSuffix
.
indexOf
(
url
.
substring
(
url
.
lastIndexOf
(
"
.
"
)
+
1
).
toLowerCase
())
<
0
)
{
window
.
open
(
url
);
return
false
;
}
var
imgs
=
layui
.
$
(
id
).
find
(
"
input[type='hidden'][name='upload']
"
).
val
().
split
(
"
,
"
);
var
data
=
[];
layui
.
$
.
each
(
imgs
,
function
(
k
,
v
)
{
var
suffix
=
v
.
substring
(
v
.
lastIndexOf
(
"
.
"
)
+
1
);
if
(
imgSuffix
.
indexOf
(
suffix
.
toLowerCase
())
>
-
1
)
{
var
json
=
{
"
alt
"
:
""
,
"
pid
"
:
k
,
//图片id
"
src
"
:
v
,
//原图地址
"
thumb
"
:
""
//缩略图地址
}
data
.
push
(
json
);
}
})
layer
.
photos
({
photos
:
{
"
title
"
:
""
,
//相册标题
"
id
"
:
123
,
//相册id
"
start
"
:
0
,
//初始显示的图片序号,默认0
"
data
"
:
data
}
//格式见API文档手册页
,
anim
:
5
//0-6的选择,指定弹出图片动画类型,默认随机
});
}
skyeye-web/src/main/webapp/assets/lib/winui/css/winui.css
浏览文件 @
c4dfeab9
...
@@ -2415,7 +2415,7 @@ body .layer-ext-winconfirm {
...
@@ -2415,7 +2415,7 @@ body .layer-ext-winconfirm {
margin-top
:
unset
;
margin-top
:
unset
;
}
}
.upload.one
.add
{
.upload.one
.add
{
top
:
unset
;
top
:
20%
;
}
}
/*** 上传 end ***/
/*** 上传 end ***/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录