Authored by 王涛

Merge branch 'master-v32-xwx' into 'master'

杭州-大屏-今日申报数刷新为0



See merge request !186
@@ -12,9 +12,9 @@ @@ -12,9 +12,9 @@
12 <!--<div class="circlediv"> 12 <!--<div class="circlediv">
13 <img class="rollimg" src="src/assets/images/zjdp/cycle-bg-1.png"> 13 <img class="rollimg" src="src/assets/images/zjdp/cycle-bg-1.png">
14 </div>--> 14 </div>-->
15 - <div :class="'ball_c '+ item.code"><div>{{item.name}}</div></div>  
16 - <div class="base u_p3d ypt__info">  
17 - <div v-for="(kpiItem,index) in item.kpi" :class="'ball_base u_p3d ball_'+index+1"> 15 + <div :class="'ball_c '+ item.code" style="z-index: 1000"><div @click="platformClick(index)" style="cursor:pointer;">{{item.name}}</div></div>
  16 + <div class="base u_p3d ypt__info" style="z-index: 1">
  17 + <div v-for="(kpiItem,index) in item.kpi" :class="'ball_base u_p3d ball_'+index+1" >
18 <div @mouseenter="addActive(index)" @mouseleave="closeActive" :class="['ball',{'active':isActive===index}]" v-if="kpiItem != ''"> 18 <div @mouseenter="addActive(index)" @mouseleave="closeActive" :class="['ball',{'active':isActive===index}]" v-if="kpiItem != ''">
19 <p>{{kpiItem.kpiName}}</p><b>{{kpiItem.kpiValue}}</b> 19 <p>{{kpiItem.kpiName}}</p><b>{{kpiItem.kpiValue}}</b>
20 </div> 20 </div>
@@ -14,6 +14,7 @@ export default { @@ -14,6 +14,7 @@ export default {
14 }, 14 },
15 setup(props, {attrs, slots, emit}) { 15 setup(props, {attrs, slots, emit}) {
16 const {proxy} = Vue.getCurrentInstance(); 16 const {proxy} = Vue.getCurrentInstance();
  17 + let resData = [];
17 18
18 // 挂载完 19 // 挂载完
19 Vue.onMounted(() => { 20 Vue.onMounted(() => {
@@ -21,6 +22,7 @@ export default { @@ -21,6 +22,7 @@ export default {
21 $.get(proxy.domainName +"/api-web/bigScreen/getCloudInfo"+'?access_token='+localStorage.getItem('access_token'),function(res){ 22 $.get(proxy.domainName +"/api-web/bigScreen/getCloudInfo"+'?access_token='+localStorage.getItem('access_token'),function(res){
22 const data = res.data; 23 const data = res.data;
23 if(data && data.length > 0){ 24 if(data && data.length > 0){
  25 + resData = data;
24 data.map((item,index)=>{ 26 data.map((item,index)=>{
25 27
26 if(item.kpi && item.kpi.length==0){ 28 if(item.kpi && item.kpi.length==0){
@@ -121,17 +123,29 @@ export default { @@ -121,17 +123,29 @@ export default {
121 } 123 }
122 yptRunTimer = setTimeout(run, 1000 * 5); 124 yptRunTimer = setTimeout(run, 1000 * 5);
123 } 125 }
124 -  
125 }) 126 })
  127 +
  128 + let get
  129 +
  130 +
126 const addActive=(index)=>{ 131 const addActive=(index)=>{
127 proxy.isActive=index; 132 proxy.isActive=index;
128 } 133 }
  134 + let platformClick = (index) => {
  135 + let max = resData.length - 1;
  136 + let next = index + 1;
  137 + if (next > max){
  138 + next = 0 ;
  139 + }
  140 + proxy.$refs.cloudCarousel.setActiveItem(next);
  141 + }
129 const closeActive=()=>{ 142 const closeActive=()=>{
130 proxy.isActive=''; 143 proxy.isActive='';
131 } 144 }
132 return{ 145 return{
133 addActive, 146 addActive,
134 - closeActive 147 + closeActive,
  148 + platformClick
135 } 149 }
136 } 150 }
137 } 151 }
@@ -37,6 +37,13 @@ export default { @@ -37,6 +37,13 @@ export default {
37 }, 37 },
38 setup(props, {attrs, slots, emit}) { 38 setup(props, {attrs, slots, emit}) {
39 const {proxy} = Vue.getCurrentInstance(); 39 const {proxy} = Vue.getCurrentInstance();
  40 + let declaredToday=Vue.ref(0);
  41 + let reportableToday=Vue.ref(0);
  42 + let declaredMonth=Vue.ref(0);
  43 + let reportableMonth=Vue.ref(0);
  44 +
  45 +
  46 +
40 // 挂载完 47 // 挂载完
41 Vue.onMounted(() => { 48 Vue.onMounted(() => {
42 //本月应申报及申报率 49 //本月应申报及申报率
@@ -181,8 +188,8 @@ export default { @@ -181,8 +188,8 @@ export default {
181 } 188 }
182 } 189 }
183 const goJump=()=>{ 190 const goJump=()=>{
184 - // proxy.$router.push({path:'/zj/dp',query: {access_token:localStorage.getItem('access_token')}})  
185 - window.open(window.location.origin + '/vue3/index.html#/zj/dp?access_token=' + localStorage.getItem("access_token")); 191 + proxy.$router.push({path:'/zj/dp',query: {access_token:localStorage.getItem('access_token'),msgKey: true}})
  192 + // window.open(window.location.origin + '/vue3/index.html#/zj/dp?access_token=' + localStorage.getItem("access_token"));
186 } 193 }
187 194
188 return{ 195 return{
@@ -190,7 +197,11 @@ export default { @@ -190,7 +197,11 @@ export default {
190 eleWidthNum, 197 eleWidthNum,
191 getDeclareData, 198 getDeclareData,
192 startInterval, 199 startInterval,
193 - goJump 200 + goJump,
  201 + declaredToday,
  202 + reportableToday,
  203 + declaredMonth,
  204 + reportableMonth
194 } 205 }
195 }, 206 },
196 unmounted () { 207 unmounted () {
@@ -13,6 +13,8 @@ export default { @@ -13,6 +13,8 @@ export default {
13 const {proxy} = Vue.getCurrentInstance(); 13 const {proxy} = Vue.getCurrentInstance();
14 const {numm, numLen} = Vue.toRefs(props); 14 const {numm, numLen} = Vue.toRefs(props);
15 const orderNum = Vue.ref([]); 15 const orderNum = Vue.ref([]);
  16 + let numDiff = Vue.ref(0);
  17 + let iStyle = Vue.ref('transform:translate(0,0)')
16 // 处理数字 18 // 处理数字
17 // numm: 传入的数字 numLen: 默认显示几位数 19 // numm: 传入的数字 numLen: 默认显示几位数
18 let numVal=numm.value+''; 20 let numVal=numm.value+'';
@@ -57,6 +59,8 @@ export default { @@ -57,6 +59,8 @@ export default {
57 return{ 59 return{
58 orderNum, 60 orderNum,
59 toOrderNum, 61 toOrderNum,
  62 + numDiff,
  63 + iStyle,
60 setNumberTransform 64 setNumberTransform
61 } 65 }
62 }, 66 },