|
@@ -296,27 +296,36 @@
|
|
|
|
|
|
<ul class="yearChioce">
|
|
|
<li class="year active" data-id="1">
|
|
|
- <div class="num">2022</div>
|
|
|
+ <div class="num">2023</div>
|
|
|
<img class="diamond" src="img/lingxing-c.png">
|
|
|
</li>
|
|
|
<li class="year" data-id="2">
|
|
|
+ <div class="num">2022</div>
|
|
|
+ <img class="diamond" src="img/lingxing-c.png">
|
|
|
+ </li>
|
|
|
+ <li class="year" data-id="3">
|
|
|
<div class="num">2021</div>
|
|
|
<img class="diamond" src="img/lingxing.png"></img>
|
|
|
</li>
|
|
|
- <img class="line" src="img/line1.png" style="width: 100vw;height: 2px">
|
|
|
+ <img class="line" src="img/line1.png" style="width: 100%;height: 2px">
|
|
|
</ul>
|
|
|
- <div class="ly-first layui-hide mainTable">
|
|
|
+
|
|
|
+ <div class="ly-one layui-hide mainTable">
|
|
|
<div class="title">2021年度重庆市南岸区人民政府重大行政决策事项目录</div>
|
|
|
<table class="layui-hide" id="tableData1"></table>
|
|
|
<!--<div id="decision_Content"></div>-->
|
|
|
<div class="moreNullData" id="nulldata" style="display: none">无数据!</div>
|
|
|
<!--<div class="more " id="moreConntent" onclick="addMoreContent()">更多>></div>-->
|
|
|
</div>
|
|
|
- <div class="mainTable ly-last">
|
|
|
+ <div class="mainTable layui-hide ly-two">
|
|
|
<!-- <img alt="" src="/data/zdjc_ml/zdgk-index-table-v2-1.jpg">-->
|
|
|
<div class="title">2022年度重庆市南岸区人民政府重大行政决策事项目录</div>
|
|
|
<table class="layui-hide" id="tableData"></table>
|
|
|
</div>
|
|
|
+ <div class="mainTable ly-three">
|
|
|
+ <div class="title">2023年度重庆市南岸区人民政府重大行政决策事项目录</div>
|
|
|
+ <table class="layui-hide" id="tableData2"></table>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -370,13 +379,30 @@
|
|
|
table = layui.table;
|
|
|
var tapsIndex = 0;
|
|
|
$('.yearChioce').on('click', 'li', function () {
|
|
|
- if ($(this).attr('data-id') == 1) {
|
|
|
- $('.ly-first').addClass('layui-hide');
|
|
|
- $('.ly-last').removeClass('layui-hide');
|
|
|
- } else {
|
|
|
- $('.ly-first').removeClass('layui-hide');
|
|
|
- $('.ly-last').addClass('layui-hide');
|
|
|
+ $('.ly-one').addClass('layui-hide');
|
|
|
+ $('.ly-two').addClass('layui-hide');
|
|
|
+ $('.ly-three').addClass('layui-hide');
|
|
|
+ // debugger
|
|
|
+ var dataid = $(this).attr('data-id')
|
|
|
+ console.log(dataid)
|
|
|
+ switch (dataid){
|
|
|
+ case "3":
|
|
|
+ $('.ly-one').removeClass('layui-hide');
|
|
|
+ break
|
|
|
+ case "2":
|
|
|
+ $('.ly-two').removeClass('layui-hide');
|
|
|
+ break
|
|
|
+ case "1":
|
|
|
+ $('.ly-three').removeClass('layui-hide');
|
|
|
+ break
|
|
|
}
|
|
|
+ // if ($(this).attr('data-id') == 1) {
|
|
|
+ // $('.ly-first').addClass('layui-hide');
|
|
|
+ // $('.ly-last').removeClass('layui-hide');
|
|
|
+ // } else {
|
|
|
+ // $('.ly-first').removeClass('layui-hide');
|
|
|
+ // $('.ly-last').addClass('layui-hide');
|
|
|
+ // }
|
|
|
var tapsTitleLi = $('.yearChioce li');
|
|
|
tapsTitleLi.removeClass('active');
|
|
|
$(this).addClass('active');
|
|
@@ -444,13 +470,13 @@
|
|
|
//展示已知数据
|
|
|
table.render({
|
|
|
elem: '#tableData'
|
|
|
- , url: PATH + '/postManagement/queryAllImportmentByYear?year=2022'
|
|
|
+ ,url: PATH + '/postManagement/queryAllImportmentByYear?year=2022'
|
|
|
, cols: [[ //标题栏
|
|
|
- {type: 'numbers', title: '序号', width: "8%", align: "center"}
|
|
|
- , {field: 'postTitle', title: '决策事项',width: "40%", templet: opra, align: "center"}
|
|
|
- , {field: 'deptName', title: '承办单位', width: "20%", align: "center"}
|
|
|
- , {field: 'releaseTime', title: '决策时间', width: "16%", templet: timeFormat, align: "center"}
|
|
|
- , {field: 'type', title: '决策状态',templet: typeFormat, align: "center"}
|
|
|
+ {type: 'numbers', title: '序号', width: "5%",align:"center"}
|
|
|
+ , {field: 'postTitle', title: '决策事项', width: "55%", templet: opra,align:"center"}
|
|
|
+ , {field: 'deptName', title: '承办单位', width: "18%",align:"center"}
|
|
|
+ , {field: 'releaseTime', title: '决策时间', width: "12%", templet: timeFormat,align:"center"}
|
|
|
+ , {field: 'type', title: '决策状态', templet: typeFormat,align:"center"}
|
|
|
]]
|
|
|
//,skin: 'line' //表格风格
|
|
|
, even: true
|
|
@@ -461,13 +487,29 @@
|
|
|
|
|
|
table.render({
|
|
|
elem: '#tableData1'
|
|
|
- , url: PATH + '/postManagement/queryAllImportmentByYear?year=2021'
|
|
|
+ ,url: PATH + '/postManagement/queryAllImportmentByYear?year=2021'
|
|
|
+ , cols: [[ //标题栏
|
|
|
+ {type: 'numbers', title: '序号', width: "5%",align:"center"}
|
|
|
+ , {field: 'postTitle', title: '决策事项',width: "55%", templet: opra,align:"center"}
|
|
|
+ , {field: 'deptName', title: '承办单位', width: "18%",align:"center"}
|
|
|
+ , {field: 'releaseTime', title: '决策时间', width: "12%", templet: timeFormat,align:"center"}
|
|
|
+ , {field: 'type', title: '决策状态', templet: typeFormat,align:"center"}
|
|
|
+ ]]
|
|
|
+ //,skin: 'line' //表格风格
|
|
|
+ , even: true
|
|
|
+ //,page: true //是否显示分页
|
|
|
+ //,limits: [5, 7, 10]
|
|
|
+ //,limit: 5 //每页默认显示的数量
|
|
|
+ });
|
|
|
+ table.render({
|
|
|
+ elem: '#tableData2'
|
|
|
+ ,url: PATH + '/postManagement/queryAllImportmentByYear?year=2023'
|
|
|
, cols: [[ //标题栏
|
|
|
- {type: 'numbers', title: '序号', width: "8%", align: "center"}
|
|
|
- , {field: 'postTitle', title: '决策事项', width: "40%",templet: opra, align: "center"}
|
|
|
- , {field: 'deptName', title: '承办单位', width: "20%", align: "center"}
|
|
|
- , {field: 'releaseTime', title: '决策时间', width: "16%", templet: timeFormat, align: "center"}
|
|
|
- , {field: 'type', title: '决策状态', templet: typeFormat, align: "center"}
|
|
|
+ {type: 'numbers', title: '序号', width: "5%",align:"center"}
|
|
|
+ , {field: 'postTitle', title: '决策事项', width: "55%", templet: opra,align:"center"}
|
|
|
+ , {field: 'deptName', title: '承办单位', width: "18%",align:"center"}
|
|
|
+ , {field: 'releaseTime', title: '决策时间', width: "12%", templet: timeFormat,align:"center"}
|
|
|
+ , {field: 'type', title: '决策状态', templet: typeFormat,align:"center"}
|
|
|
]]
|
|
|
//,skin: 'line' //表格风格
|
|
|
, even: true
|