Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
09cd857c
S
Skyeye
项目概览
doc_wei
/
Skyeye
通知
1173
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看板
提交
09cd857c
编写于
11月 20, 2018
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
桌面锁屏背景图片自选完成
上级
192a820e
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
371 addition
and
173 deletion
+371
-173
skyeye-dao/src/main/java/com/skyeye/authority/dao/SysEveWinLockBgPicDao.java
.../java/com/skyeye/authority/dao/SysEveWinLockBgPicDao.java
+8
-0
skyeye-service/src/main/java/com/skyeye/authority/service/SysEveWinLockBgPicService.java
...m/skyeye/authority/service/SysEveWinLockBgPicService.java
+8
-0
skyeye-service/src/main/java/com/skyeye/authority/service/impl/SysEveWinBgPicServiceImpl.java
...eye/authority/service/impl/SysEveWinBgPicServiceImpl.java
+1
-1
skyeye-service/src/main/java/com/skyeye/authority/service/impl/SysEveWinLockBgPicServiceImpl.java
...authority/service/impl/SysEveWinLockBgPicServiceImpl.java
+84
-0
skyeye-service/src/main/java/com/skyeye/common/service/impl/CommonServiceImpl.java
...ava/com/skyeye/common/service/impl/CommonServiceImpl.java
+6
-0
skyeye-web/src/main/java/com/skyeye/authority/controller/SysEveWinBgPicController.java
...skyeye/authority/controller/SysEveWinBgPicController.java
+1
-1
skyeye-web/src/main/java/com/skyeye/authority/controller/SysEveWinLockBgPicController.java
...ye/authority/controller/SysEveWinLockBgPicController.java
+64
-0
skyeye-web/src/main/resources/dbmapper/SysEveWinLockBgPicMapper.xml
.../src/main/resources/dbmapper/SysEveWinLockBgPicMapper.xml
+35
-0
skyeye-web/src/main/resources/mapping/reqmapping.xml
skyeye-web/src/main/resources/mapping/reqmapping.xml
+10
-0
skyeye-web/src/main/webapp/js/systheme/systheme.js
skyeye-web/src/main/webapp/js/systheme/systheme.js
+90
-34
skyeye-web/src/main/webapp/tpl/systheme/custom-lockbgpic-item.tpl
...eb/src/main/webapp/tpl/systheme/custom-lockbgpic-item.tpl
+13
-0
skyeye-web/src/main/webapp/tpl/systheme/lock-bg-pic.tpl
skyeye-web/src/main/webapp/tpl/systheme/lock-bg-pic.tpl
+3
-0
skyeye-web/src/main/webapp/tpl/systheme/menu-model.tpl
skyeye-web/src/main/webapp/tpl/systheme/menu-model.tpl
+45
-0
skyeye-web/src/main/webapp/tpl/systheme/systheme.html
skyeye-web/src/main/webapp/tpl/systheme/systheme.html
+3
-137
未找到文件。
skyeye-dao/src/main/java/com/skyeye/authority/dao/SysEveWinLockBgPicDao.java
浏览文件 @
09cd857c
...
...
@@ -16,4 +16,12 @@ public interface SysEveWinLockBgPicDao {
public
Map
<
String
,
Object
>
querySysEveMationById
(
Map
<
String
,
Object
>
map
)
throws
Exception
;
public
List
<
Map
<
String
,
Object
>>
querySysEveWinBgPicListToShow
(
Map
<
String
,
Object
>
map
)
throws
Exception
;
public
int
insertSysEveWinBgPicMationByCustom
(
Map
<
String
,
Object
>
map
)
throws
Exception
;
public
List
<
Map
<
String
,
Object
>>
querySysEveWinBgPicCustomList
(
Map
<
String
,
Object
>
map
)
throws
Exception
;
public
int
deleteSysEveWinBgPicMationCustomById
(
Map
<
String
,
Object
>
map
)
throws
Exception
;
}
skyeye-service/src/main/java/com/skyeye/authority/service/SysEveWinLockBgPicService.java
浏览文件 @
09cd857c
...
...
@@ -11,4 +11,12 @@ public interface SysEveWinLockBgPicService {
public
void
deleteSysEveWinLockBgPicMationById
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
;
public
void
querySysEveWinBgPicListToShow
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
;
public
void
insertSysEveWinBgPicMationByCustom
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
;
public
void
querySysEveWinBgPicCustomList
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
;
public
void
deleteSysEveWinBgPicMationCustomById
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
;
}
skyeye-service/src/main/java/com/skyeye/authority/service/impl/SysEveWinBgPicServiceImpl.java
浏览文件 @
09cd857c
...
...
@@ -104,7 +104,7 @@ public class SysEveWinBgPicServiceImpl implements SysEveWinBgPicService{
/**
*
* @Title: insertSysEveWinBgPicMationByCustom
* @Description: 添加win系统桌面图片信息
* @Description:
用户自定义上传
添加win系统桌面图片信息
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
...
...
skyeye-service/src/main/java/com/skyeye/authority/service/impl/SysEveWinLockBgPicServiceImpl.java
浏览文件 @
09cd857c
...
...
@@ -8,6 +8,7 @@ import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import
com.github.miemiedev.mybatis.paginator.domain.PageList
;
import
com.skyeye.authority.dao.SysEveWinLockBgPicDao
;
import
com.skyeye.authority.service.SysEveWinLockBgPicService
;
import
com.skyeye.common.constans.Constants
;
import
com.skyeye.common.object.InputObject
;
import
com.skyeye.common.object.OutputObject
;
import
com.skyeye.common.util.ToolUtil
;
...
...
@@ -80,4 +81,87 @@ public class SysEveWinLockBgPicServiceImpl implements SysEveWinLockBgPicService{
sysEveWinLockBgPicDao
.
deleteSysEveWinLockBgPicMationById
(
map
);
}
/**
*
* @Title: querySysEveWinBgPicListToShow
* @Description: 获取win系统锁屏桌面图片列表供展示
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@Override
public
void
querySysEveWinBgPicListToShow
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
{
Map
<
String
,
Object
>
map
=
inputObject
.
getParams
();
List
<
Map
<
String
,
Object
>>
beans
=
sysEveWinLockBgPicDao
.
querySysEveWinBgPicListToShow
(
map
);
if
(
beans
!=
null
&&
!
beans
.
isEmpty
()){
outputObject
.
setBeans
(
beans
);
outputObject
.
settotal
(
beans
.
size
());
}
}
/**
*
* @Title: insertSysEveWinBgPicMationByCustom
* @Description: 用户自定义上传win系统锁屏桌面图片信息
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@Override
public
void
insertSysEveWinBgPicMationByCustom
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
{
Map
<
String
,
Object
>
map
=
inputObject
.
getParams
();
Map
<
String
,
Object
>
user
=
inputObject
.
getLogParams
();
map
.
put
(
"id"
,
ToolUtil
.
getSurFaceId
());
map
.
put
(
"createId"
,
user
.
get
(
"id"
));
map
.
put
(
"createTime"
,
ToolUtil
.
getTimeAndToString
());
sysEveWinLockBgPicDao
.
insertSysEveWinBgPicMationByCustom
(
map
);
}
/**
*
* @Title: querySysEveWinBgPicCustomList
* @Description: 获取win系统锁屏桌面图片列表用户自定义
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@Override
public
void
querySysEveWinBgPicCustomList
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
{
Map
<
String
,
Object
>
map
=
inputObject
.
getParams
();
Map
<
String
,
Object
>
user
=
inputObject
.
getLogParams
();
map
.
put
(
"createId"
,
user
.
get
(
"id"
));
List
<
Map
<
String
,
Object
>>
beans
=
sysEveWinLockBgPicDao
.
querySysEveWinBgPicCustomList
(
map
);
if
(
beans
!=
null
&&
!
beans
.
isEmpty
()){
outputObject
.
setBeans
(
beans
);
outputObject
.
settotal
(
beans
.
size
());
}
}
/**
*
* @Title: deleteSysEveWinBgPicMationCustomById
* @Description: 删除win系统锁屏桌面图片信息用户自定义
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@SuppressWarnings
(
"static-access"
)
@Override
public
void
deleteSysEveWinBgPicMationCustomById
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
{
Map
<
String
,
Object
>
map
=
inputObject
.
getParams
();
Map
<
String
,
Object
>
bean
=
sysEveWinLockBgPicDao
.
querySysEveMationById
(
map
);
String
tPath
=
inputObject
.
getRequest
().
getSession
().
getServletContext
().
getRealPath
(
"/"
);
String
basePath
=
tPath
.
substring
(
0
,
inputObject
.
getRequest
().
getSession
().
getServletContext
().
getRealPath
(
"/"
).
indexOf
(
Constants
.
PROJECT_WEB
))
+
bean
.
get
(
"picUrl"
).
toString
();
ToolUtil
.
deleteFile
(
basePath
);
sysEveWinLockBgPicDao
.
deleteSysEveWinBgPicMationCustomById
(
map
);
}
}
skyeye-service/src/main/java/com/skyeye/common/service/impl/CommonServiceImpl.java
浏览文件 @
09cd857c
...
...
@@ -71,6 +71,9 @@ public class CommonServiceImpl implements CommonService{
case
4
:
//系统桌面背景自定义图片上传用户自定义
basePath
=
tPath
.
substring
(
0
,
inputObject
.
getRequest
().
getSession
().
getServletContext
().
getRealPath
(
"/"
).
indexOf
(
Constants
.
PROJECT_WEB
))
+
"\\images\\upload\\winbgpic"
;
break
;
case
5
:
//系统桌面锁屏背景自定义图片上传用户自定义
basePath
=
tPath
.
substring
(
0
,
inputObject
.
getRequest
().
getSession
().
getServletContext
().
getRealPath
(
"/"
).
indexOf
(
Constants
.
PROJECT_WEB
))
+
"\\images\\upload\\winlockbgpic"
;
break
;
default
:
basePath
=
tPath
.
substring
(
0
,
inputObject
.
getRequest
().
getSession
().
getServletContext
().
getRealPath
(
"/"
).
indexOf
(
Constants
.
PROJECT_WEB
));
break
;
...
...
@@ -104,6 +107,9 @@ public class CommonServiceImpl implements CommonService{
case
4
:
//系统桌面背景自定义图片上传用户自定义
newFileName
=
"/images/upload/winbgpic/"
+
newFileName
;
break
;
case
5
:
//系统桌面锁屏背景自定义图片上传用户自定义
newFileName
=
"/images/upload/winlockbgpic/"
+
newFileName
;
break
;
default
:
break
;
}
...
...
skyeye-web/src/main/java/com/skyeye/authority/controller/SysEveWinBgPicController.java
浏览文件 @
09cd857c
...
...
@@ -81,7 +81,7 @@ public class SysEveWinBgPicController {
/**
*
* @Title: insertSysEveWinBgPicMationByCustom
* @Description: 添加win系统桌面图片信息
* @Description:
用户自定义上传
添加win系统桌面图片信息
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
...
...
skyeye-web/src/main/java/com/skyeye/authority/controller/SysEveWinLockBgPicController.java
浏览文件 @
09cd857c
...
...
@@ -62,4 +62,68 @@ public class SysEveWinLockBgPicController {
sysEveWinLockBgPicService
.
deleteSysEveWinLockBgPicMationById
(
inputObject
,
outputObject
);
}
/**
*
* @Title: querySysEveWinBgPicListToShow
* @Description: 获取win系统锁屏桌面图片列表供展示
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping
(
"/post/SysEveWinLockBgPicController/querySysEveWinBgPicListToShow"
)
@ResponseBody
public
void
querySysEveWinBgPicListToShow
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
{
sysEveWinLockBgPicService
.
querySysEveWinBgPicListToShow
(
inputObject
,
outputObject
);
}
/**
*
* @Title: insertSysEveWinBgPicMationByCustom
* @Description: 用户自定义上传win系统锁屏桌面图片信息
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping
(
"/post/SysEveWinLockBgPicController/insertSysEveWinBgPicMationByCustom"
)
@ResponseBody
public
void
insertSysEveWinBgPicMationByCustom
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
{
sysEveWinLockBgPicService
.
insertSysEveWinBgPicMationByCustom
(
inputObject
,
outputObject
);
}
/**
*
* @Title: querySysEveWinBgPicCustomList
* @Description: 获取win系统锁屏桌面图片列表用户自定义
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping
(
"/post/SysEveWinLockBgPicController/querySysEveWinBgPicCustomList"
)
@ResponseBody
public
void
querySysEveWinBgPicCustomList
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
{
sysEveWinLockBgPicService
.
querySysEveWinBgPicCustomList
(
inputObject
,
outputObject
);
}
/**
*
* @Title: deleteSysEveWinBgPicMationCustomById
* @Description: 删除win系统锁屏桌面图片信息用户自定义
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping
(
"/post/SysEveWinLockBgPicController/deleteSysEveWinBgPicMationCustomById"
)
@ResponseBody
public
void
deleteSysEveWinBgPicMationCustomById
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
{
sysEveWinLockBgPicService
.
deleteSysEveWinBgPicMationCustomById
(
inputObject
,
outputObject
);
}
}
skyeye-web/src/main/resources/dbmapper/SysEveWinLockBgPicMapper.xml
浏览文件 @
09cd857c
...
...
@@ -37,4 +37,39 @@
WHERE a.id = #{id}
</select>
<select
id=
"querySysEveWinBgPicListToShow"
parameterType=
"java.util.Map"
resultType=
"java.util.Map"
>
SELECT
a.id,
a.pic_url picUrl
FROM
sys_eve_win_lock_bg_pic a
WHERE a.pic_type = '1'
ORDER BY a.create_time DESC
</select>
<insert
id=
"insertSysEveWinBgPicMationByCustom"
parameterType=
"java.util.Map"
>
INSERT into sys_eve_win_lock_bg_pic
(id, pic_url, pic_type, create_id, create_time)
VALUES
(#{id}, #{picUrl}, '2', #{createId}, #{createTime})
</insert>
<select
id=
"querySysEveWinBgPicCustomList"
parameterType=
"java.util.Map"
resultType=
"java.util.Map"
>
SELECT
a.id,
a.pic_url picUrl
FROM
sys_eve_win_lock_bg_pic a
WHERE a.pic_type = '2'
ORDER BY a.create_time DESC
</select>
<delete
id=
"deleteSysEveWinBgPicMationCustomById"
parameterType=
"java.util.Map"
>
DELETE
FROM
sys_eve_win_lock_bg_pic
WHERE
id = #{id}
</delete>
</mapper>
\ No newline at end of file
skyeye-web/src/main/resources/mapping/reqmapping.xml
浏览文件 @
09cd857c
...
...
@@ -196,6 +196,16 @@
<url
id=
"sysevewinlockbgpic003"
path=
"/post/SysEveWinLockBgPicController/deleteSysEveWinLockBgPicMationById"
val=
"删除win系统锁屏桌面图片信息"
allUse=
"1"
>
<property
id=
"rowId"
name=
"id"
ref=
"required"
var=
"win系统锁屏桌面图片id"
/>
</url>
<url
id=
"sysevewinlockbgpic004"
path=
"/post/SysEveWinLockBgPicController/querySysEveWinBgPicListToShow"
val=
"获取win系统锁屏桌面图片列表供展示"
allUse=
"1"
>
</url>
<url
id=
"sysevewinlockbgpic005"
path=
"/post/SysEveWinLockBgPicController/insertSysEveWinBgPicMationByCustom"
val=
"用户自定义上传win系统锁屏桌面图片信息"
allUse=
"1"
>
<property
id=
"picUrl"
name=
"picUrl"
ref=
"required"
var=
"图片路径"
/>
</url>
<url
id=
"sysevewinlockbgpic006"
path=
"/post/SysEveWinLockBgPicController/querySysEveWinBgPicCustomList"
val=
"获取win系统锁屏桌面图片列表用户自定义"
allUse=
"1"
>
</url>
<url
id=
"sysevewinlockbgpic007"
path=
"/post/SysEveWinLockBgPicController/deleteSysEveWinBgPicMationCustomById"
val=
"删除win系统锁屏桌面图片信息用户自定义"
allUse=
"1"
>
<property
id=
"rowId"
name=
"id"
ref=
"required"
var=
"win系统桌面图片id"
/>
</url>
<!-- 系统角色用户管理结束 -->
<!-- 系统数据库管理开始 -->
...
...
skyeye-web/src/main/webapp/js/systheme/systheme.js
浏览文件 @
09cd857c
...
...
@@ -26,10 +26,12 @@ layui.config({
$
(
'
.start-size input[value=
'
+
startSize
+
'
]
'
).
prop
(
'
checked
'
,
true
);
$
(
'
.preview-start
'
).
removeClass
(
'
xs sm lg
'
);
$
(
'
.preview-start
'
).
addClass
(
startSize
);
$
(
"
.preview-start
"
).
html
(
getFileContent
(
'
tpl/systheme/menu-model.tpl
'
));
form
.
render
();
//初始化背景图片
//初始化
桌面
背景图片
showGrid
({
id
:
"
background-choose
"
,
url
:
reqBasePath
+
"
sysevewinbgpic004
"
,
...
...
@@ -42,16 +44,35 @@ layui.config({
});
},
options
:
{
'
click .bgPicItem
'
:
function
(
index
,
row
){
//获取当前图片路径
var
bgSrc
=
row
.
picUrl
;
//改变预览背景
$
(
'
.background-preview
'
).
css
(
'
background-image
'
,
'
url(
'
+
bgSrc
+
'
)
'
);
//改变父页面背景
winui
.
resetBg
(
bgSrc
);
}
},
ajaxSendAfter
:
function
(
json
){
initCustomBackGroundPic
();
//初始化桌面锁屏背景图片
showGrid
({
id
:
"
lockscreen-choose
"
,
url
:
reqBasePath
+
"
sysevewinlockbgpic004
"
,
params
:
{},
pagination
:
false
,
template
:
getFileContent
(
'
tpl/systheme/lock-bg-pic.tpl
'
),
ajaxSendLoadBefore
:
function
(
hdb
){
hdb
.
registerHelper
(
"
compare1
"
,
function
(
v1
,
options
){
return
fileBasePath
+
v1
;
});
},
options
:
{
'
click .lockBgPicItem
'
:
function
(
index
,
row
){
var
bgSrc
=
row
.
picUrl
;
$
(
'
.lockscreen-preview
'
).
css
(
'
background-image
'
,
'
url(
'
+
bgSrc
+
'
)
'
);
winui
.
resetLockBg
(
bgSrc
);
}
},
ajaxSendAfter
:
function
(
json
){
initCustomLockBackGroundPic
();
}
});
}
});
...
...
@@ -87,11 +108,8 @@ layui.config({
}});
});
},
'
click .bgPicItem1
'
:
function
(
index
,
row
){
//获取当前图片路径
var
bgSrc
=
row
.
picUrl
;
//改变预览背景
$
(
'
.background-preview
'
).
css
(
'
background-image
'
,
'
url(
'
+
bgSrc
+
'
)
'
);
//改变父页面背景
winui
.
resetBg
(
bgSrc
);
}
},
...
...
@@ -100,7 +118,43 @@ layui.config({
});
}
//背景图片上传
//自定义上传的桌面锁屏背景图片
function
initCustomLockBackGroundPic
(){
showGrid
({
id
:
"
cus-lockscreen-choose
"
,
url
:
reqBasePath
+
"
sysevewinlockbgpic006
"
,
params
:
{},
pagination
:
false
,
template
:
getFileContent
(
'
tpl/systheme/custom-lockbgpic-item.tpl
'
),
ajaxSendLoadBefore
:
function
(
hdb
){
hdb
.
registerHelper
(
"
compare1
"
,
function
(
v1
,
options
){
return
fileBasePath
+
v1
;
});
},
options
:
{
'
click .lockDel
'
:
function
(
index
,
row
){
top
.
winui
.
window
.
confirm
(
'
确认删除选中数据吗?
'
,
{
icon
:
3
,
title
:
'
删除win系统桌面图片
'
},
function
(
index
)
{
top
.
winui
.
window
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
sysevewinlockbgpic007
"
,
params
:{
rowId
:
row
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
){
if
(
json
.
returnCode
==
0
){
top
.
winui
.
window
.
msg
(
"
删除成功
"
,
{
icon
:
1
,
time
:
2000
});
refreshGrid
(
"
cus-lockscreen-choose
"
,
{
params
:{}});
}
else
{
top
.
winui
.
window
.
msg
(
json
.
returnMessage
,
{
icon
:
2
,
time
:
2000
});
}
}});
});
},
'
click .lockBgPicItem1
'
:
function
(
index
,
row
){
var
bgSrc
=
row
.
picUrl
;
$
(
'
.lockscreen-preview
'
).
css
(
'
background-image
'
,
'
url(
'
+
bgSrc
+
'
)
'
);
winui
.
resetLockBg
(
bgSrc
);
}
},
ajaxSendAfter
:
function
(
json
){
}
});
}
//桌面背景图片上传
var
uploadInst
=
upload
.
render
({
elem
:
'
#addBean
'
,
// 绑定元素
url
:
reqBasePath
+
'
common003
'
,
// 上传接口
...
...
@@ -125,31 +179,33 @@ layui.config({
console
.
log
(
e
);
}
});
//锁屏界面点击
$
(
'
.lockscreen-choose>img
'
).
on
(
'
click
'
,
function
()
{
//获取当前图片路径
var
bgSrc
=
$
(
this
).
prop
(
'
src
'
);
//改变锁屏预览
$
(
'
.lockscreen-preview
'
).
css
(
'
background-image
'
,
'
url(
'
+
bgSrc
+
'
)
'
);
//设置锁屏背景
winui
.
resetLockBg
(
bgSrc
);
})
//锁屏界面图片上传
$
(
'
.lockscreen-upload
'
).
on
(
'
click
'
,
function
()
{
var
input
=
$
(
this
).
prev
(
'
input[type=file]
'
);
input
.
trigger
(
'
click
'
);
input
.
on
(
'
change
'
,
function
()
{
var
src
=
$
(
this
).
val
();
if
(
src
)
{
layer
.
msg
(
'
选择了路径【
'
+
src
+
'
】下的图片,返回一张性感的Girl给你
'
)
//改变锁屏预览
$
(
'
.lockscreen-preview
'
).
css
(
'
background-image
'
,
'
url(images/sexy_girl.jpg
'
);
//设置锁屏背景
winui
.
resetLockBg
(
'
images/sexy_girl.jpg
'
);
$
(
this
).
val
(
''
).
off
(
'
change
'
);
}
})
});
//桌面锁屏背景图片上传
var
uploadInst1
=
upload
.
render
({
elem
:
'
#addBean1
'
,
// 绑定元素
url
:
reqBasePath
+
'
common003
'
,
// 上传接口
data
:
{
type
:
5
},
done
:
function
(
json
)
{
// 上传完毕回调
if
(
json
.
returnCode
==
0
){
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
sysevewinlockbgpic005
"
,
params
:{
picUrl
:
json
.
bean
.
picUrl
},
type
:
'
json
'
,
callback
:
function
(
json
){
if
(
json
.
returnCode
==
0
){
top
.
winui
.
window
.
msg
(
"
上传成功
"
,
{
icon
:
1
,
time
:
2000
});
refreshGrid
(
"
cus-lockscreen-choose
"
,
{
params
:{}});
}
else
{
top
.
winui
.
window
.
msg
(
json
.
returnMessage
,
{
icon
:
2
,
time
:
2000
});
}
}});
}
else
{
top
.
winui
.
window
.
msg
(
json
.
returnMessage
,
{
icon
:
2
,
time
:
2000
});
}
},
error
:
function
(
e
)
{
// 请求异常回调
console
.
log
(
e
);
}
});
//颜色选择
$
(
'
.color-choose>div
'
).
on
(
'
click
'
,
function
()
{
var
color
=
Number
(
$
(
this
)[
0
].
classList
[
0
].
replace
(
'
theme-color-
'
,
''
));
...
...
skyeye-web/src/main/webapp/tpl/systheme/custom-lockbgpic-item.tpl
0 → 100644
浏览文件 @
09cd857c
{
{
#
each
rows
}
}
<div
class=
"layui-col-xs2 pic-item"
>
<div
class=
"layui-col-xs12 pic-item-div-top"
>
<img
class=
"lockBgPicItem1"
src=
"{
{
#
compare1
picUrl
}
}{
{/
compare1
}
}"
/>
</div>
<div
class=
"layui-col-xs12 pic-item-div"
>
<div>
<a
class=
"layui-btn layui-btn-danger layui-btn-xs lockDel"
>
删除
</a>
</div>
</div>
</div>
{
{/
each
}
}
\ No newline at end of file
skyeye-web/src/main/webapp/tpl/systheme/lock-bg-pic.tpl
0 → 100644
浏览文件 @
09cd857c
{{
#
each
rows
}}
<img
src=
"{
{
#
compare1
picUrl
}
}{
{/
compare1
}
}"
class=
"lockBgPicItem"
/>
{
{/
each
}
}
\ No newline at end of file
skyeye-web/src/main/webapp/tpl/systheme/menu-model.tpl
0 → 100644
浏览文件 @
09cd857c
<ul
class=
"preview-menu"
>
<li><div
class=
"preview-menu-icon"
></div><div
class=
"preview-menu-text"
></div></li>
<li><div
class=
"preview-menu-icon"
></div><div
class=
"preview-menu-text"
></div></li>
<li><div
class=
"preview-menu-icon"
></div><div
class=
"preview-menu-text"
></div></li>
<li><div
class=
"preview-menu-icon"
></div><div
class=
"preview-menu-text"
></div></li>
<li><div
class=
"preview-menu-icon"
></div><div
class=
"preview-menu-text"
></div></li>
<li><div
class=
"preview-menu-icon"
></div><div
class=
"preview-menu-text"
></div></li>
<li><div
class=
"preview-menu-icon"
></div><div
class=
"preview-menu-text"
></div></li>
<li><div
class=
"preview-menu-icon"
></div><div
class=
"preview-menu-text"
></div></li>
<li><div
class=
"preview-menu-icon"
></div><div
class=
"preview-menu-text"
></div></li>
</ul>
<div
class=
"preview-tilebox"
>
<div
style=
"width:59px;height:59px;margin-right:1px;margin-bottom:1px;"
></div>
<div
style=
"width:29px;height:29px;margin-bottom:1px;"
></div>
<div
style=
"width:29px;height:29px;margin-bottom:1px;"
></div>
<div
style=
"width:29px;height:29px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:59px;height:29px;margin-bottom:1px;"
></div>
<div
style=
"width:59px;height:29px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:14px;height:14px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:14px;height:14px;margin-bottom:1px;"
></div>
<div
style=
"width:14px;height:14px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:14px;height:14px;margin-bottom:1px;"
></div>
</div>
<div
class=
"preview-tilebox preview-tilebox-lg"
>
<div
style=
"width:59px;height:59px;margin-right:1px;margin-bottom:1px;"
></div>
<div
style=
"width:29px;height:29px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:29px;height:29px;margin-bottom:1px;"
></div>
<div
style=
"width:29px;height:29px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:29px;height:29px;margin-bottom:1px;"
></div>
<div
style=
"width:59px;height:29px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:59px;height:29px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:29px;height:14px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:29px;height:14px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:14px;height:14px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:14px;height:14px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:14px;height:14px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:14px;height:14px;margin-bottom:1px;margin-right:1px;"
></div>
</div>
\ No newline at end of file
skyeye-web/src/main/webapp/tpl/systheme/systheme.html
浏览文件 @
09cd857c
...
...
@@ -23,51 +23,7 @@
<h1>
预览
</h1>
<div
class=
"background-preview"
>
<div
class=
"preview-start"
>
<ul
class=
"preview-menu"
>
<li><div
class=
"preview-menu-icon"
></div><div
class=
"preview-menu-text"
></div></li>
<li><div
class=
"preview-menu-icon"
></div><div
class=
"preview-menu-text"
></div></li>
<li><div
class=
"preview-menu-icon"
></div><div
class=
"preview-menu-text"
></div></li>
<li><div
class=
"preview-menu-icon"
></div><div
class=
"preview-menu-text"
></div></li>
<li><div
class=
"preview-menu-icon"
></div><div
class=
"preview-menu-text"
></div></li>
<li><div
class=
"preview-menu-icon"
></div><div
class=
"preview-menu-text"
></div></li>
<li><div
class=
"preview-menu-icon"
></div><div
class=
"preview-menu-text"
></div></li>
<li><div
class=
"preview-menu-icon"
></div><div
class=
"preview-menu-text"
></div></li>
<li><div
class=
"preview-menu-icon"
></div><div
class=
"preview-menu-text"
></div></li>
</ul>
<div
class=
"preview-tilebox"
>
<div
style=
"width:59px;height:59px;margin-right:1px;margin-bottom:1px;"
></div>
<div
style=
"width:29px;height:29px;margin-bottom:1px;"
></div>
<div
style=
"width:29px;height:29px;margin-bottom:1px;"
></div>
<div
style=
"width:29px;height:29px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:59px;height:29px;margin-bottom:1px;"
></div>
<div
style=
"width:59px;height:29px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:14px;height:14px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:14px;height:14px;margin-bottom:1px;"
></div>
<div
style=
"width:14px;height:14px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:14px;height:14px;margin-bottom:1px;"
></div>
</div>
<div
class=
"preview-tilebox preview-tilebox-lg"
>
<div
style=
"width:59px;height:59px;margin-right:1px;margin-bottom:1px;"
></div>
<div
style=
"width:29px;height:29px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:29px;height:29px;margin-bottom:1px;"
></div>
<div
style=
"width:29px;height:29px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:29px;height:29px;margin-bottom:1px;"
></div>
<div
style=
"width:59px;height:29px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:59px;height:29px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:29px;height:14px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:29px;height:14px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:14px;height:14px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:14px;height:14px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:14px;height:14px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:14px;height:14px;margin-bottom:1px;margin-right:1px;"
></div>
</div>
</div>
<div
class=
"preview-window"
>
<div
class=
"preview-window-title"
><p></p></div>
...
...
@@ -89,51 +45,7 @@
<h1>
预览
</h1>
<div
class=
"background-preview"
>
<div
class=
"preview-start"
>
<ul
class=
"preview-menu"
>
<li><div
class=
"preview-menu-icon"
></div><div
class=
"preview-menu-text"
></div></li>
<li><div
class=
"preview-menu-icon"
></div><div
class=
"preview-menu-text"
></div></li>
<li><div
class=
"preview-menu-icon"
></div><div
class=
"preview-menu-text"
></div></li>
<li><div
class=
"preview-menu-icon"
></div><div
class=
"preview-menu-text"
></div></li>
<li><div
class=
"preview-menu-icon"
></div><div
class=
"preview-menu-text"
></div></li>
<li><div
class=
"preview-menu-icon"
></div><div
class=
"preview-menu-text"
></div></li>
<li><div
class=
"preview-menu-icon"
></div><div
class=
"preview-menu-text"
></div></li>
<li><div
class=
"preview-menu-icon"
></div><div
class=
"preview-menu-text"
></div></li>
<li><div
class=
"preview-menu-icon"
></div><div
class=
"preview-menu-text"
></div></li>
</ul>
<div
class=
"preview-tilebox"
>
<div
style=
"width:59px;height:59px;margin-right:1px;margin-bottom:1px;"
></div>
<div
style=
"width:29px;height:29px;margin-bottom:1px;"
></div>
<div
style=
"width:29px;height:29px;margin-bottom:1px;"
></div>
<div
style=
"width:29px;height:29px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:59px;height:29px;margin-bottom:1px;"
></div>
<div
style=
"width:59px;height:29px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:14px;height:14px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:14px;height:14px;margin-bottom:1px;"
></div>
<div
style=
"width:14px;height:14px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:14px;height:14px;margin-bottom:1px;"
></div>
</div>
<div
class=
"preview-tilebox preview-tilebox-lg"
>
<div
style=
"width:59px;height:59px;margin-right:1px;margin-bottom:1px;"
></div>
<div
style=
"width:29px;height:29px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:29px;height:29px;margin-bottom:1px;"
></div>
<div
style=
"width:29px;height:29px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:29px;height:29px;margin-bottom:1px;"
></div>
<div
style=
"width:59px;height:29px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:59px;height:29px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:29px;height:14px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:29px;height:14px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:14px;height:14px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:14px;height:14px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:14px;height:14px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:14px;height:14px;margin-bottom:1px;margin-right:1px;"
></div>
</div>
</div>
<div
class=
"preview-window"
>
<div
class=
"preview-window-title"
><p></p></div>
...
...
@@ -192,7 +104,6 @@
<div
class=
"layui-form winui-switch"
>
<input
type=
"checkbox"
lay-filter=
"toggleTransparent"
lay-skin=
"switch"
checked
><span
style=
"margin-left:15px; vertical-align:middle"
>
开
</span>
</div>
<div
style=
"color:#ff6a00;margin-top:20px;"
>
Tips:5排8列主题色尽情享用
</div>
</div>
<!-- 锁屏界面 -->
<div
class=
"winui-tab-item"
>
...
...
@@ -214,51 +125,7 @@
<h1>
预览
</h1>
<div
class=
"background-preview"
>
<div
class=
"preview-start"
>
<ul
class=
"preview-menu"
>
<li><div
class=
"preview-menu-icon"
></div><div
class=
"preview-menu-text"
></div></li>
<li><div
class=
"preview-menu-icon"
></div><div
class=
"preview-menu-text"
></div></li>
<li><div
class=
"preview-menu-icon"
></div><div
class=
"preview-menu-text"
></div></li>
<li><div
class=
"preview-menu-icon"
></div><div
class=
"preview-menu-text"
></div></li>
<li><div
class=
"preview-menu-icon"
></div><div
class=
"preview-menu-text"
></div></li>
<li><div
class=
"preview-menu-icon"
></div><div
class=
"preview-menu-text"
></div></li>
<li><div
class=
"preview-menu-icon"
></div><div
class=
"preview-menu-text"
></div></li>
<li><div
class=
"preview-menu-icon"
></div><div
class=
"preview-menu-text"
></div></li>
<li><div
class=
"preview-menu-icon"
></div><div
class=
"preview-menu-text"
></div></li>
</ul>
<div
class=
"preview-tilebox"
>
<div
style=
"width:59px;height:59px;margin-right:1px;margin-bottom:1px;"
></div>
<div
style=
"width:29px;height:29px;margin-bottom:1px;"
></div>
<div
style=
"width:29px;height:29px;margin-bottom:1px;"
></div>
<div
style=
"width:29px;height:29px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:59px;height:29px;margin-bottom:1px;"
></div>
<div
style=
"width:59px;height:29px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:14px;height:14px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:14px;height:14px;margin-bottom:1px;"
></div>
<div
style=
"width:14px;height:14px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:14px;height:14px;margin-bottom:1px;"
></div>
</div>
<div
class=
"preview-tilebox preview-tilebox-lg"
>
<div
style=
"width:59px;height:59px;margin-right:1px;margin-bottom:1px;"
></div>
<div
style=
"width:29px;height:29px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:29px;height:29px;margin-bottom:1px;"
></div>
<div
style=
"width:29px;height:29px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:29px;height:29px;margin-bottom:1px;"
></div>
<div
style=
"width:59px;height:29px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:59px;height:29px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:29px;height:14px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:29px;height:14px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:14px;height:14px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:14px;height:14px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:14px;height:14px;margin-bottom:1px;margin-right:1px;"
></div>
<div
style=
"width:14px;height:14px;margin-bottom:1px;margin-right:1px;"
></div>
</div>
</div>
<div
class=
"preview-window"
>
<div
class=
"preview-window-title"
><p></p></div>
...
...
@@ -272,7 +139,6 @@
<input
type=
"radio"
name=
"startsize"
value=
"sm"
title=
"中等"
lay-filter=
"startSize"
>
<input
type=
"radio"
name=
"startsize"
value=
"lg"
title=
"宽敞"
lay-filter=
"startSize"
>
</div>
<div
style=
"color:#ff6a00;margin-top:20px;"
>
Tips:迷你不显示磁贴,中等显示一列磁贴,宽敞显示两列磁贴
</div>
</div>
<!-- 任务栏 -->
<div
class=
"winui-tab-item"
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录