|
|
@@ -42,12 +42,12 @@
|
|
42
|
42
|
</div>
|
|
43
|
43
|
|
|
44
|
44
|
<div class="content-row">
|
|
45
|
|
- <SeizedInfo :chartsData="seizedInfoData" />
|
|
46
|
|
- <SeizedItems :chartsData="seizedItemsData" />
|
|
|
45
|
+ <SeizedInfo :chartsData="countSeizureInfoItemData" />
|
|
|
46
|
+ <SeizedItems :chartsData="countSeizeSubjectCategoryQuantityData" />
|
|
47
|
47
|
</div>
|
|
48
|
48
|
|
|
49
|
49
|
<div class="content-row">
|
|
50
|
|
- <SeizedNumAll :chartsData="seizedNumAllData" />
|
|
|
50
|
+ <SeizedNumAll :chartsData="countSeizureTotalQuantityData" />
|
|
51
|
51
|
<InfoCard title="每日查获数量(部门对比)">
|
|
52
|
52
|
<div ref="dailySeizedAreaRef" class="daily-chart"></div>
|
|
53
|
53
|
</InfoCard>
|
|
|
@@ -56,19 +56,19 @@
|
|
56
|
56
|
|
|
57
|
57
|
|
|
58
|
58
|
<div class="content-row">
|
|
59
|
|
- <SeizedWorkArea :chartsData="workAreaDistData" />
|
|
|
59
|
+ <SeizedWorkArea :chartsData="countSeizeAreaQuantityData" />
|
|
60
|
60
|
</div>
|
|
61
|
61
|
|
|
62
|
62
|
<div class="content-row">
|
|
63
|
|
- <EventItems :chartsData="unsafeItemDistData" />
|
|
64
|
|
- <EventType :chartsData="unsafeTypeDistData" />
|
|
65
|
|
- <EventWorkArea :chartsData="unsafePostDistData" />
|
|
|
63
|
+ <EventItems :chartsData="countSeizureStatsItemData" />
|
|
|
64
|
+ <EventType :chartsData="countSeizureStatsTypeData" />
|
|
|
65
|
+ <EventWorkArea :chartsData="countSeizureStatsPostData" />
|
|
66
|
66
|
</div>
|
|
67
|
67
|
|
|
68
|
68
|
<div class="content-row">
|
|
69
|
|
- <TestItems :chartsData="securityTestItemData" />
|
|
70
|
|
- <TestResult :chartsData="securityTestPassData" />
|
|
71
|
|
- <TestArea :chartsData="securityTestAreaData" />
|
|
|
69
|
+ <TestItems :chartsData="securityTestItemClassificationData" />
|
|
|
70
|
+ <TestResult :chartsData="securityTestPassingStatusData" />
|
|
|
71
|
+ <TestArea :chartsData="securityTestRegionData" />
|
|
72
|
72
|
</div>
|
|
73
|
73
|
</div>
|
|
74
|
74
|
</template>
|
|
|
@@ -87,7 +87,20 @@ import EventWorkArea from '../../components/EventWorkArea.vue'
|
|
87
|
87
|
import TestItems from '../../components/TestItems.vue'
|
|
88
|
88
|
import TestResult from '../../components/TestResult.vue'
|
|
89
|
89
|
import TestArea from '../../components/TestArea.vue'
|
|
90
|
|
-import { securityTestItemClassification, securityTestPassingStatus, securityTestRegion } from '@/api/portraitManagement/portraitManagement'
|
|
|
90
|
+import {
|
|
|
91
|
+ countSeizureInfoItem,
|
|
|
92
|
+ countSeizeSubjectCategoryQuantity,
|
|
|
93
|
+ countSeizureTotalQuantity,
|
|
|
94
|
+ countSeizureSingleQuantity,
|
|
|
95
|
+ countSeizeAreaQuantity,
|
|
|
96
|
+ countSeizureStatsItem,
|
|
|
97
|
+ countSeizureStatsType,
|
|
|
98
|
+ countSeizureStatsPost,
|
|
|
99
|
+ securityTestItemClassification,
|
|
|
100
|
+ securityTestPassingStatus,
|
|
|
101
|
+ securityTestRegion,
|
|
|
102
|
+
|
|
|
103
|
+} from '@/api/portraitManagement/portraitManagement'
|
|
91
|
104
|
|
|
92
|
105
|
const props = defineProps({
|
|
93
|
106
|
queryParams: {
|
|
|
@@ -141,57 +154,117 @@ const seizedInfoData = [
|
|
141
|
154
|
{ num: 481 }
|
|
142
|
155
|
]
|
|
143
|
156
|
|
|
144
|
|
-const seizedItemsData = ref([])
|
|
145
|
|
-const securityTestItemData = ref([])
|
|
146
|
157
|
|
|
147
|
|
-const fetchSeizedItemsData = async () => {
|
|
148
|
|
- try {
|
|
149
|
|
- const res = await securityTestItemClassification(props.queryParams)
|
|
|
158
|
+const countSeizureInfoItemData = ref({ totalSeizeNum: 0, itemList: [] })
|
|
|
159
|
+const invokerCountSeizureInfoItem = () => {
|
|
|
160
|
+ countSeizureInfoItem(props.queryParams).then(res => {
|
|
150
|
161
|
if (res.code === 200 && res.data) {
|
|
151
|
|
- securityTestItemData.value = res.data.map(item => ({
|
|
152
|
|
- num: item.total,
|
|
153
|
|
- name: item.name
|
|
154
|
|
- }))
|
|
|
162
|
+ countSeizureInfoItemData.value = res.data || { totalSeizeNum: 0, itemList: [] }
|
|
155
|
163
|
}
|
|
156
|
|
- } catch (error) {
|
|
157
|
|
- console.error('获取安保测试物品分类数据失败', error)
|
|
158
|
|
- }
|
|
|
164
|
+ })
|
|
159
|
165
|
}
|
|
160
|
|
-const securityTestPassData = ref([])
|
|
161
|
|
-const securityTestAreaData = ref([])
|
|
162
|
166
|
|
|
163
|
|
-const fetchSecurityTestPassData = async () => {
|
|
164
|
|
- try {
|
|
165
|
|
- const res = await securityTestPassingStatus(props.queryParams)
|
|
|
167
|
+const countSeizeSubjectCategoryQuantityData = ref([])
|
|
|
168
|
+const invokerCountSeizeSubjectCategoryQuantity = () => {
|
|
|
169
|
+ countSeizeSubjectCategoryQuantity(props.queryParams).then(res => {
|
|
166
|
170
|
if (res.code === 200 && res.data) {
|
|
167
|
|
- securityTestPassData.value = res.data.map(item => ({
|
|
168
|
|
- num: item.total,
|
|
169
|
|
- name: item.name
|
|
170
|
|
- }))
|
|
|
171
|
+ countSeizeSubjectCategoryQuantityData.value = res.data || []
|
|
171
|
172
|
}
|
|
172
|
|
- } catch (error) {
|
|
173
|
|
- console.error('获取安保测试通过情况数据失败', error)
|
|
174
|
|
- }
|
|
|
173
|
+ })
|
|
175
|
174
|
}
|
|
176
|
175
|
|
|
177
|
|
-const fetchSecurityTestAreaData = async () => {
|
|
178
|
|
- try {
|
|
179
|
|
- const res = await securityTestRegion(props.queryParams)
|
|
|
176
|
+const countSeizureTotalQuantityData = ref([])
|
|
|
177
|
+const invokerCountSeizureTotalQuantity = () => {
|
|
|
178
|
+ countSeizureTotalQuantity(props.queryParams).then(res => {
|
|
180
|
179
|
if (res.code === 200 && res.data) {
|
|
181
|
|
- securityTestAreaData.value = res.data.map(item => ({
|
|
182
|
|
- num: item.total,
|
|
183
|
|
- name: item.name
|
|
184
|
|
- }))
|
|
|
180
|
+ countSeizureTotalQuantityData.value = res.data || []
|
|
185
|
181
|
}
|
|
186
|
|
- } catch (error) {
|
|
187
|
|
- console.error('获取安保测试区域情况数据失败', error)
|
|
188
|
|
- }
|
|
|
182
|
+ })
|
|
189
|
183
|
}
|
|
190
|
184
|
|
|
|
185
|
+const countSeizureSingleQuantityData = ref([])
|
|
|
186
|
+const invokerCountSeizureSingleQuantity = () => {
|
|
|
187
|
+ countSeizureSingleQuantity(props.queryParams).then(res => {
|
|
|
188
|
+ if (res.code === 200 && res.data) {
|
|
|
189
|
+ countSeizureSingleQuantityData.value = res.data || []
|
|
|
190
|
+ }
|
|
|
191
|
+ })
|
|
|
192
|
+}
|
|
|
193
|
+
|
|
|
194
|
+const countSeizeAreaQuantityData = ref([])
|
|
|
195
|
+const invokerCountSeizeAreaQuantity = () => {
|
|
|
196
|
+ countSeizeAreaQuantity(props.queryParams).then(res => {
|
|
|
197
|
+ if (res.code === 200 && res.data) {
|
|
|
198
|
+ countSeizeAreaQuantityData.value = res.data || []
|
|
|
199
|
+ }
|
|
|
200
|
+ })
|
|
|
201
|
+}
|
|
|
202
|
+
|
|
|
203
|
+const countSeizureStatsItemData = ref([])
|
|
|
204
|
+const invokerCountSeizureStatsItem = () => {
|
|
|
205
|
+ countSeizureStatsItem(props.queryParams).then(res => {
|
|
|
206
|
+ if (res.code === 200 && res.data) {
|
|
|
207
|
+ countSeizureStatsItemData.value = res.data || []
|
|
|
208
|
+ }
|
|
|
209
|
+ })
|
|
|
210
|
+}
|
|
|
211
|
+const countSeizureStatsTypeData = ref([])
|
|
|
212
|
+const invokerCountSeizureStatsType = () => {
|
|
|
213
|
+ countSeizureStatsType(props.queryParams).then(res => {
|
|
|
214
|
+ if (res.code === 200 && res.data) {
|
|
|
215
|
+ countSeizureStatsTypeData.value = res.data || []
|
|
|
216
|
+ }
|
|
|
217
|
+ })
|
|
|
218
|
+}
|
|
|
219
|
+const countSeizureStatsPostData = ref([])
|
|
|
220
|
+const invokerCountSeizureStatsPost = () => {
|
|
|
221
|
+ countSeizureStatsPost(props.queryParams).then(res => {
|
|
|
222
|
+ if (res.code === 200 && res.data) {
|
|
|
223
|
+ countSeizureStatsPostData.value = res.data || []
|
|
|
224
|
+ }
|
|
|
225
|
+ })
|
|
|
226
|
+}
|
|
|
227
|
+
|
|
|
228
|
+const securityTestItemClassificationData = ref([])
|
|
|
229
|
+const invokerSecurityTestItemClassification = () => {
|
|
|
230
|
+ securityTestItemClassification(props.queryParams).then(res => {
|
|
|
231
|
+ if (res.code === 200 && res.data) {
|
|
|
232
|
+ securityTestItemClassificationData.value = res.data || []
|
|
|
233
|
+ }
|
|
|
234
|
+ })
|
|
|
235
|
+}
|
|
|
236
|
+
|
|
|
237
|
+const securityTestPassingStatusData = ref([])
|
|
|
238
|
+const invokerSecurityTestPassingStatus = () => {
|
|
|
239
|
+ securityTestPassingStatus(props.queryParams).then(res => {
|
|
|
240
|
+ if (res.code === 200 && res.data) {
|
|
|
241
|
+ securityTestPassingStatusData.value = res.data || []
|
|
|
242
|
+ }
|
|
|
243
|
+ })
|
|
|
244
|
+}
|
|
|
245
|
+const securityTestRegionData = ref([])
|
|
|
246
|
+const invokerSecurityTestRegion = () => {
|
|
|
247
|
+ securityTestRegion(props.queryParams).then(res => {
|
|
|
248
|
+ if (res.code === 200 && res.data) {
|
|
|
249
|
+ securityTestRegionData.value = res.data || []
|
|
|
250
|
+ }
|
|
|
251
|
+ })
|
|
|
252
|
+}
|
|
|
253
|
+
|
|
|
254
|
+
|
|
|
255
|
+
|
|
191
|
256
|
const fetchData = () => {
|
|
192
|
|
- fetchSeizedItemsData()
|
|
193
|
|
- fetchSecurityTestPassData()
|
|
194
|
|
- fetchSecurityTestAreaData()
|
|
|
257
|
+ invokerCountSeizureInfoItem()
|
|
|
258
|
+ invokerCountSeizeSubjectCategoryQuantity()
|
|
|
259
|
+ invokerCountSeizureTotalQuantity()
|
|
|
260
|
+ invokerCountSeizureSingleQuantity()
|
|
|
261
|
+ invokerCountSeizeAreaQuantity()
|
|
|
262
|
+ invokerCountSeizureStatsItem()
|
|
|
263
|
+ invokerCountSeizureStatsType()
|
|
|
264
|
+ invokerCountSeizureStatsPost()
|
|
|
265
|
+ invokerSecurityTestItemClassification()
|
|
|
266
|
+ invokerSecurityTestPassingStatus()
|
|
|
267
|
+ invokerSecurityTestRegion()
|
|
195
|
268
|
}
|
|
196
|
269
|
|
|
197
|
270
|
watch(() => props.queryParams, () => {
|