safecheck-client 3.0.30-62-t4 → 3.0.30-62-t6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/GridTree.md +47 -47
- package/docs/PrintFile.md +38 -38
- package/docs/tree.md +40 -40
- package/examples/ChangeConfig/comp.js +548 -548
- package/examples/PhoneSafePlan/comp.js +33 -33
- package/examples/SafePlan/App.vue +89 -89
- package/examples/SafePlan/comp.js +1527 -1527
- package/examples/SafePlan-aode/comp.js +1132 -1132
- package/examples/SafePlan-liaoyuan/App.vue +82 -82
- package/examples/SafePlan-liaoyuan/comp.js +1432 -1432
- package/examples/SafePlan-shaoguan/comp.js +1190 -1190
- package/examples/SafePlan-tongchuan/App.vue +81 -81
- package/examples/SafePlan-tongchuan/comp.js +1480 -1480
- package/examples/SafePlan-wenxi/App.vue +80 -80
- package/examples/SafePlan-wenxi/comp.js +1545 -1545
- package/examples/SafePlan-zhoukou/App.vue +81 -81
- package/examples/SafePlan-zhoukou/comp.js +1525 -1525
- package/examples/SafePlanItem/comp.js +69 -69
- package/examples/SafePlanrongcheng/comp.js +1141 -1141
- package/examples/SafePlanrongcheng-gs/comp.js +1140 -1140
- package/examples/SafePlanrongcheng-gssq/comp.js +1143 -1143
- package/examples/SafePlanrongcheng-mysq/comp.js +1144 -1144
- package/examples/UserFiles/comp.js +227 -227
- package/package.json +1 -1
- package/src/components/CheckerCount/CheckCountUserList.vue +144 -144
- package/src/components/DefectDealMain/DefectPaperNew.vue +1052 -1052
- package/src/components/NewDefectList/DefectListNew.vue +617 -617
- package/src/components/NewDefectList/DefectPaperNew.vue +1079 -1079
- package/src/components/android/AddPlanItem.vue +447 -447
- package/src/components/android/AddPlanItemYy.vue +1 -1
- package/src/components/android/AddSpecialPlanItem.vue +426 -426
- package/src/components/android/AndroidDefectDealBeforeSafe.vue +502 -502
- package/src/components/android/BlackUserOnLine.vue +318 -318
- package/src/components/android/CurrentCreate.vue +1050 -1050
- package/src/components/android/CurrentCreateYy.vue +1 -1
- package/src/components/android/Devices.vue +327 -327
- package/src/components/android/Devicesm.vue +327 -327
- package/src/components/android/Insurance/PhoneInsurancePurchaseDetail.vue +288 -288
- package/src/components/android/PaperFeedback.vue +1514 -1514
- package/src/components/android/PaperFeedbackTemp.vue +1470 -1470
- package/src/components/android/PaperFeedbackm.vue +1026 -1026
- package/src/components/android/PhoneRecordInfo.vue +113 -113
- package/src/components/android/PhoneSellInfo.vue +113 -113
- package/src/components/android/QRCode/QRCodeBinding.vue +2 -2
- package/src/components/android/QRCode/QRCodePage.vue +2 -2
- package/src/components/android/SafePlanItem.vue +509 -509
- package/src/components/android/SafecheckOrderV.vue +2805 -2805
- package/src/components/android/UserinfoSelect.vue +1 -1
- package/src/components/android/examples/SafeListExamples.vue +2 -2
- package/src/components/android/examples/UserExamples.vue +1 -1
- package/src/components/android/examples/ViewDetailsExamples.vue +1235 -1235
- package/src/components/android/old/PaperFeedback.vue +1015 -1015
- package/src/components/android/recheck/Recheck.vue +402 -402
- package/src/components/android/userinfo/SafecheckUserInfo.vue +776 -776
- package/src/components/checkplan/checkmsg.vue +459 -459
- package/src/components/defect/DefectList.vue +507 -507
- package/src/components/defect/DefectListWeixiu.vue +484 -484
- package/src/components/defect/DefectPaper.vue +764 -764
- package/src/components/defect/DefectPaperWeiXiu.vue +508 -508
- package/src/components/filialCircle/CircleList.vue +139 -139
- package/src/components/inspections/AddInspectPlanItem.vue +325 -325
- package/src/components/inspections/AddInspectPlanItems.vue +325 -325
- package/src/components/inspections/AddInspectPlanItemss.vue +317 -317
- package/src/components/inspections/DisplayInspectionList.vue +1224 -1224
- package/src/components/inspections/InspectionList.vue +476 -476
- package/src/components/inspections/InspectionLists.vue +478 -478
- package/src/components/inspections/InspectionListss.vue +477 -477
- package/src/components/inspections/inspectionFeedback.vue +720 -720
- package/src/components/inspections/inspectionOrderV.vue +1853 -1853
- package/src/components/inspections/inspectionOrderVs.vue +1853 -1853
- package/src/components/inspections/inspectionOrderVss.vue +1856 -1856
- package/src/components/inspections/inspectionUserInfo.vue +398 -398
- package/src/components/paper/PaperList.vue +790 -790
- package/src/components/pc/AnnouncementPC.vue +524 -524
- package/src/components/pc/DefectList.vue +742 -742
- package/src/components/pc/DeviceChange.vue +1068 -1068
- package/src/components/pc/PaperDefectMain.vue +866 -866
- package/src/components/pc/SafeVisitInfo.vue +1 -1
- package/src/components/planmanage/checkPlanList.vue +369 -369
- package/src/components/planmanage/checkUserList.vue +773 -773
- package/src/components/querycheckpaper/CheckSearchUser.vue +1067 -1067
- package/src/components/querycheckpaper/CheckSearchUserNew.vue +1109 -1109
- package/src/components/querycheckpaper/ShebeiSearchUser.vue +690 -690
- package/src/components/rongcheng/AspPaperFeedback.vue +1179 -1179
- package/src/components/rongcheng/AspiratedOrderV.vue +2377 -2377
- package/src/components/rongcheng/AspiratedPaperFeedbackm.vue +1 -1
- package/src/components/rongcheng/CurrentCreateOnline.vue +906 -906
- package/src/components/rongcheng/PaperFeedback.vue +1318 -1318
- package/src/components/rongcheng/PhoneUpUserinfo.vue +1236 -1236
- package/src/components/rongcheng/SafecheckOrderV.vue +1 -1
- package/src/components/rongcheng/SafecheckOrderVCli.vue +1 -1
- package/src/components/rongcheng/report/CheckPlanAreaList.vue +435 -435
- package/src/components/safecheckNew/PaperList.vue +2 -2
- package/src/components/safecheckNew/android/AddPlanItem.vue +1 -1
- package/src/components/safecheckNew/android/AreaPlan.vue +561 -561
- package/src/components/safecheckNew/android/CurrentCreate.vue +1 -1
- package/src/components/safecheckNew/android/Recheck.vue +1 -1
- package/src/components/safecheckNew/android/SafecheckOrderV.vue +1 -1
- package/src/components/sendsingle/EquipmentManagement.vue +727 -727
- package/src/components/shaoguan/DefectList.vue +473 -473
- package/src/components/shaoguan/SafecheckOrderV.vue +2140 -2140
- package/src/components/tongcheng/PaperFeedback.vue +1061 -1061
- package/src/filiale/ALshan/pc/CheckSearchUser.vue +927 -927
- package/src/filiale/ALshan/pc/DefectListWeixiu.vue +476 -476
- package/src/filiale/ancheng/android/PaperFeedback.vue +1489 -1489
- package/src/filiale/ancheng/android/SafecheckOrderV.vue +2703 -2703
- package/src/filiale/ancheng/android/SafecheckUserInfo.vue +737 -737
- package/src/filiale/ancheng/pc/PaperList.vue +659 -659
- package/src/filiale/ancheng/pc/checkScreen.vue +923 -923
- package/src/filiale/ankangyihua/android/AddPlanItem.vue +446 -446
- package/src/filiale/ankangyihua/android/SafecheckOrderV.vue +2908 -2908
- package/src/filiale/ankangyihua/pc/CheckSearchUser.vue +1039 -1039
- package/src/filiale/ankangyihua/pc/DefectListWeixiu.vue +491 -491
- package/src/filiale/ankangyihua/pc/DefectPaperWeiXiu.vue +545 -545
- package/src/filiale/ankangyihua/pc/PaperList.vue +656 -656
- package/src/filiale/baiyin/android/AndroidDefectDeal.vue +633 -633
- package/src/filiale/baiyin/android/SafecheckOrderV.vue +1 -1
- package/src/filiale/baiyin/pc/CheckPlanAreaList.vue +485 -485
- package/src/filiale/baiyin/pc/CheckSearchUser.vue +2 -2
- package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
- package/src/filiale/baiyin/pc/DefectPaperNew.vue +3 -3
- package/src/filiale/baiyin/pc/PaperList.vue +2 -2
- package/src/filiale/baiyin/pc/PlanChooser.vue +167 -167
- package/src/filiale/baiyin/pc/PlanManage.vue +834 -834
- package/src/filiale/baiyin/pc/checkUserList.vue +771 -771
- package/src/filiale/bayan/android/AddPlanItem.vue +430 -430
- package/src/filiale/bayan/android/CheckPlanDown.vue +2 -2
- package/src/filiale/bayan/android/Edit.vue +1 -1
- package/src/filiale/bayan/android/PaperFeedback.vue +1 -1
- package/src/filiale/bayan/android/SafecheckOrderV.vue +2866 -2866
- package/src/filiale/bayan/android/SafecheckUserInfo.vue +3 -3
- package/src/filiale/bayan/pc/CheckDetail.vue +205 -205
- package/src/filiale/bayan/pc/CheckPlanAreaList.vue +1 -1
- package/src/filiale/bayan/pc/CheckSearchUser.vue +3 -3
- package/src/filiale/bayan/pc/DefectListNew.vue +597 -597
- package/src/filiale/bayan/pc/DefectPaperNew.vue +4 -4
- package/src/filiale/bayan/pc/DeviceChange.vue +1 -1
- package/src/filiale/bayan/pc/HiddenSituation.vue +1 -1
- package/src/filiale/bayan/pc/PaperList.vue +3 -3
- package/src/filiale/bayan/pc/SelectCheckPlan.vue +333 -333
- package/src/filiale/dexin/android/CasualSave.vue +1 -1
- package/src/filiale/dexin/android/SafecheckOrderV.vue +1 -1
- package/src/filiale/dexin/android/WebMeterOpen.vue +377 -377
- package/src/filiale/dexin/android/WebMeterOpenEdit.vue +213 -213
- package/src/filiale/dexin/pc/PaperList.vue +2 -2
- package/src/filiale/fugou/android/AddPlanItem.vue +413 -413
- package/src/filiale/fugou/android/SafecheckOrderV.vue +1 -1
- package/src/filiale/fugou/pc/CheckBook.vue +303 -303
- package/src/filiale/fugou/pc/CheckBookArea.vue +146 -146
- package/src/filiale/fugou/pc/CheckBookCompany.vue +144 -144
- package/src/filiale/fugou/pc/CheckBookDetails.vue +161 -161
- package/src/filiale/fugou/pc/CheckBookEntry.vue +94 -94
- package/src/filiale/fugou/pc/CheckBookList.vue +366 -366
- package/src/filiale/fugou/pc/CheckBookSearchArea.vue +560 -560
- package/src/filiale/fugou/pc/CheckBookSearchUnit.vue +229 -229
- package/src/filiale/fugou/pc/CheckBookSearchUser.vue +1 -1
- package/src/filiale/fugou/pc/CheckBookSearchUserList.vue +674 -674
- package/src/filiale/fugou/pc/CheckBookUser.vue +158 -158
- package/src/filiale/fugou/pc/DefectPaperNew.vue +3 -3
- package/src/filiale/fugou/pc/PaperDefectMain.vue +1 -1
- package/src/filiale/fugou/pc/PaperList.vue +911 -911
- package/src/filiale/fugou/pc/PlanManage.vue +1061 -1061
- package/src/filiale/fugou/pc/checkPlanList.vue +371 -371
- package/src/filiale/fugou/pc/checkUserList.vue +904 -904
- package/src/filiale/fugu/android/SafecheckOrderV.vue +2484 -2484
- package/src/filiale/fugu/pc/CheckSearchUser.vue +977 -977
- package/src/filiale/fugu/pc/NewCheckpaper.vue +1287 -1287
- package/src/filiale/ganquan/android/AddPlanItem.vue +444 -444
- package/src/filiale/ganquan/android/SafecheckOrderV.vue +2485 -2485
- package/src/filiale/ganquan/pc/DefectPaperNew.vue +1009 -1009
- package/src/filiale/ganquan/pc/NewCheckpaper.vue +1354 -1354
- package/src/filiale/ganquan/pc/PaperList.vue +654 -654
- package/src/filiale/gehua/pc/PaperList.vue +558 -558
- package/src/filiale/guangxi/pc/DefectListNew.vue +518 -518
- package/src/filiale/guangxi/pc/DefectPaperNew.vue +988 -988
- package/src/filiale/hanzhong/android/PaperFeedback.vue +1477 -1477
- package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2683 -2683
- package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +786 -786
- package/src/filiale/hanzhong/pc/CheckHiddenDanger.vue +713 -713
- package/src/filiale/hanzhong/pc/CheckSafeDetail.vue +573 -573
- package/src/filiale/hanzhong/pc/CheckSafeStatus.vue +508 -508
- package/src/filiale/hanzhong/pc/CheckSearchUser.vue +1127 -1127
- package/src/filiale/hanzhong/pc/CheckerSafeDetail.vue +595 -595
- package/src/filiale/hanzhong/pc/PaperList.vue +702 -702
- package/src/filiale/huaran/android/SafecheckOrderV.vue +1 -1
- package/src/filiale/huaran/pc/CheckBook.vue +313 -313
- package/src/filiale/huaran/pc/CheckBookArea.vue +170 -170
- package/src/filiale/huaran/pc/CheckBookCompany.vue +166 -166
- package/src/filiale/huaran/pc/CheckBookDetails.vue +196 -196
- package/src/filiale/huaran/pc/CheckBookList.vue +386 -386
- package/src/filiale/huaran/pc/CheckBookSearchArea.vue +564 -564
- package/src/filiale/huaran/pc/CheckBookSearchUnit.vue +229 -229
- package/src/filiale/huaran/pc/CheckBookSearchUser.vue +604 -604
- package/src/filiale/huaran/pc/CheckBookUser.vue +112 -112
- package/src/filiale/huaran/pc/PaperList.vue +2 -2
- package/src/filiale/huaran/pc/PlanManage.vue +4 -4
- package/src/filiale/huaran/pc/checkPlanList.vue +419 -419
- package/src/filiale/huaran/pc/checkUserList.vue +867 -867
- package/src/filiale/huatong/android/PaperFeedback.vue +1433 -1433
- package/src/filiale/huatong/android/SafecheckOrderV.vue +2426 -2426
- package/src/filiale/huatong/android/SafecheckUserInfo.vue +749 -749
- package/src/filiale/huatong/pc/PaperDefectMain.vue +800 -800
- package/src/filiale/huatong/pc/PaperList.vue +789 -789
- package/src/filiale/huayin/android/PaperFeedback.vue +1422 -1422
- package/src/filiale/huayin/android/SafecheckOrderV.vue +2712 -2712
- package/src/filiale/huayin/pc/NewCheckpaper.vue +1307 -1307
- package/src/filiale/huayin/pc/PaperList.vue +621 -621
- package/src/filiale/jiaocheng/android/AddPlanItem.vue +435 -435
- package/src/filiale/jiaocheng/android/PaperFeedback.vue +1308 -1308
- package/src/filiale/jiaocheng/android/SafecheckUserInfo.vue +737 -737
- package/src/filiale/jiaocheng/pc/CheckSearchUser.vue +1011 -1011
- package/src/filiale/jiaocheng/pc/DefectListNew.vue +576 -576
- package/src/filiale/jiaxian/android/AddPlanItem.vue +1 -1
- package/src/filiale/jiaxian/android/PhoneUpUserinfo.vue +1229 -1229
- package/src/filiale/jiaxian/android/SafecheckOrderV.vue +1 -1
- package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/jinbin/pc/DefectListWeixiu.vue +478 -478
- package/src/filiale/jingyang/android/AddPlanItem.vue +1 -1
- package/src/filiale/jingyang/android/CurrentCreate.vue +1080 -1080
- package/src/filiale/jingyang/android/PaperFeedback.vue +1493 -1493
- package/src/filiale/jingyang/android/SafecheckOrderV.vue +1 -1
- package/src/filiale/jingyang/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/jingyang/pc/CheckSearchUser.vue +1062 -1062
- package/src/filiale/jingyang/pc/PaperList.vue +793 -793
- package/src/filiale/jingyang/pc/ReportCheckItemList.vue +543 -543
- package/src/filiale/kelai/android/AddPlanItem.vue +488 -488
- package/src/filiale/kelai/android/AndroidDefectDeal.vue +747 -747
- package/src/filiale/kelai/android/PaperFeedback.vue +1539 -1539
- package/src/filiale/kelai/android/SafecheckOrderV.vue +2448 -2448
- package/src/filiale/kelai/android/SafecheckUserInfo.vue +774 -774
- package/src/filiale/kelai/android/SafecheckUserInfo1.vue +618 -618
- package/src/filiale/kelai/pc/CheckPlanAreaList.vue +476 -476
- package/src/filiale/kelai/pc/CheckSearchUser.vue +1011 -1011
- package/src/filiale/kelai/pc/DefectListNew.vue +688 -688
- package/src/filiale/kelai/pc/DefectPaperNew.vue +1090 -1090
- package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasList.vue +518 -518
- package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasPaper.vue +897 -897
- package/src/filiale/kelai/pc/NewCheckpaper.vue +1454 -1454
- package/src/filiale/kelai/pc/PaperList.vue +596 -596
- package/src/filiale/liaoyuan/android/AddPlanItem.vue +412 -412
- package/src/filiale/liaoyuan/android/CurrentCreate.vue +1 -1
- package/src/filiale/liaoyuan/android/SafecheckOrderV.vue +2388 -2388
- package/src/filiale/liaoyuan/android/SafecheckUserInfo.vue +557 -557
- package/src/filiale/liaoyuan/pc/CheckSearchUser.vue +963 -963
- package/src/filiale/liaoyuan/pc/DefectListWeixiu.vue +489 -489
- package/src/filiale/liaoyuan/pc/DefectPaperWeiXiu.vue +1011 -1011
- package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +1020 -1020
- package/src/filiale/liaoyuan/pc/PaperList.vue +637 -637
- package/src/filiale/liaoyuan/pc/checkPlanList.vue +373 -373
- package/src/filiale/lixian/android/SafecheckOrderV.vue +2404 -2404
- package/src/filiale/lixian/android/SafecheckUserInfo.vue +578 -578
- package/src/filiale/lixian/pc/CheckSearchUser.vue +927 -927
- package/src/filiale/lixian/pc/NewCheckpaper.vue +1211 -1211
- package/src/filiale/lixian/pc/PaperList.vue +620 -620
- package/src/filiale/minsheng/android/SafecheckUserInfo.vue +754 -754
- package/src/filiale/minsheng/pc/CheckSearchUser.vue +976 -976
- package/src/filiale/minsheng/pc/DefectListNew.vue +535 -535
- package/src/filiale/pingxiang/android/PaperFeedback.vue +1399 -1399
- package/src/filiale/pingxiang/android/SafecheckOrderV.vue +2424 -2424
- package/src/filiale/pingxiang/android/SafecheckUserInfo.vue +600 -600
- package/src/filiale/pingxiang/pc/DefectListNew.vue +519 -519
- package/src/filiale/pingxiang/pc/DefectPaperNew.vue +1012 -1012
- package/src/filiale/pingxiang/pc/NewCheckpaper.vue +1294 -1294
- package/src/filiale/pingxiang/pc/PaperList.vue +595 -595
- package/src/filiale/qianneng/android/AddPlanItem.vue +482 -482
- package/src/filiale/qianneng/android/PaperFeedback.vue +1434 -1434
- package/src/filiale/qianneng/android/SafecheckOrderV.vue +2785 -2785
- package/src/filiale/qianneng/android/SafecheckUserInfo.vue +775 -775
- package/src/filiale/qianneng/pc/DefectListNew.vue +576 -576
- package/src/filiale/qianneng/pc/DefectPaperNew.vue +1072 -1072
- package/src/filiale/qianneng/pc/NewCheckpaper.vue +1546 -1546
- package/src/filiale/qianneng/pc/PaperList.vue +2 -2
- package/src/filiale/qingjian/android/SafecheckOrderV.vue +1 -1
- package/src/filiale/qingjian/android/SafecheckUserInfo.vue +800 -800
- package/src/filiale/qingjian/pc/PaperDefectMain.vue +895 -895
- package/src/filiale/qingtongxia/android/AddPlanItem.vue +1 -1
- package/src/filiale/qingtongxia/android/CurrentCreate.vue +1053 -1053
- package/src/filiale/qingtongxia/android/PhoneUpUserinfo.vue +1230 -1230
- package/src/filiale/qingtongxia/android/SafecheckOrderV.vue +2726 -2726
- package/src/filiale/qingtongxia/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/qingtongxia/pc/DefectListNew.vue +594 -594
- package/src/filiale/qingtongxia/pc/PaperDefectMain.vue +858 -858
- package/src/filiale/rizhao/android/AddPlanItem.vue +446 -446
- package/src/filiale/rizhao/android/PaperFeedback.vue +1510 -1510
- package/src/filiale/rizhao/android/SafecheckOrderV.vue +2430 -2430
- package/src/filiale/rizhao/android/SafecheckUserInfo.vue +640 -640
- package/src/filiale/rizhao/pc/DefectList.vue +489 -489
- package/src/filiale/rizhao/pc/NewCheckpaper.vue +1346 -1346
- package/src/filiale/rizhao/pc/PaperList.vue +714 -714
- package/src/filiale/rongchuang/android/PaperFeedback.vue +1455 -1455
- package/src/filiale/rongchuang/android/SafecheckOrderV.vue +1 -1
- package/src/filiale/rongchuang/android/checkpapermsg.vue +209 -209
- package/src/filiale/rongchuang/pc/NewCheckpaper.vue +1342 -1342
- package/src/filiale/rongchuang/pc/PaperList.vue +2 -2
- package/src/filiale/ruihua/android/SafecheckOrderV.vue +1 -1
- package/src/filiale/ruihua/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/shanggao/android/PaperFeedback.vue +1422 -1422
- package/src/filiale/shanggao/android/SafecheckOrderV.vue +2426 -2426
- package/src/filiale/shanxian/android/AddPlanItem.vue +1 -1
- package/src/filiale/shanxian/android/PaperFeedback.vue +1445 -1445
- package/src/filiale/shanxian/android/SafecheckOrderV.vue +2979 -2979
- package/src/filiale/shanxian/android/SafecheckUserInfo.vue +749 -749
- package/src/filiale/shanxian/pc/CheckSearchUser.vue +1114 -1114
- package/src/filiale/shanxian/pc/DefectPaperNew.vue +1096 -1096
- package/src/filiale/shanxian/pc/NewCheckpaper.vue +1526 -1526
- package/src/filiale/shanxian/pc/PaperList.vue +2 -2
- package/src/filiale/shaoguan/pc/PaperList.vue +589 -589
- package/src/filiale/shexian/android/AddPlanItem.vue +444 -444
- package/src/filiale/shexian/android/PaperFeedback.vue +1448 -1448
- package/src/filiale/shexian/android/SafecheckOrderV.vue +2879 -2879
- package/src/filiale/shexian/pc/DefectListNew.vue +593 -593
- package/src/filiale/shexian/pc/DefectPaperNew.vue +1161 -1161
- package/src/filiale/shexian/pc/NewCheckpaper.vue +1469 -1469
- package/src/filiale/shexian/pc/PaperDefectMain.vue +893 -893
- package/src/filiale/shexian/pc/PaperList.vue +2 -2
- package/src/filiale/shimen/android/PaperFeedback.vue +1341 -1341
- package/src/filiale/shimen/android/SafecheckUserInfo.vue +547 -547
- package/src/filiale/shimen/pc/CheckSearchUser.vue +927 -927
- package/src/filiale/shimen/pc/DefectList.vue +473 -473
- package/src/filiale/shimen/pc/NewCheckpaper.vue +1275 -1275
- package/src/filiale/shimen/pc/PaperList.vue +547 -547
- package/src/filiale/siyang/android/AddPlanItem.vue +1 -1
- package/src/filiale/siyang/android/AppCheckPlan.vue +246 -246
- package/src/filiale/siyang/android/CurrentCreate.vue +1 -1
- package/src/filiale/siyang/android/PhoneRecordInfo.vue +1 -1
- package/src/filiale/siyang/android/SafecheckOrderV.vue +1 -1
- package/src/filiale/siyang/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/siyang/pc/CheckBookList.vue +396 -396
- package/src/filiale/siyang/pc/CheckBookSearchArea.vue +667 -667
- package/src/filiale/siyang/pc/CheckPlanAreaList.vue +512 -512
- package/src/filiale/siyang/pc/CheckSearchUser.vue +2 -2
- package/src/filiale/siyang/pc/HiddenSituation.vue +167 -167
- package/src/filiale/siyang/pc/NewCheckpaper.vue +1938 -1938
- package/src/filiale/siyang/pc/PaperDefectMain.vue +1 -1
- package/src/filiale/siyang/pc/PaperList.vue +2 -2
- package/src/filiale/siyang/pc/PlanManage.vue +839 -839
- package/src/filiale/siyang/pc/checkPlanList.vue +367 -367
- package/src/filiale/siyang/pc/checkUserList.vue +790 -790
- package/src/filiale/tianke/android/AddPlanItem.vue +455 -455
- package/src/filiale/tianke/android/SafecheckOrderV.vue +2431 -2431
- package/src/filiale/tianke/android/SafecheckUserInfo.vue +744 -744
- package/src/filiale/tianke/pc/DefectListNew.vue +538 -538
- package/src/filiale/tianke/pc/PaperDefectMain.vue +891 -891
- package/src/filiale/tianke/pc/checkScreen.vue +786 -786
- package/src/filiale/tongchuan/android/AddPlanItem.vue +483 -483
- package/src/filiale/tongchuan/android/PaperFeedback.vue +1316 -1316
- package/src/filiale/tongchuan/android/PhoneRecordInfo.vue +191 -191
- package/src/filiale/tongchuan/android/PhoneSellInfo.vue +113 -113
- package/src/filiale/tongchuan/android/PhoneUpUserinfo.vue +1323 -1323
- package/src/filiale/tongchuan/android/SafecheckOrderV.vue +3033 -3033
- package/src/filiale/tongchuan/android/SafecheckUserInfo.vue +720 -720
- package/src/filiale/tongchuan/pc/CheckBookDetails.vue +209 -209
- package/src/filiale/tongchuan/pc/CheckSearchUser.vue +1040 -1040
- package/src/filiale/tongchuan/pc/DefectListWeixiu.vue +484 -484
- package/src/filiale/tongchuan/pc/DefectPaper.vue +764 -764
- package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +593 -593
- package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1060 -1060
- package/src/filiale/tongchuan/pc/PaperList.vue +670 -670
- package/src/filiale/tongchuan/pc/checkUserList.vue +639 -639
- package/src/filiale/weinan/android/AddPlanItem.vue +438 -438
- package/src/filiale/weinan/android/CurrentCreate.vue +1171 -1171
- package/src/filiale/weinan/android/CurrentCreateOnline.vue +911 -911
- package/src/filiale/weinan/android/PaperFeedback.vue +1410 -1410
- package/src/filiale/weinan/android/SafePlanItem.vue +440 -440
- package/src/filiale/weinan/android/SafecheckOrderV.vue +3339 -3339
- package/src/filiale/weinan/android/SafecheckUserInfo.vue +778 -778
- package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +735 -735
- package/src/filiale/weinan/pc/CheckSearchUser.vue +2 -2
- package/src/filiale/weinan/pc/DefectListNew.vue +1 -1
- package/src/filiale/weinan/pc/DefectPaperNew.vue +1096 -1096
- package/src/filiale/weinan/pc/DeviceChange.vue +1 -1
- package/src/filiale/weinan/pc/NewCheckpaper.vue +1459 -1459
- package/src/filiale/weinan/pc/PaperList.vue +674 -674
- package/src/filiale/weinan/pc/SelectCheckPlanOutHelp.vue +446 -446
- package/src/filiale/weinan/pc/checkScreen.vue +1094 -1094
- package/src/filiale/weinan/pc/checkUserList.vue +712 -712
- package/src/filiale/weinanct/android/SafecheckOrderV.vue +2730 -2730
- package/src/filiale/weinanct/pc/NewCheckpaper.vue +1315 -1315
- package/src/filiale/weinanct/pc/PaperList.vue +593 -593
- package/src/filiale/wensu/android/AddPlanItem.vue +495 -495
- package/src/filiale/wensu/android/AndroidDefectDeal.vue +464 -464
- package/src/filiale/wensu/android/PaperFeedback.vue +1358 -1358
- package/src/filiale/wensu/android/SafecheckOrderV.vue +2430 -2430
- package/src/filiale/wensu/android/SafecheckUserInfo.vue +627 -627
- package/src/filiale/wensu/pc/CheckSearchUser.vue +2 -2
- package/src/filiale/wensu/pc/DefectListNew.vue +735 -735
- package/src/filiale/wensu/pc/DefectPaperNew.vue +1148 -1148
- package/src/filiale/wensu/pc/PlanManage.vue +831 -831
- package/src/filiale/wensu/pc/SelectCheckPlan.vue +342 -342
- package/src/filiale/wenxi/android/AddPlanItem.vue +431 -431
- package/src/filiale/wenxi/android/PaperFeedback.vue +1607 -1607
- package/src/filiale/wenxi/android/SafecheckOrderV.vue +2671 -2671
- package/src/filiale/wenxi/android/SafecheckUserInfo.vue +2 -2
- package/src/filiale/wenxi/pc/CheckSearchUser.vue +991 -991
- package/src/filiale/wenxi/pc/DefectList.vue +653 -653
- package/src/filiale/wenxi/pc/DefectPaper.vue +663 -663
- package/src/filiale/wenxi/pc/NewCheckpaper.vue +1358 -1358
- package/src/filiale/wenxi/pc/PaperList.vue +949 -949
- package/src/filiale/wuan/android/PaperFeedback.vue +1433 -1433
- package/src/filiale/wuan/android/SafecheckOrderV.vue +2241 -2241
- package/src/filiale/wuan/android/SafecheckUserInfo.vue +596 -596
- package/src/filiale/wuan/pc/DefectListWeixiu.vue +506 -506
- package/src/filiale/wuan/pc/DefectPaperWeiXiu.vue +515 -515
- package/src/filiale/wuan/pc/NewCheckpaper.vue +1169 -1169
- package/src/filiale/wuan/pc/PaperList.vue +562 -562
- package/src/filiale/wuhai/android/PaperFeedback.vue +1350 -1350
- package/src/filiale/wuhai/android/SafecheckOrderV.vue +1 -1
- package/src/filiale/wuhai/android/SafecheckUserInfo.vue +573 -573
- package/src/filiale/wuhai/pc/CheckSearchUser.vue +959 -959
- package/src/filiale/wuhai/pc/NewCheckpaper.vue +1281 -1281
- package/src/filiale/wuhai/pc/PaperList.vue +2 -2
- package/src/filiale/xilan/android/AddPlanItem.vue +1 -1
- package/src/filiale/xilan/android/CurrentCreate.vue +1 -1
- package/src/filiale/xilan/pc/checkUserList.vue +772 -772
- package/src/filiale/xinkang/android/SafecheckOrderV.vue +2732 -2732
- package/src/filiale/xinkang/android/SafecheckUserInfo.vue +747 -747
- package/src/filiale/xinkang/pc/CheckSearchUser.vue +1026 -1026
- package/src/filiale/xinkang/pc/DefectListWeixiu.vue +475 -475
- package/src/filiale/xinkang/pc/DefectPaperWeiXiu.vue +538 -538
- package/src/filiale/xinkang/pc/NewCheckpaper.vue +1498 -1498
- package/src/filiale/xinkang/pc/PaperList.vue +603 -603
- package/src/filiale/yangchunboneng/android/AddPlanItem.vue +496 -496
- package/src/filiale/yangchunboneng/android/PaperFeedback.vue +1731 -1731
- package/src/filiale/yangchunboneng/android/PhoneUpUserinfo.vue +1235 -1235
- package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +1 -1
- package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -887
- package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +269 -269
- package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +2 -2
- package/src/filiale/yangchunboneng/pc/DefectListNew.vue +576 -576
- package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +1128 -1128
- package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +1 -1
- package/src/filiale/yangchunboneng/pc/PaperList.vue +773 -773
- package/src/filiale/yongzhou/android/PaperFeedback.vue +1519 -1519
- package/src/filiale/yongzhou/android/SafecheckOrderV.vue +2 -2
- package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +776 -776
- package/src/filiale/yongzhou/pc/CheckSearchUser.vue +2 -2
- package/src/filiale/yongzhou/pc/DefectPaperNew.vue +3 -3
- package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +557 -557
- package/src/filiale/yongzhou/pc/PaperDefectMain.vue +1 -1
- package/src/filiale/yongzhou/pc/PaperList.vue +798 -798
- package/src/filiale/yongzhou/pc/SelectCheckPlan.vue +364 -364
- package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +138 -138
- package/src/filiale/yongzhou/pc/safeDetail.vue +539 -539
- package/src/filiale/yuansheng/android/AndroidDefectDeal.vue +652 -652
- package/src/filiale/yuansheng/android/PaperFeedback.vue +1488 -1488
- package/src/filiale/yuansheng/android/SafecheckOrderV.vue +2758 -2758
- package/src/filiale/yuansheng/android/SafecheckUserInfo.vue +797 -797
- package/src/filiale/yuansheng/android/SwitchValve.vue +322 -322
- package/src/filiale/yuansheng/pc/DefectListNew.vue +524 -524
- package/src/filiale/yuansheng/pc/NewCheckpaper.vue +1371 -1371
- package/src/filiale/yuansheng/pc/PaperList.vue +621 -621
- package/src/filiale/yuansheng/pc/checkmsg.vue +464 -464
- package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1508 -1508
- package/src/filiale/yunchengminsheng/android/SafecheckOrderV.vue +2849 -2849
- package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +784 -784
- package/src/filiale/yunchengminsheng/pc/NewCheckpaper.vue +1538 -1538
- package/src/filiale/zhongsheng/android/BuyRecords.vue +122 -122
- package/src/filiale/zhongsheng/android/PaperFeedback.vue +1341 -1341
- package/src/filiale/zhongsheng/android/SafecheckOrderV.vue +2461 -2461
- package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +690 -690
- package/src/filiale/zhongsheng/pc/DefectListWeixiu.vue +514 -514
- package/src/filiale/zhongsheng/pc/DefectPaperWeiXiu.vue +515 -515
- package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +1322 -1322
- package/src/filiale/zhongsheng/pc/PaperList.vue +644 -644
- package/src/filiale/zhongyi/android/SafecheckOrderV.vue +2431 -2431
- package/src/filiale/zhoukou/android/PaperFeedback.vue +1367 -1367
- package/src/filiale/zhoukou/android/SafecheckOrderV.vue +2502 -2502
- package/src/filiale/zhoukou/android/SafecheckUserInfo.vue +588 -588
- package/src/filiale/zhoukou/pc/CheckSearchUser.vue +923 -923
@@ -1,786 +1,786 @@
|
|
1
|
-
<template>
|
2
|
-
<div class="flex-row">
|
3
|
-
<div class="basic-main" style="flex:7">
|
4
|
-
<div id="check_map" style="height:100%">
|
5
|
-
<img-self-safe :src="imgSrc" width="45" style="z-index: 0"
|
6
|
-
height="50" class="img-rounded" v-ref:defectimg></img-self-safe>
|
7
|
-
</div>
|
8
|
-
</div>
|
9
|
-
<modal :styles="'width:1230px'" width="1230px" :show.sync="showModal" v-ref:modal backdrop="false">
|
10
|
-
<header slot="modal-header" class="modal-header" v-show="false"></header>
|
11
|
-
<article slot="modal-body" class="modal-body" style="width: 1200px;">
|
12
|
-
<div class="auto">
|
13
|
-
<img style="height:800px;width: 1200px;" src="./cq.jpg"
|
14
|
-
v-show="city_properEnable" alt="图片加载失败"/>
|
15
|
-
<img style="height:800px;width: 1200px;" src="./qy.jpg"
|
16
|
-
v-show="townshipEnable" alt="图片加载失败"/>
|
17
|
-
</div>
|
18
|
-
</article>
|
19
|
-
<footer slot="modal-footer" class="modal-footer">
|
20
|
-
<button type="button" class="btn btn-success" @click='closeModal()'>关闭</button>
|
21
|
-
</footer>
|
22
|
-
</modal>
|
23
|
-
|
24
|
-
<div id="zzz" class="basic-main" style="flex:1;margin-left: 0px;overflow: hidden">
|
25
|
-
<div class="flex">
|
26
|
-
<div class="panel panel-info" style="flex: 1;margin-top:0px">
|
27
|
-
<div class="panel-heading" style="height: auto">
|
28
|
-
<h3 class="panel-title">图层设置</h3>
|
29
|
-
</div>
|
30
|
-
<div class="panel-body">
|
31
|
-
<ul class="safe_ul_sty">
|
32
|
-
<li class="safe_li_sty"><input class="safe_checkbox_sty" v-model="layers.satelliteEnable" @change="enableChange('satelliteEnable',layers.satelliteEnable)" type="checkbox"/>卫星图层</li>
|
33
|
-
<li class="safe_li_sty"><input class="safe_checkbox_sty" v-model="layers.roadNetEnable" @change="enableChange('roadNetEnable',layers.roadNetEnable)" type="checkbox"/>网路图层</li>
|
34
|
-
<li class="safe_li_sty"><input class="safe_checkbox_sty" v-model="layers.townshipEnable" @click="enableChange('townshipEnable')" type="checkbox"/>乡镇管网图层</li>
|
35
|
-
<li class="safe_li_sty"><input class="safe_checkbox_sty" v-model="layers.city_properEnable" @click="enableChange('city_properEnable')" type="checkbox"/>城区管网图层</li>
|
36
|
-
<!--<button @click="safeRefresh">刷新111</button>-->
|
37
|
-
</ul>
|
38
|
-
</div>
|
39
|
-
</div>
|
40
|
-
<div class="panel panel-info" style="flex: 2;margin-top:0px;">
|
41
|
-
<div class="panel-heading" style="height: auto">
|
42
|
-
<h3 class="panel-title">覆盖物设置</h3>
|
43
|
-
</div>
|
44
|
-
<div class="panel-body">
|
45
|
-
<ul class="safe_ul_sty">
|
46
|
-
<li class="safe_li_sty"><input class="safe_checkbox_sty" v-model="mulchs.checker" @change="enableChange('checker',mulchs.checker)" type="checkbox"/><img class="safe_deimg" src="../../../assets/anjianyuan.png"/>工作人员</li>
|
47
|
-
<li class="safe_li_sty"><input class="safe_checkbox_sty" v-model="mulchs.level1" @change="enableChange('level1',mulchs.level1)" type="checkbox"/><img class="safe_deimg" src="../../../assets/level1.png"/>一级隐患</li>
|
48
|
-
<li class="safe_li_sty"><input class="safe_checkbox_sty" v-model="mulchs.level2" @change="enableChange('level2',mulchs.level2)" type="checkbox"/><img class="safe_deimg" src="../../../assets/level2.png"/>二级隐患</li>
|
49
|
-
<li class="safe_li_sty"><input class="safe_checkbox_sty" v-model="mulchs.level3" @change="enableChange('level3',mulchs.level3)" type="checkbox"/><img class="safe_deimg" src="../../../assets/level3.png"/>三级隐患</li>
|
50
|
-
<li class="safe_li_sty"><input class="safe_checkbox_sty" v-model="mulchs.problems" @change="enableChange('problems',mulchs.problems)" type="checkbox"/><img class="safe_deimg" src="../../../assets/ordinary.png"/>普通问题</li>
|
51
|
-
</ul>
|
52
|
-
<!--<data-grid :model="defectList" partial='list' class="table_sy" >
|
53
|
-
<template partial='body' style="height:100%">
|
54
|
-
<td @click="$parent.$parent.setDefectPos(row)">
|
55
|
-
<div style="width: 100%;"class="flex-row">
|
56
|
-
<img src="../../../assets/星球背景.jpg" style="width:45px;height: 50px" class="img-rounded">
|
57
|
-
<div >
|
58
|
-
<p class="safe_p" :title="row.f_item_name"><nobr>{{row.f_item_name}}</nobr></p>
|
59
|
-
<p class="safe_p" :title="row.f_checker_name"><nobr>{{row.f_checker_name}}</nobr></p>
|
60
|
-
<p class="safe_p" :title="row.f_upload_date"><nobr>{{row.f_upload_date.substring(11)}}</nobr></p>
|
61
|
-
</div>
|
62
|
-
</div>
|
63
|
-
</td>
|
64
|
-
</template>
|
65
|
-
</data-grid>-->
|
66
|
-
</div>
|
67
|
-
</div>
|
68
|
-
<div class="panel panel-info" style="flex: 4;margin-top:0px;height: 50%">
|
69
|
-
<div class="panel-heading" style="height: auto">
|
70
|
-
<h3 class="panel-title">今日隐患</h3>
|
71
|
-
</div>
|
72
|
-
<div class="panel-body" style="overflow: scroll">
|
73
|
-
<ul class="safe_ul_sty">
|
74
|
-
<li v-for="row in todayDefectList" track-by="$index" class="safe_li_sty safe_list_li" @click="setDefectPos(row)" style="border: 1px #4d4d4d solid;border-radius: 2px" >
|
75
|
-
<div style="width: 100%;" class="flex-row">
|
76
|
-
<div style="width:35%">
|
77
|
-
<!--<img-self-safe :src="'/rs/image/file/'+row.f_path" style="float: left" width="45"
|
78
|
-
height="50" class="img-rounded"></img-self-safe>-->
|
79
|
-
<img :src="'/rs/image/file/'+row.f_path" style="width:45px;height: 50px" @click.stop="seePhotos(row.f_path)" class="img-rounded">
|
80
|
-
</div>
|
81
|
-
<div style="width:65%">
|
82
|
-
<p class="safe_p" :title="row.f_item_name">{{row.f_item_name}}</p>
|
83
|
-
<p class="safe_p" :title="row.f_checker_name">{{row.f_checker_name}}</p>
|
84
|
-
<p class="safe_p" :title="row.f_upload_date">{{row.f_upload_date.substring(11)}}</p>
|
85
|
-
</div>
|
86
|
-
</div>
|
87
|
-
</li>
|
88
|
-
</ul>
|
89
|
-
</div>
|
90
|
-
</div>
|
91
|
-
</div>
|
92
|
-
</div>
|
93
|
-
|
94
|
-
</div>
|
95
|
-
</template>
|
96
|
-
|
97
|
-
<script>
|
98
|
-
import Vue from 'vue'
|
99
|
-
import * as Util from '../../Util'
|
100
|
-
import {HttpResetClass,trans} from 'vue-client'
|
101
|
-
|
102
|
-
export default {
|
103
|
-
title: '安检实时监控中心',
|
104
|
-
data() {
|
105
|
-
return {
|
106
|
-
map:null,
|
107
|
-
infoWindow:null,
|
108
|
-
satellite:null,
|
109
|
-
roadNet:null,
|
110
|
-
checkerMulchs:null,//安检员点位
|
111
|
-
level1Mulchs:null,//一级隐患点位
|
112
|
-
level2Mulchs:null,//二级隐患点位
|
113
|
-
level3Mulchs:null,//三级隐患点位
|
114
|
-
problemsMulchs:null,//普通问题点位
|
115
|
-
checkers:[],
|
116
|
-
employeeList:[],
|
117
|
-
level1:[],
|
118
|
-
level2:[],
|
119
|
-
level3:[],
|
120
|
-
problems:[],
|
121
|
-
chekckOps:null,
|
122
|
-
defectList:{rows:[]},
|
123
|
-
todayDefectList:[],
|
124
|
-
intervalNum:'',
|
125
|
-
layers:{//图层控制显示
|
126
|
-
satelliteEnable:false,
|
127
|
-
roadNetEnable:false,
|
128
|
-
townshipEnable:false,
|
129
|
-
city_properEnable:false
|
130
|
-
},
|
131
|
-
imgSrc:'',
|
132
|
-
geocoder:null,//逆地理编码
|
133
|
-
mulchs:{//覆盖物控制显示
|
134
|
-
checker:true,
|
135
|
-
level1:true,
|
136
|
-
level2:true,
|
137
|
-
level3:true,
|
138
|
-
problems:true
|
139
|
-
},
|
140
|
-
styleObject :[
|
141
|
-
{
|
142
|
-
url: '/images/anjianyuan.png', //人员图标URL
|
143
|
-
anchor: new AMap.Pixel(14, 8), // 图标偏移位置
|
144
|
-
size: new AMap.Size(26, 28) //图标大小
|
145
|
-
},
|
146
|
-
{
|
147
|
-
url: '/images/level1.png', //一级隐患图标URL
|
148
|
-
anchor: new AMap.Pixel(14, 8), // 图标偏移位置
|
149
|
-
size: new AMap.Size(26, 28) //图标大小
|
150
|
-
},
|
151
|
-
{
|
152
|
-
url: '/images/level2.png', //二级隐患图标URL
|
153
|
-
anchor: new AMap.Pixel(14, 8), // 图标偏移位置
|
154
|
-
size: new AMap.Size(26, 28) //图标大小
|
155
|
-
},
|
156
|
-
{
|
157
|
-
url: '/images/level3.png', //三级隐患图标URL
|
158
|
-
anchor: new AMap.Pixel(14, 8), // 图标偏移位置
|
159
|
-
size: new AMap.Size(26, 28) //图标大小
|
160
|
-
},
|
161
|
-
{
|
162
|
-
url: '/images/ordinary.png', //普通问题图标URL
|
163
|
-
anchor: new AMap.Pixel(14, 8), // 图标偏移位置
|
164
|
-
size: new AMap.Size(26, 28) //图标大小
|
165
|
-
}
|
166
|
-
],
|
167
|
-
showModal:false,
|
168
|
-
city_properEnable:false,
|
169
|
-
townshipEnable:false
|
170
|
-
}
|
171
|
-
},
|
172
|
-
async ready(){
|
173
|
-
this.initMap()
|
174
|
-
//tag)
|
175
|
-
await this.getNewData()
|
176
|
-
//tag
|
177
|
-
this.assemblyData()
|
178
|
-
//tag
|
179
|
-
window.safe_closeInfoWindow=this.closeInfoWindow
|
180
|
-
this.intervalNum=window.setInterval(this.safeRefresh, 240000)
|
181
|
-
},
|
182
|
-
methods: {
|
183
|
-
seePhotos(path){
|
184
|
-
if(path){
|
185
|
-
this.imgSrc='/rs/image/file/'+path
|
186
|
-
this.infoWindow.close()
|
187
|
-
this.$refs.defectimg.open()
|
188
|
-
}
|
189
|
-
},
|
190
|
-
setDefectPos(row){
|
191
|
-
this.map.setZoomAndCenter(15,[row.f_longitude,row.f_latitude])
|
192
|
-
let defectContent=this.getDefectContent(row)
|
193
|
-
this.infoWindow.setContent(defectContent)
|
194
|
-
this.infoWindow.open(this.map, [row.f_longitude,row.f_latitude]);
|
195
|
-
},
|
196
|
-
//获取定位人员类表
|
197
|
-
async getNewData(){
|
198
|
-
let res=await new HttpResetClass().load('POST', '/rs/search', {
|
199
|
-
source: `root.getResourceById($${this.$login.f.orgid}$,$organization$).getSpecialResByType($user$).where(row.getAttributes().get($rolestr$).indexOf($需要定位人员$) != -1)`,
|
200
|
-
userid: this.$login.f.id
|
201
|
-
}, {resolveMsg: null, rejectMsg: null})
|
202
|
-
let arr1=await new HttpResetClass().load("GET", `/rs/safePosition/getPosition`, {},{resolveMsg: null, rejectMsg: null})
|
203
|
-
//tag+'---------'+typeof arr1)
|
204
|
-
//let d=this.toStandardTimeString()
|
205
|
-
this.checkers=[]
|
206
|
-
console.log("res.data",res.data)
|
207
|
-
console.log("arr1",arr1)
|
208
|
-
if(res.data){
|
209
|
-
res.data.forEach((checker)=>{
|
210
|
-
////tag)
|
211
|
-
|
212
|
-
for(let check in arr1.data){
|
213
|
-
let checkerpos=JSON.parse(arr1.data[check])
|
214
|
-
////tag+check)
|
215
|
-
if(this.$login.f.rolestr.includes('定位管理员')==true){
|
216
|
-
checkerpos.userid=checker.userid
|
217
|
-
checkerpos.f_user_telephone=checker.f_user_telephone
|
218
|
-
checkerpos.rolestr=checker.rolestr
|
219
|
-
this.checkers.push(checkerpos)
|
220
|
-
}else{
|
221
|
-
if(checker.id==check){
|
222
|
-
//tag
|
223
|
-
console.log("zhaodao;e",checkerpos)
|
224
|
-
checkerpos.userid=checker.userid
|
225
|
-
checkerpos.f_user_telephone=checker.f_user_telephone
|
226
|
-
checkerpos.rolestr=checker.rolestr
|
227
|
-
this.checkers.push(checkerpos)
|
228
|
-
}
|
229
|
-
}
|
230
|
-
}
|
231
|
-
})
|
232
|
-
}
|
233
|
-
let td=Util.toStandardDateString()
|
234
|
-
//获取今天上传的所有隐患
|
235
|
-
let arr=await new HttpResetClass().load("POST", `api/af-safecheck/sql/defectDetails`, {data:{condition:` f_filialeid in ('${this.$login.f.orgid}') and f_upload_date>'${Util.toStandardDateString()} 00:00:00'`}},
|
236
|
-
{resolveMsg: null, rejectMsg: null})
|
237
|
-
//tag)
|
238
|
-
if(arr.data){
|
239
|
-
this.todayDefectList=[]
|
240
|
-
arr.data.forEach((defect)=>{
|
241
|
-
if(defect.f_upload_date.indexOf(td)!=-1){
|
242
|
-
this.todayDefectList.push(defect)
|
243
|
-
}
|
244
|
-
if(defect.f_defect_level.indexOf('一级') >=0){
|
245
|
-
this.level1.push(defect)
|
246
|
-
}else if(defect.f_defect_level.indexOf('二级') >=0){
|
247
|
-
this.level2.push(defect)
|
248
|
-
}else if(defect.f_defect_level.indexOf('三级') >=0){
|
249
|
-
this.level3.push(defect)
|
250
|
-
}else{
|
251
|
-
this.problems.push(defect)
|
252
|
-
}
|
253
|
-
})
|
254
|
-
}
|
255
|
-
this.defectList.rows=arr.data
|
256
|
-
},
|
257
|
-
getDefectContent(row){
|
258
|
-
return `
|
259
|
-
<div style="padding:0px;margin-left: 8px;"><b>隐患详情</b></div>
|
260
|
-
<div class="panel panel-default" style="background-color: azure;border-radius: 5px;margin-left: 8px;">
|
261
|
-
<div class="panel-body">
|
262
|
-
<ul style="list-style-type: none;font-size: 15px;">
|
263
|
-
<li style="margin: 3px 0;">隐患内容: ${row.f_item_name}-${row.f_item_value}</li>
|
264
|
-
<li style="margin: 3px 0;">隐患级别: ${row.f_defect_level}</li>
|
265
|
-
<li style="margin: 3px 0;">发现人员: ${row.f_checker_name}</li>
|
266
|
-
<li style="margin: 3px 0;">上报时间: ${row.f_upload_date}</li>
|
267
|
-
<li style="margin: 3px 0;">是否处理: ${row.F_IS_REPAIRED?row.F_IS_REPAIRED:'未处理'}</li>
|
268
|
-
<li style="margin: 3px 0;">隐患位置: ${row.f_address}</li>
|
269
|
-
</ul>
|
270
|
-
</div>
|
271
|
-
</div>`
|
272
|
-
},
|
273
|
-
getCheckerContent(row){
|
274
|
-
return `
|
275
|
-
<div style="padding:0px;margin-left: 8px;"><b>员工信息</b></div>
|
276
|
-
<div class="panel panel-default" style="background-color: azure;border-radius: 5px;margin-left: 8px;">
|
277
|
-
<div class="panel-body">
|
278
|
-
<ul style="list-style-type: none;font-size: 15px;">
|
279
|
-
<li style="margin: 3px 0;">员工工号: ${row.userid}</li>
|
280
|
-
<li style="margin: 3px 0;">员工姓名: ${row.name}</li>
|
281
|
-
<li style="margin: 3px 0;">员工电话: ${row.f_user_telephone?row.f_user_telephone:'未查到电话'}</li>
|
282
|
-
<li style="margin: 3px 0;">角色列表: ${row.rolestr}</li>
|
283
|
-
<li style="margin: 3px 0;">剩余电量: ${row.f_battery_level} %</li>
|
284
|
-
<li style="margin: 3px 0;">剩余内存: ${row.f_internal_quote} MB</li>
|
285
|
-
<li style="margin: 3px 0;">信号强度: ${row.f_signal_strength}</li>
|
286
|
-
<li style="margin: 3px 0;">实时位置: ${row.checkAddress}</li>
|
287
|
-
<li style="margin: 3px 0;">状态更新时间: ${row.uploadTime}</li>
|
288
|
-
<!--<li style="margin: 3px 0;">客户地址: 河南省周口市工农南路xx酒店302</li>-->
|
289
|
-
</ul>
|
290
|
-
</div>
|
291
|
-
</div>`
|
292
|
-
},
|
293
|
-
assemblyData(){
|
294
|
-
let that=this
|
295
|
-
this.checkerInit()
|
296
|
-
/*this.checkers=[
|
297
|
-
{f_longitude:114.718285,f_latitude:33.610584},
|
298
|
-
{f_longitude:114.713736,f_latitude:33.642387}
|
299
|
-
]*/
|
300
|
-
/*this.level1=[
|
301
|
-
{f_longitude:114.68736,f_latitude:33.655248},
|
302
|
-
{f_longitude:114.716736,f_latitude:33.627523}
|
303
|
-
]*/
|
304
|
-
/*this.level2=[
|
305
|
-
{f_longitude:114.676833,f_latitude:33.609726},
|
306
|
-
{f_longitude:114.684013,f_latitude:33.642387}
|
307
|
-
]
|
308
|
-
this.level3=[
|
309
|
-
{f_longitude:114.71502,f_latitude:33.648675},
|
310
|
-
{f_longitude:114.725002,f_latitude:33.637242}
|
311
|
-
]
|
312
|
-
this.problems=[
|
313
|
-
{f_longitude:114.696969,f_latitude:33.635241},
|
314
|
-
{f_longitude:114.68836,f_latitude:33.655248}
|
315
|
-
]*/
|
316
|
-
/*let a1=[]
|
317
|
-
for(let i=0;i<this.checkers.length;i++){
|
318
|
-
a1.push({
|
319
|
-
lnglat: [this.checkers[i].f_longitude,this.checkers[i].f_latitude], //点标记位置
|
320
|
-
name: '安检员',
|
321
|
-
id:i,
|
322
|
-
rowstr:this.checkers[i]
|
323
|
-
})
|
324
|
-
}
|
325
|
-
// 将数组设置到 massMarks 图层
|
326
|
-
this.checkerMulchs.setData(a1);
|
327
|
-
// 将 massMarks 添加到地图实例
|
328
|
-
this.checkerMulchs.setMap(this.map);*/
|
329
|
-
let a2=[]
|
330
|
-
for(let i=0;i<this.level1.length;i++){
|
331
|
-
a2.push({
|
332
|
-
lnglat: [this.level1[i].f_longitude, this.level1[i].f_latitude], //点标记位置
|
333
|
-
name: '一级隐患',
|
334
|
-
id:i,
|
335
|
-
rowstr:this.level1[i]
|
336
|
-
})
|
337
|
-
}
|
338
|
-
// 将数组设置到 massMarks 图层
|
339
|
-
this.level1Mulchs.setData(a2);
|
340
|
-
// 将 massMarks 添加到地图实例
|
341
|
-
this.level1Mulchs.setMap(this.map);
|
342
|
-
|
343
|
-
|
344
|
-
let a3=[]
|
345
|
-
for(let o=0;o<this.level2.length;o++){
|
346
|
-
if (this.level2[o].f_longitude && this.level2[o].f_latitude){
|
347
|
-
a3.push({
|
348
|
-
lnglat: [this.level2[o].f_longitude,this.level2[o].f_latitude], //点标记位置
|
349
|
-
name: '二级隐患',
|
350
|
-
id:o,
|
351
|
-
rowstr:this.level2[o]
|
352
|
-
})
|
353
|
-
}
|
354
|
-
}
|
355
|
-
// 将数组设置到 massMarks 图层
|
356
|
-
this.level2Mulchs.setData(a3);
|
357
|
-
// 将 massMarks 添加到地图实例
|
358
|
-
this.level2Mulchs.setMap(this.map);
|
359
|
-
|
360
|
-
let a4=[]
|
361
|
-
for(let p=0;p<this.level3.length;p++){
|
362
|
-
if (this.level3[p].f_longitude&&this.level3[p].f_latitude){
|
363
|
-
a4.push({
|
364
|
-
lnglat: [this.level3[p].f_longitude, this.level3[p].f_latitude], //点标记位置
|
365
|
-
name: '三级隐患',
|
366
|
-
id:p,
|
367
|
-
rowstr:this.level3[p]
|
368
|
-
})
|
369
|
-
}
|
370
|
-
}
|
371
|
-
// 将数组设置到 massMarks 图层
|
372
|
-
this.level3Mulchs.setData(a4);
|
373
|
-
// 将 massMarks 添加到地图实例
|
374
|
-
this.level3Mulchs.setMap(this.map);
|
375
|
-
|
376
|
-
|
377
|
-
let a5=[]
|
378
|
-
for(let l=0;l<this.problems.length;l++){
|
379
|
-
if (this.problems[l].f_longitude&&this.problems[l].f_latitude){
|
380
|
-
a5.push({
|
381
|
-
lnglat: [this.problems[l].f_longitude, this.problems[l].f_latitude], //点标记位置
|
382
|
-
name: '普通问题',
|
383
|
-
id:l,
|
384
|
-
rowstr:this.problems[l]
|
385
|
-
})
|
386
|
-
}
|
387
|
-
}
|
388
|
-
// 将数组设置到 massMarks 图层
|
389
|
-
this.problemsMulchs.setData(a5);
|
390
|
-
// 将 massMarks 添加到地图实例
|
391
|
-
this.problemsMulchs.setMap(this.map);
|
392
|
-
//组装安检员点位集合
|
393
|
-
},
|
394
|
-
//处理图层和覆盖物的显示隐藏
|
395
|
-
enableChange(vname,val){
|
396
|
-
//tag
|
397
|
-
//tag
|
398
|
-
switch(vname){
|
399
|
-
case 'satelliteEnable':
|
400
|
-
if(val){
|
401
|
-
this.map.add(this.satellite)
|
402
|
-
}else{
|
403
|
-
this.map.remove(this.satellite)
|
404
|
-
}
|
405
|
-
break;
|
406
|
-
case 'roadNetEnable':
|
407
|
-
if(val){
|
408
|
-
this.map.add(this.roadNet)
|
409
|
-
}else{
|
410
|
-
this.map.remove(this.roadNet)
|
411
|
-
}
|
412
|
-
break;
|
413
|
-
case 'checker':
|
414
|
-
if(val){
|
415
|
-
this.chekckOps.show()
|
416
|
-
}else{
|
417
|
-
this.chekckOps.hide()
|
418
|
-
}
|
419
|
-
break;
|
420
|
-
case 'level1':
|
421
|
-
if(val){
|
422
|
-
this.level1Mulchs.show()
|
423
|
-
}else{
|
424
|
-
this.level1Mulchs.hide()
|
425
|
-
}
|
426
|
-
break;
|
427
|
-
case 'level2':
|
428
|
-
if(val){
|
429
|
-
this.level2Mulchs.show()
|
430
|
-
}else{
|
431
|
-
this.level2Mulchs.hide()
|
432
|
-
}
|
433
|
-
break;
|
434
|
-
case 'level3':
|
435
|
-
if(val){
|
436
|
-
this.level3Mulchs.show()
|
437
|
-
}else{
|
438
|
-
this.level3Mulchs.hide()
|
439
|
-
}
|
440
|
-
break;
|
441
|
-
case 'problems':
|
442
|
-
if(val){
|
443
|
-
this.problemsMulchs.show()
|
444
|
-
}else{
|
445
|
-
this.problemsMulchs.hide()
|
446
|
-
}
|
447
|
-
break;
|
448
|
-
case 'townshipEnable':
|
449
|
-
this.showModal=true
|
450
|
-
this.townshipEnable=true
|
451
|
-
this.city_properEnable=false
|
452
|
-
break;
|
453
|
-
case 'city_properEnable':
|
454
|
-
this.showModal=true
|
455
|
-
this.city_properEnable=true
|
456
|
-
this.townshipEnable=false
|
457
|
-
break;
|
458
|
-
default:
|
459
|
-
}
|
460
|
-
},
|
461
|
-
closeModal(){
|
462
|
-
this.showModal=false
|
463
|
-
this.city_properEnable=false
|
464
|
-
this.townshipEnable=false
|
465
|
-
this.layers.townshipEnable=false
|
466
|
-
this.layers.city_properEnable=false
|
467
|
-
},
|
468
|
-
initMap(){
|
469
|
-
let that=this
|
470
|
-
this.map = new AMap.Map('check_map', {
|
471
|
-
zoom: 12,
|
472
|
-
center: [116.80030599999998, 37.65219],
|
473
|
-
showIndoorMap: false,
|
474
|
-
viewMode: '2D', //设置地图模式
|
475
|
-
lang: 'zh_cn', //设置地图语言类型
|
476
|
-
zindex: 99
|
477
|
-
});
|
478
|
-
|
479
|
-
let bounds = this.map.getBounds();
|
480
|
-
this.map.setLimitBounds(bounds);
|
481
|
-
// 异步加载地图插件
|
482
|
-
AMap.plugin(
|
483
|
-
['AMap.ToolBar','AMap.Geolocation','AMap.Geocoder'], () => {//异步加载插件
|
484
|
-
// 自动定位插件
|
485
|
-
var geolocation = new AMap.Geolocation({
|
486
|
-
// 是否使用高精度定位,默认:true
|
487
|
-
enableHighAccuracy: true,
|
488
|
-
// 设置定位超时时间,默认:无穷大
|
489
|
-
showbutton: true,
|
490
|
-
//控制按钮的显示
|
491
|
-
timeout: 10000,
|
492
|
-
// 定位按钮的停靠位置的偏移量,默认:Pixel(10, 20)
|
493
|
-
buttonOffset: new AMap.Pixel(10, 20),
|
494
|
-
// 定位成功后调整地图视野范围使定位位置及精度范围视野内可见,默认:false
|
495
|
-
//zoomToAccuracy: true,
|
496
|
-
// 定位按钮的排放位置, RB表示右下
|
497
|
-
buttonPosition: 'LB'
|
498
|
-
})
|
499
|
-
that.geocoder = new AMap.Geocoder({
|
500
|
-
radius: 500 //范围,默认:500
|
501
|
-
});
|
502
|
-
that.map.addControl(geolocation)
|
503
|
-
geolocation.getCurrentPosition();
|
504
|
-
that.map.addControl(new AMap.ToolBar()) //初始化工具插件
|
505
|
-
});
|
506
|
-
this.map.setDefaultCursor('move');
|
507
|
-
//this.map.setMapStyle('amap://styles/whitesmoke');
|
508
|
-
this.satellite=new AMap.TileLayer.Satellite()//卫星图层
|
509
|
-
this.roadNet=new AMap.TileLayer.RoadNet({opacity:0.8})//网路图层
|
510
|
-
//安检员位置集合
|
511
|
-
this.chekckOps=new AMap.OverlayGroup()
|
512
|
-
//初始化窗体
|
513
|
-
this.infoWindow = new AMap.InfoWindow({
|
514
|
-
anchor: 'bottom-center',
|
515
|
-
//isCustom: true, //使用自定义窗体
|
516
|
-
autoMove:true,
|
517
|
-
content: '',
|
518
|
-
offset: new AMap.Pixel(0, -25)
|
519
|
-
});
|
520
|
-
//安检员点位
|
521
|
-
/*this.checkerMulchs = new AMap.MassMarks([], {
|
522
|
-
opacity: 0.8, // 图层的透明度,取值范围[0,1],1代表完全不透明,0代表完全透明
|
523
|
-
zIndex: 111, //图层叠加的顺序值,0表示最底层。默认zIndex:5
|
524
|
-
cursor: 'pointer', //指定鼠标悬停时的鼠标样式,自定义cursor,IE仅支持cur/ani/ico格式,Opera不支持自定义cursor
|
525
|
-
//alwaysRender:false,
|
526
|
-
style: this.styleObject[0]
|
527
|
-
});
|
528
|
-
//tag
|
529
|
-
this.checkerMulchs.on('click',function (e) {
|
530
|
-
//tag)
|
531
|
-
let checkAddress='未获取到实时位置'
|
532
|
-
that.geocoder.getAddress(e.data.lnglat, function(status, result) {
|
533
|
-
if (status === 'complete'&& result.regeocode) {
|
534
|
-
checkAddress = result.regeocode.formattedAddress;
|
535
|
-
}else{
|
536
|
-
log.error('根据经纬度查询地址失败')
|
537
|
-
}
|
538
|
-
e.data.rowstr.checkAddress=checkAddress
|
539
|
-
let defectContent=that.getCheckerContent(e.data.rowstr)
|
540
|
-
that.infoWindow.setContent(defectContent)
|
541
|
-
that.infoWindow.open(that.map, e.data.lnglat);
|
542
|
-
});
|
543
|
-
})*/
|
544
|
-
//一级隐患点位
|
545
|
-
this.level1Mulchs=new AMap.MassMarks([], {
|
546
|
-
opacity: 0.8, // 图层的透明度,取值范围[0,1],1代表完全不透明,0代表完全透明
|
547
|
-
zIndex: 111, //图层叠加的顺序值,0表示最底层。默认zIndex:5
|
548
|
-
cursor: 'pointer', //指定鼠标悬停时的鼠标样式,自定义cursor,IE仅支持cur/ani/ico格式,Opera不支持自定义cursor
|
549
|
-
//alwaysRender:false,
|
550
|
-
style: this.styleObject[1]
|
551
|
-
});
|
552
|
-
this.level1Mulchs.on('click',function (e) {
|
553
|
-
//tag)
|
554
|
-
let defectContent=that.getDefectContent(e.data.rowstr)
|
555
|
-
that.infoWindow.setContent(defectContent)
|
556
|
-
that.infoWindow.open(that.map, e.data.lnglat);
|
557
|
-
})
|
558
|
-
//二级隐患点位
|
559
|
-
this.level2Mulchs=new AMap.MassMarks([], {
|
560
|
-
opacity: 0.8, // 图层的透明度,取值范围[0,1],1代表完全不透明,0代表完全透明
|
561
|
-
zIndex: 111, //图层叠加的顺序值,0表示最底层。默认zIndex:5
|
562
|
-
cursor: 'pointer', //指定鼠标悬停时的鼠标样式,自定义cursor,IE仅支持cur/ani/ico格式,Opera不支持自定义cursor
|
563
|
-
//alwaysRender:false,
|
564
|
-
style: this.styleObject[2]
|
565
|
-
});
|
566
|
-
this.level2Mulchs.on('click',function (e) {
|
567
|
-
//tag)
|
568
|
-
let defectContent=that.getDefectContent(e.data.rowstr)
|
569
|
-
that.infoWindow.setContent(defectContent)
|
570
|
-
that.infoWindow.open(that.map, e.data.lnglat);
|
571
|
-
})
|
572
|
-
//三级隐患点位
|
573
|
-
this.level3Mulchs=new AMap.MassMarks([], {
|
574
|
-
opacity: 0.8, // 图层的透明度,取值范围[0,1],1代表完全不透明,0代表完全透明
|
575
|
-
zIndex: 111, //图层叠加的顺序值,0表示最底层。默认zIndex:5
|
576
|
-
cursor: 'pointer', //指定鼠标悬停时的鼠标样式,自定义cursor,IE仅支持cur/ani/ico格式,Opera不支持自定义cursor
|
577
|
-
//alwaysRender:false,
|
578
|
-
style: this.styleObject[3]
|
579
|
-
});
|
580
|
-
this.level3Mulchs.on('click',function (e) {
|
581
|
-
//tag)
|
582
|
-
let defectContent=that.getDefectContent(e.data.rowstr)
|
583
|
-
that.infoWindow.setContent(defectContent)
|
584
|
-
that.infoWindow.open(that.map, e.data.lnglat);
|
585
|
-
})
|
586
|
-
//普通问题点位
|
587
|
-
this.problemsMulchs=new AMap.MassMarks([], {
|
588
|
-
opacity: 0.8, // 图层的透明度,取值范围[0,1],1代表完全不透明,0代表完全透明
|
589
|
-
zIndex: 111, //图层叠加的顺序值,0表示最底层。默认zIndex:5
|
590
|
-
cursor: 'pointer', //指定鼠标悬停时的鼠标样式,自定义cursor,IE仅支持cur/ani/ico格式,Opera不支持自定义cursor
|
591
|
-
//alwaysRender:false,
|
592
|
-
style: this.styleObject[4]
|
593
|
-
});
|
594
|
-
this.problemsMulchs.on('click',function (e) {
|
595
|
-
//tag)
|
596
|
-
let defectContent=that.getDefectContent(e.data.rowstr)
|
597
|
-
that.infoWindow.setContent(defectContent)
|
598
|
-
that.infoWindow.open(that.map, e.data.lnglat);
|
599
|
-
})
|
600
|
-
|
601
|
-
|
602
|
-
},
|
603
|
-
closeInfoWindow(){
|
604
|
-
this.infoWindow.close()
|
605
|
-
},
|
606
|
-
checkerInit(){
|
607
|
-
/*let marker1 = new AMap.Marker({
|
608
|
-
position: [114.574809,33.621501],
|
609
|
-
icon:'http://192.168.20.28:8400/image/anjianyuan.png'
|
610
|
-
});
|
611
|
-
//tag
|
612
|
-
marker1.setLabel({
|
613
|
-
//offset: new AMap.Pixel(20, 20), //设置文本标注偏移量
|
614
|
-
content: "<div class='info' style='background-color: #0b87e2'>何文强</div>", //设置文本标注内容
|
615
|
-
direction: 'bottom' //设置文本标注方位
|
616
|
-
})*/
|
617
|
-
let that = this
|
618
|
-
this.chekckOps.clearOverlays()
|
619
|
-
for(let j=0;j<this.checkers.length;j++){
|
620
|
-
//tag+"---"+this.checkers[j].f_longitude+"---"+this.checkers[j].f_latitude)
|
621
|
-
//let o={f_longitude:"114.72"+(Math.floor(Math.random()*(9999-1000))+1000),f_latitude:"33.56"+(Math.floor(Math.random()*(9999-1000))+1000),name:"hwq3",f_provider:"lbs",f_battery_level:38,f_bearing:"210.0",uploadTime:"2021-11-17 17:28:35",f_signal_strength:4,userid:"141701",f_speed:"0.0",f_internal_quote:8535,f_altitude:"9.72", f_traffic:345865}
|
622
|
-
let marker=new AMap.Marker({
|
623
|
-
//map: that.map,
|
624
|
-
offset:new AMap.Pixel(-18, -10),
|
625
|
-
position: [this.checkers[j].f_longitude,this.checkers[j].f_latitude],
|
626
|
-
icon:new AMap.Icon({
|
627
|
-
image: '/images/anjianyuan.png', //人员图标URL
|
628
|
-
imageOffset: new AMap.Pixel(0, 0), // 图标偏移位置
|
629
|
-
imageSize: new AMap.Size(36, 36) //图标大小
|
630
|
-
}),
|
631
|
-
label:{
|
632
|
-
//offset: new AMap.Pixel(20, 20), //设置文本标注偏移量
|
633
|
-
content: `<div class='info' style='background-color: rgb(0,185,255);color: #ffffff;padding: 5px;border-radius: 4px'>${this.checkers[j].name}</div>`, //设置文本标注内容
|
634
|
-
direction: 'bottom', //设置文本标注方位
|
635
|
-
offset:new AMap.Pixel(0, -4)
|
636
|
-
},
|
637
|
-
extData:this.checkers[j]
|
638
|
-
})
|
639
|
-
this.chekckOps.addOverlay(marker)
|
640
|
-
|
641
|
-
}
|
642
|
-
this.chekckOps.setMap(this.map)
|
643
|
-
this.chekckOps.on('click',function (e) {
|
644
|
-
let pe=e.target.getExtData()
|
645
|
-
for(let obj in pe){
|
646
|
-
//tag
|
647
|
-
}
|
648
|
-
let checkAddress='未获取到实时位置'
|
649
|
-
that.geocoder.getAddress([pe.f_longitude,pe.f_latitude], function(status, result) {
|
650
|
-
if (status === 'complete'&& result.regeocode) {
|
651
|
-
checkAddress = result.regeocode.formattedAddress;
|
652
|
-
}/*else{
|
653
|
-
log.error('根据经纬度查询地址失败')
|
654
|
-
}*/
|
655
|
-
pe.checkAddress=checkAddress
|
656
|
-
let defectContent=that.getCheckerContent(pe)
|
657
|
-
that.infoWindow.setContent(defectContent)
|
658
|
-
that.infoWindow.open(that.map, [pe.f_longitude,pe.f_latitude])
|
659
|
-
})
|
660
|
-
})
|
661
|
-
/*AMap.event.addListener(this.ops, 'click', function (e) {
|
662
|
-
//tag)
|
663
|
-
//that.infoWindow.open(that.map, marker.getPosition());
|
664
|
-
})*/
|
665
|
-
},
|
666
|
-
//获取当前时间的前两个小时
|
667
|
-
getNowFormatDate(house=0) {
|
668
|
-
//tag
|
669
|
-
let date = new Date();
|
670
|
-
let seperator1 = "-";
|
671
|
-
let seperator2 = ":";
|
672
|
-
if(house != 0){
|
673
|
-
date.setHours(date.getHours()-house)
|
674
|
-
}
|
675
|
-
let month = date.getMonth() + 1;
|
676
|
-
let strDate = date.getDate();
|
677
|
-
let hour = date.getHours();
|
678
|
-
let min = date.getMinutes();
|
679
|
-
let second = date.getSeconds();
|
680
|
-
if (month >= 1 && month <= 9) {
|
681
|
-
month = "0" + month;
|
682
|
-
}
|
683
|
-
if (strDate >= 0 && strDate <= 9) {
|
684
|
-
strDate = "0" + strDate;
|
685
|
-
}
|
686
|
-
if (hour >= 0 && hour <= 9) {
|
687
|
-
hour = "0" + hour;
|
688
|
-
}
|
689
|
-
if (min >= 0 && min <= 9) {
|
690
|
-
min = "0" + min;
|
691
|
-
}
|
692
|
-
if (second >= 0 && second <= 9) {
|
693
|
-
second = "0" + second;
|
694
|
-
}
|
695
|
-
let currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
|
696
|
-
+ " " + hour + seperator2 + min
|
697
|
-
+ seperator2 + second;
|
698
|
-
return currentdate;
|
699
|
-
},
|
700
|
-
toStandardTimeString() {
|
701
|
-
let dt = new Date()
|
702
|
-
let month = dt.getMonth()+1
|
703
|
-
let date = dt.getDate()
|
704
|
-
let hour = dt.getHours()
|
705
|
-
let min = dt.getMinutes()
|
706
|
-
let sec = dt.getSeconds()
|
707
|
-
return dt.getFullYear() + '-' + (month<10? '0'+ month : month) + '-' + (date<10? '0'+ date : date)
|
708
|
-
+ ' ' + (hour<10? '0'+ hour : hour)
|
709
|
-
},
|
710
|
-
async safeRefresh(){
|
711
|
-
//tag
|
712
|
-
//获取所有安检员的点位集合-----测试数据
|
713
|
-
/*this.checkers=[]
|
714
|
-
this.checkers.push({f_longitude:114.7318,f_latitude:33.567126,name:"hwq1",f_provider:"lbs",f_battery_level:38,f_bearing:"210.0",uploadTime:"2021-11-17 17:28:35",f_signal_strength:4,userid:"141701",f_speed:"0.0",f_internal_quote:8535,f_altitude:"9.72", f_traffic:345865})
|
715
|
-
this.checkers.push({f_longitude:114.726801,f_latitude:33.566912,name:"hwq2",f_provider:"lbs",f_battery_level:38,f_bearing:"210.0",uploadTime:"2021-11-17 17:28:35",f_signal_strength:4,userid:"141701",f_speed:"0.0",f_internal_quote:8535,f_altitude:"9.72", f_traffic:345865})
|
716
|
-
this.checkers.push({f_longitude:114.723346,f_latitude:33.568932,name:"hwq3",f_provider:"lbs",f_battery_level:38,f_bearing:"210.0",uploadTime:"2021-11-17 17:28:35",f_signal_strength:4,userid:"141701",f_speed:"0.0",f_internal_quote:8535,f_altitude:"9.72", f_traffic:345865})
|
717
|
-
this.checkers.push({f_longitude:114.711741,f_latitude:33.585519,name:"hwq4",f_provider:"lbs",f_battery_level:38,f_bearing:"210.0",uploadTime:"2021-11-17 17:28:35",f_signal_strength:4,userid:"141701",f_speed:"0.0",f_internal_quote:8535,f_altitude:"9.72", f_traffic:345865})
|
718
|
-
this.checkers.push({f_longitude:114.756716,f_latitude:33.594528,name:"hwq5",f_provider:"lbs",f_battery_level:38,f_bearing:"210.0",uploadTime:"2021-11-17 17:28:35",f_signal_strength:4,userid:"141701",f_speed:"0.0",f_internal_quote:8535,f_altitude:"9.72", f_traffic:345865})
|
719
|
-
this.defectList.rows=[]
|
720
|
-
this.defectList.rows.push({"f_longitude":114.661358,"f_latitude":33.596897,"f_checker_name":"hwq2","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})
|
721
|
-
this.defectList.rows.push({"f_longitude":114.659985,"f_latitude":33.62892,"f_checker_name":"hwq3","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})
|
722
|
-
this.defectList.rows.push({"f_longitude":114.634579,"f_latitude":33.616627,"f_checker_name":"hwq4","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})
|
723
|
-
this.defectList.rows.push({"f_longitude":114.690197,"f_latitude":33.604332,"f_checker_name":"hwq5","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})
|
724
|
-
this.defectList.rows.push({"f_longitude":114.690197,"f_latitude":33.604332,"f_checker_name":"hwq5","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})
|
725
|
-
this.defectList.rows.push({"f_longitude":114.690197,"f_latitude":33.604332,"f_checker_name":"hwq5","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})
|
726
|
-
this.defectList.rows.push({"f_longitude":114.690197,"f_latitude":33.604332,"f_checker_name":"hwq5","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})
|
727
|
-
this.defectList.rows.push({"f_longitude":114.690197,"f_latitude":33.604332,"f_checker_name":"hwq5","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})
|
728
|
-
this.defectList.rows.push({"f_longitude":114.690197,"f_latitude":33.604332,"f_checker_name":"hwq5","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})
|
729
|
-
this.defectList.rows.push({"f_longitude":114.690197,"f_latitude":33.604332,"f_checker_name":"hwq5","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})*/
|
730
|
-
await this.getNewData()
|
731
|
-
this.assemblyData()
|
732
|
-
}
|
733
|
-
},
|
734
|
-
computed:{
|
735
|
-
|
736
|
-
},
|
737
|
-
destroyed(){
|
738
|
-
window.clearInterval(this.intervalNum)
|
739
|
-
}
|
740
|
-
}
|
741
|
-
|
742
|
-
</script>
|
743
|
-
|
744
|
-
<style lang="less" scoped>
|
745
|
-
|
746
|
-
.safe_checkbox_sty{
|
747
|
-
vertical-align:text-bottom;
|
748
|
-
margin-right: 3px;
|
749
|
-
|
750
|
-
}
|
751
|
-
.safe_ul_sty{
|
752
|
-
list-style-type: none;
|
753
|
-
font-size: 13px;
|
754
|
-
padding-left: 5px;
|
755
|
-
}
|
756
|
-
.safe_li_sty{
|
757
|
-
font-size: 13px;
|
758
|
-
margin-top: 5px;
|
759
|
-
}
|
760
|
-
.safe_p{
|
761
|
-
white-space: nowrap;
|
762
|
-
overflow: hidden;
|
763
|
-
text-overflow: ellipsis;
|
764
|
-
margin: 0 0 0 10px;
|
765
|
-
|
766
|
-
font-size: 12px;
|
767
|
-
}
|
768
|
-
.safe_list_li{
|
769
|
-
margin-top: 5px;
|
770
|
-
background-color: #ffffff;
|
771
|
-
border: solid 1px #f0f4fa !important;
|
772
|
-
color: #666666 !important;
|
773
|
-
font-size: 1.3rem !important;
|
774
|
-
font-family: PINGFANG-MEDIUM !important;
|
775
|
-
padding: 8px;
|
776
|
-
}
|
777
|
-
.safe_list_li:hover{
|
778
|
-
background-color: rgb(203,234,241);
|
779
|
-
}
|
780
|
-
.safe_deimg{
|
781
|
-
vertical-align: text-bottom;
|
782
|
-
width: 15px;
|
783
|
-
margin-right: 3px;
|
784
|
-
}
|
785
|
-
</style>
|
786
|
-
|
1
|
+
<template>
|
2
|
+
<div class="flex-row">
|
3
|
+
<div class="basic-main" style="flex:7">
|
4
|
+
<div id="check_map" style="height:100%">
|
5
|
+
<img-self-safe :src="imgSrc" width="45" style="z-index: 0"
|
6
|
+
height="50" class="img-rounded" v-ref:defectimg></img-self-safe>
|
7
|
+
</div>
|
8
|
+
</div>
|
9
|
+
<modal :styles="'width:1230px'" width="1230px" :show.sync="showModal" v-ref:modal backdrop="false">
|
10
|
+
<header slot="modal-header" class="modal-header" v-show="false"></header>
|
11
|
+
<article slot="modal-body" class="modal-body" style="width: 1200px;">
|
12
|
+
<div class="auto">
|
13
|
+
<img style="height:800px;width: 1200px;" src="./cq.jpg"
|
14
|
+
v-show="city_properEnable" alt="图片加载失败"/>
|
15
|
+
<img style="height:800px;width: 1200px;" src="./qy.jpg"
|
16
|
+
v-show="townshipEnable" alt="图片加载失败"/>
|
17
|
+
</div>
|
18
|
+
</article>
|
19
|
+
<footer slot="modal-footer" class="modal-footer">
|
20
|
+
<button type="button" class="btn btn-success" @click='closeModal()'>关闭</button>
|
21
|
+
</footer>
|
22
|
+
</modal>
|
23
|
+
|
24
|
+
<div id="zzz" class="basic-main" style="flex:1;margin-left: 0px;overflow: hidden">
|
25
|
+
<div class="flex">
|
26
|
+
<div class="panel panel-info" style="flex: 1;margin-top:0px">
|
27
|
+
<div class="panel-heading" style="height: auto">
|
28
|
+
<h3 class="panel-title">图层设置</h3>
|
29
|
+
</div>
|
30
|
+
<div class="panel-body">
|
31
|
+
<ul class="safe_ul_sty">
|
32
|
+
<li class="safe_li_sty"><input class="safe_checkbox_sty" v-model="layers.satelliteEnable" @change="enableChange('satelliteEnable',layers.satelliteEnable)" type="checkbox"/>卫星图层</li>
|
33
|
+
<li class="safe_li_sty"><input class="safe_checkbox_sty" v-model="layers.roadNetEnable" @change="enableChange('roadNetEnable',layers.roadNetEnable)" type="checkbox"/>网路图层</li>
|
34
|
+
<li class="safe_li_sty"><input class="safe_checkbox_sty" v-model="layers.townshipEnable" @click="enableChange('townshipEnable')" type="checkbox"/>乡镇管网图层</li>
|
35
|
+
<li class="safe_li_sty"><input class="safe_checkbox_sty" v-model="layers.city_properEnable" @click="enableChange('city_properEnable')" type="checkbox"/>城区管网图层</li>
|
36
|
+
<!--<button @click="safeRefresh">刷新111</button>-->
|
37
|
+
</ul>
|
38
|
+
</div>
|
39
|
+
</div>
|
40
|
+
<div class="panel panel-info" style="flex: 2;margin-top:0px;">
|
41
|
+
<div class="panel-heading" style="height: auto">
|
42
|
+
<h3 class="panel-title">覆盖物设置</h3>
|
43
|
+
</div>
|
44
|
+
<div class="panel-body">
|
45
|
+
<ul class="safe_ul_sty">
|
46
|
+
<li class="safe_li_sty"><input class="safe_checkbox_sty" v-model="mulchs.checker" @change="enableChange('checker',mulchs.checker)" type="checkbox"/><img class="safe_deimg" src="../../../assets/anjianyuan.png"/>工作人员</li>
|
47
|
+
<li class="safe_li_sty"><input class="safe_checkbox_sty" v-model="mulchs.level1" @change="enableChange('level1',mulchs.level1)" type="checkbox"/><img class="safe_deimg" src="../../../assets/level1.png"/>一级隐患</li>
|
48
|
+
<li class="safe_li_sty"><input class="safe_checkbox_sty" v-model="mulchs.level2" @change="enableChange('level2',mulchs.level2)" type="checkbox"/><img class="safe_deimg" src="../../../assets/level2.png"/>二级隐患</li>
|
49
|
+
<li class="safe_li_sty"><input class="safe_checkbox_sty" v-model="mulchs.level3" @change="enableChange('level3',mulchs.level3)" type="checkbox"/><img class="safe_deimg" src="../../../assets/level3.png"/>三级隐患</li>
|
50
|
+
<li class="safe_li_sty"><input class="safe_checkbox_sty" v-model="mulchs.problems" @change="enableChange('problems',mulchs.problems)" type="checkbox"/><img class="safe_deimg" src="../../../assets/ordinary.png"/>普通问题</li>
|
51
|
+
</ul>
|
52
|
+
<!--<data-grid :model="defectList" partial='list' class="table_sy" >
|
53
|
+
<template partial='body' style="height:100%">
|
54
|
+
<td @click="$parent.$parent.setDefectPos(row)">
|
55
|
+
<div style="width: 100%;"class="flex-row">
|
56
|
+
<img src="../../../assets/星球背景.jpg" style="width:45px;height: 50px" class="img-rounded">
|
57
|
+
<div >
|
58
|
+
<p class="safe_p" :title="row.f_item_name"><nobr>{{row.f_item_name}}</nobr></p>
|
59
|
+
<p class="safe_p" :title="row.f_checker_name"><nobr>{{row.f_checker_name}}</nobr></p>
|
60
|
+
<p class="safe_p" :title="row.f_upload_date"><nobr>{{row.f_upload_date.substring(11)}}</nobr></p>
|
61
|
+
</div>
|
62
|
+
</div>
|
63
|
+
</td>
|
64
|
+
</template>
|
65
|
+
</data-grid>-->
|
66
|
+
</div>
|
67
|
+
</div>
|
68
|
+
<div class="panel panel-info" style="flex: 4;margin-top:0px;height: 50%">
|
69
|
+
<div class="panel-heading" style="height: auto">
|
70
|
+
<h3 class="panel-title">今日隐患</h3>
|
71
|
+
</div>
|
72
|
+
<div class="panel-body" style="overflow: scroll">
|
73
|
+
<ul class="safe_ul_sty">
|
74
|
+
<li v-for="row in todayDefectList" track-by="$index" class="safe_li_sty safe_list_li" @click="setDefectPos(row)" style="border: 1px #4d4d4d solid;border-radius: 2px" >
|
75
|
+
<div style="width: 100%;" class="flex-row">
|
76
|
+
<div style="width:35%">
|
77
|
+
<!--<img-self-safe :src="'/rs/image/file/'+row.f_path" style="float: left" width="45"
|
78
|
+
height="50" class="img-rounded"></img-self-safe>-->
|
79
|
+
<img :src="'/rs/image/file/'+row.f_path" style="width:45px;height: 50px" @click.stop="seePhotos(row.f_path)" class="img-rounded">
|
80
|
+
</div>
|
81
|
+
<div style="width:65%">
|
82
|
+
<p class="safe_p" :title="row.f_item_name">{{row.f_item_name}}</p>
|
83
|
+
<p class="safe_p" :title="row.f_checker_name">{{row.f_checker_name}}</p>
|
84
|
+
<p class="safe_p" :title="row.f_upload_date">{{row.f_upload_date.substring(11)}}</p>
|
85
|
+
</div>
|
86
|
+
</div>
|
87
|
+
</li>
|
88
|
+
</ul>
|
89
|
+
</div>
|
90
|
+
</div>
|
91
|
+
</div>
|
92
|
+
</div>
|
93
|
+
|
94
|
+
</div>
|
95
|
+
</template>
|
96
|
+
|
97
|
+
<script>
|
98
|
+
import Vue from 'vue'
|
99
|
+
import * as Util from '../../Util'
|
100
|
+
import {HttpResetClass,trans} from 'vue-client'
|
101
|
+
|
102
|
+
export default {
|
103
|
+
title: '安检实时监控中心',
|
104
|
+
data() {
|
105
|
+
return {
|
106
|
+
map:null,
|
107
|
+
infoWindow:null,
|
108
|
+
satellite:null,
|
109
|
+
roadNet:null,
|
110
|
+
checkerMulchs:null,//安检员点位
|
111
|
+
level1Mulchs:null,//一级隐患点位
|
112
|
+
level2Mulchs:null,//二级隐患点位
|
113
|
+
level3Mulchs:null,//三级隐患点位
|
114
|
+
problemsMulchs:null,//普通问题点位
|
115
|
+
checkers:[],
|
116
|
+
employeeList:[],
|
117
|
+
level1:[],
|
118
|
+
level2:[],
|
119
|
+
level3:[],
|
120
|
+
problems:[],
|
121
|
+
chekckOps:null,
|
122
|
+
defectList:{rows:[]},
|
123
|
+
todayDefectList:[],
|
124
|
+
intervalNum:'',
|
125
|
+
layers:{//图层控制显示
|
126
|
+
satelliteEnable:false,
|
127
|
+
roadNetEnable:false,
|
128
|
+
townshipEnable:false,
|
129
|
+
city_properEnable:false
|
130
|
+
},
|
131
|
+
imgSrc:'',
|
132
|
+
geocoder:null,//逆地理编码
|
133
|
+
mulchs:{//覆盖物控制显示
|
134
|
+
checker:true,
|
135
|
+
level1:true,
|
136
|
+
level2:true,
|
137
|
+
level3:true,
|
138
|
+
problems:true
|
139
|
+
},
|
140
|
+
styleObject :[
|
141
|
+
{
|
142
|
+
url: '/images/anjianyuan.png', //人员图标URL
|
143
|
+
anchor: new AMap.Pixel(14, 8), // 图标偏移位置
|
144
|
+
size: new AMap.Size(26, 28) //图标大小
|
145
|
+
},
|
146
|
+
{
|
147
|
+
url: '/images/level1.png', //一级隐患图标URL
|
148
|
+
anchor: new AMap.Pixel(14, 8), // 图标偏移位置
|
149
|
+
size: new AMap.Size(26, 28) //图标大小
|
150
|
+
},
|
151
|
+
{
|
152
|
+
url: '/images/level2.png', //二级隐患图标URL
|
153
|
+
anchor: new AMap.Pixel(14, 8), // 图标偏移位置
|
154
|
+
size: new AMap.Size(26, 28) //图标大小
|
155
|
+
},
|
156
|
+
{
|
157
|
+
url: '/images/level3.png', //三级隐患图标URL
|
158
|
+
anchor: new AMap.Pixel(14, 8), // 图标偏移位置
|
159
|
+
size: new AMap.Size(26, 28) //图标大小
|
160
|
+
},
|
161
|
+
{
|
162
|
+
url: '/images/ordinary.png', //普通问题图标URL
|
163
|
+
anchor: new AMap.Pixel(14, 8), // 图标偏移位置
|
164
|
+
size: new AMap.Size(26, 28) //图标大小
|
165
|
+
}
|
166
|
+
],
|
167
|
+
showModal:false,
|
168
|
+
city_properEnable:false,
|
169
|
+
townshipEnable:false
|
170
|
+
}
|
171
|
+
},
|
172
|
+
async ready(){
|
173
|
+
this.initMap()
|
174
|
+
//tag)
|
175
|
+
await this.getNewData()
|
176
|
+
//tag
|
177
|
+
this.assemblyData()
|
178
|
+
//tag
|
179
|
+
window.safe_closeInfoWindow=this.closeInfoWindow
|
180
|
+
this.intervalNum=window.setInterval(this.safeRefresh, 240000)
|
181
|
+
},
|
182
|
+
methods: {
|
183
|
+
seePhotos(path){
|
184
|
+
if(path){
|
185
|
+
this.imgSrc='/rs/image/file/'+path
|
186
|
+
this.infoWindow.close()
|
187
|
+
this.$refs.defectimg.open()
|
188
|
+
}
|
189
|
+
},
|
190
|
+
setDefectPos(row){
|
191
|
+
this.map.setZoomAndCenter(15,[row.f_longitude,row.f_latitude])
|
192
|
+
let defectContent=this.getDefectContent(row)
|
193
|
+
this.infoWindow.setContent(defectContent)
|
194
|
+
this.infoWindow.open(this.map, [row.f_longitude,row.f_latitude]);
|
195
|
+
},
|
196
|
+
//获取定位人员类表
|
197
|
+
async getNewData(){
|
198
|
+
let res=await new HttpResetClass().load('POST', '/rs/search', {
|
199
|
+
source: `root.getResourceById($${this.$login.f.orgid}$,$organization$).getSpecialResByType($user$).where(row.getAttributes().get($rolestr$).indexOf($需要定位人员$) != -1)`,
|
200
|
+
userid: this.$login.f.id
|
201
|
+
}, {resolveMsg: null, rejectMsg: null})
|
202
|
+
let arr1=await new HttpResetClass().load("GET", `/rs/safePosition/getPosition`, {},{resolveMsg: null, rejectMsg: null})
|
203
|
+
//tag+'---------'+typeof arr1)
|
204
|
+
//let d=this.toStandardTimeString()
|
205
|
+
this.checkers=[]
|
206
|
+
console.log("res.data",res.data)
|
207
|
+
console.log("arr1",arr1)
|
208
|
+
if(res.data){
|
209
|
+
res.data.forEach((checker)=>{
|
210
|
+
////tag)
|
211
|
+
|
212
|
+
for(let check in arr1.data){
|
213
|
+
let checkerpos=JSON.parse(arr1.data[check])
|
214
|
+
////tag+check)
|
215
|
+
if(this.$login.f.rolestr.includes('定位管理员')==true){
|
216
|
+
checkerpos.userid=checker.userid
|
217
|
+
checkerpos.f_user_telephone=checker.f_user_telephone
|
218
|
+
checkerpos.rolestr=checker.rolestr
|
219
|
+
this.checkers.push(checkerpos)
|
220
|
+
}else{
|
221
|
+
if(checker.id==check){
|
222
|
+
//tag
|
223
|
+
console.log("zhaodao;e",checkerpos)
|
224
|
+
checkerpos.userid=checker.userid
|
225
|
+
checkerpos.f_user_telephone=checker.f_user_telephone
|
226
|
+
checkerpos.rolestr=checker.rolestr
|
227
|
+
this.checkers.push(checkerpos)
|
228
|
+
}
|
229
|
+
}
|
230
|
+
}
|
231
|
+
})
|
232
|
+
}
|
233
|
+
let td=Util.toStandardDateString()
|
234
|
+
//获取今天上传的所有隐患
|
235
|
+
let arr=await new HttpResetClass().load("POST", `api/af-safecheck/sql/defectDetails`, {data:{condition:` f_filialeid in ('${this.$login.f.orgid}') and f_upload_date>'${Util.toStandardDateString()} 00:00:00'`}},
|
236
|
+
{resolveMsg: null, rejectMsg: null})
|
237
|
+
//tag)
|
238
|
+
if(arr.data){
|
239
|
+
this.todayDefectList=[]
|
240
|
+
arr.data.forEach((defect)=>{
|
241
|
+
if(defect.f_upload_date.indexOf(td)!=-1){
|
242
|
+
this.todayDefectList.push(defect)
|
243
|
+
}
|
244
|
+
if(defect.f_defect_level.indexOf('一级') >=0){
|
245
|
+
this.level1.push(defect)
|
246
|
+
}else if(defect.f_defect_level.indexOf('二级') >=0){
|
247
|
+
this.level2.push(defect)
|
248
|
+
}else if(defect.f_defect_level.indexOf('三级') >=0){
|
249
|
+
this.level3.push(defect)
|
250
|
+
}else{
|
251
|
+
this.problems.push(defect)
|
252
|
+
}
|
253
|
+
})
|
254
|
+
}
|
255
|
+
this.defectList.rows=arr.data
|
256
|
+
},
|
257
|
+
getDefectContent(row){
|
258
|
+
return `
|
259
|
+
<div style="padding:0px;margin-left: 8px;"><b>隐患详情</b></div>
|
260
|
+
<div class="panel panel-default" style="background-color: azure;border-radius: 5px;margin-left: 8px;">
|
261
|
+
<div class="panel-body">
|
262
|
+
<ul style="list-style-type: none;font-size: 15px;">
|
263
|
+
<li style="margin: 3px 0;">隐患内容: ${row.f_item_name}-${row.f_item_value}</li>
|
264
|
+
<li style="margin: 3px 0;">隐患级别: ${row.f_defect_level}</li>
|
265
|
+
<li style="margin: 3px 0;">发现人员: ${row.f_checker_name}</li>
|
266
|
+
<li style="margin: 3px 0;">上报时间: ${row.f_upload_date}</li>
|
267
|
+
<li style="margin: 3px 0;">是否处理: ${row.F_IS_REPAIRED?row.F_IS_REPAIRED:'未处理'}</li>
|
268
|
+
<li style="margin: 3px 0;">隐患位置: ${row.f_address}</li>
|
269
|
+
</ul>
|
270
|
+
</div>
|
271
|
+
</div>`
|
272
|
+
},
|
273
|
+
getCheckerContent(row){
|
274
|
+
return `
|
275
|
+
<div style="padding:0px;margin-left: 8px;"><b>员工信息</b></div>
|
276
|
+
<div class="panel panel-default" style="background-color: azure;border-radius: 5px;margin-left: 8px;">
|
277
|
+
<div class="panel-body">
|
278
|
+
<ul style="list-style-type: none;font-size: 15px;">
|
279
|
+
<li style="margin: 3px 0;">员工工号: ${row.userid}</li>
|
280
|
+
<li style="margin: 3px 0;">员工姓名: ${row.name}</li>
|
281
|
+
<li style="margin: 3px 0;">员工电话: ${row.f_user_telephone?row.f_user_telephone:'未查到电话'}</li>
|
282
|
+
<li style="margin: 3px 0;">角色列表: ${row.rolestr}</li>
|
283
|
+
<li style="margin: 3px 0;">剩余电量: ${row.f_battery_level} %</li>
|
284
|
+
<li style="margin: 3px 0;">剩余内存: ${row.f_internal_quote} MB</li>
|
285
|
+
<li style="margin: 3px 0;">信号强度: ${row.f_signal_strength}</li>
|
286
|
+
<li style="margin: 3px 0;">实时位置: ${row.checkAddress}</li>
|
287
|
+
<li style="margin: 3px 0;">状态更新时间: ${row.uploadTime}</li>
|
288
|
+
<!--<li style="margin: 3px 0;">客户地址: 河南省周口市工农南路xx酒店302</li>-->
|
289
|
+
</ul>
|
290
|
+
</div>
|
291
|
+
</div>`
|
292
|
+
},
|
293
|
+
assemblyData(){
|
294
|
+
let that=this
|
295
|
+
this.checkerInit()
|
296
|
+
/*this.checkers=[
|
297
|
+
{f_longitude:114.718285,f_latitude:33.610584},
|
298
|
+
{f_longitude:114.713736,f_latitude:33.642387}
|
299
|
+
]*/
|
300
|
+
/*this.level1=[
|
301
|
+
{f_longitude:114.68736,f_latitude:33.655248},
|
302
|
+
{f_longitude:114.716736,f_latitude:33.627523}
|
303
|
+
]*/
|
304
|
+
/*this.level2=[
|
305
|
+
{f_longitude:114.676833,f_latitude:33.609726},
|
306
|
+
{f_longitude:114.684013,f_latitude:33.642387}
|
307
|
+
]
|
308
|
+
this.level3=[
|
309
|
+
{f_longitude:114.71502,f_latitude:33.648675},
|
310
|
+
{f_longitude:114.725002,f_latitude:33.637242}
|
311
|
+
]
|
312
|
+
this.problems=[
|
313
|
+
{f_longitude:114.696969,f_latitude:33.635241},
|
314
|
+
{f_longitude:114.68836,f_latitude:33.655248}
|
315
|
+
]*/
|
316
|
+
/*let a1=[]
|
317
|
+
for(let i=0;i<this.checkers.length;i++){
|
318
|
+
a1.push({
|
319
|
+
lnglat: [this.checkers[i].f_longitude,this.checkers[i].f_latitude], //点标记位置
|
320
|
+
name: '安检员',
|
321
|
+
id:i,
|
322
|
+
rowstr:this.checkers[i]
|
323
|
+
})
|
324
|
+
}
|
325
|
+
// 将数组设置到 massMarks 图层
|
326
|
+
this.checkerMulchs.setData(a1);
|
327
|
+
// 将 massMarks 添加到地图实例
|
328
|
+
this.checkerMulchs.setMap(this.map);*/
|
329
|
+
let a2=[]
|
330
|
+
for(let i=0;i<this.level1.length;i++){
|
331
|
+
a2.push({
|
332
|
+
lnglat: [this.level1[i].f_longitude, this.level1[i].f_latitude], //点标记位置
|
333
|
+
name: '一级隐患',
|
334
|
+
id:i,
|
335
|
+
rowstr:this.level1[i]
|
336
|
+
})
|
337
|
+
}
|
338
|
+
// 将数组设置到 massMarks 图层
|
339
|
+
this.level1Mulchs.setData(a2);
|
340
|
+
// 将 massMarks 添加到地图实例
|
341
|
+
this.level1Mulchs.setMap(this.map);
|
342
|
+
|
343
|
+
|
344
|
+
let a3=[]
|
345
|
+
for(let o=0;o<this.level2.length;o++){
|
346
|
+
if (this.level2[o].f_longitude && this.level2[o].f_latitude){
|
347
|
+
a3.push({
|
348
|
+
lnglat: [this.level2[o].f_longitude,this.level2[o].f_latitude], //点标记位置
|
349
|
+
name: '二级隐患',
|
350
|
+
id:o,
|
351
|
+
rowstr:this.level2[o]
|
352
|
+
})
|
353
|
+
}
|
354
|
+
}
|
355
|
+
// 将数组设置到 massMarks 图层
|
356
|
+
this.level2Mulchs.setData(a3);
|
357
|
+
// 将 massMarks 添加到地图实例
|
358
|
+
this.level2Mulchs.setMap(this.map);
|
359
|
+
|
360
|
+
let a4=[]
|
361
|
+
for(let p=0;p<this.level3.length;p++){
|
362
|
+
if (this.level3[p].f_longitude&&this.level3[p].f_latitude){
|
363
|
+
a4.push({
|
364
|
+
lnglat: [this.level3[p].f_longitude, this.level3[p].f_latitude], //点标记位置
|
365
|
+
name: '三级隐患',
|
366
|
+
id:p,
|
367
|
+
rowstr:this.level3[p]
|
368
|
+
})
|
369
|
+
}
|
370
|
+
}
|
371
|
+
// 将数组设置到 massMarks 图层
|
372
|
+
this.level3Mulchs.setData(a4);
|
373
|
+
// 将 massMarks 添加到地图实例
|
374
|
+
this.level3Mulchs.setMap(this.map);
|
375
|
+
|
376
|
+
|
377
|
+
let a5=[]
|
378
|
+
for(let l=0;l<this.problems.length;l++){
|
379
|
+
if (this.problems[l].f_longitude&&this.problems[l].f_latitude){
|
380
|
+
a5.push({
|
381
|
+
lnglat: [this.problems[l].f_longitude, this.problems[l].f_latitude], //点标记位置
|
382
|
+
name: '普通问题',
|
383
|
+
id:l,
|
384
|
+
rowstr:this.problems[l]
|
385
|
+
})
|
386
|
+
}
|
387
|
+
}
|
388
|
+
// 将数组设置到 massMarks 图层
|
389
|
+
this.problemsMulchs.setData(a5);
|
390
|
+
// 将 massMarks 添加到地图实例
|
391
|
+
this.problemsMulchs.setMap(this.map);
|
392
|
+
//组装安检员点位集合
|
393
|
+
},
|
394
|
+
//处理图层和覆盖物的显示隐藏
|
395
|
+
enableChange(vname,val){
|
396
|
+
//tag
|
397
|
+
//tag
|
398
|
+
switch(vname){
|
399
|
+
case 'satelliteEnable':
|
400
|
+
if(val){
|
401
|
+
this.map.add(this.satellite)
|
402
|
+
}else{
|
403
|
+
this.map.remove(this.satellite)
|
404
|
+
}
|
405
|
+
break;
|
406
|
+
case 'roadNetEnable':
|
407
|
+
if(val){
|
408
|
+
this.map.add(this.roadNet)
|
409
|
+
}else{
|
410
|
+
this.map.remove(this.roadNet)
|
411
|
+
}
|
412
|
+
break;
|
413
|
+
case 'checker':
|
414
|
+
if(val){
|
415
|
+
this.chekckOps.show()
|
416
|
+
}else{
|
417
|
+
this.chekckOps.hide()
|
418
|
+
}
|
419
|
+
break;
|
420
|
+
case 'level1':
|
421
|
+
if(val){
|
422
|
+
this.level1Mulchs.show()
|
423
|
+
}else{
|
424
|
+
this.level1Mulchs.hide()
|
425
|
+
}
|
426
|
+
break;
|
427
|
+
case 'level2':
|
428
|
+
if(val){
|
429
|
+
this.level2Mulchs.show()
|
430
|
+
}else{
|
431
|
+
this.level2Mulchs.hide()
|
432
|
+
}
|
433
|
+
break;
|
434
|
+
case 'level3':
|
435
|
+
if(val){
|
436
|
+
this.level3Mulchs.show()
|
437
|
+
}else{
|
438
|
+
this.level3Mulchs.hide()
|
439
|
+
}
|
440
|
+
break;
|
441
|
+
case 'problems':
|
442
|
+
if(val){
|
443
|
+
this.problemsMulchs.show()
|
444
|
+
}else{
|
445
|
+
this.problemsMulchs.hide()
|
446
|
+
}
|
447
|
+
break;
|
448
|
+
case 'townshipEnable':
|
449
|
+
this.showModal=true
|
450
|
+
this.townshipEnable=true
|
451
|
+
this.city_properEnable=false
|
452
|
+
break;
|
453
|
+
case 'city_properEnable':
|
454
|
+
this.showModal=true
|
455
|
+
this.city_properEnable=true
|
456
|
+
this.townshipEnable=false
|
457
|
+
break;
|
458
|
+
default:
|
459
|
+
}
|
460
|
+
},
|
461
|
+
closeModal(){
|
462
|
+
this.showModal=false
|
463
|
+
this.city_properEnable=false
|
464
|
+
this.townshipEnable=false
|
465
|
+
this.layers.townshipEnable=false
|
466
|
+
this.layers.city_properEnable=false
|
467
|
+
},
|
468
|
+
initMap(){
|
469
|
+
let that=this
|
470
|
+
this.map = new AMap.Map('check_map', {
|
471
|
+
zoom: 12,
|
472
|
+
center: [116.80030599999998, 37.65219],
|
473
|
+
showIndoorMap: false,
|
474
|
+
viewMode: '2D', //设置地图模式
|
475
|
+
lang: 'zh_cn', //设置地图语言类型
|
476
|
+
zindex: 99
|
477
|
+
});
|
478
|
+
|
479
|
+
let bounds = this.map.getBounds();
|
480
|
+
this.map.setLimitBounds(bounds);
|
481
|
+
// 异步加载地图插件
|
482
|
+
AMap.plugin(
|
483
|
+
['AMap.ToolBar','AMap.Geolocation','AMap.Geocoder'], () => {//异步加载插件
|
484
|
+
// 自动定位插件
|
485
|
+
var geolocation = new AMap.Geolocation({
|
486
|
+
// 是否使用高精度定位,默认:true
|
487
|
+
enableHighAccuracy: true,
|
488
|
+
// 设置定位超时时间,默认:无穷大
|
489
|
+
showbutton: true,
|
490
|
+
//控制按钮的显示
|
491
|
+
timeout: 10000,
|
492
|
+
// 定位按钮的停靠位置的偏移量,默认:Pixel(10, 20)
|
493
|
+
buttonOffset: new AMap.Pixel(10, 20),
|
494
|
+
// 定位成功后调整地图视野范围使定位位置及精度范围视野内可见,默认:false
|
495
|
+
//zoomToAccuracy: true,
|
496
|
+
// 定位按钮的排放位置, RB表示右下
|
497
|
+
buttonPosition: 'LB'
|
498
|
+
})
|
499
|
+
that.geocoder = new AMap.Geocoder({
|
500
|
+
radius: 500 //范围,默认:500
|
501
|
+
});
|
502
|
+
that.map.addControl(geolocation)
|
503
|
+
geolocation.getCurrentPosition();
|
504
|
+
that.map.addControl(new AMap.ToolBar()) //初始化工具插件
|
505
|
+
});
|
506
|
+
this.map.setDefaultCursor('move');
|
507
|
+
//this.map.setMapStyle('amap://styles/whitesmoke');
|
508
|
+
this.satellite=new AMap.TileLayer.Satellite()//卫星图层
|
509
|
+
this.roadNet=new AMap.TileLayer.RoadNet({opacity:0.8})//网路图层
|
510
|
+
//安检员位置集合
|
511
|
+
this.chekckOps=new AMap.OverlayGroup()
|
512
|
+
//初始化窗体
|
513
|
+
this.infoWindow = new AMap.InfoWindow({
|
514
|
+
anchor: 'bottom-center',
|
515
|
+
//isCustom: true, //使用自定义窗体
|
516
|
+
autoMove:true,
|
517
|
+
content: '',
|
518
|
+
offset: new AMap.Pixel(0, -25)
|
519
|
+
});
|
520
|
+
//安检员点位
|
521
|
+
/*this.checkerMulchs = new AMap.MassMarks([], {
|
522
|
+
opacity: 0.8, // 图层的透明度,取值范围[0,1],1代表完全不透明,0代表完全透明
|
523
|
+
zIndex: 111, //图层叠加的顺序值,0表示最底层。默认zIndex:5
|
524
|
+
cursor: 'pointer', //指定鼠标悬停时的鼠标样式,自定义cursor,IE仅支持cur/ani/ico格式,Opera不支持自定义cursor
|
525
|
+
//alwaysRender:false,
|
526
|
+
style: this.styleObject[0]
|
527
|
+
});
|
528
|
+
//tag
|
529
|
+
this.checkerMulchs.on('click',function (e) {
|
530
|
+
//tag)
|
531
|
+
let checkAddress='未获取到实时位置'
|
532
|
+
that.geocoder.getAddress(e.data.lnglat, function(status, result) {
|
533
|
+
if (status === 'complete'&& result.regeocode) {
|
534
|
+
checkAddress = result.regeocode.formattedAddress;
|
535
|
+
}else{
|
536
|
+
log.error('根据经纬度查询地址失败')
|
537
|
+
}
|
538
|
+
e.data.rowstr.checkAddress=checkAddress
|
539
|
+
let defectContent=that.getCheckerContent(e.data.rowstr)
|
540
|
+
that.infoWindow.setContent(defectContent)
|
541
|
+
that.infoWindow.open(that.map, e.data.lnglat);
|
542
|
+
});
|
543
|
+
})*/
|
544
|
+
//一级隐患点位
|
545
|
+
this.level1Mulchs=new AMap.MassMarks([], {
|
546
|
+
opacity: 0.8, // 图层的透明度,取值范围[0,1],1代表完全不透明,0代表完全透明
|
547
|
+
zIndex: 111, //图层叠加的顺序值,0表示最底层。默认zIndex:5
|
548
|
+
cursor: 'pointer', //指定鼠标悬停时的鼠标样式,自定义cursor,IE仅支持cur/ani/ico格式,Opera不支持自定义cursor
|
549
|
+
//alwaysRender:false,
|
550
|
+
style: this.styleObject[1]
|
551
|
+
});
|
552
|
+
this.level1Mulchs.on('click',function (e) {
|
553
|
+
//tag)
|
554
|
+
let defectContent=that.getDefectContent(e.data.rowstr)
|
555
|
+
that.infoWindow.setContent(defectContent)
|
556
|
+
that.infoWindow.open(that.map, e.data.lnglat);
|
557
|
+
})
|
558
|
+
//二级隐患点位
|
559
|
+
this.level2Mulchs=new AMap.MassMarks([], {
|
560
|
+
opacity: 0.8, // 图层的透明度,取值范围[0,1],1代表完全不透明,0代表完全透明
|
561
|
+
zIndex: 111, //图层叠加的顺序值,0表示最底层。默认zIndex:5
|
562
|
+
cursor: 'pointer', //指定鼠标悬停时的鼠标样式,自定义cursor,IE仅支持cur/ani/ico格式,Opera不支持自定义cursor
|
563
|
+
//alwaysRender:false,
|
564
|
+
style: this.styleObject[2]
|
565
|
+
});
|
566
|
+
this.level2Mulchs.on('click',function (e) {
|
567
|
+
//tag)
|
568
|
+
let defectContent=that.getDefectContent(e.data.rowstr)
|
569
|
+
that.infoWindow.setContent(defectContent)
|
570
|
+
that.infoWindow.open(that.map, e.data.lnglat);
|
571
|
+
})
|
572
|
+
//三级隐患点位
|
573
|
+
this.level3Mulchs=new AMap.MassMarks([], {
|
574
|
+
opacity: 0.8, // 图层的透明度,取值范围[0,1],1代表完全不透明,0代表完全透明
|
575
|
+
zIndex: 111, //图层叠加的顺序值,0表示最底层。默认zIndex:5
|
576
|
+
cursor: 'pointer', //指定鼠标悬停时的鼠标样式,自定义cursor,IE仅支持cur/ani/ico格式,Opera不支持自定义cursor
|
577
|
+
//alwaysRender:false,
|
578
|
+
style: this.styleObject[3]
|
579
|
+
});
|
580
|
+
this.level3Mulchs.on('click',function (e) {
|
581
|
+
//tag)
|
582
|
+
let defectContent=that.getDefectContent(e.data.rowstr)
|
583
|
+
that.infoWindow.setContent(defectContent)
|
584
|
+
that.infoWindow.open(that.map, e.data.lnglat);
|
585
|
+
})
|
586
|
+
//普通问题点位
|
587
|
+
this.problemsMulchs=new AMap.MassMarks([], {
|
588
|
+
opacity: 0.8, // 图层的透明度,取值范围[0,1],1代表完全不透明,0代表完全透明
|
589
|
+
zIndex: 111, //图层叠加的顺序值,0表示最底层。默认zIndex:5
|
590
|
+
cursor: 'pointer', //指定鼠标悬停时的鼠标样式,自定义cursor,IE仅支持cur/ani/ico格式,Opera不支持自定义cursor
|
591
|
+
//alwaysRender:false,
|
592
|
+
style: this.styleObject[4]
|
593
|
+
});
|
594
|
+
this.problemsMulchs.on('click',function (e) {
|
595
|
+
//tag)
|
596
|
+
let defectContent=that.getDefectContent(e.data.rowstr)
|
597
|
+
that.infoWindow.setContent(defectContent)
|
598
|
+
that.infoWindow.open(that.map, e.data.lnglat);
|
599
|
+
})
|
600
|
+
|
601
|
+
|
602
|
+
},
|
603
|
+
closeInfoWindow(){
|
604
|
+
this.infoWindow.close()
|
605
|
+
},
|
606
|
+
checkerInit(){
|
607
|
+
/*let marker1 = new AMap.Marker({
|
608
|
+
position: [114.574809,33.621501],
|
609
|
+
icon:'http://192.168.20.28:8400/image/anjianyuan.png'
|
610
|
+
});
|
611
|
+
//tag
|
612
|
+
marker1.setLabel({
|
613
|
+
//offset: new AMap.Pixel(20, 20), //设置文本标注偏移量
|
614
|
+
content: "<div class='info' style='background-color: #0b87e2'>何文强</div>", //设置文本标注内容
|
615
|
+
direction: 'bottom' //设置文本标注方位
|
616
|
+
})*/
|
617
|
+
let that = this
|
618
|
+
this.chekckOps.clearOverlays()
|
619
|
+
for(let j=0;j<this.checkers.length;j++){
|
620
|
+
//tag+"---"+this.checkers[j].f_longitude+"---"+this.checkers[j].f_latitude)
|
621
|
+
//let o={f_longitude:"114.72"+(Math.floor(Math.random()*(9999-1000))+1000),f_latitude:"33.56"+(Math.floor(Math.random()*(9999-1000))+1000),name:"hwq3",f_provider:"lbs",f_battery_level:38,f_bearing:"210.0",uploadTime:"2021-11-17 17:28:35",f_signal_strength:4,userid:"141701",f_speed:"0.0",f_internal_quote:8535,f_altitude:"9.72", f_traffic:345865}
|
622
|
+
let marker=new AMap.Marker({
|
623
|
+
//map: that.map,
|
624
|
+
offset:new AMap.Pixel(-18, -10),
|
625
|
+
position: [this.checkers[j].f_longitude,this.checkers[j].f_latitude],
|
626
|
+
icon:new AMap.Icon({
|
627
|
+
image: '/images/anjianyuan.png', //人员图标URL
|
628
|
+
imageOffset: new AMap.Pixel(0, 0), // 图标偏移位置
|
629
|
+
imageSize: new AMap.Size(36, 36) //图标大小
|
630
|
+
}),
|
631
|
+
label:{
|
632
|
+
//offset: new AMap.Pixel(20, 20), //设置文本标注偏移量
|
633
|
+
content: `<div class='info' style='background-color: rgb(0,185,255);color: #ffffff;padding: 5px;border-radius: 4px'>${this.checkers[j].name}</div>`, //设置文本标注内容
|
634
|
+
direction: 'bottom', //设置文本标注方位
|
635
|
+
offset:new AMap.Pixel(0, -4)
|
636
|
+
},
|
637
|
+
extData:this.checkers[j]
|
638
|
+
})
|
639
|
+
this.chekckOps.addOverlay(marker)
|
640
|
+
|
641
|
+
}
|
642
|
+
this.chekckOps.setMap(this.map)
|
643
|
+
this.chekckOps.on('click',function (e) {
|
644
|
+
let pe=e.target.getExtData()
|
645
|
+
for(let obj in pe){
|
646
|
+
//tag
|
647
|
+
}
|
648
|
+
let checkAddress='未获取到实时位置'
|
649
|
+
that.geocoder.getAddress([pe.f_longitude,pe.f_latitude], function(status, result) {
|
650
|
+
if (status === 'complete'&& result.regeocode) {
|
651
|
+
checkAddress = result.regeocode.formattedAddress;
|
652
|
+
}/*else{
|
653
|
+
log.error('根据经纬度查询地址失败')
|
654
|
+
}*/
|
655
|
+
pe.checkAddress=checkAddress
|
656
|
+
let defectContent=that.getCheckerContent(pe)
|
657
|
+
that.infoWindow.setContent(defectContent)
|
658
|
+
that.infoWindow.open(that.map, [pe.f_longitude,pe.f_latitude])
|
659
|
+
})
|
660
|
+
})
|
661
|
+
/*AMap.event.addListener(this.ops, 'click', function (e) {
|
662
|
+
//tag)
|
663
|
+
//that.infoWindow.open(that.map, marker.getPosition());
|
664
|
+
})*/
|
665
|
+
},
|
666
|
+
//获取当前时间的前两个小时
|
667
|
+
getNowFormatDate(house=0) {
|
668
|
+
//tag
|
669
|
+
let date = new Date();
|
670
|
+
let seperator1 = "-";
|
671
|
+
let seperator2 = ":";
|
672
|
+
if(house != 0){
|
673
|
+
date.setHours(date.getHours()-house)
|
674
|
+
}
|
675
|
+
let month = date.getMonth() + 1;
|
676
|
+
let strDate = date.getDate();
|
677
|
+
let hour = date.getHours();
|
678
|
+
let min = date.getMinutes();
|
679
|
+
let second = date.getSeconds();
|
680
|
+
if (month >= 1 && month <= 9) {
|
681
|
+
month = "0" + month;
|
682
|
+
}
|
683
|
+
if (strDate >= 0 && strDate <= 9) {
|
684
|
+
strDate = "0" + strDate;
|
685
|
+
}
|
686
|
+
if (hour >= 0 && hour <= 9) {
|
687
|
+
hour = "0" + hour;
|
688
|
+
}
|
689
|
+
if (min >= 0 && min <= 9) {
|
690
|
+
min = "0" + min;
|
691
|
+
}
|
692
|
+
if (second >= 0 && second <= 9) {
|
693
|
+
second = "0" + second;
|
694
|
+
}
|
695
|
+
let currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
|
696
|
+
+ " " + hour + seperator2 + min
|
697
|
+
+ seperator2 + second;
|
698
|
+
return currentdate;
|
699
|
+
},
|
700
|
+
toStandardTimeString() {
|
701
|
+
let dt = new Date()
|
702
|
+
let month = dt.getMonth()+1
|
703
|
+
let date = dt.getDate()
|
704
|
+
let hour = dt.getHours()
|
705
|
+
let min = dt.getMinutes()
|
706
|
+
let sec = dt.getSeconds()
|
707
|
+
return dt.getFullYear() + '-' + (month<10? '0'+ month : month) + '-' + (date<10? '0'+ date : date)
|
708
|
+
+ ' ' + (hour<10? '0'+ hour : hour)
|
709
|
+
},
|
710
|
+
async safeRefresh(){
|
711
|
+
//tag
|
712
|
+
//获取所有安检员的点位集合-----测试数据
|
713
|
+
/*this.checkers=[]
|
714
|
+
this.checkers.push({f_longitude:114.7318,f_latitude:33.567126,name:"hwq1",f_provider:"lbs",f_battery_level:38,f_bearing:"210.0",uploadTime:"2021-11-17 17:28:35",f_signal_strength:4,userid:"141701",f_speed:"0.0",f_internal_quote:8535,f_altitude:"9.72", f_traffic:345865})
|
715
|
+
this.checkers.push({f_longitude:114.726801,f_latitude:33.566912,name:"hwq2",f_provider:"lbs",f_battery_level:38,f_bearing:"210.0",uploadTime:"2021-11-17 17:28:35",f_signal_strength:4,userid:"141701",f_speed:"0.0",f_internal_quote:8535,f_altitude:"9.72", f_traffic:345865})
|
716
|
+
this.checkers.push({f_longitude:114.723346,f_latitude:33.568932,name:"hwq3",f_provider:"lbs",f_battery_level:38,f_bearing:"210.0",uploadTime:"2021-11-17 17:28:35",f_signal_strength:4,userid:"141701",f_speed:"0.0",f_internal_quote:8535,f_altitude:"9.72", f_traffic:345865})
|
717
|
+
this.checkers.push({f_longitude:114.711741,f_latitude:33.585519,name:"hwq4",f_provider:"lbs",f_battery_level:38,f_bearing:"210.0",uploadTime:"2021-11-17 17:28:35",f_signal_strength:4,userid:"141701",f_speed:"0.0",f_internal_quote:8535,f_altitude:"9.72", f_traffic:345865})
|
718
|
+
this.checkers.push({f_longitude:114.756716,f_latitude:33.594528,name:"hwq5",f_provider:"lbs",f_battery_level:38,f_bearing:"210.0",uploadTime:"2021-11-17 17:28:35",f_signal_strength:4,userid:"141701",f_speed:"0.0",f_internal_quote:8535,f_altitude:"9.72", f_traffic:345865})
|
719
|
+
this.defectList.rows=[]
|
720
|
+
this.defectList.rows.push({"f_longitude":114.661358,"f_latitude":33.596897,"f_checker_name":"hwq2","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})
|
721
|
+
this.defectList.rows.push({"f_longitude":114.659985,"f_latitude":33.62892,"f_checker_name":"hwq3","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})
|
722
|
+
this.defectList.rows.push({"f_longitude":114.634579,"f_latitude":33.616627,"f_checker_name":"hwq4","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})
|
723
|
+
this.defectList.rows.push({"f_longitude":114.690197,"f_latitude":33.604332,"f_checker_name":"hwq5","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})
|
724
|
+
this.defectList.rows.push({"f_longitude":114.690197,"f_latitude":33.604332,"f_checker_name":"hwq5","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})
|
725
|
+
this.defectList.rows.push({"f_longitude":114.690197,"f_latitude":33.604332,"f_checker_name":"hwq5","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})
|
726
|
+
this.defectList.rows.push({"f_longitude":114.690197,"f_latitude":33.604332,"f_checker_name":"hwq5","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})
|
727
|
+
this.defectList.rows.push({"f_longitude":114.690197,"f_latitude":33.604332,"f_checker_name":"hwq5","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})
|
728
|
+
this.defectList.rows.push({"f_longitude":114.690197,"f_latitude":33.604332,"f_checker_name":"hwq5","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})
|
729
|
+
this.defectList.rows.push({"f_longitude":114.690197,"f_latitude":33.604332,"f_checker_name":"hwq5","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})*/
|
730
|
+
await this.getNewData()
|
731
|
+
this.assemblyData()
|
732
|
+
}
|
733
|
+
},
|
734
|
+
computed:{
|
735
|
+
|
736
|
+
},
|
737
|
+
destroyed(){
|
738
|
+
window.clearInterval(this.intervalNum)
|
739
|
+
}
|
740
|
+
}
|
741
|
+
|
742
|
+
</script>
|
743
|
+
|
744
|
+
<style lang="less" scoped>
|
745
|
+
|
746
|
+
.safe_checkbox_sty{
|
747
|
+
vertical-align:text-bottom;
|
748
|
+
margin-right: 3px;
|
749
|
+
|
750
|
+
}
|
751
|
+
.safe_ul_sty{
|
752
|
+
list-style-type: none;
|
753
|
+
font-size: 13px;
|
754
|
+
padding-left: 5px;
|
755
|
+
}
|
756
|
+
.safe_li_sty{
|
757
|
+
font-size: 13px;
|
758
|
+
margin-top: 5px;
|
759
|
+
}
|
760
|
+
.safe_p{
|
761
|
+
white-space: nowrap;
|
762
|
+
overflow: hidden;
|
763
|
+
text-overflow: ellipsis;
|
764
|
+
margin: 0 0 0 10px;
|
765
|
+
|
766
|
+
font-size: 12px;
|
767
|
+
}
|
768
|
+
.safe_list_li{
|
769
|
+
margin-top: 5px;
|
770
|
+
background-color: #ffffff;
|
771
|
+
border: solid 1px #f0f4fa !important;
|
772
|
+
color: #666666 !important;
|
773
|
+
font-size: 1.3rem !important;
|
774
|
+
font-family: PINGFANG-MEDIUM !important;
|
775
|
+
padding: 8px;
|
776
|
+
}
|
777
|
+
.safe_list_li:hover{
|
778
|
+
background-color: rgb(203,234,241);
|
779
|
+
}
|
780
|
+
.safe_deimg{
|
781
|
+
vertical-align: text-bottom;
|
782
|
+
width: 15px;
|
783
|
+
margin-right: 3px;
|
784
|
+
}
|
785
|
+
</style>
|
786
|
+
|