|
|
@@ -20,28 +20,6 @@
|
|
|
border-radius: 5px;
|
|
|
}
|
|
|
|
|
|
- .icon {
|
|
|
- margin-right: 10px;
|
|
|
- color: #1aa094;
|
|
|
- }
|
|
|
-
|
|
|
- .icon-cray {
|
|
|
- color: #ffb800 !important;
|
|
|
- }
|
|
|
-
|
|
|
- .icon-blue {
|
|
|
- color: #1e9fff !important;
|
|
|
- }
|
|
|
-
|
|
|
- .icon-tip {
|
|
|
- color: #ff5722 !important;
|
|
|
- }
|
|
|
-
|
|
|
- .layuimini-qiuck-module {
|
|
|
- text-align: center;
|
|
|
- margin-top: 10px
|
|
|
- }
|
|
|
-
|
|
|
.layuimini-qiuck-module a i {
|
|
|
display: inline-block;
|
|
|
width: 100%;
|
|
|
@@ -67,424 +45,91 @@
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
|
|
|
- .welcome-module {
|
|
|
- width: 100%;
|
|
|
- height: 250px;
|
|
|
- }
|
|
|
-
|
|
|
- .panel {
|
|
|
- background-color: #fff;
|
|
|
- border: 1px solid transparent;
|
|
|
- border-radius: 3px;
|
|
|
- -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
|
|
|
- box-shadow: 0 1px 1px rgba(0, 0, 0, .05)
|
|
|
- }
|
|
|
-
|
|
|
- .panel-body {
|
|
|
- padding: 10px
|
|
|
- }
|
|
|
-
|
|
|
- .panel-title {
|
|
|
- margin-top: 0;
|
|
|
- margin-bottom: 0;
|
|
|
- font-size: 12px;
|
|
|
- color: inherit
|
|
|
- }
|
|
|
-
|
|
|
- .label {
|
|
|
- display: inline;
|
|
|
- padding: .2em .6em .3em;
|
|
|
- font-size: 75%;
|
|
|
- font-weight: 700;
|
|
|
- line-height: 1;
|
|
|
- color: #fff;
|
|
|
+ .icon {
|
|
|
+ padding: 10px;
|
|
|
text-align: center;
|
|
|
- white-space: nowrap;
|
|
|
- vertical-align: baseline;
|
|
|
- border-radius: .25em;
|
|
|
- margin-top: .3em;
|
|
|
- }
|
|
|
-
|
|
|
- .layui-red {
|
|
|
- color: red
|
|
|
- }
|
|
|
-
|
|
|
- .main_btn > p {
|
|
|
- height: 40px;
|
|
|
- }
|
|
|
-
|
|
|
- .layui-bg-number {
|
|
|
- background-color: #F8F8F8;
|
|
|
- }
|
|
|
-
|
|
|
- .layuimini-notice:hover {
|
|
|
- background: #f6f6f6;
|
|
|
- }
|
|
|
-
|
|
|
- .layuimini-notice {
|
|
|
- padding: 7px 16px;
|
|
|
- clear: both;
|
|
|
- font-size: 12px !important;
|
|
|
- cursor: pointer;
|
|
|
- position: relative;
|
|
|
- transition: background 0.2s ease-in-out;
|
|
|
- }
|
|
|
-
|
|
|
- .layuimini-notice-title, .layuimini-notice-label {
|
|
|
- padding-right: 70px !important;
|
|
|
- text-overflow: ellipsis !important;
|
|
|
- overflow: hidden !important;
|
|
|
- white-space: nowrap !important;
|
|
|
- }
|
|
|
-
|
|
|
- .layuimini-notice-title {
|
|
|
- line-height: 28px;
|
|
|
- font-size: 14px;
|
|
|
}
|
|
|
|
|
|
- .layuimini-notice-extra {
|
|
|
- position: absolute;
|
|
|
- top: 50%;
|
|
|
- margin-top: -8px;
|
|
|
- right: 16px;
|
|
|
- display: inline-block;
|
|
|
- height: 16px;
|
|
|
- color: #999;
|
|
|
- }
|
|
|
+ .icon img {
|
|
|
+ width: 80px;
|
|
|
+ height: 80px;
|
|
|
|
|
|
- .jd_info {
|
|
|
- overflow: scroll;
|
|
|
- /*display:inline-block;*/
|
|
|
- /**display:inline;*/
|
|
|
- /**zoom:1;*/
|
|
|
}
|
|
|
|
|
|
- .jd_info div {
|
|
|
- float: left;
|
|
|
- height: 210px;
|
|
|
- width: 30%;
|
|
|
+ .title {
|
|
|
+ padding: 10px;
|
|
|
text-align: center;
|
|
|
- /*background-color: red;*/
|
|
|
}
|
|
|
|
|
|
- .jd_info div a {
|
|
|
- color: red;
|
|
|
+ .layui-card {
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
|
|
|
- .jd_info div img {
|
|
|
- width: 60px;
|
|
|
- height: 60px;
|
|
|
- margin-top: 60px;
|
|
|
- }
|
|
|
-
|
|
|
- .jd_info div h1 {
|
|
|
- margin-top: 20px;
|
|
|
+ .layuimini-container{
|
|
|
+ width: 1000px;
|
|
|
}
|
|
|
|
|
|
- .layui-card-header {
|
|
|
- font-weight: 600 !important;
|
|
|
- font-size: 18px !important;
|
|
|
- }
|
|
|
</style>
|
|
|
</head>
|
|
|
<body>
|
|
|
-<div class="layuimini-container" style="width: 90%;margin: 0 auto;">
|
|
|
+<div class="layuimini-container">
|
|
|
<div class="layuimini-main">
|
|
|
- <div class="layui-row layui-col-space15">
|
|
|
- <div class="layui-col-md15">
|
|
|
- <div class="layui-row layui-col-space15">
|
|
|
- <div class="layui-col-md6">
|
|
|
- <div class="layui-card">
|
|
|
- <div class="layui-card-header"><img src="../../images/7.png "
|
|
|
- style="width: 8px;margin-right: 9px;">借阅待处理记录
|
|
|
- <i style="float: right;margin-top: 15px;color: #007DDB;cursor: pointer;"
|
|
|
- class="fa fa-circle-thin"></i></div>
|
|
|
- <div class="layui-card-body" style="height: 230px!important;">
|
|
|
- <div style="text-align: center;padding-top: 30px;" id="notWaitHandleRecord">
|
|
|
- <img src="../../images/无记录.png"
|
|
|
- >
|
|
|
- <div>
|
|
|
- 暂无数据
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <ul id="selectWaitHandleRecord">
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
-
|
|
|
- <div class="layui-col-md6">
|
|
|
- <div class="layui-card">
|
|
|
- <div class="layui-card-header"><img src="../../images/7.png "
|
|
|
- style="width: 8px;margin-right: 9px;">借阅待归还记录
|
|
|
- <i style="float: right;margin-top: 15px;color: #007DDB;cursor: pointer;"
|
|
|
- class="fa fa-circle-thin"></i></div>
|
|
|
- <div class="layui-card-body" style="height: 230px!important;">
|
|
|
- <div style="text-align: center;padding-top: 30px" id="notWaitReturnRecord">
|
|
|
- <img src="../../images/无记录.png"
|
|
|
- >
|
|
|
- <div>
|
|
|
- 暂无数据
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <ul id="selectWaitReturnRecord">
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
-
|
|
|
- <div class="layui-col-md6">
|
|
|
- <div class="layui-card">
|
|
|
- <div class="layui-card-header"><img src="../../images/7.png "
|
|
|
- style="width: 8px;margin-right: 9px;">存档统计记录
|
|
|
- <i style="float: right;margin-top: 15px;color: #007DDB;cursor: pointer;"
|
|
|
- class="fa fa-circle-thin"></i></div>
|
|
|
-
|
|
|
- <div class="layui-card-body">
|
|
|
- <section class="panel">
|
|
|
- <div class="panel-body">
|
|
|
- <div class="echarts" id="cundang" style="height:300px; height:350px"></div>
|
|
|
- </div>
|
|
|
- </section>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="layui-col-md6">
|
|
|
- <div class="layui-card">
|
|
|
- <div class="layui-card-header"><img src="../../images/7.png "
|
|
|
- style="width: 8px;margin-right: 9px;">按年统计记录
|
|
|
- <i style="float: right;margin-top: 15px;color: #007DDB;cursor: pointer;"
|
|
|
- class="fa fa-circle-thin"></i>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="layui-card-body">
|
|
|
- <section class="panel">
|
|
|
- <div class="panel-body">
|
|
|
- <div class="echarts" id="years" style="height:300px; height:350px"></div>
|
|
|
- </div>
|
|
|
- </section>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
-
|
|
|
- <div class="layui-col-md12">
|
|
|
- <div class="layui-card">
|
|
|
- <div class="layui-card-header"><img src="../../images/7.png "
|
|
|
- style="width: 8px;margin-right: 9px;">借阅统计图
|
|
|
- <i style="float: right;margin-top: 15px;color: #007DDB;cursor: pointer;"
|
|
|
- class="fa fa-circle-thin"></i></div>
|
|
|
-
|
|
|
- <div class="layui-card-body">
|
|
|
- <section class="panel">
|
|
|
-
|
|
|
- <div class="panel-body">
|
|
|
- <div class="echarts" id="main" style="height:300px; height:350px"></div>
|
|
|
- </div>
|
|
|
- </section>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <!-- <div class="layui-row layui-col-space30">-->
|
|
|
+ <!-- <div class="layui-col-md2">-->
|
|
|
+ <!-- <div class="layui-card">-->
|
|
|
+ <!-- <div class="icon">-->
|
|
|
+ <!-- <img src="../../images/lzhf.png" alt="">-->
|
|
|
+ <!-- </div>-->
|
|
|
+ <!-- <div class="title">-->
|
|
|
+ <!-- <h2>档案数据管理</h2>-->
|
|
|
+ <!-- </div>-->
|
|
|
+ <!-- </div>-->
|
|
|
+ <!-- </div>-->
|
|
|
+ <!-- </div>-->
|
|
|
</div>
|
|
|
</div>
|
|
|
<script src="../../lib/layui-v2.5.5/layui.js" charset="utf-8"></script>
|
|
|
<script src="../../js/lay-config.js?v=1.0.4" charset="utf-8"></script>
|
|
|
<!-- <script src="./js/echart.js"></script> -->
|
|
|
<script type="text/javascript">
|
|
|
- layui.use(['table', 'http', 'echarts'], function () {
|
|
|
-
|
|
|
- let selectWaitHandleRecord = function () {
|
|
|
- layui.http.get('welcome/statistics/selectWaitHandleRecord', {}, true, res => {
|
|
|
- if (res.code == 200) {
|
|
|
- if (res.data.length !== 0) {
|
|
|
- let html = ''
|
|
|
- for (let i = 0; i < res.data.length; i++) {
|
|
|
- html += '<li style=" border-bottom: 1px solid #ccc; line-height: 50px;font-size: 14px;overflow: hidden;\n' +
|
|
|
- 'text-overflow:ellipsis;\n' +
|
|
|
- 'white-space: nowrap;">\n' +
|
|
|
- '<img src="../../images/人前.png"\n' +
|
|
|
- 'width="20px" style="margin-right: 10px; "/>' + res.data[i].adminName + res.data[i].createTime + '申请' + res.data[i].tm + '档案阅读记录\n' +
|
|
|
- '</li>'
|
|
|
- }
|
|
|
- layui.$("#selectWaitHandleRecord").append(html)
|
|
|
- layui.$("#selectWaitHandleRecord").show()
|
|
|
- layui.$("#notWaitHandleRecord").hide()
|
|
|
- } else {
|
|
|
- layui.$("#selectWaitHandleRecord").hide()
|
|
|
- layui.$("#notWaitHandleRecord").show()
|
|
|
- }
|
|
|
-
|
|
|
+ layui.use(['table', 'http', 'echarts', 'miniTab', 'miniAdmin'], function () {
|
|
|
+ let miniTab = layui.miniTab
|
|
|
+ let miniAdmin = layui.miniAdmin
|
|
|
+ let $ = layui.$;
|
|
|
+
|
|
|
+ miniTab.listen()
|
|
|
+
|
|
|
+ let initMenu = function () {
|
|
|
+ let html = '<div class="layui-row layui-col-space30">'
|
|
|
+ miniAdmin.getMenuInfo().forEach(row => {
|
|
|
+ if (row.child) {
|
|
|
+ row.child.forEach(col => {
|
|
|
+ html += '<div class="layui-col-md3">\n' +
|
|
|
+ ' <div class="layui-card" title="' + col.title + '" href="' + col.href + '">\n' +
|
|
|
+ ' <div class="icon">\n' +
|
|
|
+ ' <img src="' + col.img + '" alt="">\n' +
|
|
|
+ ' </div>\n' +
|
|
|
+ ' <div class="title">\n' +
|
|
|
+ ' <h2>' + col.title + '</h2>\n' +
|
|
|
+ ' </div>\n' +
|
|
|
+ ' </div>\n' +
|
|
|
+ ' </div>'
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
+ html += '</div>'
|
|
|
+ $(".layuimini-main").append(html)
|
|
|
}
|
|
|
- let selectWaitReturnRecord = () => {
|
|
|
- layui.http.get('welcome/statistics/selectWaitReturnRecord', {}, true, res => {
|
|
|
- if (res.code == 200) {
|
|
|
- if (res.data.length !== 0) {
|
|
|
- let html = ''
|
|
|
- for (let i = 0; i < res.data.length; i++) {
|
|
|
- html += '<li style=" border-bottom: 1px solid #ccc; line-height: 50px;font-size: 14px;overflow: hidden;\n' +
|
|
|
- 'text-overflow:ellipsis;\n' +
|
|
|
- 'white-space: nowrap;">\n' +
|
|
|
- '<img src="../../images/人前.png"\n' +
|
|
|
- 'width="20px" style="margin-right: 10px; "/>' + res.data[i].adminName + '申请' + res.data[i].tm + '于' + res.data[i].estimateReturnTime + '到期待归还'
|
|
|
- '</li>'
|
|
|
- }
|
|
|
- layui.$("#selectWaitReturnRecord").append(html)
|
|
|
- layui.$("#selectWaitReturnRecord").show()
|
|
|
- layui.$("#notWaitReturnRecord").hide()
|
|
|
- } else {
|
|
|
- layui.$("#selectWaitReturnRecord").hide()
|
|
|
- layui.$("#notWaitReturnRecord").show()
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- let selectArchiveByType = () => {
|
|
|
- layui.http.get('welcome/statistics/selectArchiveByType', {}, true, res => {
|
|
|
- if (res.code == 200) {
|
|
|
- // 基于准备好的dom,初始化echarts实例
|
|
|
- var myChart = echarts.init(document.getElementById('cundang'));
|
|
|
- // 指定图表的配置项和数据
|
|
|
- var option = {
|
|
|
- color: ['#3398DB'],
|
|
|
- tooltip: {
|
|
|
- trigger: 'axis',
|
|
|
- axisPointer: { // 坐标轴指示器,坐标轴触发有效
|
|
|
- type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
|
|
|
- }
|
|
|
- },
|
|
|
- grid: {
|
|
|
- left: '3%',
|
|
|
- right: '4%',
|
|
|
- bottom: '3%',
|
|
|
- containLabel: true
|
|
|
- },
|
|
|
- xAxis: [{
|
|
|
- type: 'category',
|
|
|
- data: res.data.x,
|
|
|
- axisTick: {
|
|
|
- alignWithLabel: true
|
|
|
- }
|
|
|
- }],
|
|
|
- yAxis: [{
|
|
|
- type: 'value'
|
|
|
- }],
|
|
|
- series: [{
|
|
|
- name: '档案数量',
|
|
|
- type: 'bar',
|
|
|
- barWidth: '40%',
|
|
|
- data: res.data.y
|
|
|
- }]
|
|
|
- };
|
|
|
- // 使用刚指定的配置项和数据显示图表。
|
|
|
- myChart.setOption(option);
|
|
|
-
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- let selectArchiveByYear = () => {
|
|
|
- layui.http.get('welcome/statistics/selectArchiveByYear', {}, true, res => {
|
|
|
- if (res.code == 200) {
|
|
|
- // 基于准备好的dom,初始化echarts实例
|
|
|
- var myChart = echarts.init(document.getElementById('years'));
|
|
|
- // 指定图表的配置项和数据
|
|
|
- var option = {
|
|
|
- color: ['#3398DB'],
|
|
|
- tooltip: {
|
|
|
- trigger: 'axis',
|
|
|
- axisPointer: { // 坐标轴指示器,坐标轴触发有效
|
|
|
- type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
|
|
|
- }
|
|
|
- },
|
|
|
- grid: {
|
|
|
- left: '3%',
|
|
|
- right: '4%',
|
|
|
- bottom: '3%',
|
|
|
- containLabel: true
|
|
|
- },
|
|
|
- xAxis: [{
|
|
|
- type: 'category',
|
|
|
- data: res.data.x,
|
|
|
- axisTick: {
|
|
|
- alignWithLabel: true
|
|
|
- }
|
|
|
- }],
|
|
|
- yAxis: [{
|
|
|
- type: 'value'
|
|
|
- }],
|
|
|
- series: [{
|
|
|
- name: '档案数量',
|
|
|
- type: 'bar',
|
|
|
- barWidth: '60%',
|
|
|
- data: res.data.y
|
|
|
- }]
|
|
|
- };
|
|
|
- // 使用刚指定的配置项和数据显示图表。
|
|
|
- myChart.setOption(option);
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- let selectBorrowCountByDate = () => {
|
|
|
- layui.http.get('welcome/statistics/selectBorrowCountByDate', {}, true, res => {
|
|
|
- if (res.code == 200) {
|
|
|
- // 基于准备好的dom,初始化echarts实例
|
|
|
- var myChart = layui.echarts.init(document.getElementById('main'));
|
|
|
|
|
|
- // 指定图表的配置项和数据
|
|
|
- var option = {
|
|
|
- tooltip: {
|
|
|
- trigger: 'axis'
|
|
|
- },
|
|
|
- grid: {
|
|
|
- left: '3%',
|
|
|
- right: '4%',
|
|
|
- bottom: '3%',
|
|
|
- containLabel: true
|
|
|
- },
|
|
|
- toolbox: {
|
|
|
- feature: {
|
|
|
- saveAsImage: {}
|
|
|
- }
|
|
|
- },
|
|
|
- xAxis: {
|
|
|
- type: 'category',
|
|
|
- boundaryGap: false,
|
|
|
- data: res.data.x
|
|
|
- },
|
|
|
- yAxis: {
|
|
|
- type: 'value'
|
|
|
- },
|
|
|
- series: res.data.y
|
|
|
- };
|
|
|
- // 使用刚指定的配置项和数据显示图表。
|
|
|
- myChart.setOption(option);
|
|
|
+ initMenu()
|
|
|
|
|
|
- }
|
|
|
+ $(document).on('click', ".layui-card", function () {
|
|
|
+ miniTab.openNewTabByIframe({
|
|
|
+ "title": $(this).attr('title'),
|
|
|
+ href: $(this).attr('href')
|
|
|
})
|
|
|
- }
|
|
|
-
|
|
|
- selectWaitHandleRecord()
|
|
|
- selectWaitReturnRecord()
|
|
|
- selectArchiveByType()
|
|
|
- selectArchiveByYear()
|
|
|
- selectBorrowCountByDate()
|
|
|
+ });
|
|
|
})
|
|
|
</script>
|
|
|
-
|
|
|
-<script type="text/javascript">
|
|
|
-
|
|
|
-</script>
|
|
|
-<script type="text/javascript">
|
|
|
-
|
|
|
-</script>
|
|
|
-
|
|
|
</body>
|
|
|
</html>
|