p-honggang.li
5 天以前 80ca024e9ae633df0dc9f4e8f533f33b526afb3d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
<template>
  <div class="bodyBox">
    <el-scrollbar   style="width: 100%;height: 80vh;"  ref="scrollHomeRef">
    <div class="bodyChildDiv">
      <div class="titBox">
        <span class="red">我的待办</span>
      </div>
      <div class="ctnBox">
        <div class="childBox" @click="goPage(1)" style="width: 37%">
          <div class="childDiv">
            <span>待审批数字化标杆</span>
            <span>{{ state.dealwithDatabg }}</span>
          </div>
        </div>
        <div class="childBox" @click="goPage(2)" style="width: 37%">
          <div class="childDiv">
            <span>待审批数字化知识</span>
            <span>{{ state.dealwithDatazs }}</span>
          </div>
        </div>
        <div class="childBox" @click="goPage(3)" style="width: 14%">
          <div class="childDiv">
            <span>待审批数字化产品</span>
            <span>{{ state.dealwithDatacp }}</span>
          </div>
        </div>
        <div class="childBox" @click="goPage(21)" style="width: 37%">
          <div class="childDiv">
            <span>待审批使用申请</span>
            <span>{{ state.dealwithApply }}</span>
          </div>
        </div>
        <div class="childBox" @click="goPage(22)" style="width: 37%">
          <div class="childDiv">
            <span>待上传交易管理</span>
            <span>{{ state.dealwithUploadFile }}</span>
          </div>
        </div>
        <!-- (2:待申报活动的数量 -->
        <div class="childBox" @click="goPageByParam(state.toReviewNumTwo)" style="width: 14%">
          <div class="childDiv">
            <span>待活动申报</span>
            <span>{{ state.toReviewNumTwo.toReviewNum }}</span>
          </div>
        </div>
        <!-- 3:待活动审批的数量; -->
        <div class="childBox" @click="goPageByParam(state.toReviewNumThree)" style="width: 37%">
          <div class="childDiv">
            <span>待活动审批</span>
            <span>{{ state.toReviewNumThree.toReviewNum }}</span>
          </div>
        </div>
        <!-- 4:待专家评审的数量) -->
        <div class="childBox" @click="goPageByParam(state.toReviewNumFour)" style="width: 37%">
          <div class="childDiv">
            <span>待专家评审</span>
            <span>{{ state.toReviewNumFour.toReviewNum }}</span>
          </div>
        </div>
        <div class="childBox" @click="goApplyDealwith" style="width: 14%">
          <div class="childDiv">
            <span>待审批授权申请</span>
            <span>{{state.resourceDealwith}}</span>
          </div>
        </div>
        <div class="childBox" @click="goPage(23)" style="width: 37%">
          <div class="childDiv">
            <span>待审批图谱</span>
            <span>{{ state.graphApproveDealwithCount }}</span>
          </div>
        </div>
        <div class="childBox" @click="goPage(24)" style="width: 37%">
          <div class="childDiv">
            <span>待审批工单</span>
            <span>{{ state.dealwithWorkCount }}</span>
          </div>
        </div>
      </div>
    </div>
    <!-- 待审批使用申请 -->
    <div class="bodyChildDiv">
      <div class="titBox">
        <span class="green">我的已办</span>
      </div>
      <div class="ctnBox">
        <div class="childBox" @click="goPage(4)" style="width: 37%">
          <div class="childDiv">
            <span>已审批数字化标杆</span>
            <span>{{ state.completedDatabg }}</span>
          </div>
        </div>
 
        <div class="childBox" @click="goPage(5)" style="width: 37%">
          <div class="childDiv">
            <span>已审批数字化知识</span>
            <span>{{ state.completedDatazs }}</span>
          </div>
        </div>
 
        <div class="childBox" @click="goPage(6)" style="width: 14%">
          <div class="childDiv">
            <span>已审批数字化产品</span>
            <span>{{ state.completedDatacp }}</span>
          </div>
        </div>
      </div>
    </div>
 
    <div class="bodyChildDiv" style="margin-bottom: 20px;">
      <div class="titBox">
        <span class="blue">我的资源</span>
      </div>
 
      <div class="ctnBox">
        <div class="childBox" @click="goPage(7)" style="width: 37%">
          <div class="childDiv">
            <span>已上架的数字化标杆</span>
            <span>{{ state.resourceData.listedBenchmark }}</span>
          </div>
        </div>
 
        <div class="childBox" @click="goPage(8)" style="width: 37%">
          <div class="childDiv">
            <span>已上架的数字化知识</span>
            <span>{{ state.resourceData.listedKnowledge }}</span>
          </div>
        </div>
 
        <div class="childBox" @click="goPage(9)" style="width: 14%">
          <div class="childDiv">
            <span>已上架的数字化产品</span>
            <span>{{ state.resourceData.listedProduct }}</span>
          </div>
        </div>
      </div>
      <div class="ctnBox">
        <div class="childBox" @click="goPage(10)" style="width: 37%">
          <div class="childDiv">
            <span>已试用的数字化产品</span>
            <span>{{ state.resourceData.experienceProduct }}</span>
          </div>
        </div>
 
        <div class="childBox" @click="goPage(11)" style="width: 37%">
          <div class="childDiv">
            <span>已订阅的数字化产品</span>
            <span>{{ state.resourceData.useProduct }}</span>
          </div>
        </div>
 
        <div class="childBox" @click="goPage(12)" style="width: 14%">
          <div class="childDiv">
            <span>已收藏的数字化产品</span>
            <span>{{ state.resourceData.favoriteProduct }}</span>
          </div>
        </div>
 
        <div class="childBox"   @click="goApplyCompleted" style="width: 37%">
          <div class="childDiv">
            <span>已授权申请</span>
            <span>{{ state.resourceCompleted }}</span>
          </div>
        </div>
 
      </div>
    </div>
 
    <!--    <div class="bodyChildDivT">-->
 
    <!--      <div class="childBox">-->
    <!--        <div class="titBox">-->
    <!--          <span>方案总览</span>-->
    <!--        </div>-->
 
    <!--        <div class="ctnBox">-->
    <!--          <div class="ctnChildDiv">-->
    <!--            <span>0</span>-->
    <!--            <span>已下架</span>-->
    <!--          </div>-->
    <!--          <div class="ctnChildDiv">-->
    <!--            <span>12</span>-->
    <!--            <span>已上架</span>-->
    <!--          </div>-->
    <!--          <div class="ctnChildDiv">-->
    <!--            <span>12</span>-->
    <!--            <span>已共享</span>-->
    <!--          </div>-->
    <!--          <div class="ctnChildDiv">-->
    <!--            <span>11</span>-->
    <!--            <span>已推广</span>-->
    <!--          </div>-->
 
    <!--        </div>-->
    <!--      </div>-->
 
    <!--      <div class="childBox">-->
    <!--        <div class="titBox">-->
    <!--          <span>成果总览</span>-->
    <!--        </div>-->
 
    <!--        <div class="ctnBox">-->
    <!--          <div class="ctnChildDiv">-->
    <!--            <span>0</span>-->
    <!--            <span>已下架</span>-->
    <!--          </div>-->
    <!--          <div class="ctnChildDiv">-->
    <!--            <span>9</span>-->
    <!--            <span>已上架</span>-->
    <!--          </div>-->
    <!--          <div class="ctnChildDiv">-->
    <!--            <span>9</span>-->
    <!--            <span>已共享</span>-->
    <!--          </div>-->
    <!--          <div class="ctnChildDiv">-->
    <!--            <span>9</span>-->
    <!--            <span>已推广</span>-->
    <!--          </div>-->
 
    <!--        </div>-->
    <!--      </div>-->
 
    <!--    </div>-->
 
    <!--    <div class="bodyChildDivT">-->
 
    <!--      <div class="childBox">-->
    <!--        <div class="titBox">-->
    <!--          <span>产品总览</span>-->
    <!--        </div>-->
 
    <!--        <div class="ctnBox">-->
    <!--          <div class="ctnChildDiv">-->
    <!--            <span>0</span>-->
    <!--            <span>已下架</span>-->
    <!--          </div>-->
    <!--          <div class="ctnChildDiv">-->
    <!--            <span>3</span>-->
    <!--            <span>已上架</span>-->
    <!--          </div>-->
    <!--          <div class="ctnChildDiv">-->
    <!--            <span>2</span>-->
    <!--            <span>已共享</span>-->
    <!--          </div>-->
    <!--          <div class="ctnChildDiv">-->
    <!--            <span>0</span>-->
    <!--            <span>已推广</span>-->
    <!--          </div>-->
 
    <!--        </div>-->
    <!--      </div>-->
 
    <!--      <div class="childBox">-->
    <!--        <div class="titBox">-->
    <!--          <span>浏览与关注</span>-->
    <!--        </div>-->
 
    <!--        <div class="ctnBox">-->
    <!--          <div class="ctnChildDiv">-->
    <!--            <span>100</span>-->
    <!--            <span>已收藏</span>-->
    <!--          </div>-->
    <!--          <div class="ctnChildDiv">-->
    <!--            <span>400</span>-->
    <!--            <span>已浏览</span>-->
    <!--          </div>-->
    <!--          <div class="ctnChildDiv">-->
    <!--            <span>50</span>-->
    <!--            <span>被收藏</span>-->
    <!--          </div>-->
    <!--          <div class="ctnChildDiv">-->
    <!--            <span>500</span>-->
    <!--            <span>被浏览</span>-->
    <!--          </div>-->
 
    <!--        </div>-->
    <!--      </div>-->
 
    <!--    </div>-->
    </el-scrollbar>
  </div>
</template>
 
<script setup lang="ts">
import commonApi from '@/api/commonApi'
import { useCommonInfo } from '@/stores/modules/common'
import { formatTree } from '@/utils/common'
import router from '@/router'
import approvalService from '@/api/zhongjian/approvalApi'
import Base64 from '@/utils/base64'
import subscriptionApi from '@/api/subscription'
import mindmapService from '@/api/mindMap' // 接口文件
import questionApi from '@/api/questionApi'
 
import bus from '@/utils/mitt'
 
const commonInfoStore = useCommonInfo()
 
const state = reactive<any>({
  dealwithDatabg: 0, // 我的待办
  completedDatabg: 0, // 我的已办
  dealwithDatazs: 0, // 我的待办
  completedDatazs: 0, // 我的已办
  dealwithDatacp: 0, // 我的待办
  completedDatacp: 0, // 我的已办
  resourceData: {}, // 我的资源
  dealwithApply: 0,
  dealwithUploadFile: 0,
  dealWithCount:0,
  resourceDealwith:0,
  resourceCompleted:0,
  graphApproveDealwithCount:0,//图谱审批
  dealwithWorkCount:0,//问题工单待审批
  /**
 * 类型标识(2:待申报活动的数量;3:待活动审批的数量;4:待专家评审的数量)
 */
  toReviewNumTwo:{
    path:2,
    projectId:'',
    toReviewNum:0,
  },
  toReviewNumThree:{
    path:3,
    projectId:'',
    toReviewNum:0,
  },
  toReviewNumFour:{
    path:4,
    projectId:'',
    toReviewNum:0,
  },
  toAuthorizationNum:{
    path:4,
    projectId:'',
    toReviewNum:0,
  }
})
 
// 跳转
const goPage = (num?: any) => {
  // 1-3 待办 4-6 已办
  // 标杆
  if (num == 1) {
    setTimeout(() => {
      router.push({
        path: '/approve/schemeManage/schemeApproval',
      })
      bus.emit('routerHomebg', '1')
    })
 
    return
  }
 
  if (num == 4) {
    setTimeout(() => {
      router.push({
        path: '/approve/schemeManage/schemeApproval',
      })
      bus.emit('routerHomebg', '2')
    })
 
    return
  }
 
  // 知识
  if (num == 2) {
    setTimeout(() => {
      router.push({
        path: '/approve/resultManage/resultApproval',
      })
      bus.emit('routerHomezs', '1')
    })
 
    return
  }
 
  if (num == 5) {
    setTimeout(() => {
      router.push({
        path: '/approve/resultManage/resultApproval',
      })
      bus.emit('routerHomezs', '2')
    })
 
    return
  }
 
  // 产品
  if (num == 3) {
    setTimeout(() => {
      router.push({
        path: '/approve/productManage/productApproval',
      })
      bus.emit('routerHomecp', '1')
    })
 
    return
  }
 
  if (num == 6) {
    setTimeout(() => {
      router.push({
        path: '/approve/productManage/productApproval',
      })
      bus.emit('routerHomecp', '2')
    })
 
    return
  }
 
  if (num == 7) {
    setTimeout(() => {
      router.push({
        path: '/approve/schemeManage/schemeApproval',
      })
      bus.emit('routerHomebg', '1')
    })
 
    return
  }
 
  if (num == 8) {
    setTimeout(() => {
      router.push({
        path: '/approve/resultManage/resultApproval',
      })
      bus.emit('routerHomezs', '1')
    })
 
    return
  }
 
  if (num == 9) {
    setTimeout(() => {
      router.push({
        path: '/approve/productManage/productApproval',
      })
      bus.emit('routerHomecp', '1')
    })
 
    return
  }
 
  // 已试用
  if (num == 10) {
    setTimeout(() => {
      router.push({
        path: '/individualCenter/experiencePage',
      })
    })
 
    return
  }
  // 已应用
  if (num == 11) {
    setTimeout(() => {
      router.push({
        path: '/individualCenter/applyPage',
      })
    })
 
    return
  }
  // 已收藏
  if (num == 12) {
    setTimeout(() => {
      router.push({
        path: '/individualCenter/collectPage',
      })
    })
 
    return
  }
  if (num == 21) {
    setTimeout(() => {
      router.push({
        path: '/approve/subscriptionManage/subscriptionApproval',
      })
    })
    return
  }
  if (num == 22) {
    setTimeout(() => {
      router.push({
        path: '/individualCenter/transactionPage',
      })
    })
    return
  }
  
  if (num == 23) {
    scrollHomeRef.value.scrollTo({ top: 0 })
    router.push({
      path: '/approve/graphAuthorization/graphAuthorizationList',
      query:{
        type:'dealwith'
      }
    })
    return
  }
  if (num == 24) {
    scrollHomeRef.value.scrollTo({ top: 0 })
    router.push({
      path: '/questionCore/workOrdersApproveManage',
      query:{
        type:'dealwith'
      }
    })
    return
  }
}
const goPageByParam=(item:any)=>{
  // 待活动申报
  if (item.path == 2) {
      router.push({
        path: '/activityConfiguration/activityDeclaration',
        query:{
          projectId:item.projectId
        }
      })
  }
  if (item.path == 3) {
      router.push({
        path: '/activityConfiguration/activityApproval',
        query:{
          projectId:item.projectId
        }
      })
  }
  if (item.path == 4) {
      router.push({
        path: '/activityConfiguration/expertReview',
        query:{
          projectId:item.projectId
        }
      })
  }
}
// 获取审核数量-标杆
const schemeListCountUrlFun = () => {
  approvalService.schemeListCountUrl().then((res: any) => {
    if (res.code == 200) {
      res.data.forEach((item: any) => {
        if (item.approvalStatus == 'dealwith') {
          state.dealwithDatabg = item.numCount
        }
        if (item.approvalStatus == 'completed') {
          state.completedDatabg = item.numCount
        }
      })
    }
  }).catch((error) => {
    console.warn('获取标杆审核数量失败:', error)
    // 设置默认值
    state.dealwithDatabg = 0
    state.completedDatabg = 0
  })
}
 
// 获取审核数量-知识
const resultListCountUrlFun = () => {
  approvalService.resultListCountUrl().then((res: any) => {
    if (res.code == 200) {
      res.data.forEach((item: any) => {
        if (item.approvalStatus == 'dealwith') {
          state.dealwithDatazs = item.numCount
        }
        if (item.approvalStatus == 'completed') {
          state.completedDatazs = item.numCount
        }
      })
    }
  }).catch((error) => {
    console.warn('获取知识审核数量失败:', error)
    // 设置默认值
    state.dealwithDatazs = 0
    state.completedDatazs = 0
  })
}
 
// 获取审核数量-产品
const productListCountUrlFun = () => {
  approvalService.productListCountUrl().then((res: any) => {
    if (res.code == 200) {
      res.data.forEach((item: any) => {
        if (item.approvalStatus == 'dealwith') {
          state.dealwithDatacp = item.numCount
        }
        if (item.approvalStatus == 'completed') {
          state.completedDatacp = item.numCount
        }
      })
    }
  }).catch((error) => {
    console.warn('获取产品审核数量失败:', error)
    // 设置默认值
    state.dealwithDatacp = 0
    state.completedDatacp = 0
  })
}
 
// 获取审核数量-我的资源
const resourceStatisticsUrlFun = () => {
  approvalService.resourceStatisticsUrl().then((res: any) => {
    if (res.code == 200) {
      state.resourceData = {}
      state.resourceData = res.data
    }
  }).catch((error) => {
    console.warn('获取资源统计失败:', error)
    // 设置默认值
    state.resourceData = {}
  })
}
const getDealwithApply = () => {
  subscriptionApi.getProductUseListCount({}).then((res: any) => {
    if (res.code == 200) {
      res.data.forEach((item: any) => {
        if (item.approvalStatus == 'dealwith') {
          state.dealwithApply = item.numCount
        }
      })
    }
  }).catch((error) => {
    console.warn('获取待审批使用申请失败:', error)
    // 设置默认值
    state.dealwithApply = 0
  })
}
const getReviewActivityNumber = () => {
  approvalService.getReviewActivityNum().then((res: any) => {
    if (res.code == 200) {
      if(res.data.length>0){
        res.data.forEach((item:any)=>{
          if(item.path==2){
            state.toReviewNumTwo=item
          }
          if(item.path==3){
            state.toReviewNumThree=item
          }
          if(item.path==4){
            state.toReviewNumFour=item
          }
        })
      }
      // state.dealWithCount = res.data.dealWithCount
    }
  }).catch((error) => {
    console.warn('获取待评审数字活动失败:', error)
    // 设置默认值
    state.toReviewNumTwo = {
      path: 2,
      projectId: '',
      toReviewNum: 0,
    }
    state.toReviewNumThree = {
      path: 3,
      projectId: '',
      toReviewNum: 0,
    }
    state.toReviewNumFour = {
      path: 4,
      projectId: '',
      toReviewNum: 0,
    }
  })
}
// table数据
const getListDataFun = () => {
  const params: any = {
    applyStatus: '2',
    page: {
      current: 1,
      size: 1,
    },
  }
  subscriptionApi.getSubscriptionLists(params).then((res: any) => {
    if (res.code == 200) {
      state.dealwithUploadFile = res.data.total
    }
  }).catch((error) => {
    console.warn('获取待上传交易管理失败:', error)
    // 设置默认值
    state.dealwithUploadFile = 0
  })
}
 
// 获取资源授权审核数量
const resourceListCountUrlFun = () => {
  subscriptionApi.getReportAuthListStatistics().then((res: any) => {
    if (res.code == 200) {
      state.resourceDealwith=res.data.dealwith
      state.resourceCompleted = res.data.completed
    }
  }).catch((error) => {
    console.warn('获取资源授权审核数量失败:', error)
    // 设置默认值
    state.resourceDealwith = 0
    state.resourceCompleted = 0
  })
}
const scrollHomeRef=ref()
const goApplyDealwith=()=>{
  scrollHomeRef.value.scrollTo({ top: 0 })
    router.push({
    path: '/approve/authorizationApply/authorizationList',
    query:{
      type:'dealwith'
    }
  })
}
const goApplyCompleted=()=>{
  scrollHomeRef.value.scrollTo({ top: 0 })
  router.push({
    path: '/individualCenter/authorizationPage',
    query:{
      authStatus:'2'
    }
  })
}
const getGraphApproveCountFun=()=>{
  mindmapService.getAtlasProcessStatisticsCount().then((res: any) => {
    if (res.code == 200) {
      state.graphApproveDealwithCount = res.data.dealwith
    }
  }).catch((error) => {
    console.warn('获取图谱审批失败:', error)
    // 设置默认值
    state.graphApproveDealwithCount = 0
  })
}
const getdealwithWorkCountFun=()=>{
  let search:any={
    itemType:'dealwith'
  }
  questionApi.getApprovalStatusListCount({ ...search }).then((res: any) => {
    if (res.code == 200) {
      state.dealwithWorkCount = res.data.dealwith
    }
  }).catch((error) => {
    console.warn('获取问题工单待审批数量失败:', error)
    // 设置默认值
    state.dealwithWorkCount = 0
  })
}
onMounted(() => {
  // 获取审核数量
  schemeListCountUrlFun()
  resultListCountUrlFun()
  productListCountUrlFun()
  // 获取审核数量-我的资源
  resourceStatisticsUrlFun()
  // 待审批使用申请
  getDealwithApply()
  // 待上传交易管理
  getListDataFun()
  // 待评审数字活动
  getReviewActivityNumber()
  // 获取资源授权审核数量
  resourceListCountUrlFun()
  // 图谱审批
  getGraphApproveCountFun()
  //获取问题工单待审批数量
  getdealwithWorkCountFun()
})
</script>
 
<style scoped lang="scss">
.bodyBox {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
 
  .bodyChildDiv {
    width: 95%;
    margin-left: 2.5%;
    // margin-left: 2%;
    //height: 200px;
    // border-radius: 10px;
    border: 1px solid #f2f2f2;
    //box-shadow: -5px 0px 5px rgba(0, 0, 0, 0.5), 0px 5px 5px rgba(0, 0, 0, 0.5); // 左和下
    // box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5); // 左和下
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 25px;
 
    .titBox {
      width: 100%;
      height: 45px;
      background-color: #f5f5f5;
      display: flex;
      flex-direction: row;
      align-items: center;
      padding-left: 20px;
      // border-top-left-radius: 10px;
      // border-top-right-radius: 10px;
      span {
        display: inline-block;
        font-size: 16px;
        font-weight: bold;
        background-repeat: no-repeat;
        background-size: contain;
        background-position: left center;
        padding-left: 26px;
      }
    }
 
    .ctnBox {
      position: relative;
      width: 100%;
      display: flex;
      flex-direction: row;
      align-items: center;
      flex-wrap: wrap;
      .childBox {
        width: 30%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        cursor: pointer;
        margin-left: 1vw;
        margin-right: 1vw;
        margin-top: 20px;
        .childDiv {
          width: 100%;
          height: 100%;
          // border: 1px solid #f2f2f2;
          display: flex;
          flex-direction: column;
          // align-items: center;
          // justify-content: space-between;
          padding: 5px;
 
          span:nth-child(1) {
            font-size: 16px;
            color: #666;
          }
 
          span:nth-child(2) {
            font-size: 22px;
            font-weight: 600;
            color: #101010;
            padding-top: 6px;
          }
        }
      }
    }
  }
 
  // .bodyChildDiv1 {
  // }
 
  // .bodyChildDiv2 {
  // }
 
  // .bodyChildDiv3 {
  //   width: 1200px;
  //   //height: 200px;
  //   border-radius: 10px;
  //   border: 1px solid #f2f2f2;
  //   //box-shadow: -5px 0px 5px rgba(0, 0, 0, 0.5), 0px 5px 5px rgba(0, 0, 0, 0.5); // 左和下
  //   box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5); // 左和下
  //   display: flex;
  //   flex-direction: column;
  //   align-items: center;
  //   //margin-bottom: 30px;
 
  //   .titBox {
  //     width: 100%;
  //     height: 45px;
  //     border-bottom: 1px solid #f2f2f2;
  //     display: flex;
  //     flex-direction: row;
  //     align-items: center;
  //     padding-left: 20px;
  //     margin-bottom: 20px;
  //     span {
  //       display: inline-block;
  //       font-size: 16px;
  //       font-weight: bold;
  //       background-repeat: no-repeat;
  //       background-size: contain;
  //       background-position: left center;
  //     }
  //   }
 
  //   .ctnBox {
  //     width: 97%;
  //     height: 70px;
  //     display: flex;
  //     flex-direction: row;
  //     align-items: center;
  //     justify-content: space-between;
  //     margin: -1px;
 
  //     .childBox {
  //       width: 31%;
  //       height: 100%;
  //       //border: 1px solid #F2F2F2;
  //       margin: -1px;
  //       display: flex;
  //       flex-direction: column;
  //       align-items: center;
  //       cursor: pointer;
 
  //       .childDiv {
  //         width: 100%;
  //         height: 50px;
  //         border: 1px solid #f2f2f2;
  //         display: flex;
  //         flex-direction: row;
  //         align-items: center;
  //         justify-content: space-between;
  //         padding: 0 15px;
 
  //         span:nth-child(1) {
  //           font-size: 16px;
  //           color: #8b8d8b;
  //         }
 
  //         span:nth-child(2) {
  //           font-size: 16px;
  //           color: #f04844;
  //         }
  //       }
  //     }
  //   }
  // }
 
  // .bodyChildDivT {
  //   width: 1200px;
  //   //height: 200px;
  //   border-radius: 10px;
  //   //box-shadow: -5px 0px 5px rgba(0, 0, 0, 0.5), 0px 5px 5px rgba(0, 0, 0, 0.5); // 左和下
  //   //box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5); // 左和下
  //   display: flex;
  //   flex-direction: row;
  //   align-items: center;
  //   justify-content: space-between;
  //   margin-bottom: 30px;
 
  //   .childBox {
  //     width: 49%;
  //     height: 210px;
  //     margin: -1px;
  //     display: flex;
  //     flex-direction: column;
  //     align-items: center;
  //     cursor: pointer;
  //     box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5); // 左和下
  //     border: 1px solid #f2f2f2;
  //     border-radius: 10px;
 
  //     .titBox {
  //       width: 100%;
  //       height: 45px;
  //       border-bottom: 1px solid #f2f2f2;
  //       display: flex;
  //       flex-direction: row;
  //       align-items: center;
  //       padding-left: 20px;
  //       span {
  //         display: inline-block;
  //         font-size: 16px;
  //         font-weight: bold;
  //         background-repeat: no-repeat;
  //         background-size: contain;
  //         background-position: left center;
  //       }
  //     }
 
  //     .ctnBox {
  //       width: 100%;
  //       height: 150px;
  //       display: flex;
  //       flex-direction: row;
  //       align-items: center;
  //       justify-content: space-between;
  //       padding: 0 25px;
 
  //       .ctnChildDiv {
  //       }
  //     }
 
  //     .ctnBox {
  //       width: 100%;
  //       height: 150px;
  //       display: flex;
  //       flex-direction: row;
  //       align-items: center;
  //       justify-content: space-between;
  //       padding: 0 25px;
 
  //       .ctnChildDiv {
  //         width: 20%;
  //         height: 90px;
  //         display: flex;
  //         flex-direction: column;
  //         align-items: center;
  //         justify-content: space-evenly;
 
  //         span:nth-child(1) {
  //           font-size: 30px;
  //           color: #f04844;
  //         }
 
  //         span:nth-child(2) {
  //           font-size: 14px;
  //           color: #66667f;
  //         }
  //       }
  //     }
  //   }
  // }
}
.red {
  color: #f04844;
  background-image: url('@/assets/images/icondb.png');
}
.green {
  color: #49e6a5;
  background-image: url('@/assets/images/iconyb.png');
}
.blue {
  color: #4d7eff;
  background-image: url('@/assets/images/iconwdzy.png');
}
</style>