Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
ec435950
S
Skyeye
项目概览
doc_wei
/
Skyeye
通知
1195
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看板
提交
ec435950
编写于
11月 22, 2018
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改
上级
947b1e59
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
166 addition
and
11 deletion
+166
-11
skyeye-dao/src/main/java/com/skyeye/authority/dao/SysTAreaDao.java
...o/src/main/java/com/skyeye/authority/dao/SysTAreaDao.java
+14
-0
skyeye-service/src/main/java/com/skyeye/authority/service/SysTAreaService.java
...in/java/com/skyeye/authority/service/SysTAreaService.java
+10
-0
skyeye-service/src/main/java/com/skyeye/authority/service/impl/SysTAreaServiceImpl.java
...om/skyeye/authority/service/impl/SysTAreaServiceImpl.java
+48
-0
skyeye-web/src/main/java/com/skyeye/authority/controller/SysTAreaController.java
...a/com/skyeye/authority/controller/SysTAreaController.java
+34
-0
skyeye-web/src/main/resources/dbmapper/SysTAreaMapper.xml
skyeye-web/src/main/resources/dbmapper/SysTAreaMapper.xml
+26
-0
skyeye-web/src/main/resources/mapping/reqmapping.xml
skyeye-web/src/main/resources/mapping/reqmapping.xml
+4
-0
skyeye-web/src/main/webapp/assets/lib/layui/lay/modules/treetable/dltable.js
.../webapp/assets/lib/layui/lay/modules/treetable/dltable.js
+7
-5
skyeye-web/src/main/webapp/js/tarea/tarea.js
skyeye-web/src/main/webapp/js/tarea/tarea.js
+18
-0
skyeye-web/src/main/webapp/tpl/tarea/tarea.html
skyeye-web/src/main/webapp/tpl/tarea/tarea.html
+5
-6
未找到文件。
skyeye-dao/src/main/java/com/skyeye/authority/dao/SysTAreaDao.java
0 → 100644
浏览文件 @
ec435950
package
com.skyeye.authority.dao
;
import
java.util.List
;
import
java.util.Map
;
import
com.github.miemiedev.mybatis.paginator.domain.PageBounds
;
public
interface
SysTAreaDao
{
public
List
<
Map
<
String
,
Object
>>
querySysTAreaList
(
Map
<
String
,
Object
>
map
,
PageBounds
pageBounds
)
throws
Exception
;
public
List
<
Map
<
String
,
Object
>>
querySysTAreaSecondList
(
Map
<
String
,
Object
>
bean
)
throws
Exception
;
}
skyeye-service/src/main/java/com/skyeye/authority/service/SysTAreaService.java
0 → 100644
浏览文件 @
ec435950
package
com.skyeye.authority.service
;
import
com.skyeye.common.object.InputObject
;
import
com.skyeye.common.object.OutputObject
;
public
interface
SysTAreaService
{
public
void
querySysTAreaList
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
;
}
skyeye-service/src/main/java/com/skyeye/authority/service/impl/SysTAreaServiceImpl.java
0 → 100644
浏览文件 @
ec435950
package
com.skyeye.authority.service.impl
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.github.miemiedev.mybatis.paginator.domain.PageBounds
;
import
com.github.miemiedev.mybatis.paginator.domain.PageList
;
import
com.skyeye.authority.dao.SysTAreaDao
;
import
com.skyeye.authority.service.SysTAreaService
;
import
com.skyeye.common.object.InputObject
;
import
com.skyeye.common.object.OutputObject
;
@Service
public
class
SysTAreaServiceImpl
implements
SysTAreaService
{
@Autowired
private
SysTAreaDao
sysTAreaDao
;
/**
*
* @Title: querySysTAreaList
* @Description: 获取行政区划信息
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@Override
public
void
querySysTAreaList
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
{
Map
<
String
,
Object
>
map
=
inputObject
.
getParams
();
List
<
Map
<
String
,
Object
>>
beans
=
sysTAreaDao
.
querySysTAreaList
(
map
,
new
PageBounds
(
Integer
.
parseInt
(
map
.
get
(
"page"
).
toString
()),
Integer
.
parseInt
(
map
.
get
(
"limit"
).
toString
())));
PageList
<
Map
<
String
,
Object
>>
beansPageList
=
(
PageList
<
Map
<
String
,
Object
>>)
beans
;
int
total
=
beansPageList
.
getPaginator
().
getTotalCount
();
List
<
Map
<
String
,
Object
>>
arrs
=
new
ArrayList
<>();
for
(
Map
<
String
,
Object
>
bean
:
beans
){
List
<
Map
<
String
,
Object
>>
items
=
sysTAreaDao
.
querySysTAreaSecondList
(
bean
);
arrs
.
addAll
(
items
);
}
beans
.
addAll
(
arrs
);
outputObject
.
setBeans
(
beans
);
outputObject
.
settotal
(
total
);
}
}
skyeye-web/src/main/java/com/skyeye/authority/controller/SysTAreaController.java
0 → 100644
浏览文件 @
ec435950
package
com.skyeye.authority.controller
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
com.skyeye.authority.service.SysTAreaService
;
import
com.skyeye.common.object.InputObject
;
import
com.skyeye.common.object.OutputObject
;
@Controller
public
class
SysTAreaController
{
@Autowired
private
SysTAreaService
sysTAreaService
;
/**
*
* @Title: querySysTAreaList
* @Description: 获取行政区划信息
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping
(
"/post/SysTAreaController/querySysTAreaList"
)
@ResponseBody
public
void
querySysTAreaList
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
{
sysTAreaService
.
querySysTAreaList
(
inputObject
,
outputObject
);
}
}
skyeye-web/src/main/resources/dbmapper/SysTAreaMapper.xml
0 → 100644
浏览文件 @
ec435950
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper
namespace=
"com.skyeye.authority.dao.SysTAreaDao"
>
<select
id=
"querySysTAreaList"
parameterType=
"java.util.Map"
resultType=
"java.util.Map"
>
SELECT
a.code_id id,
IFNULL(a.parent_code_id, '0') pId,
a.`name`
FROM
t_area a
WHERE a.level = '0'
</select>
<select
id=
"querySysTAreaSecondList"
parameterType=
"java.util.Map"
resultType=
"java.util.Map"
>
SELECT
a.code_id id,
a.parent_code_id pId,
a.`name`
FROM
t_area a
WHERE a.level = '1'
AND a.parent_code_id = #{id}
</select>
</mapper>
\ No newline at end of file
skyeye-web/src/main/resources/mapping/reqmapping.xml
浏览文件 @
ec435950
...
...
@@ -501,6 +501,10 @@
<property
id=
"propertyId"
name=
"propertyId"
ref=
"required"
var=
"所属属性标签"
/>
</url>
<url
id=
"systarea001"
path=
"/post/SysTAreaController/querySysTAreaList"
val=
"获取行政区划信息"
allUse=
"1"
>
<property
id=
"limit"
name=
"limit"
ref=
"required,num"
var=
"分页参数,每页多少条数据"
/>
<property
id=
"page"
name=
"page"
ref=
"required,num"
var=
"分页参数,第几页"
/>
</url>
<!-- 小程序系列结束 -->
<!-- 代码生成器系列开始 -->
...
...
skyeye-web/src/main/webapp/assets/lib/layui/lay/modules/treetable/dltable.js
浏览文件 @
ec435950
...
...
@@ -756,11 +756,11 @@ layui.define(['laytpl', 'laypage', 'layer', 'form'], function(exports){
},
options
.
request
)
//响应数据的自定义格式
options
.
response
=
$
.
extend
({
statusName
:
'
c
ode
'
,
statusCode
:
0
,
msgName
:
'
msg
'
,
dataName
:
'
data
'
,
countName
:
'
count
'
statusName
:
'
returnC
ode
'
,
statusCode
:
0
,
msgName
:
'
returnMessage
'
,
dataName
:
'
rows
'
,
countName
:
'
total
'
},
options
.
response
);
//如果 page 传入 laypage 对象
if
(
typeof
options
.
page
===
'
object
'
){
...
...
@@ -1184,6 +1184,8 @@ layui.define(['laytpl', 'laypage', 'layer', 'form'], function(exports){
var
params
=
{};
params
[
request
.
pageName
]
=
curr
;
params
[
request
.
limitName
]
=
options
.
limit
;
options
.
where
.
userToken
=
getCookie
(
'
userToken
'
);
options
.
where
.
loginPCIp
=
returnCitySN
[
"
cip
"
];
//行内过滤条件
var
list
=
that
.
layFilter
.
find
(
"
[name^='filter_']
"
);
layui
.
each
(
list
,
function
(
i
,
o
)
{
...
...
skyeye-web/src/main/webapp/js/tarea/tarea.js
浏览文件 @
ec435950
...
...
@@ -20,6 +20,24 @@ layui.config({
return
false
;
});
treeGrid
.
render
({
id
:
'
messageTable
'
,
elem
:
'
#messageTable
'
,
method
:
'
get
'
,
idField
:
'
id
'
,
url
:
reqBasePath
+
'
systarea001
'
,
cellMinWidth
:
100
,
treeId
:
'
id
'
,
//树形id字段名称
treeUpId
:
'
pId
'
,
//树形父id字段名称
treeShowName
:
'
name
'
,
//以树形式显示的字段
cols
:
[[
{
field
:
'
name
'
,
width
:
300
,
title
:
'
区域名称
'
},
{
field
:
'
id
'
,
width
:
100
,
title
:
'
id
'
},
{
field
:
'
pId
'
,
title
:
'
pId
'
},
]],
page
:
false
});
function
loadTable
(){
}
...
...
skyeye-web/src/main/webapp/tpl/tarea/tarea.html
浏览文件 @
ec435950
...
...
@@ -12,9 +12,9 @@
<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>
<label
class=
"layui-form-label"
>
省级
名称
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"
roleName"
name=
"roleName"
placeholder=
"请输入角色
名称"
class=
"layui-input"
/>
<input
type=
"text"
id=
"
provName"
name=
"provName"
placeholder=
"请输入省级
名称"
class=
"layui-input"
/>
</div>
</div>
</div>
...
...
@@ -25,10 +25,9 @@
</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>
刷新数据
</button>
</div>
<div
style=
"margin:auto 10px;"
>
<table
id=
"messageTable"
lay-filter=
"messageTable"
></table>
</div>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录