safecheck-client 3.0.30-61-t1 → 3.0.30-61-t3
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/package.json +2 -2
- package/src/components/CheckerCount/CheckCountUserList.vue +2 -2
- package/src/components/CheckerCount/ZhouKouCheckCount.vue +3 -3
- package/src/components/DefectDealMain/DefectListNew.vue +1 -1
- package/src/components/DefectDealMain/DefectPaperNew.vue +4 -4
- package/src/components/ExportExcel.vue +342 -340
- package/src/components/NewDefectList/DefectListNew.vue +1 -1
- package/src/components/NewDefectList/DefectPaperNew.vue +3 -3
- package/src/components/android/ClockIn.vue +1 -1
- package/src/components/android/DoorService.vue +1 -1
- package/src/components/callincheck/CallInPlan.vue +148 -148
- package/src/components/checkplan/CheckDetail.vue +4 -4
- package/src/components/checkplan/SelectCheckPlan.vue +2 -2
- package/src/components/createcheckplan/CreatePlan.vue +4 -4
- package/src/components/createcheckplan/CreatePlanWuan.vue +5 -5
- package/src/components/createcheckplan/DelPlanRepeat.vue +4 -4
- package/src/components/createcheckplan/PlanList.vue +2 -2
- package/src/components/createcheckplan/PlanUersList.vue +2 -2
- package/src/components/defect/DefectPaper.vue +4 -4
- package/src/components/defect/DefectPaperWeiXiu.vue +4 -4
- package/src/components/defects/AddDefectModal.vue +120 -120
- package/src/components/defects/AddDevice.vue +95 -95
- package/src/components/defects/CheckPaperSearch.vue +349 -349
- package/src/components/defects/DefectSeting.vue +1 -1
- package/src/components/defects/DevicesSeting.vue +106 -106
- package/src/components/equipment/CheckRate.vue +4 -4
- package/src/components/equipment/CheckerRate.vue +4 -4
- package/src/components/equipment/MonthCheckRate.vue +4 -4
- package/src/components/filialCircle/AddCircleFiliale.vue +114 -114
- package/src/components/inspections/InspectionList.vue +2 -2
- package/src/components/inspections/InspectionLists.vue +2 -2
- package/src/components/inspections/InspectionListss.vue +2 -2
- package/src/components/issueplan/IssuePlanAction.vue +1 -1
- package/src/components/levelplan/AdjustPlan.vue +1 -1
- package/src/components/levelplan/CheckerLeft.vue +1 -1
- package/src/components/levelplan/CheckerPlanAdjust.vue +2 -2
- package/src/components/levelplan/CheckerRight.vue +1 -1
- package/src/components/map/AMapTrailShowZk.vue +185 -185
- package/src/components/map/FootPrintList.vue +1 -1
- package/src/components/map/PersonTrack.vue +1 -1
- package/src/components/metterfiles/AddUserfiles.vue +246 -246
- package/src/components/metterfiles/MetterFiles.vue +1 -1
- package/src/components/metterfiles/MetterfilesChange.vue +162 -162
- package/src/components/metterfiles/UserFiles.vue +1 -1
- package/src/components/metterfiles/Userfileschange.vue +2 -2
- package/src/components/noplan/NoPlanSearchUser.vue +4 -4
- package/src/components/olddata/OldPaperList.vue +2 -2
- package/src/components/paper/PaperList.vue +2 -2
- package/src/components/paper/RepairVerifyForm.vue +76 -76
- package/src/components/paper/VerifyForm.vue +107 -107
- package/src/components/paper/filialeCheckInfo.vue +2 -2
- package/src/components/pc/AddToCheckBook.vue +2 -2
- package/src/components/pc/CheckBook.vue +1 -1
- package/src/components/pc/CheckBookDetails.vue +194 -194
- package/src/components/pc/CheckBookList.vue +3 -3
- package/src/components/pc/CheckBookSearchArea.vue +4 -4
- package/src/components/pc/CheckBookSearchUser.vue +4 -4
- package/src/components/pc/CheckBookSearchUserList.vue +1 -1
- package/src/components/pc/CheckNoDetail.vue +2 -2
- package/src/components/pc/DefectDeal.vue +2 -2
- package/src/components/pc/Edit.vue +126 -126
- package/src/components/pc/NewCheckpaper.vue +34 -31
- package/src/components/pc/PaperChazhiMain.vue +2 -2
- package/src/components/pc/PaperDefectMain.vue +2 -2
- package/src/components/pc/PaperEdit.vue +2 -2
- package/src/components/pc/PaperVisitMain.vue +2 -2
- package/src/components/pc/SafeVisitHistory.vue +2 -2
- package/src/components/pc/SafecheckDeviceList.vue +2 -2
- package/src/components/pc/SelectCheckNoPlan.vue +3 -3
- package/src/components/pc/SelectCheckPlanAndNoPLan.vue +2 -2
- package/src/components/planmanage/checkPlanList.vue +2 -2
- package/src/components/planmanage/checkUserList.vue +3 -3
- package/src/components/querycheckpaper/CheckSearchUser.vue +5 -5
- package/src/components/querycheckpaper/CheckSearchUserNew.vue +5 -5
- package/src/components/querycheckpaper/ShebeiSearchUser.vue +4 -4
- package/src/components/report/CheckPlanAreaList.vue +2 -2
- package/src/components/report/CheckPlanUserList.vue +2 -2
- package/src/components/report/NoCheckplanSafecheck.vue +2 -2
- package/src/components/rongcheng/CheckSearchArea.vue +2 -2
- package/src/components/rongcheng/CheckSearchUser.vue +2 -2
- package/src/components/rongcheng/CheckSearchUserNo.vue +2 -2
- package/src/components/rongcheng/CheckUserList.vue +2 -2
- package/src/components/rongcheng/DefectPaper.vue +4 -4
- package/src/components/rongcheng/PaperListAJ.vue +2 -2
- package/src/components/rongcheng/PaperListNPAJ.vue +2 -2
- package/src/components/rongcheng/PaperListNPSQ.vue +2 -2
- package/src/components/rongcheng/PaperListSQ.vue +2 -2
- package/src/components/rongcheng/checkerplan/SelectCheckPlan.vue +2 -2
- package/src/components/rongcheng/report/CheckPlanUserList.vue +4 -4
- package/src/components/shaoguan/CheckPlanUserList.vue +2 -2
- package/src/components/shaoguan/DefectPaper.vue +2 -2
- package/src/components/shaoguan/PaperList.vue +3 -3
- package/src/components/userfile/UserFile.vue +1 -1
- package/src/components/userfile/UserInfoAudit.vue +2 -2
- package/src/components/userfile/UserfileChange.vue +1 -1
- package/src/components/userfileaudit/UserfileChangeaudit.vue +1 -1
- package/src/filiale/ALshan/pc/CheckSearchUser.vue +4 -4
- package/src/filiale/ALshan/pc/checkUserList.vue +3 -3
- package/src/filiale/ancheng/pc/PaperList.vue +3 -3
- package/src/filiale/ankangyihua/pc/CheckPlanAreaList.vue +2 -2
- package/src/filiale/ankangyihua/pc/CheckSearchUser.vue +5 -5
- package/src/filiale/ankangyihua/pc/DefectPaperWeiXiu.vue +4 -4
- package/src/filiale/ankangyihua/pc/NewCheckpaper.vue +1 -1
- package/src/filiale/ankangyihua/pc/PaperDefectMain.vue +2 -2
- package/src/filiale/ankangyihua/pc/PaperList.vue +3 -3
- package/src/filiale/ankangyihua/pc/checkUserList.vue +3 -3
- package/src/filiale/bayan/pc/PaperList.vue +3 -3
- package/src/filiale/fugou/pc/PaperList.vue +2 -2
- package/src/filiale/fugu/pc/CheckSearchUser.vue +5 -5
- package/src/filiale/fugu/pc/SelectCheckPlan.vue +2 -2
- package/src/filiale/fugu/pc/planmanage/checkUserList.vue +3 -3
- package/src/filiale/ganquan/pc/DefectPaperNew.vue +2 -2
- package/src/filiale/ganquan/pc/PaperList.vue +3 -3
- package/src/filiale/ganquan/pc/PaperVisitMain.vue +2 -2
- package/src/filiale/ganquan/pc/SelectCheckPlan.vue +2 -2
- package/src/filiale/ganquan/pc/checkUserList.vue +3 -3
- package/src/filiale/gehua/pc/PaperList.vue +2 -2
- package/src/filiale/gehua/pc/checkUserList.vue +3 -3
- package/src/filiale/guangxi/pc/CheckPlanAreaList.vue +2 -2
- package/src/filiale/guangxi/pc/DefectListNew.vue +1 -1
- package/src/filiale/guangxi/pc/DefectPaperNew.vue +3 -3
- package/src/filiale/hanzhong/pc/CheckSearchUser.vue +5 -5
- package/src/filiale/hanzhong/pc/CheckUserList.vue +3 -3
- package/src/filiale/hanzhong/pc/PaperList.vue +3 -3
- package/src/filiale/huatong/pc/PaperDefectMain.vue +2 -2
- package/src/filiale/huatong/pc/PaperList.vue +3 -3
- package/src/filiale/huayin/pc/PaperList.vue +3 -3
- package/src/filiale/jiaocheng/pc/CheckSearchUser.vue +5 -5
- package/src/filiale/jiaocheng/pc/DefectListNew.vue +1 -1
- package/src/filiale/jinbin/pc/CheckPlanAreaList.vue +2 -2
- package/src/filiale/jingyang/pc/CheckSearchUser.vue +5 -5
- package/src/filiale/jingyang/pc/PaperList.vue +3 -3
- package/src/filiale/kelai/pc/CheckPlanAreaList.vue +2 -2
- package/src/filiale/kelai/pc/CheckSearchUser.vue +5 -5
- package/src/filiale/kelai/pc/DefectListNew.vue +1 -1
- package/src/filiale/kelai/pc/DefectPaperNew.vue +3 -3
- package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasList.vue +1 -1
- package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasPaper.vue +3 -3
- package/src/filiale/kelai/pc/PaperList.vue +3 -3
- package/src/filiale/kelai/pc/checkUserList.vue +3 -3
- package/src/filiale/liaoyuan/pc/CheckSearchUser.vue +2 -2
- package/src/filiale/liaoyuan/pc/DefectPaperWeiXiu.vue +2 -2
- package/src/filiale/liaoyuan/pc/PaperList.vue +1 -1
- package/src/filiale/lixian/pc/CheckPlanAreaList.vue +2 -2
- package/src/filiale/lixian/pc/CheckSearchUser.vue +4 -4
- package/src/filiale/lixian/pc/PaperChazhiMain.vue +2 -2
- package/src/filiale/lixian/pc/PaperDefectMain.vue +2 -2
- package/src/filiale/lixian/pc/PaperList.vue +3 -3
- package/src/filiale/lixian/pc/checkPlanList.vue +2 -2
- package/src/filiale/lixian/pc/checkUserList.vue +3 -3
- package/src/filiale/minsheng/pc/CheckSearchUser.vue +5 -5
- package/src/filiale/minsheng/pc/DefectListNew.vue +1 -1
- package/src/filiale/minsheng/pc/checkUserList.vue +3 -3
- package/src/filiale/pingxiang/pc/DefectListNew.vue +1 -1
- package/src/filiale/pingxiang/pc/DefectPaperNew.vue +3 -3
- package/src/filiale/pingxiang/pc/PaperList.vue +3 -3
- package/src/filiale/qianneng/pc/DefectListNew.vue +1 -1
- package/src/filiale/qianneng/pc/DefectPaperNew.vue +3 -3
- package/src/filiale/qianneng/pc/NoCheckplanSafecheck.vue +2 -2
- package/src/filiale/qianneng/pc/PaperList.vue +3 -3
- package/src/filiale/qianneng/pc/checkPlanList.vue +4 -4
- package/src/filiale/qianneng/pc/checkUserList.vue +5 -5
- package/src/filiale/qingjian/pc/PaperDefectMain.vue +2 -2
- package/src/filiale/qingtongxia/pc/DefectListNew.vue +1 -1
- package/src/filiale/qingtongxia/pc/PaperDefectMain.vue +2 -2
- package/src/filiale/rizhao/pc/PaperList.vue +3 -3
- package/src/filiale/rongchuang/pc/checkUserList.vue +3 -3
- package/src/filiale/shanxian/pc/CheckDetail.vue +4 -4
- package/src/filiale/shanxian/pc/CheckSearchUser.vue +5 -5
- package/src/filiale/shanxian/pc/DefectPaperNew.vue +4 -4
- package/src/filiale/shanxian/pc/SelectCheckPlan.vue +2 -2
- package/src/filiale/shanxian/pc/checkUserList.vue +3 -3
- package/src/filiale/shaoguan/pc/PaperList.vue +2 -2
- package/src/filiale/shexian/pc/DefectListNew.vue +1 -1
- package/src/filiale/shexian/pc/DefectPaperNew.vue +3 -3
- package/src/filiale/shexian/pc/PaperDefectMain.vue +2 -2
- package/src/filiale/shimen/pc/CheckPlanAreaList.vue +2 -2
- package/src/filiale/shimen/pc/CheckSearchUser.vue +4 -4
- package/src/filiale/shimen/pc/PaperDefectMain.vue +2 -2
- package/src/filiale/shimen/pc/PaperList.vue +2 -2
- package/src/filiale/shiquan/pc/checkUserList.vue +3 -3
- package/src/filiale/tianke/pc/DefectListNew.vue +1 -1
- package/src/filiale/tianke/pc/PaperDefectMain.vue +2 -2
- package/src/filiale/tongchuan/pc/CheckBookDetails.vue +1 -1
- package/src/filiale/tongchuan/pc/CheckBookList.vue +3 -3
- package/src/filiale/tongchuan/pc/CheckDetail.vue +4 -4
- package/src/filiale/tongchuan/pc/CheckPlanAreaList.vue +2 -2
- package/src/filiale/tongchuan/pc/CheckPlanUserList.vue +2 -2
- package/src/filiale/tongchuan/pc/CheckSearchUser.vue +4 -4
- package/src/filiale/tongchuan/pc/DefectPaper.vue +2 -2
- package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +4 -4
- package/src/filiale/tongchuan/pc/NoCheckplanSafecheck.vue +2 -2
- package/src/filiale/tongchuan/pc/PaperDefectMain.vue +2 -2
- package/src/filiale/tongchuan/pc/PaperList.vue +2 -2
- package/src/filiale/tongchuan/pc/SelectCheckPlan.vue +2 -2
- package/src/filiale/tongchuan/pc/checkUserList.vue +3 -3
- package/src/filiale/weinan/pc/CheckBook.vue +1 -1
- package/src/filiale/weinan/pc/CheckBookDetails.vue +194 -194
- package/src/filiale/weinan/pc/CheckBookList.vue +3 -3
- package/src/filiale/weinan/pc/CheckBookSearchUser.vue +4 -4
- package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +1 -1
- package/src/filiale/weinan/pc/CheckDetail.vue +4 -4
- package/src/filiale/weinan/pc/CheckDetailOutHelp.vue +4 -4
- package/src/filiale/weinan/pc/CheckNoDetail.vue +4 -4
- package/src/filiale/weinan/pc/CheckPlanUserList.vue +2 -2
- package/src/filiale/weinan/pc/DefectPaperNew.vue +2 -2
- package/src/filiale/weinan/pc/HiddenSituation.vue +167 -167
- package/src/filiale/weinan/pc/PaperDefectMain.vue +3 -3
- package/src/filiale/weinan/pc/PaperList.vue +3 -3
- package/src/filiale/weinan/pc/PersonTrack.vue +1 -1
- package/src/filiale/weinan/pc/SelectCheckNoPlan.vue +3 -3
- package/src/filiale/weinan/pc/SelectCheckPlan.vue +3 -3
- package/src/filiale/weinan/pc/SelectCheckPlanOutHelp.vue +3 -3
- package/src/filiale/weinan/pc/checkPlanList.vue +2 -2
- package/src/filiale/weinan/pc/checkUserList.vue +3 -3
- package/src/filiale/weinanct/pc/PaperList.vue +3 -3
- package/src/filiale/wensu/pc/CheckDetail.vue +4 -4
- package/src/filiale/wensu/pc/CheckSearchUser.vue +6 -6
- package/src/filiale/wensu/pc/DefectListNew.vue +1 -1
- package/src/filiale/wensu/pc/DefectPaperNew.vue +3 -3
- package/src/filiale/wensu/pc/SelectCheckPlan.vue +2 -2
- package/src/filiale/wensu/pc/checkUserList.vue +3 -3
- package/src/filiale/wenxi/pc/CheckPlanAreaList.vue +2 -2
- package/src/filiale/wenxi/pc/CheckPlanUserList.vue +2 -2
- package/src/filiale/wenxi/pc/CheckSearchUser.vue +5 -5
- package/src/filiale/wenxi/pc/DefectPaper.vue +4 -4
- package/src/filiale/wenxi/pc/PaperDefectMain.vue +2 -2
- package/src/filiale/wenxi/pc/PaperList.vue +4 -4
- package/src/filiale/wenxi/pc/checkPlanList.vue +4 -4
- package/src/filiale/wenxi/pc/checkUserList.vue +3 -3
- package/src/filiale/wuan/pc/DefectPaperWeiXiu.vue +4 -4
- package/src/filiale/wuan/pc/PaperList.vue +2 -2
- package/src/filiale/wuhai/pc/CheckSearchUser.vue +4 -4
- package/src/filiale/wuhai/pc/checkUserList.vue +3 -3
- package/src/filiale/xinkang/pc/CheckPlanAreaList.vue +2 -2
- package/src/filiale/xinkang/pc/CheckPlanUserList.vue +2 -2
- package/src/filiale/xinkang/pc/CheckSearchUser.vue +4 -4
- package/src/filiale/xinkang/pc/DefectPaperWeiXiu.vue +4 -4
- package/src/filiale/xinkang/pc/PaperDefectMain.vue +2 -2
- package/src/filiale/xinkang/pc/PaperList.vue +3 -3
- package/src/filiale/xinkang/pc/checkUserList.vue +3 -3
- package/src/filiale/yangchunboneng/pc/AddToCheckBook.vue +3 -3
- package/src/filiale/yangchunboneng/pc/CheckBook.vue +1 -1
- package/src/filiale/yangchunboneng/pc/CheckBookDetails.vue +213 -213
- package/src/filiale/yangchunboneng/pc/CheckBookList.vue +3 -3
- package/src/filiale/yangchunboneng/pc/CheckBookSearchUser.vue +4 -4
- package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +2 -2
- package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +2 -2
- package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +5 -5
- package/src/filiale/yangchunboneng/pc/DefectListNew.vue +1 -1
- package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +3 -3
- package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +2 -2
- package/src/filiale/yangchunboneng/pc/PaperList.vue +3 -3
- package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +2 -2
- package/src/filiale/yongzhou/pc/PaperList.vue +2 -2
- package/src/filiale/yongzhou/pc/checkUserList.vue +3 -3
- package/src/filiale/yongzhou/pc/communityDetail.vue +2 -2
- package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +2 -2
- package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +2 -2
- package/src/filiale/yongzhou/pc/safeDetail.vue +2 -2
- package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +2 -2
- package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +2 -2
- package/src/filiale/yuansheng/pc/DefectListNew.vue +1 -1
- package/src/filiale/yuansheng/pc/PaperList.vue +3 -3
- package/src/filiale/yunchengminsheng/pc/checkUserList.vue +3 -3
- package/src/filiale/zhongsheng/pc/CheckPlanAreaList.vue +2 -2
- package/src/filiale/zhongsheng/pc/DefectPaperWeiXiu.vue +4 -4
- package/src/filiale/zhongsheng/pc/PaperList.vue +3 -3
- package/src/filiale/zhongyi/pc/DefectListNew.vue +1 -1
- package/src/filiale/zhoukou/pc/CheckSearchUser.vue +4 -4
- package/src/filiale/zhoukou/pc/PaperDefectMain.vue +2 -2
- package/src/plugins/LoadCheckParams.js +59 -59
@@ -1,340 +1,342 @@
|
|
1
|
-
<template>
|
2
|
-
<button v-show="isshow" class="button_export button_spacing" @click.prevent='exportExcel()'
|
3
|
-
:id="'vc-exportexcel-'+attach">{{ btnName }}
|
4
|
-
</button>
|
5
|
-
<modal :show.sync="show" v-ref:modal backdrop="false">
|
6
|
-
<header slot="modal-header" class="modal-header text-center">
|
7
|
-
<div v-show="!progressShow">
|
8
|
-
<h4 class="modal-title">导出列选择</h4>
|
9
|
-
<input type="checkbox" class="" id="f_operator" v-model="all">
|
10
|
-
<label for="f_operator" class="font-size">全选</label>
|
11
|
-
</div>
|
12
|
-
<div v-show="progressShow">
|
13
|
-
<h4 class="modal-title">导出中,请耐心等待...</h4>
|
14
|
-
</div>
|
15
|
-
</header>
|
16
|
-
<article slot="modal-body">
|
17
|
-
<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;" v-show="!progressShow">
|
18
|
-
<div class="col-sm-4" v-for="f in fields">
|
19
|
-
<input type="checkbox" class="" :id="'export-col-'+$index" v-model="modelval" :value="$key">
|
20
|
-
<label :for="'export-col-'+$index" class="font-size">{{ f }}</label>
|
21
|
-
</div>
|
22
|
-
</div>
|
23
|
-
<div class="progress" style="margin: 20px" v-show="progressShow">
|
24
|
-
<div class="progress-bar progress-bar-success progress-bar-striped active" :style="{width: percent}">
|
25
|
-
{{ percent }}
|
26
|
-
</div>
|
27
|
-
</div>
|
28
|
-
</article>
|
29
|
-
<footer slot="modal-footer" class="modal-footer">
|
30
|
-
<center>
|
31
|
-
<button v-show="show" type="button" class="btn btn-default" @click='close()'>取消</button>
|
32
|
-
<button v-show="show && !progressShow" type="button" class="btn btn-success" @click='export()'>导出</button>
|
33
|
-
</center>
|
34
|
-
</footer>
|
35
|
-
</modal>
|
36
|
-
</template>
|
37
|
-
|
38
|
-
<script>
|
39
|
-
import co from 'co'
|
40
|
-
import {HttpResetClass} from 'vue-client'
|
41
|
-
import Vue from "vue";
|
42
|
-
|
43
|
-
let postGen = function* (self) {
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
}
|
90
|
-
|
91
|
-
|
92
|
-
self.
|
93
|
-
self.
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
//
|
100
|
-
//
|
101
|
-
//
|
102
|
-
//
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
//
|
117
|
-
|
118
|
-
//
|
119
|
-
|
120
|
-
//
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
//
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
}
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
//
|
227
|
-
//
|
228
|
-
//
|
229
|
-
//
|
230
|
-
//
|
231
|
-
//
|
232
|
-
//
|
233
|
-
//
|
234
|
-
//
|
235
|
-
//
|
236
|
-
//
|
237
|
-
//
|
238
|
-
// //
|
239
|
-
//
|
240
|
-
//
|
241
|
-
this.
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
this.
|
263
|
-
this.
|
264
|
-
this.
|
265
|
-
this.
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
//
|
271
|
-
this.
|
272
|
-
//
|
273
|
-
this.
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
//
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
//
|
299
|
-
let path = item.filename
|
300
|
-
//
|
301
|
-
let
|
302
|
-
//
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
link.
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
this.modelval =
|
333
|
-
}
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
}
|
340
|
-
|
1
|
+
<template>
|
2
|
+
<button v-show="isshow" class="button_export button_spacing" @click.prevent='exportExcel()'
|
3
|
+
:id="'vc-exportexcel-'+attach">{{ btnName }}
|
4
|
+
</button>
|
5
|
+
<modal :show.sync="show" v-ref:modal backdrop="false">
|
6
|
+
<header slot="modal-header" class="modal-header text-center">
|
7
|
+
<div v-show="!progressShow">
|
8
|
+
<h4 class="modal-title">导出列选择</h4>
|
9
|
+
<input type="checkbox" class="" id="f_operator" v-model="all">
|
10
|
+
<label for="f_operator" class="font-size">全选</label>
|
11
|
+
</div>
|
12
|
+
<div v-show="progressShow">
|
13
|
+
<h4 class="modal-title">导出中,请耐心等待...</h4>
|
14
|
+
</div>
|
15
|
+
</header>
|
16
|
+
<article slot="modal-body">
|
17
|
+
<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;" v-show="!progressShow">
|
18
|
+
<div class="col-sm-4" v-for="f in fields">
|
19
|
+
<input type="checkbox" class="" :id="'export-col-'+$index" v-model="modelval" :value="$key">
|
20
|
+
<label :for="'export-col-'+$index" class="font-size">{{ f }}</label>
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
<div class="progress" style="margin: 20px" v-show="progressShow">
|
24
|
+
<div class="progress-bar progress-bar-success progress-bar-striped active" :style="{width: percent}">
|
25
|
+
{{ percent }}
|
26
|
+
</div>
|
27
|
+
</div>
|
28
|
+
</article>
|
29
|
+
<footer slot="modal-footer" class="modal-footer">
|
30
|
+
<center>
|
31
|
+
<button v-show="show" type="button" class="btn btn-default" @click='close()'>取消</button>
|
32
|
+
<button v-show="show && !progressShow" type="button" class="btn btn-success" @click='export()'>导出</button>
|
33
|
+
</center>
|
34
|
+
</footer>
|
35
|
+
</modal>
|
36
|
+
</template>
|
37
|
+
|
38
|
+
<script>
|
39
|
+
import co from 'co'
|
40
|
+
import {HttpResetClass} from 'vue-client'
|
41
|
+
import Vue from "vue";
|
42
|
+
|
43
|
+
let postGen = function* (self) {
|
44
|
+
// 如果请求以 api 开头,说明是 v4 请求,直接用返回结果下载文件
|
45
|
+
let v4Export = self.sqlurl.indexOf('api') === 0 && self.$appdata.getSingleValue('v4后台')
|
46
|
+
try {
|
47
|
+
let p = {}
|
48
|
+
// 判断如果有field,说明表头为自动生成,否则为模板导出
|
49
|
+
if (self.exporthead) {
|
50
|
+
if (self.sqlName) {
|
51
|
+
p = yield self.$resetpost(self.sqlurl, {
|
52
|
+
data: {
|
53
|
+
body: {
|
54
|
+
header: self.header,
|
55
|
+
footer: self.footer,
|
56
|
+
sumName: self.sumname,
|
57
|
+
data: self.data,
|
58
|
+
field: self.exporthead,
|
59
|
+
templateName: self.templateName,
|
60
|
+
sqlName: self.sqlName,
|
61
|
+
uuid: self.uuid
|
62
|
+
},
|
63
|
+
bean: self.bean
|
64
|
+
}
|
65
|
+
}, {resolveMsg: null, rejectMsg: null}, 1000)
|
66
|
+
} else if (self.pathName) {
|
67
|
+
p = yield self.$resetpost(self.sqlurl, {
|
68
|
+
data: {
|
69
|
+
body: {
|
70
|
+
sumName: self.sumname,
|
71
|
+
data: self.data,
|
72
|
+
field: self.exporthead,
|
73
|
+
templateName: self.templateName,
|
74
|
+
pathName: self.pathName,
|
75
|
+
uuid: self.uuid
|
76
|
+
},
|
77
|
+
bean: self.bean
|
78
|
+
}
|
79
|
+
}, {resolveMsg: null, rejectMsg: null}, 0)
|
80
|
+
}
|
81
|
+
} else {
|
82
|
+
p = yield self.$resetpost(self.sqlurl, {
|
83
|
+
data: {
|
84
|
+
body: {sumName: self.sumname, data: self.data, total: self.total, uuid: self.uuid},
|
85
|
+
bean: self.bean
|
86
|
+
}
|
87
|
+
}, {resolveMsg: null, rejectMsg: null}, 0)
|
88
|
+
}
|
89
|
+
} catch (e) {
|
90
|
+
console.error(e)
|
91
|
+
}
|
92
|
+
self.modelval = []
|
93
|
+
self.fields = {}
|
94
|
+
self.exporthead = []
|
95
|
+
self.progressQuery()
|
96
|
+
}
|
97
|
+
|
98
|
+
export default {
|
99
|
+
//uuid:需要导出的Excel对应的key
|
100
|
+
// data:sql需要的替换字段
|
101
|
+
// sqlurl:导出Excel查询的sql语句
|
102
|
+
// field:需要导出Excel的字段名和对应中文名或hbm配置文件名(全名)
|
103
|
+
// total:统计字段(统计行)
|
104
|
+
// props: ['data', 'sqlurl', 'field', 'total', 'bean', 'chooseCol','sumName'],
|
105
|
+
data() {
|
106
|
+
return {
|
107
|
+
uuid: '',
|
108
|
+
show: false,
|
109
|
+
all: false,
|
110
|
+
fields: {},
|
111
|
+
modelval: [],
|
112
|
+
// 表头
|
113
|
+
exporthead: [],
|
114
|
+
selftotal: [],
|
115
|
+
// sumName:[],
|
116
|
+
// 进度条显示
|
117
|
+
progressShow: false,
|
118
|
+
// 进度百分比
|
119
|
+
percent: '0%',
|
120
|
+
// 定时器
|
121
|
+
timer: null,
|
122
|
+
// 请求对象
|
123
|
+
HttpReset: new HttpResetClass()
|
124
|
+
}
|
125
|
+
},
|
126
|
+
props: {
|
127
|
+
// 表头
|
128
|
+
header: {},
|
129
|
+
// 表尾
|
130
|
+
footer: {},
|
131
|
+
sumname: {},
|
132
|
+
data: {},
|
133
|
+
sqlurl: {
|
134
|
+
type: String
|
135
|
+
},
|
136
|
+
field: {},
|
137
|
+
total: {},
|
138
|
+
bean: {
|
139
|
+
type: String
|
140
|
+
},
|
141
|
+
progress: {
|
142
|
+
type: String,
|
143
|
+
default: 'getExportProgress'
|
144
|
+
},
|
145
|
+
btnName: {
|
146
|
+
type: String,
|
147
|
+
default: '导出Excel'
|
148
|
+
},
|
149
|
+
templateName: {
|
150
|
+
type: String
|
151
|
+
},
|
152
|
+
sqlName: {
|
153
|
+
type: String
|
154
|
+
},
|
155
|
+
pathName: {
|
156
|
+
type: String
|
157
|
+
},
|
158
|
+
attach: {
|
159
|
+
type: String,
|
160
|
+
default: 'name'
|
161
|
+
},
|
162
|
+
chooseCol: {
|
163
|
+
type: Boolean,
|
164
|
+
default: false
|
165
|
+
},
|
166
|
+
isshow: {
|
167
|
+
type: Boolean,
|
168
|
+
default: true
|
169
|
+
},
|
170
|
+
defaultselect: [],
|
171
|
+
chooserow: {
|
172
|
+
type: Boolean,
|
173
|
+
default: false
|
174
|
+
}
|
175
|
+
},
|
176
|
+
beforeDestroy() {
|
177
|
+
this.closeTimer()
|
178
|
+
},
|
179
|
+
methods: {
|
180
|
+
|
181
|
+
exportExcel() {
|
182
|
+
//tag
|
183
|
+
if (this.field) {
|
184
|
+
if (this.chooseCol === true) {
|
185
|
+
this.fields = this.field
|
186
|
+
this.show = true;
|
187
|
+
// //
|
188
|
+
if (this.defaultselect != null && this.defaultselect) {
|
189
|
+
for (var item in this.defaultselect) {
|
190
|
+
this.modelval.push(item)
|
191
|
+
}
|
192
|
+
if (this.chooserow) {
|
193
|
+
this.export()
|
194
|
+
}
|
195
|
+
}
|
196
|
+
|
197
|
+
} else {
|
198
|
+
this.data.items = '*'
|
199
|
+
Object.keys(this.field).forEach((key) => {
|
200
|
+
this.exporthead.push(key + ':' + this.field[key])
|
201
|
+
})
|
202
|
+
this.post()
|
203
|
+
}
|
204
|
+
} else {
|
205
|
+
this.post()
|
206
|
+
}
|
207
|
+
},
|
208
|
+
export() {
|
209
|
+
if (this.$login.r.includes('限制导出')) {
|
210
|
+
this.$showMessage('你被限制导出, 请联系管理员')
|
211
|
+
return
|
212
|
+
}
|
213
|
+
// 获取导出选择的表头和列
|
214
|
+
let temp = ''
|
215
|
+
this.modelval.forEach((item) => {
|
216
|
+
temp = temp + item + ','
|
217
|
+
this.exporthead.push(item + ':' + this.field[item])
|
218
|
+
//this.exporthead[item] = this.field[item]
|
219
|
+
})
|
220
|
+
temp = temp.slice(0, temp.length - 1)
|
221
|
+
//tag
|
222
|
+
this.data.items = temp
|
223
|
+
this.post()
|
224
|
+
},
|
225
|
+
post() {
|
226
|
+
// if(this.total) {
|
227
|
+
//
|
228
|
+
// var temp={"合计":"合计"}
|
229
|
+
// for (var a in this.field) {
|
230
|
+
// for (var b in this.total) {
|
231
|
+
// if(a==b){
|
232
|
+
// temp[a]=this.total[a]
|
233
|
+
// }
|
234
|
+
// }
|
235
|
+
// }
|
236
|
+
// this.selftotal.push(temp)
|
237
|
+
// //tag
|
238
|
+
// //tag
|
239
|
+
//
|
240
|
+
// // this.selftotal.push(this.total)
|
241
|
+
// // this.selftotal[0].a="合计"
|
242
|
+
// }
|
243
|
+
this.uuid = this.guid();
|
244
|
+
let gen = postGen(this)
|
245
|
+
co(gen)
|
246
|
+
},
|
247
|
+
stamp() {
|
248
|
+
this.modelval = []
|
249
|
+
this.show = true
|
250
|
+
},
|
251
|
+
sortModelval() {
|
252
|
+
let sortModel = []
|
253
|
+
Object.keys(this.fields).forEach((key) => {
|
254
|
+
if (this.modelval.includes(key)) {
|
255
|
+
sortModel.push(key)
|
256
|
+
}
|
257
|
+
})
|
258
|
+
//tag
|
259
|
+
this.modelval = sortModel
|
260
|
+
},
|
261
|
+
close() {
|
262
|
+
this.closeTimer()
|
263
|
+
this.all = false
|
264
|
+
this.modelval = []
|
265
|
+
this.show = false
|
266
|
+
this.progressShow = false
|
267
|
+
this.percent = '0%'
|
268
|
+
},
|
269
|
+
progressQuery() {
|
270
|
+
//tag
|
271
|
+
this.progressShow = true
|
272
|
+
// 启动定时器之前先关闭定时器,防止之前的定时器未关闭
|
273
|
+
this.closeTimer()
|
274
|
+
// 立即执行一遍
|
275
|
+
this.progressTask()
|
276
|
+
this.timer = setInterval(this.progressTask, 3000)
|
277
|
+
},
|
278
|
+
async progressTask() {
|
279
|
+
let self = this
|
280
|
+
let url ='api/af-safecheck/logic/getBatchOperaPro'
|
281
|
+
if(Vue.$appdata.getSingleValue('安检excel单值')){
|
282
|
+
url = 'api/af-safecheck/logic/getBatchOperaProNew'
|
283
|
+
}
|
284
|
+
|
285
|
+
let res = await self.HttpReset.load('POST', url,{data: {uuid: self.uuid}}, {resolveMsg: null, rejectMsg: null})
|
286
|
+
res = res.data
|
287
|
+
//tag
|
288
|
+
if (res.error) {
|
289
|
+
self.$showAlert(`导出excel错误: ${res.error}`, 'danger', 0)
|
290
|
+
self.closeTimer()
|
291
|
+
} else {
|
292
|
+
// self.$showAlert(`${res.msg}`, 'success', 2000)
|
293
|
+
self.percent = (res.percent ? res.percent : 0) + '%'
|
294
|
+
// 进度100%
|
295
|
+
if (res.fileName && res.percent == 100) {
|
296
|
+
var link = document.createElement('a');
|
297
|
+
res.fileName.forEach((item) => {
|
298
|
+
//tag
|
299
|
+
// let path = item.filename.substring(item.filename.indexOf('webapps'), (item.filename.length))
|
300
|
+
// let pathName = path.substring(path.indexOf('/') + 1, path.length)
|
301
|
+
let path = item.filename
|
302
|
+
//webapps这个是在服务器上导出用的
|
303
|
+
let pathName = location.protocol + "//" + location.host + "/webapps" + path.split('webapps')[1]
|
304
|
+
//excel这个是在本地导出用的
|
305
|
+
// let pathName = "http://" + location.host + "/excel" + path.split('excel')[1]
|
306
|
+
link.href = pathName;
|
307
|
+
link.download = path.split('excel/')[1];
|
308
|
+
link.dispatchEvent(new MouseEvent('click'));
|
309
|
+
})
|
310
|
+
self.close()
|
311
|
+
}
|
312
|
+
}
|
313
|
+
},
|
314
|
+
// 关闭定时器
|
315
|
+
closeTimer() {
|
316
|
+
if (this.timer) {
|
317
|
+
clearInterval(this.timer)
|
318
|
+
this.timer = null
|
319
|
+
}
|
320
|
+
},
|
321
|
+
guid() {
|
322
|
+
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
323
|
+
let r = Math.random() * 16 | 0,
|
324
|
+
v = c == 'x' ? r : (r & 0x3 | 0x8)
|
325
|
+
return v.toString(16)
|
326
|
+
})
|
327
|
+
}
|
328
|
+
},
|
329
|
+
watch: {
|
330
|
+
'all'(val) {
|
331
|
+
if (val) {
|
332
|
+
this.modelval = Object.keys(this.fields)
|
333
|
+
} else {
|
334
|
+
this.modelval = []
|
335
|
+
}
|
336
|
+
},
|
337
|
+
'modelval.length'() {
|
338
|
+
this.sortModelval()
|
339
|
+
}
|
340
|
+
}
|
341
|
+
}
|
342
|
+
</script>
|