This commit is contained in:
duxp 2023-09-05 17:54:58 +08:00
parent e18aca6940
commit 471eb1eced
2 changed files with 23 additions and 21 deletions

View File

@ -336,7 +336,7 @@
var options = { var options = {
url: url, url: url,
data:{ data:{
type:'度考核指标' type:'度考核指标'
}, },
expandLevel: 2, expandLevel: 2,
onClick : zOnClick onClick : zOnClick

View File

@ -178,18 +178,7 @@
loadPeopleData(); loadPeopleData();
loadDepData(); loadDepData();
//先进成员滚动
if(_peopleData.length > 5){
setInterval(function () {
setTimeout(autoScroll("#center_footer_one"),0)
},1000)
}
//先进部门滚动
if(_deptData.length > 5){
setInterval(function () {
setTimeout(autoScroll("#center_footer_two"),0)
},1000)
}
@ -518,6 +507,11 @@
itemStyle: { itemStyle: {
color: '#F9713C' color: '#F9713C'
}, },
tooltip: {
valueFormatter: function (value) {
return value + ' 分';
}
},
} }
] ]
}; };
@ -680,7 +674,7 @@
function loadPeopleData(){ function loadPeopleData(){
_peopleData = []; _peopleData = [];
$.ajax({ $.ajax({
url:'/base/index/advanceParity', url:'/base/affairs/importantWork',
type:'post', type:'post',
dataType:'json', dataType:'json',
success(res){ success(res){
@ -689,11 +683,16 @@
_peopleData = res.data; _peopleData = res.data;
_data.forEach(item => { _data.forEach(item => {
_strHtml += '<div class="item_inline">' + _strHtml += '<div class="item_inline">' +
'<p>党风廉政建设:'+item.name+'</p>' + '<p>'+item.type+''+item.shotName+'</p>' +
'<p>目前完成度:'+item.events+'</p>' + '<p>目前完成度:'+item.percent+'%</p>' +
'</div>'; '</div>';
}); });
$('#center_footer_one').append(_strHtml); $('#center_footer_one').append(_strHtml);
if(_peopleData.length > 5){
setInterval(function () {
setTimeout(autoScroll("#center_footer_one"),0)
},1000)
}
} }
}) })
} }
@ -702,22 +701,25 @@
function loadDepData(){ function loadDepData(){
_deptData = []; _deptData = [];
$.ajax({ $.ajax({
url:'/base/index/advanceDept', url:'/base/affairs/labelTotal',
type:'post', type:'post',
dataType:'json', dataType:'json',
success(res){ success(res){
let _data = res.data; let _data = res.data;
let _strHtml = ""; let _strHtml = "";
_deptData = res.data; _deptData = res.data;
_data.forEach(item => { _data.forEach(item => {
let _json = JSON.parse(item.json);
_strHtml += '<div class="item_inline">' + _strHtml += '<div class="item_inline">' +
'<p>党建及意识形态:'+_json['日常考核指标']+'</p>' + '<p>'+item.type+''+item.shotName+'</p>' +
'<p>目前完成度:'+_json['季度考核指标']+'</p>' + '<p>目前完成度:'+item.percent+'%</p>' +
'</div>'; '</div>';
}); });
$('#center_footer_two').append(_strHtml); $('#center_footer_two').append(_strHtml);
if(_deptData.length > 5){
setInterval(function () {
setTimeout(autoScroll("#center_footer_two"),0)
},1000)
}
} }
}) })
} }