Commit 423259a0 authored by 郭铭瑶's avatar 郭铭瑶 🤘

有求必应加结案数

parent be0a7e71
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<link rel="icon" href="./favicon.ico" /> <link rel="icon" href="./favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>南京东路街道</title> <title>南京东路街道</title>
<script type="module" crossorigin src="./assets/index.76f3a39d.js"></script> <script type="module" crossorigin src="./assets/index.4bb3f15a.js"></script>
<link rel="modulepreload" href="./assets/vendor.0a2bc783.js"> <link rel="modulepreload" href="./assets/vendor.0a2bc783.js">
<link rel="stylesheet" href="./assets/index.a96a5e4b.css"> <link rel="stylesheet" href="./assets/index.a96a5e4b.css">
</head> </head>
......
...@@ -708,7 +708,11 @@ export default { ...@@ -708,7 +708,11 @@ export default {
}) })
).data ).data
commit('SET_WORKSTATION', content) commit('SET_WORKSTATION', content)
const result = {
const result = content?.find(
// 金字塔为当天数据
(item: any) => item.date === dayjs().format('YYYY-MM-DD')
)?.statistical || {
oneDisposalNum: 0, oneDisposalNum: 0,
oneNum: 0, oneNum: 0,
twoDisposalNum: 0, twoDisposalNum: 0,
...@@ -716,22 +720,7 @@ export default { ...@@ -716,22 +720,7 @@ export default {
threeDisposalNum: 0, threeDisposalNum: 0,
threeNum: 0, threeNum: 0,
} }
;(content || []).forEach((item: any) => {
const {
oneDisposalNum = 0,
oneNum = 0,
twoDisposalNum = 0,
twoNum = 0,
threeDisposalNum = 0,
threeNum = 0,
} = item?.statistical || {}
result.oneDisposalNum += oneDisposalNum
result.oneNum += oneNum
result.twoDisposalNum += twoDisposalNum
result.twoNum += twoNum
result.threeDisposalNum += threeDisposalNum
result.threeNum += threeNum
})
commit('SET_WORKSTATION_PIEDATA', result) commit('SET_WORKSTATION_PIEDATA', result)
}, },
async GET_TRACKEVENT( async GET_TRACKEVENT(
......
...@@ -162,12 +162,15 @@ export default defineComponent({ ...@@ -162,12 +162,15 @@ export default defineComponent({
twoNum = 0, twoNum = 0,
threeDisposalNum = 0, threeDisposalNum = 0,
threeNum = 0, threeNum = 0,
oneEndNum = 0,
twoEndNum = 0,
threeEndNum = 0,
} = workstationKind.value[index]?.statistical || {} } = workstationKind.value[index]?.statistical || {}
source.unshift({ source.unshift({
date: workstationKind.value[index].date, date: workstationKind.value[index].date,
data1: +oneNum + +twoNum + +threeNum, data1: +oneNum + +twoNum + +threeNum,
data2: +oneDisposalNum + +twoDisposalNum + +threeDisposalNum, data2: +oneDisposalNum + +twoDisposalNum + +threeDisposalNum,
data3: 0, data3: +oneEndNum + +twoEndNum + +threeEndNum,
}) })
}) })
return { return {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment