区域
This commit is contained in:
@ -229,11 +229,6 @@
|
|||||||
</li>
|
</li>
|
||||||
</th:block>
|
</th:block>
|
||||||
|
|
||||||
<li role="presentation" id="tab_index">
|
|
||||||
<a data-toggle="tab" href="#index">
|
|
||||||
<i class="fa fa-area-chart"></i> <span>统计报表</span>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li role="presentation" id="tab_demo" th:if="${demoEnabled}">
|
<li role="presentation" id="tab_demo" th:if="${demoEnabled}">
|
||||||
<a data-toggle="tab" href="#demo">
|
<a data-toggle="tab" href="#demo">
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||||
<head>
|
<head>
|
||||||
<th:block th:include="include :: header('新增湖南行政区域')" />
|
<th:block th:include="include :: header('新增行政区域')" />
|
||||||
</head>
|
</head>
|
||||||
<body class="white-bg">
|
<body class="white-bg">
|
||||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||||
@ -88,7 +88,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*湖南行政区域-新增-选择父湖南行政区域树*/
|
/*行政区域-新增-选择父行政区域树*/
|
||||||
function selectAreaHnTree() {
|
function selectAreaHnTree() {
|
||||||
var options = {
|
var options = {
|
||||||
title: '行政区域选择',
|
title: '行政区域选择',
|
||||||
|
|||||||
@ -92,12 +92,17 @@
|
|||||||
createUrl: prefix + "/add/{id}",
|
createUrl: prefix + "/add/{id}",
|
||||||
updateUrl: prefix + "/edit/{id}",
|
updateUrl: prefix + "/edit/{id}",
|
||||||
removeUrl: prefix + "/remove/{id}",
|
removeUrl: prefix + "/remove/{id}",
|
||||||
modalName: "湖南行政区域",
|
modalName: "行政区域",
|
||||||
// onClickRow: onClickRow,
|
// onClickRow: onClickRow,
|
||||||
columns: [{
|
columns: [{
|
||||||
field: 'selectItem',
|
field: 'selectItem',
|
||||||
radio: true
|
radio: true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
field: 'name',
|
||||||
|
title: '区域名称',
|
||||||
|
align: 'left'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
field: 'areaCode',
|
field: 'areaCode',
|
||||||
title: '区域代码',
|
title: '区域代码',
|
||||||
@ -150,9 +155,9 @@
|
|||||||
align: 'left',
|
align: 'left',
|
||||||
formatter: function(value, row, index) {
|
formatter: function(value, row, index) {
|
||||||
var actions = [];
|
var actions = [];
|
||||||
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
|
actions.push('<a class="btn btn-success btn-xs ' + editFlag + ' btnOption" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
|
||||||
actions.push('<a class="btn btn-info btn-xs ' + addFlag + '" href="javascript:void(0)" onclick="$.operate.add(\'' + row.id + '\')"><i class="fa fa-plus"></i>新增</a> ');
|
actions.push('<a class="btn btn-info btn-xs ' + addFlag + ' btnOption" href="javascript:void(0)" onclick="$.operate.add(\'' + row.id + '\')"><i class="fa fa-plus"></i>新增</a> ');
|
||||||
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
|
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + ' btnOption" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
|
||||||
return actions.join('');
|
return actions.join('');
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||||
<head>
|
<head>
|
||||||
<th:block th:include="include :: header('修改湖南行政区域')" />
|
<th:block th:include="include :: header('修改行政区域')" />
|
||||||
</head>
|
</head>
|
||||||
<body class="white-bg">
|
<body class="white-bg">
|
||||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||||
@ -82,7 +82,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*湖南行政区域-编辑-选择父湖南行政区域树*/
|
/*行政区域-编辑-选择父行政区域树*/
|
||||||
function selectAreaHnTree() {
|
function selectAreaHnTree() {
|
||||||
var options = {
|
var options = {
|
||||||
title: '行政区域选择',
|
title: '行政区域选择',
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||||
<head>
|
<head>
|
||||||
<th:block th:include="include :: header('湖南行政区域树选择')" />
|
<th:block th:include="include :: header('行政区域树选择')" />
|
||||||
<th:block th:include="include :: ztree-css" />
|
<th:block th:include="include :: ztree-css" />
|
||||||
</head>
|
</head>
|
||||||
<style>
|
<style>
|
||||||
|
|||||||
@ -252,7 +252,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*湖南行政区域-新增-选择父湖南行政区域树*/
|
/*行政区域-新增-选择父行政区域树*/
|
||||||
function selectAreaHnTree() {
|
function selectAreaHnTree() {
|
||||||
var options = {
|
var options = {
|
||||||
title: '行政区域选择',
|
title: '行政区域选择',
|
||||||
|
|||||||
@ -217,7 +217,7 @@
|
|||||||
$.modal.close(index);
|
$.modal.close(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*湖南行政区域-新增-选择父湖南行政区域树*/
|
/*行政区域-新增-选择父行政区域树*/
|
||||||
function selectAreaHnTree() {
|
function selectAreaHnTree() {
|
||||||
var options = {
|
var options = {
|
||||||
title: '行政区域选择',
|
title: '行政区域选择',
|
||||||
|
|||||||
@ -125,7 +125,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
from sys_area_hn t
|
from sys_area_hn t
|
||||||
left join sys_area_hn p on p.area_code = t.parent_code
|
left join sys_area_hn p on p.area_code = t.parent_code
|
||||||
where t.parent_code = #{parentCode}
|
where t.parent_code = #{parentCode}
|
||||||
order by t.area_code
|
order by t.area_code DESC
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectSysAreaHnByCode" parameterType="String" resultMap="SysAreaHnResult">
|
<select id="selectSysAreaHnByCode" parameterType="String" resultMap="SysAreaHnResult">
|
||||||
|
|||||||
Reference in New Issue
Block a user