...
|
...
|
@@ -8,6 +8,7 @@ export default { |
|
|
},
|
|
|
data(){
|
|
|
return {
|
|
|
timer:null,//定时刷新
|
|
|
domainName:sessionStorage.getItem('domainName'),
|
|
|
apiUrl:'/api-web/bigScreen/digitalBoardData',//本月已申报/未申报
|
|
|
apiUrl1:'/api-web/bigScreen/findPortfolio',//今日业务量
|
...
|
...
|
@@ -69,29 +70,8 @@ export default { |
|
|
|
|
|
}
|
|
|
});
|
|
|
$.get(proxy.domainName +proxy.apiUrl+'?kipValue1=KPIDA0ACBBF&kipValue2=KPIDA0ACBBD'+'&access_token='+localStorage.getItem('access_token'),function (res) {
|
|
|
const data = res;
|
|
|
if(data && data.map){
|
|
|
let reportableMonth=data.map.rightNumber;
|
|
|
proxy.declaredMonth=data.map.leftNumber;
|
|
|
proxy.reportableMonth=proxy.numberFilter(reportableMonth,-1);
|
|
|
|
|
|
// let reportable=parseInt(data.map.rightNumber)+parseInt(data.map.leftNumber);
|
|
|
// proxy.reportable=proxy.numberFilter(reportable,-1);
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
$.get(proxy.domainName +proxy.apiUrl+'?kipValue1=KPIDA0ACBBS&kipValue2=KPIDA0ACBBE'+'&access_token='+localStorage.getItem('access_token'),function (res) {
|
|
|
const data = res;
|
|
|
if(data && data.map){
|
|
|
let reportableToday=data.map.rightNumber;
|
|
|
proxy.declaredToday=data.map.leftNumber;
|
|
|
proxy.reportableToday=proxy.numberFilter(reportableToday,-1);
|
|
|
}
|
|
|
})
|
|
|
proxy.getDeclareData();
|
|
|
proxy.startInterval();
|
|
|
|
|
|
//业务量
|
|
|
$.get(proxy.domainName +proxy.apiUrl1+'?access_token='+localStorage.getItem('access_token'),function (res) {
|
...
|
...
|
@@ -135,6 +115,39 @@ export default { |
|
|
})
|
|
|
|
|
|
})
|
|
|
const startInterval=()=>{
|
|
|
if (proxy.timer) {
|
|
|
clearInterval(proxy.timer)
|
|
|
|
|
|
}
|
|
|
proxy.timer=setInterval(function (){
|
|
|
proxy.getDeclareData();
|
|
|
},10000)
|
|
|
}
|
|
|
const getDeclareData=()=>{
|
|
|
$.get(proxy.domainName +proxy.apiUrl+'?kipValue1=KPIDA0ACBBF&kipValue2=KPIDA0ACBBD'+'&access_token='+localStorage.getItem('access_token'),function (res) {
|
|
|
const data = res;
|
|
|
if(data && data.map){
|
|
|
let reportableMonth=data.map.rightNumber;
|
|
|
proxy.declaredMonth=data.map.leftNumber;
|
|
|
proxy.reportableMonth=proxy.numberFilter(reportableMonth,-1);
|
|
|
|
|
|
// let reportable=parseInt(data.map.rightNumber)+parseInt(data.map.leftNumber);
|
|
|
// proxy.reportable=proxy.numberFilter(reportable,-1);
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
$.get(proxy.domainName +proxy.apiUrl+'?kipValue1=KPIDA0ACBBS&kipValue2=KPIDA0ACBBE'+'&access_token='+localStorage.getItem('access_token'),function (res) {
|
|
|
const data = res;
|
|
|
if(data && data.map){
|
|
|
let reportableToday=data.map.rightNumber;
|
|
|
proxy.declaredToday=data.map.leftNumber;
|
|
|
proxy.reportableToday=proxy.numberFilter(reportableToday,-1);
|
|
|
}
|
|
|
})
|
|
|
|
|
|
}
|
|
|
const eleWidthNum=(num,maxNum)=>{
|
|
|
let widthNum=Math.ceil((num*150)/maxNum)
|
|
|
let widthData=0;
|
...
|
...
|
@@ -170,7 +183,12 @@ export default { |
|
|
|
|
|
return{
|
|
|
numberFilter,
|
|
|
eleWidthNum
|
|
|
eleWidthNum,
|
|
|
getDeclareData,
|
|
|
startInterval
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
unmounted () {
|
|
|
clearInterval(this.timer)
|
|
|
},
|
|
|
} |
...
|
...
|
|