From cf7631b759d88a79164f9d6a4ad55727e89bd03b Mon Sep 17 00:00:00 2001 From: k94314517 <8417338+k94314517@user.noreply.gitee.com> Date: 星期四, 06 三月 2025 18:28:18 +0800 Subject: [PATCH] 代码初始化 --- screen/src/views/LogisticsCenter.vue | 46 ++++++++++++++++++++++++++++++++++++---------- 1 files changed, 36 insertions(+), 10 deletions(-) diff --git a/screen/src/views/LogisticsCenter.vue b/screen/src/views/LogisticsCenter.vue index caf08ca..b124849 100644 --- a/screen/src/views/LogisticsCenter.vue +++ b/screen/src/views/LogisticsCenter.vue @@ -63,21 +63,22 @@ </div> </div> - <div class="content"> + <div class="content" v-if="false"> <div class="unit_wrap"> <span class="la">鍚屾瘮</span> - <template v-if="StockOutData.currentNum && StockOutData.lastNum"> - <img v-if="StockOutData.currentNum >= StockOutData.lastNum" src="@/assets/images/ic_up.png" + <template v-if="StockOutData.sameOutNum"> + <img v-if="StockOutData.currentOutNum >= StockOutData.sameOutNum" src="@/assets/images/ic_up.png" class="icon" alt=""> <img v-else src="@/assets/images/ic_down.webp" class="icon" alt=""> </template> - <span v-if="StockOutData.lastNum && StockOutData.currentNum">{{ Math.abs((((StockOutData.currentNum + <span v-if="StockOutData.sameOutNum">{{ Math.abs((((StockOutData.currentOutNum - - StockOutData.lastNum) / - StockOutData.lastNum) + StockOutData.sameOutNum) / + StockOutData.sameOutNum) * 100).toFixed(2)) }}%</span> <span v-else style="margin-left: 6px;">-</span> - <span class="la" style="margin-left: 30px;margin-right: 10px;">绱鍑哄簱杞︽</span> + <span v-if="StockOutData.totalCarNum" class="la" + style="margin-left: 30px;margin-right: 10px;">绱鍑哄簱杞︽</span> <span>{{ StockOutData.totalCarNum || '' }}</span> </div> @@ -815,6 +816,29 @@ borderColor: '#fff' }, }, + dataZoom: [ + { + type: 'slider', // 婊戝姩鏉$被鍨� + orient: 'vertical', + left: 'left', + start: 0, // 璧峰浣嶇疆锛堢櫨鍒嗘瘮锛� + end: 40, // 缁撴潫浣嶇疆锛堢櫨鍒嗘瘮锛夛紝鎺у埗鍒濆鏄剧ず鑼冨洿 + width: 10, + // backgroundColor: '#04141e', // 婊戝姩鏉¤儗鏅壊 + // fillerColor: 'rgba(0, 0, 0, 0.2)', // 閫変腑鍖哄煙棰滆壊锛屾棤闃村奖 + borderColor: '#04141e', // 杈规棰滆壊 + // showDetail: false, // 闅愯棌閫変腑鑼冨洿鐨勬枃瀛� + }, + { + type: 'inside', // 鐢ㄤ簬鐩戝惉婊氳疆浜嬩欢 + orient: 'vertical', + start: 0, + end: 40, + zoomLock: true, // 閿佸畾缂╂斁锛堜粎鍏佽骞崇Щ锛� + moveOnMouseWheel: true, // 鍚敤婊氳疆骞崇Щ + zoomOnMouseWheel: false // 绂佺敤婊氳疆缂╂斁 + } + ], grid: { left: '3%', right: '4%', @@ -1009,7 +1033,8 @@ showModal.value = true kzorderInfo({ contractNumber: item.contractNumber }).then(res => { modalInfo.value = res.data - const apiKey = 'd9a554b1808ce10a12a932ed9b0db1d0' + // const apiKey = 'd9a554b1808ce10a12a932ed9b0db1d0' + const apiKey = '3916a7b434e7f13ae1a0af64e88ec0a3' if (modalInfo.value.gisList && modalInfo.value.gisList.length > 0) { const gisInfo = modalInfo.value.gisList[0] if (gisInfo && gisInfo.gisList && gisInfo.gisList.length > 0) { @@ -1017,7 +1042,7 @@ const location = adsInfo.lon1 + ',' + adsInfo.lat1 axios.get(`https://restapi.amap.com/v3/geocode/regeo?key=${apiKey}&location=${location}`).then(res => { console.log('res', res.data) - if(res.data.status == 1){ + if (res.data.status == 1) { modalInfo.value.position = res.data.regeocode.formatted_address } }) @@ -2907,7 +2932,8 @@ color: #01D9FE; width: 70px; } - .val{ + + .val { flex: 1; } } -- Gitblit v1.9.3