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