Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
5647f8d6
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1434
Star
162
Fork
130
代码
文件
提交
分支
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看板
提交
5647f8d6
编写于
8月 09, 2023
作者:
Skyeye云
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
学校管理托管到表单布局
上级
2d0d2d81
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
404 addition
and
1170 deletion
+404
-1170
school/src/main/resources/template/js/school/writeSchool.js
school/src/main/resources/template/js/school/writeSchool.js
+298
-0
school/src/main/resources/template/js/schoolmation/schoolmationadd.js
...ain/resources/template/js/schoolmation/schoolmationadd.js
+0
-371
school/src/main/resources/template/js/schoolmation/schoolmationedit.js
...in/resources/template/js/schoolmation/schoolmationedit.js
+0
-408
school/src/main/resources/template/js/schoolmation/schoolmationlist.js
...in/resources/template/js/schoolmation/schoolmationlist.js
+0
-117
school/src/main/resources/template/tpl/school/writeSchool.html
...l/src/main/resources/template/tpl/school/writeSchool.html
+100
-0
school/src/main/resources/template/tpl/schoolmation/schoolmationadd.html
.../resources/template/tpl/schoolmation/schoolmationadd.html
+0
-110
school/src/main/resources/template/tpl/schoolmation/schoolmationedit.html
...resources/template/tpl/schoolmation/schoolmationedit.html
+0
-35
school/src/main/resources/template/tpl/schoolmation/schoolmationeditTemplate.tpl
...es/template/tpl/schoolmation/schoolmationeditTemplate.tpl
+0
-78
school/src/main/resources/template/tpl/schoolmation/schoolmationlist.html
...resources/template/tpl/schoolmation/schoolmationlist.html
+0
-47
seal-service/src/main/resources/template/tpl/serviceworker/serviceworkeradd.html
...esources/template/tpl/serviceworker/serviceworkeradd.html
+1
-1
seal-service/src/main/resources/template/tpl/serviceworker/serviceworkeredit.html
...sources/template/tpl/serviceworker/serviceworkeredit.html
+1
-1
seal-service/src/main/resources/template/tpl/serviceworker/serviceworkermap.html
...esources/template/tpl/serviceworker/serviceworkermap.html
+1
-1
web/src/main/resources/template/json/skyeyeClassEnum.json
web/src/main/resources/template/json/skyeyeClassEnum.json
+3
-1
未找到文件。
school/src/main/resources/template/js/school/writeSchool.js
0 → 100644
浏览文件 @
5647f8d6
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
'
,
'
form
'
],
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
.
schoolBasePath
+
"
querySchoolById
"
,
params
:
{
id
:
id
},
type
:
'
json
'
,
method
:
'
GET
'
,
callback
:
function
(
json
)
{
$
(
"
#name
"
).
val
(
json
.
bean
.
name
);
$
(
"
#remark
"
).
val
(
json
.
bean
.
remark
);
skyeyeClassEnumUtil
.
showEnumDataListByClassName
(
"
schoolPower
"
,
'
radio
'
,
"
power
"
,
json
.
bean
.
power
,
form
);
longitude
=
json
.
bean
.
longitude
;
latitude
=
json
.
bean
.
latitude
;
initMap
();
$
(
"
#longitude
"
).
val
(
longitude
);
$
(
"
#latitude
"
).
val
(
latitude
);
$
(
"
#absoluteAddress
"
).
val
(
json
.
bean
.
absoluteAddress
);
}});
}
else
{
skyeyeClassEnumUtil
.
showEnumDataListByClassName
(
"
schoolPower
"
,
'
radio
'
,
"
power
"
,
null
,
form
);
}
matchingLanguage
();
form
.
render
();
form
.
on
(
'
submit(formAddBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
pId
=
'
0
'
;
if
(
$
(
"
input[name='schoolType']:checked
"
).
val
()
==
'
2
'
){
if
(
isNull
(
$
(
"
#OverAllSchool
"
).
val
()))
{
winui
.
window
.
msg
(
'
请选择父学校
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
else
{
pId
=
$
(
"
#OverAllSchool
"
).
val
();
}
}
var
lnglatXY
=
[
$
(
"
#longitude
"
).
val
(),
$
(
"
#latitude
"
).
val
()];
//地图上所标点的坐标
geocoder
.
getAddress
(
lnglatXY
,
function
(
status
,
result
)
{
if
(
status
===
'
complete
'
&&
result
.
info
===
'
OK
'
)
{
var
params
=
{
id
:
isNull
(
id
)
?
''
:
id
,
name
:
$
(
"
#name
"
).
val
(),
remark
:
$
(
"
#remark
"
).
val
(),
provinceId
:
result
.
regeocode
.
addressComponent
.
province
,
cityId
:
result
.
regeocode
.
addressComponent
.
city
,
areaId
:
result
.
regeocode
.
addressComponent
.
district
,
townshipId
:
''
,
longitude
:
$
(
"
#longitude
"
).
val
(),
latitude
:
$
(
"
#latitude
"
).
val
(),
power
:
dataShowType
.
getData
(
'
power
'
),
absoluteAddress
:
$
(
"
#absoluteAddress
"
).
val
()
};
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
schoolBasePath
+
"
writeSchool
"
,
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
;
});
//加载地图
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
);
}
})
}
});
});
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
);
}
})
}
});
});
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
);
}
})
}
});
});
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
school/src/main/resources/template/js/schoolmation/schoolmationadd.js
已删除
100644 → 0
浏览文件 @
2d0d2d81
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
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
,
'
layedit
'
],
function
(
form
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
,
form
=
layui
.
form
,
layedit
=
layui
.
layedit
;
layedit
.
set
({
uploadImage
:
{
url
:
reqBasePath
+
"
common003
"
,
//接口url
type
:
'
post
'
,
//默认post
data
:
{
type
:
'
13
'
}
}
});
var
layContent
=
layedit
.
build
(
'
content
'
,
{
tool
:
[
'
html
'
,
'
strong
'
//加粗
,
'
italic
'
//斜体
,
'
underline
'
//下划线
,
'
del
'
//删除线
,
'
addhr
'
,
'
|
'
,
'
removeformat
'
,
'
fontFomatt
'
,
'
fontfamily
'
,
'
fontSize
'
,
'
colorpicker
'
,
'
fontBackColor
'
,
'
face
'
//表情
,
'
|
'
//分割线
,
'
left
'
//左对齐
,
'
center
'
//居中对齐
,
'
right
'
//右对齐
,
'
link
'
//超链接
,
'
unlink
'
//清除链接
,
'
code
'
,
'
image
'
//插入图片
,
'
attachment
'
,
'
table
'
,
'
|
'
,
'
fullScreen
'
,
'
preview
'
,
'
|
'
,
'
help
'
],
uploadFiles
:
{
url
:
reqBasePath
+
"
common003
"
,
accept
:
'
file
'
,
acceptMime
:
'
file/*
'
,
size
:
'
20480
'
,
data
:
{
type
:
'
13
'
},
autoInsert
:
true
,
//自动插入编辑器设置
done
:
function
(
data
)
{
}
}
});
matchingLanguage
();
form
.
render
();
showGrid
({
id
:
"
OverAllSchool
"
,
url
:
schoolBasePath
+
"
schoolmation006
"
,
params
:
{},
pagination
:
false
,
template
:
getFileContent
(
'
tpl/template/select-option.tpl
'
),
ajaxSendLoadBefore
:
function
(
hdb
)
{
},
ajaxSendAfter
:
function
(
json
)
{
form
.
render
(
'
select
'
);
}
});
//默认隐藏子学校
$
(
"
#parentIdBox
"
).
addClass
(
"
layui-hide
"
);
form
.
on
(
'
radio(schoolType)
'
,
function
(
data
)
{
var
val
=
data
.
value
;
if
(
val
==
'
1
'
){
//父学校
$
(
"
#parentIdBox
"
).
addClass
(
"
layui-hide
"
);
}
else
if
(
val
==
'
2
'
){
//子学校
$
(
"
#parentIdBox
"
).
removeClass
(
"
layui-hide
"
);
}
else
{
winui
.
window
.
msg
(
'
状态值错误
'
,
{
icon
:
2
,
time
:
2000
});
}
});
form
.
on
(
'
submit(formAddBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
pId
=
'
0
'
;
if
(
$
(
"
input[name='schoolType']:checked
"
).
val
()
==
'
2
'
){
if
(
isNull
(
$
(
"
#OverAllSchool
"
).
val
()))
{
winui
.
window
.
msg
(
'
请选择父学校
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
else
{
pId
=
$
(
"
#OverAllSchool
"
).
val
();
}
}
var
lnglatXY
=
[
$
(
"
#longitude
"
).
val
(),
$
(
"
#latitude
"
).
val
()];
//地图上所标点的坐标
geocoder
.
getAddress
(
lnglatXY
,
function
(
status
,
result
)
{
if
(
status
===
'
complete
'
&&
result
.
info
===
'
OK
'
)
{
var
params
=
{
schoolName
:
$
(
"
#schoolName
"
).
val
(),
schoolDesc
:
encodeURIComponent
(
layedit
.
getContent
(
layContent
)),
pId
:
pId
,
provinceId
:
result
.
regeocode
.
addressComponent
.
province
,
cityId
:
result
.
regeocode
.
addressComponent
.
city
,
areaId
:
result
.
regeocode
.
addressComponent
.
district
,
townshipId
:
''
,
longitude
:
$
(
"
#longitude
"
).
val
(),
latitude
:
$
(
"
#latitude
"
).
val
(),
power
:
$
(
"
input[name='power']:checked
"
).
val
(),
addressDetailed
:
$
(
"
#userAddressInput
"
).
val
()
};
AjaxPostUtil
.
request
({
url
:
schoolBasePath
+
"
schoolmation002
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
}
else
{
winui
.
window
.
msg
(
'
地图信息获取失败.
'
,
{
icon
:
2
,
time
:
2000
});
}
});
}
return
false
;
});
//加载地图
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
school/src/main/resources/template/js/schoolmation/schoolmationedit.js
已删除
100644 → 0
浏览文件 @
2d0d2d81
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
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
,
'
layedit
'
],
function
(
form
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
,
form
=
layui
.
form
,
layedit
=
layui
.
layedit
;
var
layContent
;
showGrid
({
id
:
"
showForm
"
,
url
:
schoolBasePath
+
"
schoolmation004
"
,
params
:
{
rowId
:
parent
.
rowId
},
pagination
:
false
,
template
:
getFileContent
(
'
tpl/schoolmation/schoolmationeditTemplate.tpl
'
),
ajaxSendLoadBefore
:
function
(
hdb
)
{
},
ajaxSendAfter
:
function
(
json
)
{
layedit
.
set
({
uploadImage
:
{
url
:
reqBasePath
+
"
common003
"
,
//接口url
type
:
'
post
'
,
//默认post
data
:
{
type
:
'
13
'
}
}
});
layContent
=
layedit
.
build
(
'
content
'
,
{
tool
:
[
'
html
'
,
'
strong
'
//加粗
,
'
italic
'
//斜体
,
'
underline
'
//下划线
,
'
del
'
//删除线
,
'
addhr
'
,
'
|
'
,
'
removeformat
'
,
'
fontFomatt
'
,
'
fontfamily
'
,
'
fontSize
'
,
'
colorpicker
'
,
'
fontBackColor
'
,
'
face
'
//表情
,
'
|
'
//分割线
,
'
left
'
//左对齐
,
'
center
'
//居中对齐
,
'
right
'
//右对齐
,
'
link
'
//超链接
,
'
unlink
'
//清除链接
,
'
code
'
,
'
image
'
//插入图片
,
'
attachment
'
,
'
table
'
,
'
|
'
,
'
fullScreen
'
,
'
preview
'
,
'
|
'
,
'
help
'
],
uploadFiles
:
{
url
:
reqBasePath
+
"
common003
"
,
accept
:
'
file
'
,
acceptMime
:
'
file/*
'
,
size
:
'
20480
'
,
data
:
{
type
:
'
13
'
},
autoInsert
:
true
,
//自动插入编辑器设置
done
:
function
(
data
)
{
}
}
});
if
(
json
.
bean
.
pId
==
'
0
'
||
isNull
(
json
.
bean
.
pId
)){
$
(
"
#parentIdBox
"
).
addClass
(
"
layui-hide
"
);
$
(
"
input:radio[name=schoolType][value=1]
"
).
attr
(
"
checked
"
,
true
);
loadParentSchool
(
""
);
}
else
{
$
(
"
input:radio[name=schoolType][value=2]
"
).
attr
(
"
checked
"
,
true
);
//初始化父学校
loadParentSchool
(
json
.
bean
.
pId
);
}
$
(
"
input:radio[name=power][value=
"
+
json
.
bean
.
power
+
"
]
"
).
attr
(
"
checked
"
,
true
);
matchingLanguage
();
form
.
render
();
//地址
longitude
=
json
.
bean
.
longitude
;
latitude
=
json
.
bean
.
latitude
;
initMap
();
$
(
"
#longitude
"
).
val
(
longitude
);
$
(
"
#latitude
"
).
val
(
latitude
);
$
(
"
#userAddressInput
"
).
val
(
json
.
bean
.
addressDetailed
);
form
.
on
(
'
radio(schoolType)
'
,
function
(
data
)
{
var
val
=
data
.
value
;
if
(
val
==
'
1
'
){
//父学校
$
(
"
#parentIdBox
"
).
addClass
(
"
layui-hide
"
);
}
else
if
(
val
==
'
2
'
){
//子学校
$
(
"
#parentIdBox
"
).
removeClass
(
"
layui-hide
"
);
}
else
{
winui
.
window
.
msg
(
'
状态值错误
'
,
{
icon
:
2
,
time
:
2000
});
}
});
form
.
on
(
'
submit(formEditBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
pId
=
'
0
'
;
if
(
$
(
"
input[name='schoolType']:checked
"
).
val
()
==
'
2
'
){
if
(
isNull
(
$
(
"
#OverAllSchool
"
).
val
()))
{
winui
.
window
.
msg
(
'
请选择父学校
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
else
{
pId
=
$
(
"
#OverAllSchool
"
).
val
();
}
}
var
lnglatXY
=
[
$
(
"
#longitude
"
).
val
(),
$
(
"
#latitude
"
).
val
()];
//地图上所标点的坐标
geocoder
.
getAddress
(
lnglatXY
,
function
(
status
,
result
)
{
if
(
status
===
'
complete
'
&&
result
.
info
===
'
OK
'
)
{
var
params
=
{
schoolName
:
$
(
"
#schoolName
"
).
val
(),
schoolDesc
:
encodeURIComponent
(
layedit
.
getContent
(
layContent
)),
pId
:
pId
,
provinceId
:
result
.
regeocode
.
addressComponent
.
province
,
cityId
:
result
.
regeocode
.
addressComponent
.
city
,
areaId
:
result
.
regeocode
.
addressComponent
.
district
,
townshipId
:
''
,
addressDetailed
:
$
(
"
#userAddressInput
"
).
val
(),
longitude
:
$
(
"
#longitude
"
).
val
(),
latitude
:
$
(
"
#latitude
"
).
val
(),
power
:
$
(
"
input[name='power']:checked
"
).
val
(),
rowId
:
parent
.
rowId
};
AjaxPostUtil
.
request
({
url
:
schoolBasePath
+
"
schoolmation005
"
,
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
loadParentSchool
(
id
){
showGrid
({
id
:
"
OverAllSchool
"
,
url
:
schoolBasePath
+
"
schoolmation006
"
,
params
:
{},
pagination
:
false
,
template
:
getFileContent
(
'
tpl/template/select-option.tpl
'
),
ajaxSendLoadBefore
:
function
(
hdb
)
{
},
ajaxSendAfter
:
function
(
json
)
{
$
(
"
#OverAllSchool
"
).
val
(
id
);
form
.
render
(
'
select
'
);
}
});
}
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
school/src/main/resources/template/js/schoolmation/schoolmationlist.js
已删除
100644 → 0
浏览文件 @
2d0d2d81
var
rowId
=
""
;
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
tableTreeDj
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
$
=
layui
.
$
,
form
=
layui
.
form
,
tableTree
=
layui
.
tableTreeDj
;
authBtn
(
'
1585824465120
'
);
tableTree
.
render
({
id
:
'
messageTable
'
,
elem
:
'
#messageTable
'
,
method
:
'
post
'
,
url
:
schoolBasePath
+
'
schoolmation001
'
,
where
:
{
schoolName
:
$
(
"
#schoolName
"
).
val
()},
cols
:
[[
{
field
:
'
schoolName
'
,
width
:
300
,
title
:
'
学校名称
'
},
{
field
:
'
schoolDesc
'
,
width
:
80
,
title
:
'
学校简介
'
,
align
:
'
center
'
,
templet
:
function
(
d
)
{
return
'
<i class="fa fa-fw fa-html5 cursor" lay-event="schoolDesc"></i>
'
;
}},
{
field
:
'
addressDetailed
'
,
width
:
400
,
title
:
'
学校地址
'
},
{
field
:
'
createTime
'
,
width
:
150
,
align
:
'
center
'
,
title
:
systemLanguage
[
"
com.skyeye.entryTime
"
][
languageType
]},
{
field
:
'
powerName
'
,
width
:
120
,
align
:
'
center
'
,
title
:
'
数据权限
'
},
{
title
:
systemLanguage
[
"
com.skyeye.operation
"
][
languageType
],
fixed
:
'
right
'
,
align
:
'
center
'
,
width
:
240
,
toolbar
:
'
#tableBar
'
}
]],
done
:
function
(
json
)
{
matchingLanguage
();
}
},
{
keyId
:
'
id
'
,
keyPid
:
'
pId
'
,
title
:
'
schoolName
'
,
});
tableTree
.
getTable
().
on
(
'
tool(messageTable)
'
,
function
(
obj
)
{
var
data
=
obj
.
data
;
var
layEvent
=
obj
.
event
;
if
(
layEvent
===
'
del
'
)
{
//删除
del
(
data
,
obj
);
}
else
if
(
layEvent
===
'
edit
'
)
{
//编辑
edit
(
data
);
}
else
if
(
layEvent
===
'
schoolDesc
'
)
{
//学校简介
layer
.
open
({
id
:
'
学校简介
'
,
type
:
1
,
title
:
'
学校简介
'
,
shade
:
0.3
,
area
:
[
'
90vw
'
,
'
90vh
'
],
content
:
data
.
schoolDesc
});
}
});
form
.
render
();
form
.
on
(
'
submit(formSearch)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
loadTable
();
}
return
false
;
});
//删除
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
:
schoolBasePath
+
"
schoolmation003
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.deleteOperationSuccessMsg
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
}
//编辑
function
edit
(
data
)
{
rowId
=
data
.
id
;
_openNewWindows
({
url
:
"
../../tpl/schoolmation/schoolmationedit.html
"
,
title
:
systemLanguage
[
"
com.skyeye.editPageTitle
"
][
languageType
],
pageId
:
"
schoolmationedit
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
}
//刷新数据
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
loadTable
();
});
//新增
$
(
"
body
"
).
on
(
"
click
"
,
"
#addBean
"
,
function
()
{
_openNewWindows
({
url
:
"
../../tpl/schoolmation/schoolmationadd.html
"
,
title
:
systemLanguage
[
"
com.skyeye.addPageTitle
"
][
languageType
],
pageId
:
"
schoolmationadd
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
function
loadTable
()
{
tableTree
.
reload
(
"
messageTable
"
,
{
where
:{
schoolName
:
$
(
"
#schoolName
"
).
val
()}});
}
exports
(
'
schoolmationlist
'
,
{});
});
school/src/main/resources/template/tpl/school/writeSchool.html
0 → 100644
浏览文件 @
5647f8d6
<!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=
"margin:0 auto; padding: 20px;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
autocomplete=
"off"
>
<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=
"name"
name=
"name"
win-verify=
"required"
placeholder=
"请输入学校名称"
class=
"layui-input"
maxlength=
"50"
/>
</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=
"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
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
数据权限
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block winui-radio"
id=
"power"
win-verify=
"required"
>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
学校简介
</label>
<div
class=
"layui-input-block"
>
<textarea
id=
"remark"
name=
"remark"
placeholder=
"请输入简介"
class=
"layui-textarea"
></textarea>
</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=
"formAddBean"
><language
showName=
"com.skyeye.save"
></language></button>
</div>
</div>
</form>
</div>
<script
src=
"../../assets/lib/layui/lay/modules/ace/ace.js"
></script>
<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/school/
'
}).
use
(
'
writeSchool
'
);
</script>
</body>
</html>
\ No newline at end of file
school/src/main/resources/template/tpl/schoolmation/schoolmationadd.html
已删除
100644 → 0
浏览文件 @
2d0d2d81
<!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=
"margin:0 auto;padding:20px;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
autocomplete=
"off"
>
<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=
"schoolName"
name=
"schoolName"
win-verify=
"required"
placeholder=
"请输入学校名称"
class=
"layui-input"
maxlength=
"50"
/>
</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 winui-radio"
>
<input
type=
"radio"
name=
"schoolType"
value=
"1"
title=
"总学校"
lay-filter=
"schoolType"
checked
/>
<input
type=
"radio"
name=
"schoolType"
value=
"2"
title=
"附属学校"
lay-filter=
"schoolType"
/>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
id=
"parentIdBox"
>
<label
class=
"layui-form-label"
>
父学校
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<select
id=
"OverAllSchool"
lay-filter=
"OverAllSchool"
lay-search=
""
>
<option
value=
""
>
请选择
</option>
</select>
</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-xs6"
>
<label
class=
"layui-form-label"
>
数据权限
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block winui-radio"
>
<input
type=
"radio"
name=
"power"
value=
"1"
title=
"查看所有"
lay-filter=
"power"
checked
/>
<input
type=
"radio"
name=
"power"
value=
"2"
title=
"只看本校"
lay-filter=
"power"
/>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
学校简介
</label>
<div
class=
"layui-input-block"
>
<textarea
id=
"content"
name=
"content"
style=
"display: none;"
></textarea>
</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=
"formAddBean"
><language
showName=
"com.skyeye.save"
></language></button>
</div>
</div>
</form>
</div>
<script
src=
"../../assets/lib/layui/lay/modules/ace/ace.js"
></script>
<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=83f6b037aa3db095fec7003f266aca53&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/schoolmation/
'
}).
use
(
'
schoolmationadd
'
);
</script>
</body>
</html>
\ No newline at end of file
school/src/main/resources/template/tpl/schoolmation/schoolmationedit.html
已删除
100644 → 0
浏览文件 @
2d0d2d81
<!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=
"margin:0 auto;padding:20px;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
autocomplete=
"off"
>
</form>
</div>
<script
src=
"../../assets/lib/layui/lay/modules/ace/ace.js"
></script>
<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=83f6b037aa3db095fec7003f266aca53&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/schoolmation/
'
}).
use
(
'
schoolmationedit
'
);
</script>
</body>
</html>
\ No newline at end of file
school/src/main/resources/template/tpl/schoolmation/schoolmationeditTemplate.tpl
已删除
100644 → 0
浏览文件 @
2d0d2d81
{{
#
bean
}}
<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=
"schoolName"
name=
"schoolName"
win-verify=
"required"
placeholder=
"请输入学校名称"
class=
"layui-input"
maxlength=
"50"
value=
"{
{
schoolName
}
}"
/>
</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 winui-radio"
>
<input
type=
"radio"
name=
"schoolType"
value=
"1"
title=
"父学校"
lay-filter=
"schoolType"
/>
<input
type=
"radio"
name=
"schoolType"
value=
"2"
title=
"附属学校"
lay-filter=
"schoolType"
/>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
id=
"parentIdBox"
>
<label
class=
"layui-form-label"
>
父学校
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<select
id=
"OverAllSchool"
lay-filter=
"OverAllSchool"
lay-search=
""
>
<option
value=
""
>
请选择
</option>
</select>
</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-xs6"
>
<label
class=
"layui-form-label"
>
数据权限
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block winui-radio"
>
<input
type=
"radio"
name=
"power"
value=
"1"
title=
"查看所有"
lay-filter=
"power"
/>
<input
type=
"radio"
name=
"power"
value=
"2"
title=
"只看本校"
lay-filter=
"power"
/>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
学校简介
</label>
<div
class=
"layui-input-block"
>
<textarea
id=
"content"
name=
"content"
style=
"display: none;"
>
{
{
schoolDesc
}
}
</textarea>
</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>
{
{/
bean
}
}
\ No newline at end of file
school/src/main/resources/template/tpl/schoolmation/schoolmationlist.html
已删除
100644 → 0
浏览文件 @
2d0d2d81
<!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=
"txtcenter"
style=
"margin:0 auto;padding-top:10px;"
>
<form
class=
"layui-form layui-form-pane"
action=
""
autocomplete=
"off"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
学校名称
</label>
<div
class=
"layui-input-inline"
>
<input
id=
"schoolName"
name=
"schoolName"
class=
"layui-input"
placeholder=
"请输入学校名称"
/>
</div>
<button
type=
"reset"
class=
"layui-btn layui-btn-primary list-form-search"
><language
showName=
"com.skyeye.reset"
></language></button>
<button
class=
"layui-btn list-form-search"
lay-submit
lay-filter=
"formSearch"
><language
showName=
"com.skyeye.search2"
></language></button>
</div>
</div>
</form>
</div>
<div
class=
"winui-toolbar"
>
<div
class=
"winui-tool"
>
<button
id=
"reloadTable"
class=
"winui-toolbtn"
><i
class=
"fa fa-refresh"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.refreshDataBtn"
></language></button>
<button
id=
"addBean"
class=
"winui-toolbtn"
auth=
"1585824465120"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i>
新增学校
</button>
</div>
</div>
<div
style=
"margin:auto 10px;"
>
<table
id=
"messageTable"
lay-filter=
"messageTable"
></table>
<script
type=
"text/html"
id=
"tableBar"
>
{{
#
if
(
auth
(
'
1585877455622
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
edit
"
><
language
showName
=
"
com.skyeye.editBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
if
(
d
.
childsNum
==
0
&&
auth
(
'
1585877427139
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-danger layui-btn-xs
"
lay
-
event
=
"
del
"
><
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/schoolmation/
'
}).
use
(
'
schoolmationlist
'
);
</script>
</body>
</html>
\ No newline at end of file
seal-service/src/main/resources/template/tpl/serviceworker/serviceworkeradd.html
浏览文件 @
5647f8d6
...
...
@@ -73,7 +73,7 @@
<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=
83f6b037aa3db095fec7003f266aca53
&plugin=AMap.DistrictSearch"
></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
(
'
serviceworkeradd
'
);
...
...
seal-service/src/main/resources/template/tpl/serviceworker/serviceworkeredit.html
浏览文件 @
5647f8d6
...
...
@@ -71,7 +71,7 @@
<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=
83f6b037aa3db095fec7003f266aca53
&plugin=AMap.DistrictSearch"
></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
'
);
...
...
seal-service/src/main/resources/template/tpl/serviceworker/serviceworkermap.html
浏览文件 @
5647f8d6
...
...
@@ -57,7 +57,7 @@
<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=
83f6b037aa3db095fec7003f266aca53
&plugin=AMap.DistrictSearch"
></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
(
'
serviceworkermap
'
);
...
...
web/src/main/resources/template/json/skyeyeClassEnum.json
浏览文件 @
5647f8d6
...
...
@@ -92,6 +92,8 @@
"assetReportState"
:
{
"name"
:
"资产明细状态"
,
"className"
:
"skyeye-adm#com.skyeye.eve.assets.classenum.AssetReportState"
},
"conferenceState"
:
{
"name"
:
"会议室状态"
,
"className"
:
"skyeye-adm#com.skyeye.eve.conference.classenum.ConferenceState"
},
"vehicleState"
:
{
"name"
:
"车辆状态"
,
"className"
:
"skyeye-adm#com.skyeye.eve.vehicle.classenum.VehicleState"
},
"maintenanceType"
:
{
"name"
:
"车辆维修类型"
,
"className"
:
"skyeye-adm#com.skyeye.eve.vehicle.classenum.MaintenanceType"
}
"maintenanceType"
:
{
"name"
:
"车辆维修类型"
,
"className"
:
"skyeye-adm#com.skyeye.eve.vehicle.classenum.MaintenanceType"
},
"schoolPower"
:
{
"name"
:
"学校数据权限"
,
"className"
:
"skyeye-school#com.skyeye.eve.classenum.SchoolPower"
}
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录