From a8c03746e6bd8ac1d46dc48c1b10bceff543664f Mon Sep 17 00:00:00 2001 From: liukangdong <898885815@qq.com> Date: 星期二, 10 十二月 2024 20:16:12 +0800 Subject: [PATCH] ll --- screen/src/views/TaskEfficiency.vue | 105 +++++++++++++++++++++++++++++++--------------------- 1 files changed, 63 insertions(+), 42 deletions(-) diff --git a/screen/src/views/TaskEfficiency.vue b/screen/src/views/TaskEfficiency.vue index fc9f8c0..f02d4e1 100644 --- a/screen/src/views/TaskEfficiency.vue +++ b/screen/src/views/TaskEfficiency.vue @@ -1,9 +1,9 @@ <template> <v-scale-screen width="1920" height="960"> <div class="main_app"> - <img src="@/assets/images/FireFighting/bg@2x.png" class="main_bg" alt="" /> + <img src="@/assets/images/task/bg@2x.png" class="main_bg" alt="" /> <div class="main_header"> - <img src="@/assets/images/maintitle@2x.png" class="main_header_bg" alt="" /> + <img src="@/assets/images/maintitle.gif" class="main_header_bg" alt="" /> <div class="title">瀹夋嘲鏅烘収鐗╂祦鍥尯-浣滀笟鏁堣兘缁熺</div> <div class="time_wrap"> <span class="date">{{ date }}</span> @@ -19,7 +19,7 @@ <img src="@/assets/images/ic_title@2x.png" class="icon" alt="" /> <div>浠婃棩鏈堝彴瀹屾垚璁㈠崟缁熻</div> </div> - <img src="@/assets/images/title@2x.png" class="bg" alt="" /> + <img src="@/assets/images/task/title@2x.png" class="bg" alt="" /> </div> <div class="car_static"> <div class="echart_wrap"> @@ -60,7 +60,7 @@ <img src="@/assets/images/ic_title@2x.png" class="icon" alt="" /> <div>浠婃棩鏈堝彴宸ヤ綔鏃堕暱瓒嬪娍</div> </div> - <img src="@/assets/images/title@2x.png" class="bg" alt="" /> + <img src="@/assets/images/task/title@2x.png" class="bg" alt="" /> </div> <div class="list one-swiper"> <div class="swiper-wrapper"> @@ -86,7 +86,7 @@ <div class="separate"></div> <div class="tab" :class="{ active: activeTab3 == 0 }" @click="tabClick3(0)">鍏ュ簱</div> </div> - <img src="@/assets/images/title@2x.png" class="bg" alt="" /> + <img src="@/assets/images/task/title@2x.png" class="bg" alt="" /> </div> <div class="echart_wrap"> <div class="echart2" id="echart2"></div> @@ -201,7 +201,7 @@ <img src="@/assets/images/ic_title@2x.png" class="icon" alt="" /> <div>浠婃棩杞﹁締浣滀笟鎯呭喌</div> </div> - <img src="@/assets/images/title@2x.png" class="bg" alt="" /> + <img src="@/assets/images/task/title@2x.png" class="bg" alt="" /> </div> <div class="static_wrap"> <div class="item"> @@ -228,13 +228,13 @@ <div class="line" v-for="item, i in data6?.platformLogList"> <div class="time_wrap"> <div class="time" :style="{ - backgroundColor: item.objType == 5?'#4ca8f7':item.objType == 6?'#f2b23e':item.objType == 10?'#4673f6':'#4aa38f' + backgroundColor: item.objType == 5 ? '#4ca8f7' : item.objType == 6 ? '#f2b23e' : item.objType == 10 ? '#4673f6' : '#4aa38f' }" v-if="item.createDate">{{ item.createDate.slice(11, 16) }}</div> <div class="sp" :style="{ - backgroundColor: item.objType == 5?'#4ca8f7':item.objType == 6?'#f2b23e':item.objType == 10?'#4673f6':'#4aa38f' + backgroundColor: item.objType == 5 ? '#4ca8f7' : item.objType == 6 ? '#f2b23e' : item.objType == 10 ? '#4673f6' : '#4aa38f' }"></div> <div class="dian" :style="{ - backgroundColor: item.objType == 5?'#4ca8f7':item.objType == 6?'#f2b23e':item.objType == 10?'#4673f6':'#4aa38f' + backgroundColor: item.objType == 5 ? '#4ca8f7' : item.objType == 6 ? '#f2b23e' : item.objType == 10 ? '#4673f6' : '#4aa38f' }"></div> </div> <div class="id_card">{{ item.carCodeFront || item.param4 }}</div> @@ -249,7 +249,7 @@ <img src="@/assets/images/ic_title@2x.png" class="icon" alt="" /> <div>瀹炴椂鍛婅</div> </div> - <img src="@/assets/images/title@2x.png" class="bg" alt="" /> + <img src="@/assets/images/task/title@2x.png" class="bg" alt="" /> </div> <div class="list three-swiper"> <div class="swiper-wrapper"> @@ -277,6 +277,9 @@ <!-- <div class="status">澶勭悊涓�</div> --> </div> </div> + </div> + <div v-if="data7.length == 0" class="empty_wrap" style="margin-top: 50px;"> + <img src="@/assets/images/default_empty.png" alt=""> </div> </div> </div> @@ -543,23 +546,24 @@ }]), new echarts.graphic.LinearGradient(0, 1, 0, 0, [{ offset: 0, + color: '#4370f2' + }, { + offset: 1, + color: '#61d3f9' + }]), + new echarts.graphic.LinearGradient(0, 1, 0, 0, [{ + offset: 0, color: '#4679f6' }, { offset: 1, color: '#4674f6' }]), - new echarts.graphic.LinearGradient(0, 1, 0, 0, [{ - offset: 0, - color: '#4370f2' - }, { - offset: 1, - color: '#61d3f9' - }])] + ] const temp = [] - temp.push({ name: '绛惧埌鏁�', value: data4.value?.signedNum || 0, rate: '100.0' }) - temp.push({ name: '宸插彨鍙�', value: data4.value?.calledNum || 0, rate: (data4.value.calledNum / data4.value?.signedNum * 100).toFixed(1)}) - temp.push({ name: '宸蹭綔涓�', value: data4.value?.workedNum || 0, rate: (data4.value.workedNum / data4.value?.signedNum * 100).toFixed(1) }) - temp.push({ name: '宸插畬鎴�', value: data4.value?.doneNum || 0, rate: (data4.value.doneNum / data4.value?.signedNum * 100).toFixed(1) }) + temp.push({ name: '绛惧埌鏁�', value: data4.value?.signedNum || 0, rate: data4.value?.signedNum ? '100.0' : 0 }) + temp.push({ name: '宸插彨鍙�', value: data4.value?.calledNum || 0, rate: data4.value?.signedNum ? (data4.value.calledNum / data4.value?.signedNum * 100).toFixed(1) : 0 }) + temp.push({ name: '宸蹭綔涓�', value: data4.value?.workedNum || 0, rate: data4.value?.signedNum ? (data4.value.workedNum / data4.value?.signedNum * 100).toFixed(1) : 0 }) + temp.push({ name: '宸插畬鎴�', value: data4.value?.doneNum || 0, rate: data4.value?.signedNum ? (data4.value.doneNum / data4.value?.signedNum * 100).toFixed(1) : 0 }) console.log('temp', temp) const option = { @@ -581,7 +585,10 @@ maxSize: '80%', gap: 4, label: { - show: false + show: false, + formatter: '', + lineHeight: 0, + position: 'inside' }, itemStyle: { //鍘绘帀榛樿鐧借壊杈规绾� @@ -604,14 +611,15 @@ show: true, position: 'outside', formatter: (params) => { - return `{a|${params.data.name} ${params.data.rate}%}` + const index = params.dataIndex; + return `{color${index}|${params.data.name} ${params.data.rate}%}` // return `<div>${params.data.name}</div>` }, rich: { - a: { - color: '#869CC9', - fontSize: 13 - }, + color0: { color: 'orange', fontSize: 14 }, + color1: { color: '#869CC9', fontSize: 13 }, + color2: { color: '#869CC9', fontSize: 13 }, + color3: { color: '#869CC9', fontSize: 13 } } }, labelLine: { @@ -683,7 +691,6 @@ item.rate = ((item.workTotalTime / count) * 30).toFixed(0) return item }) - loopFn2() }) } @@ -739,7 +746,6 @@ i.finishTime = dayjs(i.finishTime).format('HH:mm') return i }) - loopFn5() }) } @@ -753,13 +759,12 @@ const data7 = ref([]) const getData7 = () => { - cnwarningList({ size: 7 }).then(res => { + cnwarningList({ size: 10 }).then(res => { const result = res.data || [] data7.value = result.map(item => { item.haveTime = dayjs.duration(new Date().getTime() - new Date(item.createDate).getTime()).format('HH灏忔椂mm鍒嗛挓') return item }) - loopFn7() }) } @@ -821,9 +826,21 @@ getData6() getData7() - // initEchart1() - // initEchart2() - // initEchart3() + setInterval(() => { + getData1() + getData2() + getData3() + getData4() + getData5() + getData6() + getData7() + }, 1000 * 60) + + setTimeout(() => { + loopFn2() + loopFn5() + loopFn7() + }, 12000) }) @@ -924,7 +941,7 @@ padding: 0px 24px 0px; height: 200px; margin-top: 20px; - overflow: auto; + overflow: hidden; .line { display: flex; @@ -1146,18 +1163,18 @@ .two-swiper { height: 180px; - overflow: auto; + overflow: hidden; } .line { display: flex; height: 30px; - &:nth-of-type(2n) { + &:nth-of-type(2n + 1) { background: rgba(12, 153, 236, 0.2); } - &:nth-of-type(2n + 1) { + &:nth-of-type(2n) { background: rgba(1, 15, 35, 0.61); box-shadow: inset 0px 0px 40px 0px rgba(23, 51, 108, 0.66); } @@ -1167,15 +1184,17 @@ display: flex; justify-content: center; align-items: center; - font-size: 12px; + font-size: 14px; color: #D2E0FF; } } .header { font-weight: 500; - font-size: 13px; + font-size: 14px; color: #01ABFE; + background: rgba(1, 15, 35, 0.61) !important; + box-shadow: inset 0px 0px 40px 0px rgba(23, 51, 108, 0.66) !important; } } } @@ -1197,7 +1216,7 @@ align-items: center; .name { - font-size: 12px; + font-size: 14px; color: #D2E0FF; } @@ -1282,14 +1301,16 @@ .list { height: 220px; - overflow: auto; + overflow: hidden; margin-top: 15px; scrollbar-width: none; + .item { display: flex; font-size: 13px; color: #D2E0FF; height: 110px; + .icon { width: 40px; display: flex; -- Gitblit v1.9.3