Merge branch 'main' of e.coding.net:tsteam/urban-governance/population into main
This commit is contained in:
commit
b0366b0de9
121
src/main/resources/application.yml
Normal file
121
src/main/resources/application.yml
Normal file
@ -0,0 +1,121 @@
|
||||
server:
|
||||
port: 8086
|
||||
url: http://192.168.0.111:8086/population
|
||||
title: population
|
||||
servlet:
|
||||
context-path: /population
|
||||
|
||||
spring:
|
||||
thymeleaf:
|
||||
prefix: classpath:/templates/
|
||||
suffix: .html
|
||||
mode: HTML5
|
||||
encoding: UTF-8
|
||||
cache: false
|
||||
main:
|
||||
allow-bean-definition-overriding: true
|
||||
servlet:
|
||||
multipart:
|
||||
max-file-size: 1GB
|
||||
max-request-size: 1GB
|
||||
datasource:
|
||||
druid:
|
||||
url: jdbc:mysql://118.89.242.44:3309/db_user_management?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false
|
||||
db-type: mysql
|
||||
driver-class-name: com.mysql.jdbc.Driver
|
||||
username: usermanagement
|
||||
password: 123456789
|
||||
initial-size: 2
|
||||
min-idle: 2
|
||||
max-active: 5
|
||||
max-wait: 60000
|
||||
time-between-eviction-runs-millis: 60000
|
||||
min-evictable-idle-time-millis: 300000
|
||||
validation-query: SELECT 1 FROM DUAL
|
||||
test-while-idle: true
|
||||
test-on-borrow: false
|
||||
test-on-return: false
|
||||
pool-prepared-statements: true
|
||||
max-pool-prepared-statement-per-connection-size: 10
|
||||
filter:
|
||||
commons-log:
|
||||
connection-logger-name: stat,wall,log4j
|
||||
stat:
|
||||
log-slow-sql: true
|
||||
slow-sql-millis: 2000
|
||||
connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
|
||||
use-global-data-source-stat: true
|
||||
|
||||
# 数据库
|
||||
mybatis:
|
||||
config-location: classpath:mybatis/mybatis-config.xml
|
||||
mapper-locations: classpath*:mybatis/mapper/**/*.xml
|
||||
|
||||
# 文档
|
||||
swagger:
|
||||
title: 接口文档
|
||||
description: 人口信息系统接口文档
|
||||
service-url: https://baidu.com/
|
||||
version: 1.0
|
||||
swagger-base-package: com.cm
|
||||
|
||||
# 文件
|
||||
file:
|
||||
uploadPath: /Users/wenc/Desktop/filetest
|
||||
imageTypes: png,jpg,jpeg,gif,blob
|
||||
videoTypes: mp4
|
||||
audioTypes: mp3,wav,amr
|
||||
fileTypes: doc,docx,xls,xlsx,ppt,pptx,txt,zip,rar,apk,pdf
|
||||
maxFileCount: 6
|
||||
|
||||
# 安全
|
||||
security:
|
||||
oauth2:
|
||||
oauth-server: http://49.233.36.36:8868/usercenter
|
||||
oauth-logout: ${security.oauth2.oauth-server}/logout?redirect_uri=${server.url}
|
||||
client:
|
||||
client-id: c5aacc8b267a43c2ab5faf55d852daa8
|
||||
client-secret: eWpaY0hiRzliWXUvQzAreDlDeGhnUjlTK3cxVUozVFNhVStPVVRWSU95OG1ac2wwZTJHWk5NbXh3L3h3U2c4Rg==
|
||||
user-authorization-uri: ${security.oauth2.oauth-server}/oauth_client/authorize
|
||||
access-token-uri: ${security.oauth2.oauth-server}/oauth_client/token
|
||||
grant-type: authorization_code
|
||||
resource:
|
||||
jwt:
|
||||
key-uri: ${security.oauth2.oauth-server}/oauth_client/token_key
|
||||
token-info-uri: ${security.oauth2.oauth-server}/oauth_client/check_token
|
||||
user-info-uri: ${security.oauth2.oauth-server}/user
|
||||
authorization:
|
||||
check-token-access: ${security.oauth2.oauth-server}/oauth_client/token_key
|
||||
|
||||
api-path:
|
||||
user-center: ${security.oauth2.oauth-server}
|
||||
|
||||
# 访问控制
|
||||
access-control:
|
||||
pass-paths:
|
||||
- /index.html
|
||||
- /logout.html
|
||||
- /default.html
|
||||
- /assets/**
|
||||
- /route/file/downloadfile/**
|
||||
save-paths:
|
||||
- /**/save*/**
|
||||
- /**/add*/**
|
||||
delete-paths:
|
||||
- /**/delete*/**
|
||||
- /**/remove*/**
|
||||
update-paths:
|
||||
- /**/update*/**
|
||||
- /**/edit*/**
|
||||
query-paths:
|
||||
- /**/get*/**
|
||||
- /**/query*/**
|
||||
- /**/find*/**
|
||||
- /**/list*/**
|
||||
- /**/count*/**
|
||||
|
||||
# 日志
|
||||
logging:
|
||||
level:
|
||||
root: error
|
||||
com.cm: debug
|
@ -105,6 +105,10 @@
|
||||
|
||||
importExcel()
|
||||
|
||||
function closeBox() {
|
||||
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
||||
}
|
||||
|
||||
// 初始化表格
|
||||
function initTable() {
|
||||
table.render({
|
||||
|
210
src/main/resources/static/route/echarts/list-echarts.html
Normal file
210
src/main/resources/static/route/echarts/list-echarts.html
Normal file
@ -0,0 +1,210 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<base href="/population/">
|
||||
<meta charset="utf-8">
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
||||
<link rel="stylesheet" href="assets/fonts/font-awesome/css/font-awesome.css"/>
|
||||
<link rel="stylesheet" href="assets/layuiadmin/layui/css/layui.css" media="all">
|
||||
<link rel="stylesheet" href="assets/layuiadmin/style/admin.css" media="all">
|
||||
<style>
|
||||
.dataTable th, td{
|
||||
border: 1px solid #000000;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="layui-fluid layui-anim layui-anim-fadein">
|
||||
<div class="layui-row">
|
||||
<div class="layui-col-md12">
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-body">
|
||||
<div class="test-table-reload-btn" style="margin-bottom: 10px;">
|
||||
<div class="layui-inline">
|
||||
<input type="text" id="keywords" class="layui-input search-item" placeholder="输入姓名/身份证号等">
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
<input type="text" id="startTime" class="layui-input search-item" placeholder="登记日期" readonly>
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
<input type="text" id="endTime" class="layui-input search-item" placeholder="证件到期日期" readonly>
|
||||
</div>
|
||||
<button type="button" id="search" class="layui-btn layui-btn-sm">
|
||||
<i class="fa fa-lg fa-search"></i> 搜索
|
||||
</button>
|
||||
</div>
|
||||
<table class="layui-hide" id="dataTable" lay-filter="dataTable"></table>
|
||||
<div>
|
||||
<table style="table-layout: fixed;width: 70%;margin: 0 auto 40px" class="dataTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="35%" style="text-align: left">采纳评级</th>
|
||||
<th width="35%" style="text-align: left">数量</th>
|
||||
<th width="30%" style="text-align: left">占比(总完成产品1000)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>AA</td>
|
||||
<td>1.5</td>
|
||||
<td>0.15%</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>A</td>
|
||||
<td>8.5</td>
|
||||
<td>0.85%</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>B</td>
|
||||
<td>90</td>
|
||||
<td>9.00%</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>C</td>
|
||||
<td>500</td>
|
||||
<td>50.00%</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>无评级</td>
|
||||
<td>400</td>
|
||||
<td>40.00%</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div style="height: 500px;width: 1080px;margin: 0 auto 0 10%">
|
||||
<div id="main" style="height: 500px;width: 1000px;"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="assets/layuiadmin/layui/layui.js"></script>
|
||||
<script src="assets/js/echarts.min.js"></script>
|
||||
<script>
|
||||
layui.config({
|
||||
base: 'assets/layuiadmin/'
|
||||
}).extend({
|
||||
index: 'lib/index'
|
||||
}).use(['index', 'table', 'laydate', 'common','upload'], function() {
|
||||
var $ = layui.$;
|
||||
var $win = $(window);
|
||||
var table = layui.table;
|
||||
var admin = layui.admin;
|
||||
var laydate = layui.laydate;
|
||||
var common = layui.common;
|
||||
var resizeTimeout = null;
|
||||
var tableUrl = 'api/floatingpopulation/listpagefloatingpopulation';
|
||||
|
||||
var chartDom = document.getElementById('main');
|
||||
var myChart = echarts.init(chartDom);
|
||||
var option;
|
||||
var dataName=["衬衫","羊毛衫","雪纺衫","裤子","高跟鞋","袜子"];
|
||||
var dataValue=[5, 20, 36, 10, 10, 20];
|
||||
function echartsInit() {
|
||||
option = {
|
||||
title: {
|
||||
text: '图表标题'
|
||||
},
|
||||
tooltip: {},
|
||||
legend: {
|
||||
data: ['数量']
|
||||
},
|
||||
grid: [
|
||||
{x: '7%', y: '7%', width: '38%', height: '38%'},
|
||||
],
|
||||
xAxis: [
|
||||
{
|
||||
gridIndex:0,
|
||||
data: dataName
|
||||
}
|
||||
],
|
||||
yAxis: [
|
||||
{
|
||||
gridIndex:0
|
||||
}
|
||||
],
|
||||
series: [
|
||||
{
|
||||
name: '数量',
|
||||
type: 'bar',
|
||||
data: dataValue
|
||||
},
|
||||
{
|
||||
type: 'pie',
|
||||
data: [
|
||||
{value:dataValue[0],name:dataName[0]},
|
||||
{value:dataValue[1],name:dataName[1]},
|
||||
{value:dataValue[2],name:dataName[2]},
|
||||
{value:dataValue[3],name:dataName[3]}
|
||||
],
|
||||
label: { //饼图图形上的文本标签
|
||||
normal: {
|
||||
show: true,
|
||||
formatter: '{b}\n{d}%',
|
||||
textStyle: {
|
||||
fontWeight: 300,
|
||||
fontSize: 16 //文字的字体大小
|
||||
},
|
||||
}
|
||||
},
|
||||
radius:'40%',
|
||||
center:['75%','30%']
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
option && myChart.setOption(option);
|
||||
}
|
||||
echartsInit();
|
||||
|
||||
// 重载表格
|
||||
function reloadTable(currentPage) {
|
||||
table.reload('dataTable', {
|
||||
url: top.restAjax.path(tableUrl, []),
|
||||
where: {
|
||||
keywords: $('#keywords').val(),
|
||||
startTime: $('#startTime').val(),
|
||||
endTime: $('#endTime').val()
|
||||
},
|
||||
page: {
|
||||
curr: currentPage
|
||||
},
|
||||
height: $win.height() - 90,
|
||||
});
|
||||
}
|
||||
|
||||
// 初始化日期
|
||||
function initDate() {
|
||||
// 日期选择
|
||||
laydate.render({
|
||||
elem: '#startTime',
|
||||
format: 'yyyy-MM-dd'
|
||||
});
|
||||
laydate.render({
|
||||
elem: '#endTime',
|
||||
format: 'yyyy-MM-dd'
|
||||
});
|
||||
}
|
||||
|
||||
initDate();
|
||||
|
||||
// 事件 - 页面变化
|
||||
$win.on('resize', function() {
|
||||
clearTimeout(resizeTimeout);
|
||||
resizeTimeout = setTimeout(function() {
|
||||
reloadTable();
|
||||
}, 500);
|
||||
});
|
||||
|
||||
// 事件 - 搜索
|
||||
$(document).on('click', '#search', function() {
|
||||
reloadTable(1);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -105,6 +105,10 @@
|
||||
|
||||
importExcel()
|
||||
|
||||
function closeBox() {
|
||||
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
||||
}
|
||||
|
||||
// 初始化表格
|
||||
function initTable() {
|
||||
table.render({
|
||||
|
@ -105,6 +105,10 @@
|
||||
|
||||
importExcel()
|
||||
|
||||
function closeBox() {
|
||||
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
||||
}
|
||||
|
||||
// 初始化表格
|
||||
function initTable() {
|
||||
table.render({
|
||||
|
@ -105,6 +105,10 @@
|
||||
|
||||
importExcel()
|
||||
|
||||
function closeBox() {
|
||||
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
||||
}
|
||||
|
||||
// 初始化表格
|
||||
function initTable() {
|
||||
table.render({
|
||||
|
@ -105,6 +105,10 @@
|
||||
|
||||
importExcel()
|
||||
|
||||
function closeBox() {
|
||||
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
||||
}
|
||||
|
||||
// 初始化表格
|
||||
function initTable() {
|
||||
table.render({
|
||||
|
@ -105,6 +105,10 @@
|
||||
|
||||
importExcel()
|
||||
|
||||
function closeBox() {
|
||||
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
||||
}
|
||||
|
||||
// 初始化表格
|
||||
function initTable() {
|
||||
table.render({
|
||||
|
Loading…
Reference in New Issue
Block a user