Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
56c8e98b
S
Skyeye
项目概览
doc_wei
/
Skyeye
通知
1171
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看板
提交
56c8e98b
编写于
8月 25, 2023
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update: 售后工单服务:工人信息管理托管到表单布局
上级
c5436fbb
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
339 addition
and
837 deletion
+339
-837
school/src/main/resources/template/js/school/writeSchool.js
school/src/main/resources/template/js/school/writeSchool.js
+1
-5
seal-service/src/main/resources/template/js/sealWorker/serviceworkermap.js
...main/resources/template/js/sealWorker/serviceworkermap.js
+0
-0
seal-service/src/main/resources/template/js/sealWorker/serviceworkershowlist.js
...resources/template/js/sealWorker/serviceworkershowlist.js
+0
-0
seal-service/src/main/resources/template/js/sealWorker/writeSealWorker.js
.../main/resources/template/js/sealWorker/writeSealWorker.js
+298
-0
seal-service/src/main/resources/template/js/serviceworker/serviceworkeradd.js
...n/resources/template/js/serviceworker/serviceworkeradd.js
+0
-291
seal-service/src/main/resources/template/js/serviceworker/serviceworkeredit.js
.../resources/template/js/serviceworker/serviceworkeredit.js
+0
-277
seal-service/src/main/resources/template/js/serviceworker/serviceworkerlist.js
.../resources/template/js/serviceworker/serviceworkerlist.js
+0
-114
seal-service/src/main/resources/template/tpl/sealWorker/serviceworkermap.html
...n/resources/template/tpl/sealWorker/serviceworkermap.html
+0
-0
seal-service/src/main/resources/template/tpl/sealWorker/serviceworkershowlist.html
...ources/template/tpl/sealWorker/serviceworkershowlist.html
+0
-0
seal-service/src/main/resources/template/tpl/sealWorker/writeSealWorker.html
...in/resources/template/tpl/sealWorker/writeSealWorker.html
+40
-35
seal-service/src/main/resources/template/tpl/serviceworker/serviceworkeredit.html
...sources/template/tpl/serviceworker/serviceworkeredit.html
+0
-80
seal-service/src/main/resources/template/tpl/serviceworker/serviceworkerlist.html
...sources/template/tpl/serviceworker/serviceworkerlist.html
+0
-35
未找到文件。
school/src/main/resources/template/js/school/writeSchool.js
浏览文件 @
56c8e98b
...
...
@@ -12,7 +12,7 @@ layui.config({
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
],
function
(
exports
)
{
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
,
'
fullscreen
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
,
...
...
@@ -286,10 +286,6 @@ layui.config({
});
}
function
setCenter
(
obj
){
map
.
setCenter
(
obj
[
obj
.
options
.
selectedIndex
].
center
)
}
// 取消
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
...
...
seal-service/src/main/resources/template/js/se
rvicew
orker/serviceworkermap.js
→
seal-service/src/main/resources/template/js/se
alW
orker/serviceworkermap.js
浏览文件 @
56c8e98b
文件已移动
seal-service/src/main/resources/template/js/se
rvicew
orker/serviceworkershowlist.js
→
seal-service/src/main/resources/template/js/se
alW
orker/serviceworkershowlist.js
浏览文件 @
56c8e98b
文件已移动
seal-service/src/main/resources/template/js/sealWorker/writeSealWorker.js
0 → 100644
浏览文件 @
56c8e98b
var
map
,
district
,
polygons
=
[];
var
citySelect
;
var
districtSelect
;
var
marker
=
null
;
var
userList
=
new
Array
();
//选择用户返回的集合或者进行回显的集合
var
longitude
=
""
;
//经度
var
latitude
=
""
;
//纬度
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
,
'
fullscreen
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
,
form
=
layui
.
form
;
var
id
=
GetUrlParam
(
"
id
"
);
if
(
!
isNull
(
id
))
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
sealServiceBasePath
+
"
querySealWorkerById
"
,
params
:
{
id
:
id
},
type
:
'
json
'
,
method
:
'
GET
'
,
callback
:
function
(
json
)
{
longitude
=
json
.
bean
.
longitude
;
latitude
=
json
.
bean
.
latitude
;
userList
.
push
(
json
.
bean
.
userMation
);
$
.
each
(
userList
,
function
(
i
,
item
)
{
$
(
"
#userName
"
).
val
(
item
.
name
);
});
initMap
();
$
(
"
#longitude
"
).
val
(
longitude
);
$
(
"
#latitude
"
).
val
(
latitude
);
$
(
"
#absoluteAddress
"
).
val
(
json
.
bean
.
absoluteAddress
);
}});
}
matchingLanguage
();
form
.
render
();
form
.
on
(
'
submit(formAddBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
lnglatXY
=
[
$
(
"
#longitude
"
).
val
(),
$
(
"
#latitude
"
).
val
()];
//地图上所标点的坐标
geocoder
.
getAddress
(
lnglatXY
,
function
(
status
,
result
)
{
if
(
status
===
'
complete
'
&&
result
.
info
===
'
OK
'
)
{
var
params
=
{
id
:
isNull
(
id
)
?
''
:
id
,
userId
:
userList
[
0
].
id
,
longitude
:
$
(
"
#longitude
"
).
val
(),
latitude
:
$
(
"
#latitude
"
).
val
(),
provinceId
:
result
.
regeocode
.
addressComponent
.
province
,
cityId
:
result
.
regeocode
.
addressComponent
.
city
,
areaId
:
result
.
regeocode
.
addressComponent
.
district
,
townshipId
:
''
,
absoluteAddress
:
$
(
"
#absoluteAddress
"
).
val
()
};
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
sealServiceBasePath
+
"
writeSealWorker
"
,
params
:
params
,
type
:
'
json
'
,
method
:
'
POST
'
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
}
else
{
winui
.
window
.
msg
(
'
地图信息获取失败.
'
,
{
icon
:
2
,
time
:
2000
});
}
});
}
return
false
;
});
//人员选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#userIdSelPeople
"
,
function
(
e
)
{
systemCommonUtil
.
userReturnList
=
[].
concat
(
userList
);
systemCommonUtil
.
chooseOrNotMy
=
"
1
"
;
// 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil
.
chooseOrNotEmail
=
"
2
"
;
// 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil
.
checkType
=
"
2
"
;
// 人员选择类型,1.多选;其他。单选
systemCommonUtil
.
openSysUserStaffChoosePage
(
function
(
userReturnList
)
{
userList
=
[].
concat
(
userReturnList
);
$
.
each
(
userList
,
function
(
i
,
item
)
{
$
(
"
#userName
"
).
val
(
item
.
name
);
});
});
});
initMap
();
function
initMap
(){
if
(
!
isNull
(
latitude
)
&&
!
isNull
(
longitude
)){
map
=
new
AMap
.
Map
(
'
container
'
,
{
resizeEnable
:
true
,
zoom
:
11
,
center
:
[
longitude
,
latitude
]
});
}
else
{
map
=
new
AMap
.
Map
(
'
container
'
,
{
resizeEnable
:
true
,
zoom
:
5
,
center
:
[
113.65
,
34.76
]
});
}
//加载插件
AMap
.
service
(
'
AMap.Geocoder
'
,
function
(){
//回调函数
//实例化Geocoder
geocoder
=
new
AMap
.
Geocoder
({
});
});
//在地图上进行标记
marker
=
new
AMap
.
Marker
({
map
:
map
,
bubble
:
true
});
//通过地址获取经纬度
var
input
=
document
.
getElementById
(
'
absoluteAddress
'
);
map
.
on
(
'
click
'
,
function
(
e
)
{
geocoder
.
getAddress
(
e
.
lnglat
,
function
(
status
,
result
){
if
(
status
==
'
complete
'
){
input
.
value
=
result
.
regeocode
.
formattedAddress
;
var
address
=
input
.
value
;
geocoder
.
getLocation
(
address
,
function
(
status
,
result
){
if
(
status
==
'
complete
'
&&
result
.
geocodes
.
length
){
marker
.
setPosition
(
result
.
geocodes
[
0
].
location
);
map
.
setCenter
(
marker
.
getPosition
());
$
(
"
#longitude
"
).
val
(
result
.
geocodes
[
0
].
location
.
lng
);
$
(
"
#latitude
"
).
val
(
result
.
geocodes
[
0
].
location
.
lat
);
}
})
}
else
{
}
});
});
input
.
onchange
=
function
(
e
)
{
var
address
=
input
.
value
;
geocoder
.
getLocation
(
address
,
function
(
status
,
result
){
if
(
status
==
'
complete
'
&&
result
.
geocodes
.
length
){
marker
.
setPosition
(
result
.
geocodes
[
0
].
location
);
map
.
setCenter
(
marker
.
getPosition
());
$
(
"
#longitude
"
).
val
(
result
.
geocodes
[
0
].
location
.
lng
);
$
(
"
#latitude
"
).
val
(
result
.
geocodes
[
0
].
location
.
lat
);
}
})
};
citySelect
=
document
.
getElementById
(
'
city
'
);
districtSelect
=
document
.
getElementById
(
'
district
'
);
//行政区划查询
var
opts
=
{
subdistrict
:
1
,
//返回下一级行政区
showbiz
:
false
//最后一级返回街道信息
};
district
=
new
AMap
.
DistrictSearch
(
opts
);
//注意:需要使用插件同步下发功能才能这样直接使用
district
.
search
(
'
中国
'
,
function
(
status
,
result
)
{
if
(
status
==
'
complete
'
){
getData
(
result
.
districtList
[
0
]);
}
});
$
(
"
#qp
"
).
click
(
function
(
e
)
{
$
(
"
#qpDiv
"
).
fullScreen
();
});
}
function
getData
(
data
,
level
)
{
var
bounds
=
data
.
boundaries
;
if
(
level
===
'
district
'
)
{
for
(
var
i
=
0
,
l
=
bounds
.
length
;
i
<
l
;
i
++
)
{
var
polygon
=
new
AMap
.
Polygon
({
map
:
map
,
fillColor
:
'
#CCF3FF
'
,
fillOpacity
:
0.5
,
path
:
bounds
[
i
],
strokeColor
:
"
#FF33FF
"
,
//线颜色
strokeOpacity
:
1
,
//线透明度
strokeWeight
:
3
,
//线宽
strokeStyle
:
"
solid
"
//线样式
});
var
input
=
document
.
getElementById
(
'
absoluteAddress
'
);
polygon
.
on
(
'
click
'
,
function
(
e
)
{
geocoder
.
getAddress
(
e
.
lnglat
,
function
(
status
,
result
){
if
(
status
==
'
complete
'
){
input
.
value
=
result
.
regeocode
.
formattedAddress
;
var
address
=
input
.
value
;
geocoder
.
getLocation
(
address
,
function
(
status
,
result
){
if
(
status
==
'
complete
'
&&
result
.
geocodes
.
length
){
marker
.
setPosition
(
result
.
geocodes
[
0
].
location
);
map
.
setCenter
(
marker
.
getPosition
());
$
(
"
#longitude
"
).
val
(
result
.
geocodes
[
0
].
location
.
lng
);
$
(
"
#latitude
"
).
val
(
result
.
geocodes
[
0
].
location
.
lat
);
}
})
}
else
{
}
});
});
polygons
.
push
(
polygon
);
}
map
.
setFitView
();
//地图自适应
}
var
subList
=
data
.
districtList
;
if
(
subList
)
{
var
contentSub
=
new
Option
(
'
--请选择--
'
);
var
curlevel
=
subList
[
0
].
level
;
var
curList
=
document
.
querySelector
(
'
#
'
+
curlevel
);
if
(
!
isNull
(
curList
)){
curList
.
add
(
contentSub
);
}
for
(
var
i
=
0
,
l
=
subList
.
length
;
i
<
l
;
i
++
)
{
var
name
=
subList
[
i
].
name
;
var
levelSub
=
subList
[
i
].
level
;
var
cityCode
=
subList
[
i
].
citycode
;
contentSub
=
new
Option
(
name
);
contentSub
.
setAttribute
(
"
value
"
,
levelSub
+
i
);
contentSub
.
center
=
subList
[
i
].
center
;
contentSub
.
adcode
=
subList
[
i
].
adcode
;
if
(
!
isNull
(
curList
)){
curList
.
add
(
contentSub
);
}
if
(
level
!=
'
district
'
){
district
.
search
(
subList
[
i
].
adcode
,
function
(
status
,
result
)
{
if
(
status
===
'
complete
'
){
var
bounds
=
result
.
districtList
[
0
].
boundaries
;
if
(
bounds
)
{
for
(
var
i
=
0
,
l
=
bounds
.
length
;
i
<
l
;
i
++
)
{
var
polygon
=
new
AMap
.
Polygon
({
map
:
map
,
fillColor
:
'
#CCF3FF
'
,
fillOpacity
:
0.5
,
path
:
bounds
[
i
],
strokeColor
:
"
#FF33FF
"
,
//线颜色
strokeOpacity
:
1
,
//线透明度
strokeWeight
:
3
,
//线宽
strokeStyle
:
"
solid
"
//线样式
});
var
input
=
document
.
getElementById
(
'
absoluteAddress
'
);
polygon
.
on
(
'
click
'
,
function
(
e
)
{
geocoder
.
getAddress
(
e
.
lnglat
,
function
(
status
,
result
){
if
(
status
==
'
complete
'
){
input
.
value
=
result
.
regeocode
.
formattedAddress
;
var
address
=
input
.
value
;
geocoder
.
getLocation
(
address
,
function
(
status
,
result
){
if
(
status
==
'
complete
'
&&
result
.
geocodes
.
length
){
marker
.
setPosition
(
result
.
geocodes
[
0
].
location
);
map
.
setCenter
(
marker
.
getPosition
());
$
(
"
#longitude
"
).
val
(
result
.
geocodes
[
0
].
location
.
lng
);
$
(
"
#latitude
"
).
val
(
result
.
geocodes
[
0
].
location
.
lat
);
}
})
}
else
{
}
});
});
polygons
.
push
(
polygon
);
}
map
.
setFitView
();
//地图自适应
}
}
});
}
}
}
form
.
render
(
"
select
"
);
}
form
.
on
(
'
select(province)
'
,
function
(
data
)
{
citySelect
.
innerHTML
=
''
;
districtSelect
.
innerHTML
=
''
;
form
.
render
(
"
select
"
);
search
(
document
.
getElementById
(
'
province
'
));
});
form
.
on
(
'
select(city)
'
,
function
(
data
)
{
districtSelect
.
innerHTML
=
''
;
form
.
render
(
"
select
"
);
search
(
document
.
getElementById
(
'
city
'
));
});
form
.
on
(
'
select(district)
'
,
function
(
data
)
{
search
(
document
.
getElementById
(
'
district
'
));
});
function
search
(
obj
)
{
//清除地图上所有覆盖物
for
(
var
i
=
0
,
l
=
polygons
.
length
;
i
<
l
;
i
++
)
{
polygons
[
i
].
setMap
(
null
);
}
var
option
=
obj
[
obj
.
options
.
selectedIndex
];
var
keyword
=
option
.
text
;
//关键字
var
adcode
=
option
.
adcode
;
district
.
setLevel
(
option
.
value
);
//行政区级别
district
.
setExtensions
(
'
all
'
);
//行政区查询
//按照adcode进行查询可以保证数据返回的唯一性
district
.
search
(
adcode
,
function
(
status
,
result
)
{
if
(
status
===
'
complete
'
){
getData
(
result
.
districtList
[
0
],
obj
.
id
);
}
});
}
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
});
\ No newline at end of file
seal-service/src/main/resources/template/js/serviceworker/serviceworkeradd.js
已删除
100644 → 0
浏览文件 @
c5436fbb
var
map
,
district
,
polygons
=
[];
var
citySelect
;
var
districtSelect
;
var
marker
=
null
;
var
longitude
=
""
;
//经度
var
latitude
=
""
;
//纬度
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
fullscreen
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
],
function
(
form
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
;
//已选择人员
var
userList
=
new
Array
();
matchingLanguage
();
form
.
render
();
form
.
on
(
'
submit(formAddBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
if
(
userList
.
length
==
0
){
winui
.
window
.
msg
(
'
请选择人员
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
var
lnglatXY
=
[
$
(
"
#longitude
"
).
val
(),
$
(
"
#latitude
"
).
val
()];
//地图上所标点的坐标
geocoder
.
getAddress
(
lnglatXY
,
function
(
status
,
result
)
{
if
(
status
===
'
complete
'
&&
result
.
info
===
'
OK
'
)
{
var
params
=
{
userId
:
userList
[
0
].
id
,
longitude
:
$
(
"
#longitude
"
).
val
(),
latitude
:
$
(
"
#latitude
"
).
val
(),
proName
:
result
.
regeocode
.
addressComponent
.
province
,
cityName
:
result
.
regeocode
.
addressComponent
.
city
,
areaName
:
result
.
regeocode
.
addressComponent
.
district
,
addressDetail
:
$
(
"
#userAddressInput
"
).
val
()
};
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
sealseserviceworker002
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
}
else
{
winui
.
window
.
msg
(
'
地图信息获取失败.
'
,
{
icon
:
2
,
time
:
2000
});
}
});
}
return
false
;
});
//人员选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#userIdSelPeople
"
,
function
(
e
)
{
systemCommonUtil
.
userReturnList
=
[].
concat
(
userList
);
systemCommonUtil
.
chooseOrNotMy
=
"
1
"
;
// 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil
.
chooseOrNotEmail
=
"
2
"
;
// 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil
.
checkType
=
"
2
"
;
// 人员选择类型,1.多选;其他。单选
systemCommonUtil
.
openSysUserStaffChoosePage
(
function
(
userReturnList
)
{
userList
=
[].
concat
(
userReturnList
);
if
(
userList
.
length
>
0
){
$
(
"
#userName
"
).
val
(
userList
[
0
].
name
);
}
else
{
$
(
"
#userName
"
).
val
(
""
);
}
});
});
initMap
();
function
initMap
(){
if
(
!
isNull
(
latitude
)
&&
!
isNull
(
longitude
)){
map
=
new
AMap
.
Map
(
'
container
'
,
{
resizeEnable
:
true
,
zoom
:
11
,
center
:
[
latitude
,
longitude
]
});
}
else
{
map
=
new
AMap
.
Map
(
'
container
'
,
{
resizeEnable
:
true
,
zoom
:
5
,
center
:
[
113.65
,
34.76
]
});
}
//加载插件
AMap
.
service
(
'
AMap.Geocoder
'
,
function
(){
//回调函数
//实例化Geocoder
geocoder
=
new
AMap
.
Geocoder
({
});
});
//在地图上进行标记
marker
=
new
AMap
.
Marker
({
map
:
map
,
bubble
:
true
});
//通过地址获取经纬度
var
input
=
document
.
getElementById
(
'
userAddressInput
'
);
map
.
on
(
'
click
'
,
function
(
e
)
{
geocoder
.
getAddress
(
e
.
lnglat
,
function
(
status
,
result
){
if
(
status
==
'
complete
'
){
input
.
value
=
result
.
regeocode
.
formattedAddress
;
var
address
=
input
.
value
;
geocoder
.
getLocation
(
address
,
function
(
status
,
result
){
if
(
status
==
'
complete
'
&&
result
.
geocodes
.
length
){
marker
.
setPosition
(
result
.
geocodes
[
0
].
location
);
map
.
setCenter
(
marker
.
getPosition
());
$
(
"
#longitude
"
).
val
(
result
.
geocodes
[
0
].
location
.
lng
);
$
(
"
#latitude
"
).
val
(
result
.
geocodes
[
0
].
location
.
lat
);
}
})
}
else
{
}
});
});
input
.
onchange
=
function
(
e
)
{
var
address
=
input
.
value
;
geocoder
.
getLocation
(
address
,
function
(
status
,
result
){
if
(
status
==
'
complete
'
&&
result
.
geocodes
.
length
){
marker
.
setPosition
(
result
.
geocodes
[
0
].
location
);
map
.
setCenter
(
marker
.
getPosition
());
$
(
"
#longitude
"
).
val
(
result
.
geocodes
[
0
].
location
.
lng
);
$
(
"
#latitude
"
).
val
(
result
.
geocodes
[
0
].
location
.
lat
);
}
})
};
citySelect
=
document
.
getElementById
(
'
city
'
);
districtSelect
=
document
.
getElementById
(
'
district
'
);
//行政区划查询
var
opts
=
{
subdistrict
:
1
,
//返回下一级行政区
showbiz
:
false
//最后一级返回街道信息
};
district
=
new
AMap
.
DistrictSearch
(
opts
);
//注意:需要使用插件同步下发功能才能这样直接使用
district
.
search
(
'
中国
'
,
function
(
status
,
result
)
{
if
(
status
==
'
complete
'
){
getData
(
result
.
districtList
[
0
]);
}
});
$
(
"
#qp
"
).
click
(
function
(
e
)
{
$
(
"
#qpDiv
"
).
fullScreen
();
});
}
function
getData
(
data
,
level
)
{
var
bounds
=
data
.
boundaries
;
if
(
level
===
'
district
'
)
{
for
(
var
i
=
0
,
l
=
bounds
.
length
;
i
<
l
;
i
++
)
{
var
polygon
=
new
AMap
.
Polygon
({
map
:
map
,
fillColor
:
'
#CCF3FF
'
,
fillOpacity
:
0.5
,
path
:
bounds
[
i
],
strokeColor
:
"
#FF33FF
"
,
//线颜色
strokeOpacity
:
1
,
//线透明度
strokeWeight
:
3
,
//线宽
strokeStyle
:
"
solid
"
//线样式
});
var
input
=
document
.
getElementById
(
'
userAddressInput
'
);
polygon
.
on
(
'
click
'
,
function
(
e
)
{
geocoder
.
getAddress
(
e
.
lnglat
,
function
(
status
,
result
){
if
(
status
==
'
complete
'
){
input
.
value
=
result
.
regeocode
.
formattedAddress
;
var
address
=
input
.
value
;
geocoder
.
getLocation
(
address
,
function
(
status
,
result
){
if
(
status
==
'
complete
'
&&
result
.
geocodes
.
length
){
marker
.
setPosition
(
result
.
geocodes
[
0
].
location
);
map
.
setCenter
(
marker
.
getPosition
());
$
(
"
#longitude
"
).
val
(
result
.
geocodes
[
0
].
location
.
lng
);
$
(
"
#latitude
"
).
val
(
result
.
geocodes
[
0
].
location
.
lat
);
}
})
}
else
{
}
});
});
polygons
.
push
(
polygon
);
}
map
.
setFitView
();
//地图自适应
}
var
subList
=
data
.
districtList
;
if
(
subList
)
{
var
contentSub
=
new
Option
(
'
--请选择--
'
);
var
curlevel
=
subList
[
0
].
level
;
var
curList
=
document
.
querySelector
(
'
#
'
+
curlevel
);
if
(
!
isNull
(
curList
)){
curList
.
add
(
contentSub
);
}
for
(
var
i
=
0
,
l
=
subList
.
length
;
i
<
l
;
i
++
)
{
var
name
=
subList
[
i
].
name
;
var
levelSub
=
subList
[
i
].
level
;
var
cityCode
=
subList
[
i
].
citycode
;
contentSub
=
new
Option
(
name
);
contentSub
.
setAttribute
(
"
value
"
,
levelSub
+
i
);
contentSub
.
center
=
subList
[
i
].
center
;
contentSub
.
adcode
=
subList
[
i
].
adcode
;
if
(
!
isNull
(
curList
)){
curList
.
add
(
contentSub
);
}
if
(
level
!=
'
district
'
){
district
.
search
(
subList
[
i
].
adcode
,
function
(
status
,
result
)
{
if
(
status
===
'
complete
'
){
var
bounds
=
result
.
districtList
[
0
].
boundaries
;
if
(
bounds
)
{
for
(
var
i
=
0
,
l
=
bounds
.
length
;
i
<
l
;
i
++
)
{
var
polygon
=
new
AMap
.
Polygon
({
map
:
map
,
fillColor
:
'
#CCF3FF
'
,
fillOpacity
:
0.5
,
path
:
bounds
[
i
],
strokeColor
:
"
#FF33FF
"
,
//线颜色
strokeOpacity
:
1
,
//线透明度
strokeWeight
:
3
,
//线宽
strokeStyle
:
"
solid
"
//线样式
});
var
input
=
document
.
getElementById
(
'
userAddressInput
'
);
polygon
.
on
(
'
click
'
,
function
(
e
)
{
geocoder
.
getAddress
(
e
.
lnglat
,
function
(
status
,
result
){
if
(
status
==
'
complete
'
){
input
.
value
=
result
.
regeocode
.
formattedAddress
;
var
address
=
input
.
value
;
geocoder
.
getLocation
(
address
,
function
(
status
,
result
){
if
(
status
==
'
complete
'
&&
result
.
geocodes
.
length
){
marker
.
setPosition
(
result
.
geocodes
[
0
].
location
);
map
.
setCenter
(
marker
.
getPosition
());
$
(
"
#longitude
"
).
val
(
result
.
geocodes
[
0
].
location
.
lng
);
$
(
"
#latitude
"
).
val
(
result
.
geocodes
[
0
].
location
.
lat
);
}
})
}
else
{
}
});
});
polygons
.
push
(
polygon
);
}
map
.
setFitView
();
//地图自适应
}
}
});
}
}
}
form
.
render
(
"
select
"
);
}
form
.
on
(
'
select(province)
'
,
function
(
data
)
{
citySelect
.
innerHTML
=
''
;
districtSelect
.
innerHTML
=
''
;
form
.
render
(
"
select
"
);
search
(
document
.
getElementById
(
'
province
'
));
});
form
.
on
(
'
select(city)
'
,
function
(
data
)
{
districtSelect
.
innerHTML
=
''
;
form
.
render
(
"
select
"
);
search
(
document
.
getElementById
(
'
city
'
));
});
form
.
on
(
'
select(district)
'
,
function
(
data
)
{
search
(
document
.
getElementById
(
'
district
'
));
});
function
search
(
obj
)
{
//清除地图上所有覆盖物
for
(
var
i
=
0
,
l
=
polygons
.
length
;
i
<
l
;
i
++
)
{
polygons
[
i
].
setMap
(
null
);
}
var
option
=
obj
[
obj
.
options
.
selectedIndex
];
var
keyword
=
option
.
text
;
//关键字
var
adcode
=
option
.
adcode
;
district
.
setLevel
(
option
.
value
);
//行政区级别
district
.
setExtensions
(
'
all
'
);
//行政区查询
//按照adcode进行查询可以保证数据返回的唯一性
district
.
search
(
adcode
,
function
(
status
,
result
)
{
if
(
status
===
'
complete
'
){
getData
(
result
.
districtList
[
0
],
obj
.
id
);
}
});
}
function
setCenter
(
obj
){
map
.
setCenter
(
obj
[
obj
.
options
.
selectedIndex
].
center
)
}
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
});
});
\ No newline at end of file
seal-service/src/main/resources/template/js/serviceworker/serviceworkeredit.js
已删除
100644 → 0
浏览文件 @
c5436fbb
var
map
,
district
,
polygons
=
[];
var
citySelect
;
var
districtSelect
;
var
marker
=
null
;
var
longitude
=
""
;
//经度
var
latitude
=
""
;
//纬度
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
fullscreen
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
],
function
(
form
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
;
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
sealseserviceworker004
"
,
params
:
{
rowId
:
parent
.
rowId
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
longitude
=
json
.
bean
.
longitude
;
latitude
=
json
.
bean
.
latitude
;
initMap
();
$
(
"
#userName
"
).
html
(
json
.
bean
.
userName
);
$
(
"
#longitude
"
).
val
(
longitude
);
$
(
"
#latitude
"
).
val
(
latitude
);
$
(
"
#userAddressInput
"
).
val
(
json
.
bean
.
addDetail
);
matchingLanguage
();
}});
form
.
render
();
form
.
on
(
'
submit(formEditBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
lnglatXY
=
[
$
(
"
#longitude
"
).
val
(),
$
(
"
#latitude
"
).
val
()];
//地图上所标点的坐标
geocoder
.
getAddress
(
lnglatXY
,
function
(
status
,
result
)
{
if
(
status
===
'
complete
'
&&
result
.
info
===
'
OK
'
)
{
var
params
=
{
rowId
:
parent
.
rowId
,
longitude
:
$
(
"
#longitude
"
).
val
(),
latitude
:
$
(
"
#latitude
"
).
val
(),
proName
:
result
.
regeocode
.
addressComponent
.
province
,
cityName
:
result
.
regeocode
.
addressComponent
.
city
,
areaName
:
result
.
regeocode
.
addressComponent
.
district
,
addressDetail
:
$
(
"
#userAddressInput
"
).
val
()
};
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
sealseserviceworker005
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
}
else
{
winui
.
window
.
msg
(
'
地图信息获取失败.
'
,
{
icon
:
2
,
time
:
2000
});
}
});
}
return
false
;
});
function
initMap
(){
if
(
!
isNull
(
latitude
)
&&
!
isNull
(
longitude
)){
map
=
new
AMap
.
Map
(
'
container
'
,
{
resizeEnable
:
true
,
zoom
:
11
,
center
:
[
longitude
,
latitude
]
});
}
else
{
map
=
new
AMap
.
Map
(
'
container
'
,
{
resizeEnable
:
true
,
zoom
:
5
,
center
:
[
113.65
,
34.76
]
});
}
//加载插件
AMap
.
service
(
'
AMap.Geocoder
'
,
function
(){
//回调函数
//实例化Geocoder
geocoder
=
new
AMap
.
Geocoder
({
});
});
//在地图上进行标记
marker
=
new
AMap
.
Marker
({
map
:
map
,
bubble
:
true
});
//通过地址获取经纬度
var
input
=
document
.
getElementById
(
'
userAddressInput
'
);
map
.
on
(
'
click
'
,
function
(
e
)
{
geocoder
.
getAddress
(
e
.
lnglat
,
function
(
status
,
result
){
if
(
status
==
'
complete
'
){
input
.
value
=
result
.
regeocode
.
formattedAddress
;
var
address
=
input
.
value
;
geocoder
.
getLocation
(
address
,
function
(
status
,
result
){
if
(
status
==
'
complete
'
&&
result
.
geocodes
.
length
){
marker
.
setPosition
(
result
.
geocodes
[
0
].
location
);
map
.
setCenter
(
marker
.
getPosition
());
$
(
"
#longitude
"
).
val
(
result
.
geocodes
[
0
].
location
.
lng
);
$
(
"
#latitude
"
).
val
(
result
.
geocodes
[
0
].
location
.
lat
);
}
})
}
else
{
}
});
});
input
.
onchange
=
function
(
e
)
{
var
address
=
input
.
value
;
geocoder
.
getLocation
(
address
,
function
(
status
,
result
){
if
(
status
==
'
complete
'
&&
result
.
geocodes
.
length
){
marker
.
setPosition
(
result
.
geocodes
[
0
].
location
);
map
.
setCenter
(
marker
.
getPosition
());
$
(
"
#longitude
"
).
val
(
result
.
geocodes
[
0
].
location
.
lng
);
$
(
"
#latitude
"
).
val
(
result
.
geocodes
[
0
].
location
.
lat
);
}
})
};
citySelect
=
document
.
getElementById
(
'
city
'
);
districtSelect
=
document
.
getElementById
(
'
district
'
);
//行政区划查询
var
opts
=
{
subdistrict
:
1
,
//返回下一级行政区
showbiz
:
false
//最后一级返回街道信息
};
district
=
new
AMap
.
DistrictSearch
(
opts
);
//注意:需要使用插件同步下发功能才能这样直接使用
district
.
search
(
'
中国
'
,
function
(
status
,
result
)
{
if
(
status
==
'
complete
'
){
getData
(
result
.
districtList
[
0
]);
}
});
$
(
"
#qp
"
).
click
(
function
(
e
)
{
$
(
"
#qpDiv
"
).
fullScreen
();
});
}
function
getData
(
data
,
level
)
{
var
bounds
=
data
.
boundaries
;
if
(
level
===
'
district
'
)
{
for
(
var
i
=
0
,
l
=
bounds
.
length
;
i
<
l
;
i
++
)
{
var
polygon
=
new
AMap
.
Polygon
({
map
:
map
,
fillColor
:
'
#CCF3FF
'
,
fillOpacity
:
0.5
,
path
:
bounds
[
i
],
strokeColor
:
"
#FF33FF
"
,
//线颜色
strokeOpacity
:
1
,
//线透明度
strokeWeight
:
3
,
//线宽
strokeStyle
:
"
solid
"
//线样式
});
var
input
=
document
.
getElementById
(
'
userAddressInput
'
);
polygon
.
on
(
'
click
'
,
function
(
e
)
{
geocoder
.
getAddress
(
e
.
lnglat
,
function
(
status
,
result
){
if
(
status
==
'
complete
'
){
input
.
value
=
result
.
regeocode
.
formattedAddress
;
var
address
=
input
.
value
;
geocoder
.
getLocation
(
address
,
function
(
status
,
result
){
if
(
status
==
'
complete
'
&&
result
.
geocodes
.
length
){
marker
.
setPosition
(
result
.
geocodes
[
0
].
location
);
map
.
setCenter
(
marker
.
getPosition
());
$
(
"
#longitude
"
).
val
(
result
.
geocodes
[
0
].
location
.
lng
);
$
(
"
#latitude
"
).
val
(
result
.
geocodes
[
0
].
location
.
lat
);
}
})
}
else
{
}
});
});
polygons
.
push
(
polygon
);
}
map
.
setFitView
();
//地图自适应
}
var
subList
=
data
.
districtList
;
if
(
subList
)
{
var
contentSub
=
new
Option
(
'
--请选择--
'
);
var
curlevel
=
subList
[
0
].
level
;
var
curList
=
document
.
querySelector
(
'
#
'
+
curlevel
);
if
(
!
isNull
(
curList
)){
curList
.
add
(
contentSub
);
}
for
(
var
i
=
0
,
l
=
subList
.
length
;
i
<
l
;
i
++
)
{
var
name
=
subList
[
i
].
name
;
var
levelSub
=
subList
[
i
].
level
;
var
cityCode
=
subList
[
i
].
citycode
;
contentSub
=
new
Option
(
name
);
contentSub
.
setAttribute
(
"
value
"
,
levelSub
+
i
);
contentSub
.
center
=
subList
[
i
].
center
;
contentSub
.
adcode
=
subList
[
i
].
adcode
;
if
(
!
isNull
(
curList
)){
curList
.
add
(
contentSub
);
}
if
(
level
!=
'
district
'
){
district
.
search
(
subList
[
i
].
adcode
,
function
(
status
,
result
)
{
if
(
status
===
'
complete
'
){
var
bounds
=
result
.
districtList
[
0
].
boundaries
;
if
(
bounds
)
{
for
(
var
i
=
0
,
l
=
bounds
.
length
;
i
<
l
;
i
++
)
{
var
polygon
=
new
AMap
.
Polygon
({
map
:
map
,
fillColor
:
'
#CCF3FF
'
,
fillOpacity
:
0.5
,
path
:
bounds
[
i
],
strokeColor
:
"
#FF33FF
"
,
//线颜色
strokeOpacity
:
1
,
//线透明度
strokeWeight
:
3
,
//线宽
strokeStyle
:
"
solid
"
//线样式
});
var
input
=
document
.
getElementById
(
'
userAddressInput
'
);
polygon
.
on
(
'
click
'
,
function
(
e
)
{
geocoder
.
getAddress
(
e
.
lnglat
,
function
(
status
,
result
){
if
(
status
==
'
complete
'
){
input
.
value
=
result
.
regeocode
.
formattedAddress
;
var
address
=
input
.
value
;
geocoder
.
getLocation
(
address
,
function
(
status
,
result
){
if
(
status
==
'
complete
'
&&
result
.
geocodes
.
length
){
marker
.
setPosition
(
result
.
geocodes
[
0
].
location
);
map
.
setCenter
(
marker
.
getPosition
());
$
(
"
#longitude
"
).
val
(
result
.
geocodes
[
0
].
location
.
lng
);
$
(
"
#latitude
"
).
val
(
result
.
geocodes
[
0
].
location
.
lat
);
}
})
}
else
{
}
});
});
polygons
.
push
(
polygon
);
}
map
.
setFitView
();
//地图自适应
}
}
});
}
}
}
form
.
render
(
"
select
"
);
}
form
.
on
(
'
select(province)
'
,
function
(
data
)
{
citySelect
.
innerHTML
=
''
;
districtSelect
.
innerHTML
=
''
;
form
.
render
(
"
select
"
);
search
(
document
.
getElementById
(
'
province
'
));
});
form
.
on
(
'
select(city)
'
,
function
(
data
)
{
districtSelect
.
innerHTML
=
''
;
form
.
render
(
"
select
"
);
search
(
document
.
getElementById
(
'
city
'
));
});
form
.
on
(
'
select(district)
'
,
function
(
data
)
{
search
(
document
.
getElementById
(
'
district
'
));
});
function
search
(
obj
)
{
//清除地图上所有覆盖物
for
(
var
i
=
0
,
l
=
polygons
.
length
;
i
<
l
;
i
++
)
{
polygons
[
i
].
setMap
(
null
);
}
var
option
=
obj
[
obj
.
options
.
selectedIndex
];
var
keyword
=
option
.
text
;
//关键字
var
adcode
=
option
.
adcode
;
district
.
setLevel
(
option
.
value
);
//行政区级别
district
.
setExtensions
(
'
all
'
);
//行政区查询
//按照adcode进行查询可以保证数据返回的唯一性
district
.
search
(
adcode
,
function
(
status
,
result
)
{
if
(
status
===
'
complete
'
){
getData
(
result
.
districtList
[
0
],
obj
.
id
);
}
});
}
function
setCenter
(
obj
){
map
.
setCenter
(
obj
[
obj
.
options
.
selectedIndex
].
center
)
}
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
});
});
\ No newline at end of file
seal-service/src/main/resources/template/js/serviceworker/serviceworkerlist.js
已删除
100644 → 0
浏览文件 @
c5436fbb
var
rowId
=
""
;
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
table
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
$
=
layui
.
$
,
form
=
layui
.
form
,
table
=
layui
.
table
;
authBtn
(
'
1582382603658
'
);
table
.
render
({
id
:
'
messageTable
'
,
elem
:
'
#messageTable
'
,
method
:
'
post
'
,
url
:
flowableBasePath
+
'
sealseserviceworker001
'
,
where
:
getTableParams
(),
even
:
true
,
page
:
true
,
limits
:
getLimits
(),
limit
:
getLimit
(),
cols
:
[[
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
field
:
'
userName
'
,
title
:
'
用户姓名
'
,
align
:
'
left
'
,
width
:
120
},
{
field
:
'
proName
'
,
title
:
'
所在省
'
,
align
:
'
left
'
,
width
:
80
},
{
field
:
'
cityName
'
,
title
:
'
所在市
'
,
align
:
'
left
'
,
width
:
80
},
{
field
:
'
areaName
'
,
title
:
'
所在区
'
,
align
:
'
left
'
,
width
:
80
},
{
field
:
'
orderNumber
'
,
title
:
'
工单数
'
,
align
:
'
left
'
,
width
:
60
},
{
field
:
'
stateName
'
,
title
:
'
状态
'
,
align
:
'
center
'
,
width
:
80
,
templet
:
function
(
d
)
{
if
(
d
.
orderNumber
>
0
){
return
'
<span class="state-down">
'
+
d
.
stateName
+
'
</span>
'
;
}
else
{
return
'
<span class="state-up">
'
+
d
.
stateName
+
'
</span>
'
;
}
}},
{
field
:
'
addDetail
'
,
title
:
'
详细地址
'
,
align
:
'
left
'
,
width
:
400
},
{
field
:
'
createTime
'
,
title
:
systemLanguage
[
"
com.skyeye.createTime
"
][
languageType
],
align
:
'
center
'
,
width
:
150
},
{
title
:
systemLanguage
[
"
com.skyeye.operation
"
][
languageType
],
fixed
:
'
right
'
,
align
:
'
center
'
,
width
:
150
,
toolbar
:
'
#tableBar
'
}
]],
done
:
function
(
json
)
{
matchingLanguage
();
initTableSearchUtil
.
initAdvancedSearch
(
this
,
json
.
searchFilter
,
form
,
"
请输入所在省,市,区县
"
,
function
()
{
table
.
reloadData
(
"
messageTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()});
});
}
});
table
.
on
(
'
tool(messageTable)
'
,
function
(
obj
)
{
var
data
=
obj
.
data
;
var
layEvent
=
obj
.
event
;
if
(
layEvent
===
'
edit
'
)
{
//编辑
edit
(
data
);
}
else
if
(
layEvent
===
'
delete
'
)
{
//删除
del
(
data
);
}
});
// 新增
$
(
"
body
"
).
on
(
"
click
"
,
"
#addBean
"
,
function
()
{
_openNewWindows
({
url
:
"
../../tpl/serviceworker/serviceworkeradd.html
"
,
title
:
systemLanguage
[
"
com.skyeye.addPageTitle
"
][
languageType
],
pageId
:
"
serviceworkeradd
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
// 编辑
function
edit
(
data
)
{
rowId
=
data
.
id
;
_openNewWindows
({
url
:
"
../../tpl/serviceworker/serviceworkeredit.html
"
,
title
:
systemLanguage
[
"
com.skyeye.editPageTitle
"
][
languageType
],
pageId
:
"
serviceworkeredit
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
}
// 删除
function
del
(
data
,
obj
)
{
layer
.
confirm
(
systemLanguage
[
"
com.skyeye.deleteOperationMsg
"
][
languageType
],
{
icon
:
3
,
title
:
systemLanguage
[
"
com.skyeye.deleteOperation
"
][
languageType
]},
function
(
index
)
{
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
sealseserviceworker003
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.deleteOperationSuccessMsg
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
}
form
.
render
();
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
loadTable
();
});
function
loadTable
()
{
table
.
reloadData
(
"
messageTable
"
,
{
where
:
getTableParams
()});
}
function
getTableParams
()
{
return
$
.
extend
(
true
,
{},
initTableSearchUtil
.
getSearchValue
(
"
messageTable
"
));
}
exports
(
'
serviceworkerlist
'
,
{});
});
\ No newline at end of file
seal-service/src/main/resources/template/tpl/se
rvicew
orker/serviceworkermap.html
→
seal-service/src/main/resources/template/tpl/se
alW
orker/serviceworkermap.html
浏览文件 @
56c8e98b
文件已移动
seal-service/src/main/resources/template/tpl/se
rvicew
orker/serviceworkershowlist.html
→
seal-service/src/main/resources/template/tpl/se
alW
orker/serviceworkershowlist.html
浏览文件 @
56c8e98b
文件已移动
seal-service/src/main/resources/template/tpl/se
rviceworker/serviceworkeradd
.html
→
seal-service/src/main/resources/template/tpl/se
alWorker/writeSealWorker
.html
浏览文件 @
56c8e98b
...
...
@@ -26,42 +26,42 @@
<i
class=
"fa fa-user-plus input-icon"
id=
"userIdSelPeople"
></i>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
经度
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"longitude"
win-verify=
"required"
placeholder=
"请进行地图定位"
disabled
class=
"layui-input"
/>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
纬度
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"latitude"
win-verify=
"required"
placeholder=
"请进行地图定位"
disabled
class=
"layui-input"
/>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
地址
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"userAddressInput
"
win-verify=
"required"
placeholder=
"请进行地图定位"
disabled
class=
"layui-input"
/>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
地图定位
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block ver-center"
>
<div
class=
"layui-col-xs12"
style=
"height:400px;"
>
<div
class=
"col-sm-12"
style=
"height:100%;"
id=
"qpDiv"
>
<div
id=
"container"
class=
"form-group"
style=
"height:100%;"
>
</div>
<div
id=
"tip"
>
<font
style=
"float: left;"
>
省:
</font><select
id=
'province'
win-verify=
"required"
lay-filter=
"province"
lay-search=
""
></select>
<font
style=
"float: left;"
>
市:
</font><select
id=
'city'
win-verify=
"required"
lay-filter=
"city"
lay-search=
""
></select>
<font
style=
"float: left;"
>
区:
</font><select
id=
'district'
win-verify=
"required"
lay-filter=
"district"
lay-search=
""
></select>
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
经度
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"longitude"
win-verify=
"required"
placeholder=
"请进行地图定位"
disabled
class=
"layui-input"
/>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
纬度
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"latitude"
win-verify=
"required"
placeholder=
"请进行地图定位"
disabled
class=
"layui-input"
/>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
地址
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"absoluteAddress
"
win-verify=
"required"
placeholder=
"请进行地图定位"
disabled
class=
"layui-input"
/>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
地图定位
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block ver-center"
>
<div
class=
"layui-col-xs12"
style=
"height:400px;"
>
<div
class=
"col-sm-12"
style=
"height:100%;"
id=
"qpDiv"
>
<div
id=
"container"
class=
"form-group"
style=
"height:100%;"
>
</div>
<div
id=
"tip"
>
<font
style=
"float: left;"
>
省:
</font><select
id=
'province'
win-verify=
"required"
lay-filter=
"province"
lay-search=
""
></select>
<font
style=
"float: left;"
>
市:
</font><select
id=
'city'
win-verify=
"required"
lay-filter=
"city"
lay-search=
""
></select>
<font
style=
"float: left;"
>
区:
</font><select
id=
'district'
win-verify=
"required"
lay-filter=
"district"
lay-search=
""
></select>
<font
style=
"float: left;"
id=
"qp"
>
全屏
</font>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<div
class=
"layui-input-block"
>
<button
class=
"winui-btn"
id=
"cancle"
><language
showName=
"com.skyeye.cancel"
></language></button>
...
...
@@ -72,11 +72,16 @@
</div>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
>
window
.
_AMapSecurityConfig
=
{
securityJsCode
:
sysMainMation
.
skyeyeMapKey
}
</script>
<script
type=
"text/javascript"
src=
"http://webapi.amap.com/maps?v=1.4.6&key=7e3eb4aa298949346daf89edeeb3dec8&plugin=AMap.DistrictSearch"
></script>
<script
type=
"text/javascript"
src=
"https://webapi.amap.com/demos/js/liteToolbar.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/se
rviceworker/
'
}).
use
(
'
serviceworkeradd
'
);
layui
.
config
({
base
:
'
../../js/se
alWorker/
'
}).
use
(
'
writeSealWorker
'
);
</script>
</body>
</html>
\ No newline at end of file
seal-service/src/main/resources/template/tpl/serviceworker/serviceworkeredit.html
已删除
100644 → 0
浏览文件 @
c5436fbb
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
<link
rel=
"stylesheet"
href=
"http://cache.amap.com/lbs/static/main.css?v=1.0?v=1.0"
/>
<style
type=
"text/css"
>
#tip
.layui-form-select
{
width
:
100px
;
float
:
left
;
height
:
28px
;
padding-left
:
0px
;
padding-right
:
0px
;
}
</style>
</head>
<body>
<div
style=
"padding:20px; margin:0 auto;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
人员
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block ver-center"
id=
"userName"
>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
经度
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"longitude"
win-verify=
"required"
placeholder=
"请进行地图定位"
disabled
class=
"layui-input"
/>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
纬度
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"latitude"
win-verify=
"required"
placeholder=
"请进行地图定位"
disabled
class=
"layui-input"
/>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
地址
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"userAddressInput"
win-verify=
"required"
placeholder=
"请进行地图定位"
disabled
class=
"layui-input"
/>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
地图定位
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block ver-center"
>
<div
class=
"layui-col-xs12"
style=
"height:400px;"
>
<div
class=
"col-sm-12"
style=
"height:100%;"
id=
"qpDiv"
>
<div
id=
"container"
class=
"form-group"
style=
"height:100%;"
>
</div>
<div
id=
"tip"
>
<font
style=
"float: left;"
>
省:
</font><select
id=
'province'
win-verify=
"required"
lay-filter=
"province"
lay-search=
""
></select>
<font
style=
"float: left;"
>
市:
</font><select
id=
'city'
win-verify=
"required"
lay-filter=
"city"
lay-search=
""
></select>
<font
style=
"float: left;"
>
区:
</font><select
id=
'district'
win-verify=
"required"
lay-filter=
"district"
lay-search=
""
></select>
<font
style=
"float: left;"
id=
"qp"
>
全屏
</font>
</div>
</div>
</div>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<div
class=
"layui-input-block"
>
<button
class=
"winui-btn"
id=
"cancle"
><language
showName=
"com.skyeye.cancel"
></language></button>
<button
class=
"winui-btn"
lay-submit
lay-filter=
"formEditBean"
><language
showName=
"com.skyeye.save"
></language></button>
</div>
</div>
</form>
</div>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
src=
"http://webapi.amap.com/maps?v=1.4.6&key=7e3eb4aa298949346daf89edeeb3dec8&plugin=AMap.DistrictSearch"
></script>
<script
type=
"text/javascript"
src=
"https://webapi.amap.com/demos/js/liteToolbar.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/serviceworker/
'
}).
use
(
'
serviceworkeredit
'
);
</script>
</body>
</html>
\ No newline at end of file
seal-service/src/main/resources/template/tpl/serviceworker/serviceworkerlist.html
已删除
100644 → 0
浏览文件 @
c5436fbb
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
class=
"winui-tip alert-info"
id=
"showInfo"
>
注:该工单数包含待签到和待完工工单。
</div>
<div
class=
"winui-toolbar"
>
<div
class=
"winui-tool"
>
<button
id=
"reloadTable"
class=
"winui-toolbtn search-table-btn-right"
><i
class=
"fa fa-refresh"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.refreshDataBtn"
></language></button>
<button
id=
"addBean"
class=
"winui-toolbtn search-table-btn-right"
auth=
"1582382603658"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.addBtn"
></language></button>
</div>
</div>
<div
style=
"margin: auto 10px;"
>
<table
id=
"messageTable"
lay-filter=
"messageTable"
></table>
<script
type=
"text/html"
id=
"tableBar"
>
{{
#
if
(
auth
(
'
1582382646682
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
edit
"
><
language
showName
=
"
com.skyeye.editBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1582382681644
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-danger
"
lay
-
event
=
"
delete
"
><
language
showName
=
"
com.skyeye.deleteBtn
"
><
/language></
a
>
{{
#
}
}}
</script>
</div>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/serviceworker/
'
}).
use
(
'
serviceworkerlist
'
);
</script>
</body>
</html>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录