-
执法依据
+
+
执法依据
+
法律
+
行政法规
+
地方性法规
+
部门规章
+
更多
diff --git a/agriculturalLawEnforcement/static/js/project/basis/basis.js b/agriculturalLawEnforcement/static/js/project/basis/basis.js
index a3d8f7e..d7a86fb 100644
--- a/agriculturalLawEnforcement/static/js/project/basis/basis.js
+++ b/agriculturalLawEnforcement/static/js/project/basis/basis.js
@@ -17,7 +17,8 @@ define(['jquery', "template", "Tools", "echarts", 'swiper', "paging"], function
//每页数量
pageSize: 5,
//总页数
- pageCount:0
+ pageCount:0,
+ getId:'002'
},
};
var tools = new Tools();
@@ -42,6 +43,31 @@ define(['jquery', "template", "Tools", "echarts", 'swiper', "paging"], function
pageNum: 1,
pageSize: module.data.pageSize,
}, module.newList , true);
+
+ var tabs = $('.nyzf').find('p');
+
+ tabs.on('click', function (e) {
+
+ module.data.newList = []
+ $('.page_s1').html('')
+ $('#page_s1').html('');
+ e.preventDefault();//防止打开链接
+
+ var id = $(this).data('id');
+
+ module.data.getId = id;
+
+ tabs.removeClass('active');
+
+ $(this).addClass('active');
+
+ tools.doGet(newsList, {
+ number: id,
+ deptId: data.data,
+ pageNum: 1,
+ pageSize: module.data.pageSize,
+ }, module.newList , true);
+ });
}
//新闻列表
@@ -51,6 +77,11 @@ define(['jquery', "template", "Tools", "echarts", 'swiper', "paging"], function
var pageCount = (data.total/module.data.pageSize).toFixed(0);
if (pageCount < 1){
pageCount = 1;
+ var content = data.rows;
+ module.data.newList = content;
+ var newData = template('newData', module.data);
+ $("#newContent").html(newData);
+ return;
}
if(module.data.newList == '') {
console.log(pageCount)
@@ -89,7 +120,7 @@ define(['jquery', "template", "Tools", "echarts", 'swiper', "paging"], function
module.data.pageNum = pageNum ;
console.log($('#title').val())
tools.doGet(newsList, {
- number: '002',
+ number: module.data.getId,
deptId: module.data.deptId,
pageNum: pageNum,
pageSize: module.data.pageSize,
diff --git a/agriculturalLawEnforcement/static/js/project/index.js b/agriculturalLawEnforcement/static/js/project/index.js
index 1d460b3..e6ce6d1 100644
--- a/agriculturalLawEnforcement/static/js/project/index.js
+++ b/agriculturalLawEnforcement/static/js/project/index.js
@@ -27,6 +27,21 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa
tools.doGet(news + '/001/'+data.data+'/7', {}, module.noticeList , true);
tools.doGet(news + '/002/'+data.data+'/7', {}, module.enforcementList , true);
tools.doGet(getScheme + '/'+data.data+'/7', {}, module.schemeList , true);
+
+ var tabs = $('.nyzf').find('p');
+
+ tabs.on('click', function (e) {
+
+ e.preventDefault();//防止打开链接
+
+ var id = $(this).data('id');
+
+ tabs.removeClass('active');
+
+ $(this).addClass('active');
+
+ tools.doGet(news + '/'+id+'/'+data.data+'/7', {}, module.enforcementList , true);
+ });
}
//新闻列表
diff --git a/agriculturalLawEnforcement/view/basis/basisList.html b/agriculturalLawEnforcement/view/basis/basisList.html
index be774f0..ba33d08 100644
--- a/agriculturalLawEnforcement/view/basis/basisList.html
+++ b/agriculturalLawEnforcement/view/basis/basisList.html
@@ -12,6 +12,23 @@
+
@@ -46,8 +63,12 @@
首页 > 执法依据
-
-
执法依据
+
+
执法依据
+
法律
+
行政法规
+
地方性法规
+
部门规章