safecheck-client 3.0.39-14 → 3.0.39-16

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 (256) hide show
  1. package/.babelrc +5 -5
  2. package/.editorconfig +9 -9
  3. package/android.html +18 -18
  4. package/config/dev.env.js +6 -6
  5. package/config/index.js +38 -38
  6. package/config/prod.env.js +3 -3
  7. package/config/test.env.js +6 -6
  8. package/docs/AppBase.md +22 -22
  9. package/docs/Busy.md +14 -14
  10. package/docs/CriteriaPaged.md +47 -47
  11. package/docs/DataGrid.md +54 -54
  12. package/docs/DataModel.md +22 -22
  13. package/docs/Dynamic.md +42 -42
  14. package/docs/GetParams.md +11 -11
  15. package/docs/HttpBusy.md +13 -13
  16. package/docs/HttpStore.md +29 -29
  17. package/docs/MessageBox.md +28 -28
  18. package/docs/PagedList.md +29 -29
  19. package/docs/Pager.md +21 -21
  20. package/docs/Project.md +23 -23
  21. package/docs/Route.md +105 -105
  22. package/docs/SafetyCheck/AdjustPlan.md +13 -13
  23. package/docs/SafetyCheck/CheckerPlan.md +12 -12
  24. package/docs/Task.md +46 -46
  25. package/docs/TreeList.md +28 -28
  26. package/docs/TreeMixin.md +18 -18
  27. package/docs/all.md +10 -10
  28. package/docs/list.md +42 -42
  29. package/docs/partial.md +75 -75
  30. package/docs/selector.md +82 -82
  31. package/docs//345/274/200/345/217/221/346/226/207/346/241/243/Snippets.md +28 -28
  32. package/docs//345/274/200/345/217/221/346/226/207/346/241/243/vue-strap/345/217/230/346/233/264/350/256/260/345/275/225.md +7 -7
  33. package/docs//345/274/200/345/217/221/346/226/207/346/241/243/vue/345/217/230/346/233/264/350/256/260/345/275/225.md +13 -13
  34. package/docs//345/274/200/345/217/221/346/226/207/346/241/243//345/274/200/345/217/221/347/216/257/345/242/203/350/256/276/347/275/256.md +77 -77
  35. package/docs//347/225/214/351/235/242/345/210/266/344/275/234/350/247/204/350/214/203.md +54 -54
  36. package/examples/AddressList/App.vue +13 -13
  37. package/examples/AddressList/index.html +11 -11
  38. package/examples/DispatchList/App.vue +10 -10
  39. package/examples/DispatchList/BaseTree.vue +13 -13
  40. package/examples/DispatchList/Init.vue +22 -22
  41. package/examples/DispatchList/Test.vue +20 -20
  42. package/examples/DispatchList/index.html +11 -11
  43. package/examples/DispatchList/main.js +18 -18
  44. package/home.html +16 -16
  45. package/package.json +1 -1
  46. package/publish.bat +7 -7
  47. package/release.bat +5 -5
  48. package/src/Widget.vue +13 -13
  49. package/src/android-bootstrap/fonts/glyphicons-halflings-regular.svg +287 -287
  50. package/src/android-bootstrap/less/.csscomb.json +304 -304
  51. package/src/android-bootstrap/less/.csslintrc +19 -19
  52. package/src/android-bootstrap/less/alerts.less +73 -73
  53. package/src/android-bootstrap/less/badges.less +66 -66
  54. package/src/android-bootstrap/less/bootstrap.less +56 -56
  55. package/src/android-bootstrap/less/breadcrumbs.less +26 -26
  56. package/src/android-bootstrap/less/button-groups.less +247 -247
  57. package/src/android-bootstrap/less/buttons.less +173 -173
  58. package/src/android-bootstrap/less/carousel.less +269 -269
  59. package/src/android-bootstrap/less/close.less +34 -34
  60. package/src/android-bootstrap/less/code.less +69 -69
  61. package/src/android-bootstrap/less/component-animations.less +33 -33
  62. package/src/android-bootstrap/less/grid.less +84 -84
  63. package/src/android-bootstrap/less/input-groups.less +167 -167
  64. package/src/android-bootstrap/less/jumbotron.less +52 -52
  65. package/src/android-bootstrap/less/labels.less +64 -64
  66. package/src/android-bootstrap/less/list-group.less +141 -141
  67. package/src/android-bootstrap/less/media.less +66 -66
  68. package/src/android-bootstrap/less/mixins/alerts.less +14 -14
  69. package/src/android-bootstrap/less/mixins/background-variant.less +9 -9
  70. package/src/android-bootstrap/less/mixins/border-radius.less +18 -18
  71. package/src/android-bootstrap/less/mixins/buttons.less +69 -69
  72. package/src/android-bootstrap/less/mixins/center-block.less +7 -7
  73. package/src/android-bootstrap/less/mixins/clearfix.less +22 -22
  74. package/src/android-bootstrap/less/mixins/forms.less +90 -90
  75. package/src/android-bootstrap/less/mixins/gradients.less +59 -59
  76. package/src/android-bootstrap/less/mixins/grid-framework.less +92 -92
  77. package/src/android-bootstrap/less/mixins/grid.less +122 -122
  78. package/src/android-bootstrap/less/mixins/hide-text.less +21 -21
  79. package/src/android-bootstrap/less/mixins/image.less +33 -33
  80. package/src/android-bootstrap/less/mixins/labels.less +12 -12
  81. package/src/android-bootstrap/less/mixins/list-group.less +30 -30
  82. package/src/android-bootstrap/less/mixins/nav-divider.less +10 -10
  83. package/src/android-bootstrap/less/mixins/nav-vertical-align.less +9 -9
  84. package/src/android-bootstrap/less/mixins/opacity.less +8 -8
  85. package/src/android-bootstrap/less/mixins/pagination.less +24 -24
  86. package/src/android-bootstrap/less/mixins/panels.less +24 -24
  87. package/src/android-bootstrap/less/mixins/progress-bar.less +10 -10
  88. package/src/android-bootstrap/less/mixins/reset-filter.less +8 -8
  89. package/src/android-bootstrap/less/mixins/reset-text.less +18 -18
  90. package/src/android-bootstrap/less/mixins/resize.less +6 -6
  91. package/src/android-bootstrap/less/mixins/responsive-visibility.less +15 -15
  92. package/src/android-bootstrap/less/mixins/size.less +10 -10
  93. package/src/android-bootstrap/less/mixins/tab-focus.less +9 -9
  94. package/src/android-bootstrap/less/mixins/table-row.less +44 -44
  95. package/src/android-bootstrap/less/mixins/text-emphasis.less +9 -9
  96. package/src/android-bootstrap/less/mixins/text-overflow.less +8 -8
  97. package/src/android-bootstrap/less/mixins/vendor-prefixes.less +227 -227
  98. package/src/android-bootstrap/less/mixins.less +40 -40
  99. package/src/android-bootstrap/less/modals.less +151 -151
  100. package/src/android-bootstrap/less/navbar.less +660 -660
  101. package/src/android-bootstrap/less/navs.less +290 -290
  102. package/src/android-bootstrap/less/normalize.less +424 -424
  103. package/src/android-bootstrap/less/pager.less +76 -76
  104. package/src/android-bootstrap/less/pagination.less +89 -89
  105. package/src/android-bootstrap/less/panels.less +274 -274
  106. package/src/android-bootstrap/less/popovers.less +131 -131
  107. package/src/android-bootstrap/less/print.less +101 -101
  108. package/src/android-bootstrap/less/progress-bars.less +87 -87
  109. package/src/android-bootstrap/less/responsive-embed.less +35 -35
  110. package/src/android-bootstrap/less/responsive-utilities.less +194 -194
  111. package/src/android-bootstrap/less/scaffolding.less +161 -161
  112. package/src/android-bootstrap/less/tables.less +262 -262
  113. package/src/android-bootstrap/less/theme.less +291 -291
  114. package/src/android-bootstrap/less/thumbnails.less +36 -36
  115. package/src/android-bootstrap/less/tooltip.less +102 -102
  116. package/src/android-bootstrap/less/type.less +303 -303
  117. package/src/android-bootstrap/less/utilities.less +55 -55
  118. package/src/android-bootstrap/less/variables.less +896 -896
  119. package/src/android-bootstrap/less/wells.less +29 -29
  120. package/src/bootstrap/less/.csscomb.json +304 -304
  121. package/src/bootstrap/less/.csslintrc +19 -19
  122. package/src/bootstrap/less/alerts.less +73 -73
  123. package/src/bootstrap/less/badges.less +66 -66
  124. package/src/bootstrap/less/breadcrumbs.less +26 -26
  125. package/src/bootstrap/less/button-groups.less +247 -247
  126. package/src/bootstrap/less/buttons.less +172 -172
  127. package/src/bootstrap/less/carousel.less +269 -269
  128. package/src/bootstrap/less/close.less +34 -34
  129. package/src/bootstrap/less/code.less +69 -69
  130. package/src/bootstrap/less/component-animations.less +33 -33
  131. package/src/bootstrap/less/dropdowns.less +216 -216
  132. package/src/bootstrap/less/grid.less +84 -84
  133. package/src/bootstrap/less/input-groups.less +167 -167
  134. package/src/bootstrap/less/jumbotron.less +52 -52
  135. package/src/bootstrap/less/labels.less +64 -64
  136. package/src/bootstrap/less/list-group.less +141 -141
  137. package/src/bootstrap/less/media.less +66 -66
  138. package/src/bootstrap/less/mixins/alerts.less +14 -14
  139. package/src/bootstrap/less/mixins/background-variant.less +9 -9
  140. package/src/bootstrap/less/mixins/border-radius.less +18 -18
  141. package/src/bootstrap/less/mixins/buttons.less +69 -69
  142. package/src/bootstrap/less/mixins/center-block.less +7 -7
  143. package/src/bootstrap/less/mixins/clearfix.less +22 -22
  144. package/src/bootstrap/less/mixins/forms.less +90 -90
  145. package/src/bootstrap/less/mixins/gradients.less +59 -59
  146. package/src/bootstrap/less/mixins/grid-framework.less +92 -92
  147. package/src/bootstrap/less/mixins/grid.less +122 -122
  148. package/src/bootstrap/less/mixins/hide-text.less +21 -21
  149. package/src/bootstrap/less/mixins/image.less +33 -33
  150. package/src/bootstrap/less/mixins/labels.less +12 -12
  151. package/src/bootstrap/less/mixins/list-group.less +30 -30
  152. package/src/bootstrap/less/mixins/nav-divider.less +10 -10
  153. package/src/bootstrap/less/mixins/nav-vertical-align.less +9 -9
  154. package/src/bootstrap/less/mixins/opacity.less +8 -8
  155. package/src/bootstrap/less/mixins/pagination.less +24 -24
  156. package/src/bootstrap/less/mixins/panels.less +24 -24
  157. package/src/bootstrap/less/mixins/progress-bar.less +10 -10
  158. package/src/bootstrap/less/mixins/reset-filter.less +8 -8
  159. package/src/bootstrap/less/mixins/reset-text.less +18 -18
  160. package/src/bootstrap/less/mixins/resize.less +6 -6
  161. package/src/bootstrap/less/mixins/responsive-visibility.less +15 -15
  162. package/src/bootstrap/less/mixins/size.less +10 -10
  163. package/src/bootstrap/less/mixins/tab-focus.less +9 -9
  164. package/src/bootstrap/less/mixins/table-row.less +44 -44
  165. package/src/bootstrap/less/mixins/text-emphasis.less +9 -9
  166. package/src/bootstrap/less/mixins/text-overflow.less +8 -8
  167. package/src/bootstrap/less/mixins/vendor-prefixes.less +227 -227
  168. package/src/bootstrap/less/mixins.less +40 -40
  169. package/src/bootstrap/less/modals.less +151 -151
  170. package/src/bootstrap/less/navbar.less +660 -660
  171. package/src/bootstrap/less/normalize.less +424 -424
  172. package/src/bootstrap/less/pagination.less +89 -89
  173. package/src/bootstrap/less/panels.less +275 -275
  174. package/src/bootstrap/less/popovers.less +131 -131
  175. package/src/bootstrap/less/print.less +101 -101
  176. package/src/bootstrap/less/progress-bars.less +87 -87
  177. package/src/bootstrap/less/responsive-embed.less +35 -35
  178. package/src/bootstrap/less/responsive-utilities.less +194 -194
  179. package/src/bootstrap/less/scaffolding.less +161 -161
  180. package/src/bootstrap/less/theme.less +291 -291
  181. package/src/bootstrap/less/thumbnails.less +36 -36
  182. package/src/bootstrap/less/tooltip.less +102 -102
  183. package/src/bootstrap/less/type.less +303 -303
  184. package/src/bootstrap/less/utilities.less +55 -55
  185. package/src/bootstrap/less/wells.less +29 -29
  186. package/src/components/FileUpload.vue +696 -696
  187. package/src/components/Hello.vue +39 -39
  188. package/src/components/LeftTree.vue +27 -27
  189. package/src/components/android/AttendanceTally.vue +116 -116
  190. package/src/components/android/Blank.vue +10 -10
  191. package/src/components/android/CheckUnplanPage.vue +56 -56
  192. package/src/components/android/Checker.vue +12 -12
  193. package/src/components/android/CheckerAnnual.vue +81 -81
  194. package/src/components/android/CheckerAvarta.vue +82 -82
  195. package/src/components/android/EquipmentInspection.vue +348 -348
  196. package/src/components/android/FootprintMap.vue +120 -120
  197. package/src/components/android/HiddentroubleInvestigation.vue +192 -192
  198. package/src/components/android/MasterMain.vue +77 -77
  199. package/src/components/android/Menu.vue +132 -132
  200. package/src/components/android/PaperAlarm.vue +85 -85
  201. package/src/components/android/PaperDeviceNoncivil.vue +214 -214
  202. package/src/components/android/PlumberAnnual.vue +83 -83
  203. package/src/components/android/PlumberAnnualDetail.vue +65 -65
  204. package/src/components/android/PlumberMonthly.vue +84 -84
  205. package/src/components/android/PostMap.vue +83 -83
  206. package/src/components/android/QueryCheckHistory.vue +122 -122
  207. package/src/components/android/QueryCheckHistoryItem.vue +62 -62
  208. package/src/components/android/RepairMain.vue +60 -60
  209. package/src/components/android/Repairman.vue +12 -12
  210. package/src/components/android/StationMaster.vue +12 -12
  211. package/src/components/defects/DefectModal.vue +101 -101
  212. package/src/components/defects/DevicesAndItem.vue +39 -39
  213. package/src/components/issueplan/IssuePlanMain.vue +23 -23
  214. package/src/components/notice/NoticeForm.vue +100 -100
  215. package/src/components/notice/NoticeIssue.vue +20 -20
  216. package/src/components/paper/PicViewer.vue +18 -18
  217. package/src/components/pc/SafeCheckOrder/SafeCheckOrderList.vue +248 -248
  218. package/src/components/phonestate/MonthlyTraffic.vue +66 -66
  219. package/src/components/phonestate/MonthlyTrafficRouter.vue +15 -15
  220. package/src/components/phonestate/PostMap.vue +82 -82
  221. package/src/components/querycheckpaper/PaperItem.vue +59 -59
  222. package/src/components/userfile/MeterFile.vue +145 -145
  223. package/src/components/userfile/MeterModify.vue +46 -46
  224. package/src/components/userfileaudit/MeterAuditFile.vue +129 -129
  225. package/src/filiale/hanzhong/pc/CheckHiddenDanger.vue +713 -713
  226. package/src/filiale/hanzhong/pc/CheckNumberStatistics.vue +499 -499
  227. package/src/filiale/hanzhong/pc/CheckSafeDetail.vue +578 -573
  228. package/src/filiale/hanzhong/pc/CheckSafeStatus.vue +508 -508
  229. package/src/filiale/hanzhong/pc/CheckerSafeDetail.vue +595 -595
  230. package/src/filiale/hanzhong/pc/HomeEcharts.vue +153 -153
  231. package/src/filiale/kelai/android/PaperFeedback.vue +1553 -1553
  232. package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +104 -38
  233. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +42 -19
  234. package/src/filiale/tongchuan/pc/AMapTrailShowZk.vue +226 -226
  235. package/src/filiale/tongchuan/pc/CheckSearchUser.vue +1091 -1091
  236. package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +664 -664
  237. package/src/filiale/tongchuan/pc/NoCheckplanSafecheck.vue +247 -247
  238. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1094 -1094
  239. package/src/filiale/tongchuan/pc/PaperList.vue +718 -718
  240. package/src/filiale/tongchuan/pc/PersonTrack.vue +269 -269
  241. package/src/filiale/tongchuan/pc/SelectCheckPlan.vue +336 -336
  242. package/src/filiale/tongchuan/pc.js +37 -37
  243. package/src/filiale/wuan/android/SafecheckOrderV.vue +2242 -2242
  244. package/src/filiale/wuan/android/SafecheckUserInfo.vue +659 -659
  245. package/src/plugins/LoadData.js +10 -10
  246. package/src/plugins/LoadParams.js +24 -24
  247. package/src/stores/wxconfig.js +10 -10
  248. package/src/utils/getNowDate.js +33 -33
  249. package/test/e2e/custom-assertions/elementCount.js +26 -26
  250. package/test/e2e/nightwatch.conf.js +40 -40
  251. package/test/e2e/runner.js +30 -30
  252. package/test/e2e/specs/test.js +13 -13
  253. package/test/unit/.eslintrc +5 -5
  254. package/test/unit/TestUtil.js +62 -62
  255. package/test/unit/context.html +20 -20
  256. package/test/unit/index.js +13 -13
@@ -1,595 +1,595 @@
1
- <template lang="html">
2
- <div class="div-4">
3
- <div :style="{height:headheight,background:'#eaeff4'}">
4
- <div class="div-2">
5
- <div class="form-group">
6
- <label v-show="full_screen" class="control-label">安检类型</label>
7
- <v-select v-show="full_screen" :value.sync="plan_type"
8
- :value-single="true"
9
- :options='plan_types' close-on-select clear-button> </v-select>
10
- <button class="but-1" @click="barrdios" v-show="full_screen"><img src='../../../assets/echarts6.png' class="img-1"/>&nbsp;全屏显示
11
- </button>
12
- <button @click="showall" v-show="show_all" class="but-2">返回</button>
13
- </div>
14
- </div>
15
- </div>
16
- <div v-bind:style="{height: barheight,width:'100%'}">
17
- <div class="flex-row" style="height: 90%;">
18
- <div class="span">
19
- <div class="form-inline" v-if="echartsshow" style="height: auto;margin-bottom: 5%;margin-top: 5%">
20
- <div class="form-group">
21
- <label class="control-label">开始时间</label>
22
- <datepicker
23
- :value.sync="f_start_time"
24
- placeholder='开始时间' style="margin-top: 8px"
25
- :disabled-days-of-week="[]"
26
- :format="'yyyy-MM-dd'"
27
- :show-rest-button="reset"
28
- v-model = "f_start_time"
29
- condition="f_offsite_time > ='{} 00:00:00'">
30
- </datepicker>
31
- </div>
32
- <div class="form-group">
33
- <label class="control-label">结束时间</label>
34
- <datepicker
35
- :value.sync="f_end_time"
36
- placeholder='结束时间' style="margin-top: 8px"
37
- :disabled-days-of-week="[]"
38
- :format="'yyyy-MM-dd'"
39
- :show-rest-button="reset"
40
- v-model = "f_end_time"
41
- condition="f_offsite_time <= '{} 23:59:59'">
42
- </datepicker>
43
- </div>
44
- <!--<div class="form-group">-->
45
- <!--<label class="control-label">安检员</label>-->
46
- <!--<chooser :userid.sync='f.id' resource-type="user" :width='200' :select-data.sync='chosenOrg'></chooser>-->
47
- <!--</div>-->
48
- <div class="form-group">
49
- <label class="control-label">安检类型</label>
50
- <v-select :value.sync="plan_type"
51
- :value-single="true"
52
- :options='plan_types' close-on-select clear-button> </v-select>
53
- </div>
54
- </div>
55
-
56
- <div id="chechersafedetail"></div>
57
- </div>
58
-
59
-
60
-
61
- <!--调用子组件绘图查表-->
62
- <div v-show="echartsshow">
63
- <h4 v-if="plan_type == ''" align="center">安检员居民用户安检工作量统计表</h4>
64
- <h4 v-if="plan_type == 'false'" align="center">安检员居民用户年度安检工作量统计表</h4>
65
- <h4 v-if="plan_type == 'true'" align="center">安检员居民用户首次同期安检工作量统计表</h4>
66
- <criteria-paged :model="model" v-ref:crip >
67
- <data-grid :model="model" partial='list' id="datagridstyle1" v-ref:grid1 classname="table table-bordered table table-hover">
68
- <template partial='head'>
69
- <tr>
70
- <th><nobr>安检员</nobr></th>
71
- <th><nobr>入户</nobr></th>
72
- <th><nobr>入户(在用)</nobr></th>
73
- <th><nobr>入户(未用)</nobr></th>
74
- <th><nobr>到访不遇</nobr></th>
75
- <th><nobr>拒检</nobr></th>
76
- </tr>
77
- </template>
78
- <template partial='body' >
79
- <tr class="tr-1">
80
- <td class="td-1" style="text-align: center;">
81
- {{row.f_checker_name}}
82
- </td>
83
- <td class="td-1" style="text-align: center;">
84
- {{row.rh+row.wsy}}
85
- </td>
86
- <td class="td-1" style="text-align: center;">
87
- {{row.rh}}
88
- </td>
89
- <td class="td-1" style="text-align: center;">
90
- {{row.wsy}}
91
- </td>
92
- <td class="td-1" style="text-align: center;">
93
- {{row.dfby}}
94
- </td>
95
- <td class="td-1" style="text-align: center;">
96
- {{row.jj}}
97
- </td>
98
- </tr>
99
- </template>
100
- <!--<template partial='foot'>-->
101
- <!--<tr>-->
102
- <!--<td colspan="1" style="text-align: right">合计:</td>-->
103
- <!--<td style="text-align: center"><nobr>{{$parent.$parent.$parent.count.zongliang}}</nobr></td>-->
104
- <!--<td style="text-align: center"><nobr>{{$parent.$parent.$parent.count.rh}}</nobr></td>-->
105
- <!--<td style="text-align: center"><nobr>{{$parent.$parent.$parent.count.dfby}}</nobr></td>-->
106
- <!--<td style="text-align: center"><nobr>{{$parent.$parent.$parent.count.jj}}</nobr></td>-->
107
- <!--<td style="text-align: center"><nobr>{{$parent.$parent.$parent.count.wsy}}</nobr></td>-->
108
- <!--<td style="text-align: center"><nobr>{{$parent.$parent.$parent.count.checkrate}}</nobr></td>-->
109
- <!--</tr>-->
110
- <!--</template>-->
111
- </data-grid>
112
- </criteria-paged>
113
- </div>
114
- </div>
115
- </div>
116
- </div>
117
- </template>
118
-
119
- <script>
120
- import * as Util from '../../Util'
121
- import co from 'co'
122
- import echarts from 'echarts'
123
- import {HttpResetClass } from 'vue-client'
124
- import {PagedList} from 'vue-client'
125
-
126
- let getData = function * (self) {
127
- let load = new HttpResetClass()
128
- console.log('getData')
129
- console.log('self.plan_type',self.plan_type)
130
- console.log('self.orgid',self.orgid)
131
- self.set()
132
- load.load('POST','rs/sql/YearCheckerCountRate', {data: {orgid:self.orgid,plan_type:self.plan_type,f_start_time:self.f_start_time,f_end_time:self.f_end_time,f_safecheck_type:self.f_safecheck_type}},
133
- {resolveMsg: null, rejectMsg: null})
134
- .then((res) => {
135
- let checkerArrray = []
136
- let ruhuArray = []
137
- let dfbyArray = []
138
- let jjArray = []
139
- let wsytrqArray = []
140
- // self.count.zongliang = 0
141
- // self.count.rh = 0
142
- // self.count.dfby = 0
143
- // self.count.jj = 0
144
- // self.count.wsy = 0
145
- // self.count.checkrate = '0.00%'
146
- for (var i = 0; i < res.data.length; i++) {
147
- checkerArrray[i] = res.data[i].f_checker_name
148
- ruhuArray[i] = res.data[i].rh
149
- dfbyArray[i] = res.data[i].dfby
150
- jjArray[i] = res.data[i].jj
151
- wsytrqArray[i] = res.data[i].wsytrq
152
- // self.count.rh += res.data[i].rh
153
- // self.count.dfby += res.data[i].dfby
154
- // self.count.jj += res.data[i].jj
155
- // self.count.wsy += res.data[i].wsy
156
- }
157
- // self.count.checkrate = (100*self.count.rh/ self.count.zongliang).toFixed(0)+'%'
158
- //掉绘图
159
- self.set(checkerArrray,ruhuArray,dfbyArray,jjArray,wsytrqArray)
160
- self.settable()
161
- })
162
- }
163
- export default {
164
- title: '安检员安检情况统计',
165
- data () {
166
- let options = []
167
- let ye = (new Date()).getFullYear()
168
- for(let i = ye - 5 ; i <= ye; i++ )
169
- {
170
- options.push({label: i + '', value: i + ''})
171
- }
172
- return {
173
- full_screen: true,//控制全屏按键显示状态
174
- show_all: false,//控制返回按键显示状态
175
- //控制图表的显示状态
176
- echartsshow: false,
177
- detailshows: true,
178
-
179
- //控制图表的style
180
- barheight: '88.37%',
181
- headheight: '11.61%',
182
- styledate: {
183
- echartsheight: '95%',
184
- echartsfloat: 'none',
185
- },
186
- c_year_list: options,
187
- f:this.$login.f,
188
- chosenOrg: {
189
- id: 0
190
- },
191
- count:{
192
- zongliang:0,
193
- rh:0,
194
- dfby:0,
195
- jj:0,
196
- wsy:0,
197
- checkrate:'0.00%',
198
- },
199
- model:new PagedList(),
200
- orgid:`('${this.$login.f.orgid}')`,
201
- //测试
202
- // orgid:'2586252.6314787',
203
- year:(new Date()).getFullYear(),
204
- plan_type:'',
205
- f_safecheck_type:'',
206
- f_start_time:'',
207
- f_end_time:'',
208
- xc: '',
209
- plan_types:[{label:'全部',value:''},{label:'年度安检单',value:'false'},{label:'首次通气单',value:'true'}]
210
- }
211
- },
212
- props:{
213
- f_filialeids:{
214
- type:String
215
- }
216
- },
217
- methods: {
218
- barrdios() {//全屏按键事件
219
- console.log("checker`全屏显示事件")
220
- this.barshow = true
221
- this.detailshows = false
222
- this.echartsshow = true
223
- this.show_all = true
224
- this.full_screen = false
225
- this.buttonshow = true
226
- this.showdetail = false
227
- this.styledate.echartsfloat = 'left'
228
- this.styledate.echartsheight = '65%'
229
- this.echartswidth = '50%'
230
- this.headheight = '8%'
231
- this.$parent.echarts = '5'
232
- this.$emit('echarts-changed')
233
- this.newecharts = true
234
-
235
- console.log(this.$parent.echarts, '主图状态')
236
- },
237
- showall() {//返回按键事件
238
- //修改显示状态
239
- this.barshow = false
240
- this.detailshows = true
241
- this.echartsshow = false
242
- this.buttonshow = false
243
- this.newecharts = false
244
- this.show_all = false
245
- this.full_screen = true
246
- this.showdetail = false
247
- this.styledate.echartsheight = '95%'
248
- this.echartswidth = '95%'
249
- this.$parent.echarts = -1
250
- this.headheight = '11.61%'
251
- this.$emit('echarts-changed', this.echarts)
252
- },
253
- settable() {
254
- this.model= new PagedList('rs/sql/YearCheckerCountRate',20, {year:'this.year',orgid:'this.orgid',plan_type:'this.plan_type',f_start_time:'this.f_start_time',f_end_time:'this.f_end_time',f_safecheck_type: 'this.f_safecheck_type'})
255
- this.model.year = this.year
256
- this.model.orgid = this.orgid
257
- this.model.f_start_time = this.f_start_time
258
- this.model.f_end_time = this.f_end_time
259
- this.model.plan_type = this.plan_type
260
- this.model.f_safecheck_type = this.f_safecheck_type
261
- this.model.search('1=1')
262
- },
263
- set(checkerArrray,ruhuArray,dfbyArray,jjArray,wsytrqArray) {
264
- let serieData = [{ //绘图数据
265
- name: '入户',
266
- type: "bar",
267
- barWidth: '15%',
268
- barGap: "30",
269
- itemStyle: {
270
- normal: {
271
- barBorderRadius: 10,
272
- borderColor: '#acf3ed',
273
- color: '#fff',
274
- label: {
275
- show: true,
276
- textStyle: {
277
- color: "#4a7cae"
278
- },
279
- position: "top",
280
- formatter: function (p) {
281
- return p.value > 0 ? (p.value) : '';
282
- }
283
-
284
- }
285
- }
286
- },
287
- data: ruhuArray,
288
- },
289
- { //绘图数据
290
- name: '到访不遇',
291
- type: "bar",
292
- barWidth: '15%',
293
- barGap: "-30%",
294
- itemStyle: {
295
- normal: {
296
- barBorderRadius: 10,
297
- color: '',
298
- label: {
299
- show: true,
300
- textStyle: {
301
- color: "#fccb05"
302
- },
303
- position: "insideTop",
304
- formatter: function (p) {
305
- return p.value > 0 ? (p.value) : '';
306
- }
307
- }
308
- }
309
- },
310
- data: dfbyArray,
311
- },
312
- { //绘图数据
313
- name: '拒检',
314
- type: "bar",
315
- barWidth: '15%',
316
- barGap: "-30%",
317
- itemStyle: {
318
- normal: {
319
- barBorderRadius: 10,
320
- color: '',
321
- label: {
322
- show: true,
323
- textStyle: {
324
- color: "#fccb05"
325
- },
326
- position: "insideTop",
327
- formatter: function (p) {
328
- return p.value > 0 ? (p.value) : '';
329
- }
330
- }
331
- }
332
- },
333
- data: jjArray,
334
- },
335
- { //绘图数据
336
- name: '未使用天然气',
337
- type: "bar",
338
- barWidth: '15%',
339
- barGap: "-30%",
340
- itemStyle: {
341
- normal: {
342
- barBorderRadius: 10,
343
- color: '',
344
- label: {
345
- show: true,
346
- textStyle: {
347
- color: "#fccb05"
348
- },
349
- position: "insideTop",
350
- formatter: function (p) {
351
- return p.value > 0 ? (p.value) : '';
352
- }
353
- }
354
- }
355
- },
356
- data: wsytrqArray
357
- }]
358
-
359
- this.xc = echarts.init(document.getElementById('chechersafedetail'))
360
- let text = ''
361
- if(this.plan_type == ''){
362
- text = '安检员居民用户安检工作量'
363
- }
364
- if(this.plan_type == 'false'){
365
- text = '安检员居民用户年度安检工作量'
366
- }
367
- if(this.plan_type == 'true'){
368
- text = '安检员居民用户首次通气安检工作量'
369
- }
370
- this.xc.setOption({
371
- title : {
372
- text: text,
373
- x: 'left'
374
- },
375
- color: ['#3398DB'],
376
- tooltip: {
377
- trigger: 'axis',
378
- axisPointer: { // 坐标轴指示器,坐标轴触发有效
379
- type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
380
- },
381
-
382
- extraCssText: 'width: auto;height: auto;'
383
- },
384
- dataZoom: [{
385
- type: 'inside',
386
- show: true,
387
- startValue: '0',
388
- xAxisIndex: [0],
389
- left: '9%',
390
- bottom: -5,
391
- start: 2,
392
- end: 90 //初始化滚动条
393
- }],
394
- grid: {
395
- left: '10',
396
- right: '10',
397
- bottom: '8',
398
- containLabel: true
399
- },
400
- legend: {
401
- data: ['入户', '到访不遇','拒检','未使用天然气'],
402
- right: 10,
403
- top: 12,
404
- textStyle: {
405
- color: "black"
406
- },
407
- itemWidth: 12,
408
- itemHeight: 10,
409
- // itemGap: 20
410
- },
411
- xAxis: [
412
- {
413
- type: 'category',
414
- name: "安检员",
415
- nameTextStyle: {color: "#6f8ba8"},
416
- axisTick: {
417
- alignWithLabel: true
418
- },
419
- axisLine: {show: true,lineStyle :{color:'#999999'}},
420
- axisLabel: {show: true,interval:0,showMinLabel: true,
421
- showMaxLabel: true, textStyle: {color: "#6f8ba8"}},
422
- data: checkerArrray
423
- }
424
- ],
425
- yAxis: [{
426
- type: "value",
427
- name: "数量",
428
- nameTextStyle: {color: "#6f8ba8"},
429
- splitLine: {show: true,lineStyle:{type:'dashed',color:'#e1e1e1'}},
430
- axisTick: {show: true},
431
- axisLine: {show: true,lineStyle :{color:'#999999'}},
432
- axisLabel: {show: true, textStyle: {color: "#6f8ba8"}}
433
- }],
434
- series: serieData
435
- }, true)
436
- },
437
- searchdata () {
438
- console.log('searchdata')
439
- console.log('this.orgid',this.orgid)
440
- console.log('this.plan_type',this.plan_type)
441
- let getGen =getData(this)
442
- co(getGen)
443
- }
444
- },
445
- ready () {
446
- // this.orgid = `('${this.$login.f.orgid}')`
447
- // this.orgid = this.f_filialeids
448
- //测试
449
- // this.orgid = '2586252.6314787'
450
- // this.plan_type = ''
451
- console.log('checker-safe-detail-ready')
452
- // this.year =(new Date()).getFullYear()
453
-
454
- this.searchdata()
455
- },
456
- watch: {
457
- 'year' (val) {
458
- console.log("我是watch")
459
- this.searchdata()
460
- },
461
- 'plan_type' (val) {
462
- console.log("我是plan_type")
463
- this.f_safecheck_type = ''
464
- if (this.plan_type == 'false') {
465
- this.f_safecheck_type = '年度普检'
466
- }
467
- if (this.plan_type == 'true') {
468
- this.f_safecheck_type = '首次通气'
469
- }
470
- this.searchdata()
471
- },
472
- 'f_filialeids'(){
473
- console.log('safeer改变了')
474
- this.orgid = this.f_filialeids
475
- this.searchdata()
476
- }
477
- }
478
-
479
- }
480
- </script>
481
- <style scoped>
482
- .div-1 {
483
- height: 85%;
484
- width: 10%;
485
- margin-left: 5%;
486
- float: left;
487
- margin-top: 1%;
488
- }
489
-
490
- .div-2 {
491
- float: right;
492
- width: 80%;
493
- height: 55.56%;
494
- margin-right: 1%;
495
- margin-top: 0.5%;
496
- }
497
-
498
- .div-3 {
499
- float: left;
500
- margin-left: 2%;
501
- padding-top: 2%;
502
- width: 96%;
503
- height: 99%;
504
- }
505
-
506
- .div-4 {
507
- background-color: #fafafa;
508
- }
509
-
510
- table {
511
- height: 100%;
512
- width: 100%;
513
- font-size: 12px
514
- }
515
-
516
- tr {
517
- height: 25%;
518
- width: 100%
519
- }
520
-
521
- td {
522
- width: 11%;
523
- font-size: 12px;
524
- color: #666666;
525
- }
526
-
527
- .td-1 {
528
- width: 16%;
529
- color: #90addf;
530
- font-size: 12px
531
- }
532
-
533
- .td-2 {
534
- width: 15%;
535
- color: #90addf;
536
- font-size: 12px
537
- }
538
-
539
- span {
540
- color: #90addf;
541
- font-size: 12px
542
- }
543
-
544
- .span-1 {
545
- color: #999999;
546
- font-size: 12px
547
- }
548
-
549
- .p-1 {
550
- font-size: 15px;
551
- height: 99%;
552
- width: 99%;
553
- font-weight: bold;
554
- color: #333333;
555
- }
556
-
557
- button {
558
- width: 10%;
559
- margin-top: 0%;
560
- margin-left: 2%;
561
- float: right;
562
- background-color: #73ca73;
563
- border-radius: 4px;
564
- border: 1px solid #73ca73;
565
- color: #ffffff;
566
- font-size: 15px;
567
- height: 120%;
568
- }
569
-
570
- .but-1 {
571
- width: 17%;
572
- float: right;
573
- border-radius: 4px;
574
- font-size: 12px;
575
- height: 130%;
576
- }
577
-
578
- .but-2 {
579
- background-color: #88b5e2;
580
- border: #88b5e2;
581
- width: 6%;
582
- }
583
-
584
- img {
585
- width: 5px;
586
- height: 18px;
587
- }
588
-
589
- .img-1 {
590
- height: 12px;
591
- width: auto;
592
- }
593
-
594
- </style>
595
-
1
+ <template lang="html">
2
+ <div class="div-4">
3
+ <div :style="{height:headheight,background:'#eaeff4'}">
4
+ <div class="div-2">
5
+ <div class="form-group">
6
+ <label v-show="full_screen" class="control-label">安检类型</label>
7
+ <v-select v-show="full_screen" :value.sync="plan_type"
8
+ :value-single="true"
9
+ :options='plan_types' close-on-select clear-button> </v-select>
10
+ <button class="but-1" @click="barrdios" v-show="full_screen"><img src='../../../assets/echarts6.png' class="img-1"/>&nbsp;全屏显示
11
+ </button>
12
+ <button @click="showall" v-show="show_all" class="but-2">返回</button>
13
+ </div>
14
+ </div>
15
+ </div>
16
+ <div v-bind:style="{height: barheight,width:'100%'}">
17
+ <div class="flex-row" style="height: 90%;">
18
+ <div class="span">
19
+ <div class="form-inline" v-if="echartsshow" style="height: auto;margin-bottom: 5%;margin-top: 5%">
20
+ <div class="form-group">
21
+ <label class="control-label">开始时间</label>
22
+ <datepicker
23
+ :value.sync="f_start_time"
24
+ placeholder='开始时间' style="margin-top: 8px"
25
+ :disabled-days-of-week="[]"
26
+ :format="'yyyy-MM-dd'"
27
+ :show-rest-button="reset"
28
+ v-model = "f_start_time"
29
+ condition="f_offsite_time > ='{} 00:00:00'">
30
+ </datepicker>
31
+ </div>
32
+ <div class="form-group">
33
+ <label class="control-label">结束时间</label>
34
+ <datepicker
35
+ :value.sync="f_end_time"
36
+ placeholder='结束时间' style="margin-top: 8px"
37
+ :disabled-days-of-week="[]"
38
+ :format="'yyyy-MM-dd'"
39
+ :show-rest-button="reset"
40
+ v-model = "f_end_time"
41
+ condition="f_offsite_time <= '{} 23:59:59'">
42
+ </datepicker>
43
+ </div>
44
+ <!--<div class="form-group">-->
45
+ <!--<label class="control-label">安检员</label>-->
46
+ <!--<chooser :userid.sync='f.id' resource-type="user" :width='200' :select-data.sync='chosenOrg'></chooser>-->
47
+ <!--</div>-->
48
+ <div class="form-group">
49
+ <label class="control-label">安检类型</label>
50
+ <v-select :value.sync="plan_type"
51
+ :value-single="true"
52
+ :options='plan_types' close-on-select clear-button> </v-select>
53
+ </div>
54
+ </div>
55
+
56
+ <div id="chechersafedetail"></div>
57
+ </div>
58
+
59
+
60
+
61
+ <!--调用子组件绘图查表-->
62
+ <div v-show="echartsshow">
63
+ <h4 v-if="plan_type == ''" align="center">安检员居民用户安检工作量统计表</h4>
64
+ <h4 v-if="plan_type == 'false'" align="center">安检员居民用户年度安检工作量统计表</h4>
65
+ <h4 v-if="plan_type == 'true'" align="center">安检员居民用户首次同期安检工作量统计表</h4>
66
+ <criteria-paged :model="model" v-ref:crip >
67
+ <data-grid :model="model" partial='list' id="datagridstyle1" v-ref:grid1 classname="table table-bordered table table-hover">
68
+ <template partial='head'>
69
+ <tr>
70
+ <th><nobr>安检员</nobr></th>
71
+ <th><nobr>入户</nobr></th>
72
+ <th><nobr>入户(在用)</nobr></th>
73
+ <th><nobr>入户(未用)</nobr></th>
74
+ <th><nobr>到访不遇</nobr></th>
75
+ <th><nobr>拒检</nobr></th>
76
+ </tr>
77
+ </template>
78
+ <template partial='body' >
79
+ <tr class="tr-1">
80
+ <td class="td-1" style="text-align: center;">
81
+ {{row.f_checker_name}}
82
+ </td>
83
+ <td class="td-1" style="text-align: center;">
84
+ {{row.rh+row.wsy}}
85
+ </td>
86
+ <td class="td-1" style="text-align: center;">
87
+ {{row.rh}}
88
+ </td>
89
+ <td class="td-1" style="text-align: center;">
90
+ {{row.wsy}}
91
+ </td>
92
+ <td class="td-1" style="text-align: center;">
93
+ {{row.dfby}}
94
+ </td>
95
+ <td class="td-1" style="text-align: center;">
96
+ {{row.jj}}
97
+ </td>
98
+ </tr>
99
+ </template>
100
+ <!--<template partial='foot'>-->
101
+ <!--<tr>-->
102
+ <!--<td colspan="1" style="text-align: right">合计:</td>-->
103
+ <!--<td style="text-align: center"><nobr>{{$parent.$parent.$parent.count.zongliang}}</nobr></td>-->
104
+ <!--<td style="text-align: center"><nobr>{{$parent.$parent.$parent.count.rh}}</nobr></td>-->
105
+ <!--<td style="text-align: center"><nobr>{{$parent.$parent.$parent.count.dfby}}</nobr></td>-->
106
+ <!--<td style="text-align: center"><nobr>{{$parent.$parent.$parent.count.jj}}</nobr></td>-->
107
+ <!--<td style="text-align: center"><nobr>{{$parent.$parent.$parent.count.wsy}}</nobr></td>-->
108
+ <!--<td style="text-align: center"><nobr>{{$parent.$parent.$parent.count.checkrate}}</nobr></td>-->
109
+ <!--</tr>-->
110
+ <!--</template>-->
111
+ </data-grid>
112
+ </criteria-paged>
113
+ </div>
114
+ </div>
115
+ </div>
116
+ </div>
117
+ </template>
118
+
119
+ <script>
120
+ import * as Util from '../../Util'
121
+ import co from 'co'
122
+ import echarts from 'echarts'
123
+ import {HttpResetClass } from 'vue-client'
124
+ import {PagedList} from 'vue-client'
125
+
126
+ let getData = function * (self) {
127
+ let load = new HttpResetClass()
128
+ console.log('getData')
129
+ console.log('self.plan_type',self.plan_type)
130
+ console.log('self.orgid',self.orgid)
131
+ self.set()
132
+ load.load('POST','rs/sql/YearCheckerCountRate', {data: {orgid:self.orgid,plan_type:self.plan_type,f_start_time:self.f_start_time,f_end_time:self.f_end_time,f_safecheck_type:self.f_safecheck_type}},
133
+ {resolveMsg: null, rejectMsg: null})
134
+ .then((res) => {
135
+ let checkerArrray = []
136
+ let ruhuArray = []
137
+ let dfbyArray = []
138
+ let jjArray = []
139
+ let wsytrqArray = []
140
+ // self.count.zongliang = 0
141
+ // self.count.rh = 0
142
+ // self.count.dfby = 0
143
+ // self.count.jj = 0
144
+ // self.count.wsy = 0
145
+ // self.count.checkrate = '0.00%'
146
+ for (var i = 0; i < res.data.length; i++) {
147
+ checkerArrray[i] = res.data[i].f_checker_name
148
+ ruhuArray[i] = res.data[i].rh
149
+ dfbyArray[i] = res.data[i].dfby
150
+ jjArray[i] = res.data[i].jj
151
+ wsytrqArray[i] = res.data[i].wsytrq
152
+ // self.count.rh += res.data[i].rh
153
+ // self.count.dfby += res.data[i].dfby
154
+ // self.count.jj += res.data[i].jj
155
+ // self.count.wsy += res.data[i].wsy
156
+ }
157
+ // self.count.checkrate = (100*self.count.rh/ self.count.zongliang).toFixed(0)+'%'
158
+ //掉绘图
159
+ self.set(checkerArrray,ruhuArray,dfbyArray,jjArray,wsytrqArray)
160
+ self.settable()
161
+ })
162
+ }
163
+ export default {
164
+ title: '安检员安检情况统计',
165
+ data () {
166
+ let options = []
167
+ let ye = (new Date()).getFullYear()
168
+ for(let i = ye - 5 ; i <= ye; i++ )
169
+ {
170
+ options.push({label: i + '', value: i + ''})
171
+ }
172
+ return {
173
+ full_screen: true,//控制全屏按键显示状态
174
+ show_all: false,//控制返回按键显示状态
175
+ //控制图表的显示状态
176
+ echartsshow: false,
177
+ detailshows: true,
178
+
179
+ //控制图表的style
180
+ barheight: '88.37%',
181
+ headheight: '11.61%',
182
+ styledate: {
183
+ echartsheight: '95%',
184
+ echartsfloat: 'none',
185
+ },
186
+ c_year_list: options,
187
+ f:this.$login.f,
188
+ chosenOrg: {
189
+ id: 0
190
+ },
191
+ count:{
192
+ zongliang:0,
193
+ rh:0,
194
+ dfby:0,
195
+ jj:0,
196
+ wsy:0,
197
+ checkrate:'0.00%',
198
+ },
199
+ model:new PagedList('rs/sql/YearCheckerCountRate',20, {year:'this.year',orgid:'this.orgid',plan_type:'this.plan_type',f_start_time:'this.f_start_time',f_end_time:'this.f_end_time',f_safecheck_type: 'this.f_safecheck_type'}),
200
+ orgid:`('${this.$login.f.orgid}')`,
201
+ //测试
202
+ // orgid:'2586252.6314787',
203
+ year:(new Date()).getFullYear(),
204
+ plan_type:'',
205
+ f_safecheck_type:'',
206
+ f_start_time:'',
207
+ f_end_time:'',
208
+ xc: '',
209
+ plan_types:[{label:'全部',value:''},{label:'年度安检单',value:'false'},{label:'首次通气单',value:'true'}]
210
+ }
211
+ },
212
+ props:{
213
+ f_filialeids:{
214
+ type:String
215
+ }
216
+ },
217
+ methods: {
218
+ barrdios() {//全屏按键事件
219
+ console.log("checker`全屏显示事件")
220
+ this.barshow = true
221
+ this.detailshows = false
222
+ this.echartsshow = true
223
+ this.show_all = true
224
+ this.full_screen = false
225
+ this.buttonshow = true
226
+ this.showdetail = false
227
+ this.styledate.echartsfloat = 'left'
228
+ this.styledate.echartsheight = '65%'
229
+ this.echartswidth = '50%'
230
+ this.headheight = '8%'
231
+ this.$parent.echarts = '5'
232
+ this.$emit('echarts-changed')
233
+ this.newecharts = true
234
+
235
+ console.log(this.$parent.echarts, '主图状态')
236
+ },
237
+ showall() {//返回按键事件
238
+ //修改显示状态
239
+ this.barshow = false
240
+ this.detailshows = true
241
+ this.echartsshow = false
242
+ this.buttonshow = false
243
+ this.newecharts = false
244
+ this.show_all = false
245
+ this.full_screen = true
246
+ this.showdetail = false
247
+ this.styledate.echartsheight = '95%'
248
+ this.echartswidth = '95%'
249
+ this.$parent.echarts = -1
250
+ this.headheight = '11.61%'
251
+ this.$emit('echarts-changed', this.echarts)
252
+ },
253
+ settable() {
254
+ this.model= new PagedList('rs/sql/YearCheckerCountRate',20, {year:'this.year',orgid:'this.orgid',plan_type:'this.plan_type',f_start_time:'this.f_start_time',f_end_time:'this.f_end_time',f_safecheck_type: 'this.f_safecheck_type'})
255
+ this.model.year = this.year
256
+ this.model.orgid = this.orgid
257
+ this.model.f_start_time = this.f_start_time
258
+ this.model.f_end_time = this.f_end_time
259
+ this.model.plan_type = this.plan_type
260
+ this.model.f_safecheck_type = this.f_safecheck_type
261
+ this.model.search('1=1')
262
+ },
263
+ set(checkerArrray,ruhuArray,dfbyArray,jjArray,wsytrqArray) {
264
+ let serieData = [{ //绘图数据
265
+ name: '入户',
266
+ type: "bar",
267
+ barWidth: '15%',
268
+ barGap: "30",
269
+ itemStyle: {
270
+ normal: {
271
+ barBorderRadius: 10,
272
+ borderColor: '#acf3ed',
273
+ color: '#fff',
274
+ label: {
275
+ show: true,
276
+ textStyle: {
277
+ color: "#4a7cae"
278
+ },
279
+ position: "top",
280
+ formatter: function (p) {
281
+ return p.value > 0 ? (p.value) : '';
282
+ }
283
+
284
+ }
285
+ }
286
+ },
287
+ data: ruhuArray,
288
+ },
289
+ { //绘图数据
290
+ name: '到访不遇',
291
+ type: "bar",
292
+ barWidth: '15%',
293
+ barGap: "-30%",
294
+ itemStyle: {
295
+ normal: {
296
+ barBorderRadius: 10,
297
+ color: '',
298
+ label: {
299
+ show: true,
300
+ textStyle: {
301
+ color: "#fccb05"
302
+ },
303
+ position: "insideTop",
304
+ formatter: function (p) {
305
+ return p.value > 0 ? (p.value) : '';
306
+ }
307
+ }
308
+ }
309
+ },
310
+ data: dfbyArray,
311
+ },
312
+ { //绘图数据
313
+ name: '拒检',
314
+ type: "bar",
315
+ barWidth: '15%',
316
+ barGap: "-30%",
317
+ itemStyle: {
318
+ normal: {
319
+ barBorderRadius: 10,
320
+ color: '',
321
+ label: {
322
+ show: true,
323
+ textStyle: {
324
+ color: "#fccb05"
325
+ },
326
+ position: "insideTop",
327
+ formatter: function (p) {
328
+ return p.value > 0 ? (p.value) : '';
329
+ }
330
+ }
331
+ }
332
+ },
333
+ data: jjArray,
334
+ },
335
+ { //绘图数据
336
+ name: '未使用天然气',
337
+ type: "bar",
338
+ barWidth: '15%',
339
+ barGap: "-30%",
340
+ itemStyle: {
341
+ normal: {
342
+ barBorderRadius: 10,
343
+ color: '',
344
+ label: {
345
+ show: true,
346
+ textStyle: {
347
+ color: "#fccb05"
348
+ },
349
+ position: "insideTop",
350
+ formatter: function (p) {
351
+ return p.value > 0 ? (p.value) : '';
352
+ }
353
+ }
354
+ }
355
+ },
356
+ data: wsytrqArray
357
+ }]
358
+
359
+ this.xc = echarts.init(document.getElementById('chechersafedetail'))
360
+ let text = ''
361
+ if(this.plan_type == ''){
362
+ text = '安检员居民用户安检工作量'
363
+ }
364
+ if(this.plan_type == 'false'){
365
+ text = '安检员居民用户年度安检工作量'
366
+ }
367
+ if(this.plan_type == 'true'){
368
+ text = '安检员居民用户首次通气安检工作量'
369
+ }
370
+ this.xc.setOption({
371
+ title : {
372
+ text: text,
373
+ x: 'left'
374
+ },
375
+ color: ['#3398DB'],
376
+ tooltip: {
377
+ trigger: 'axis',
378
+ axisPointer: { // 坐标轴指示器,坐标轴触发有效
379
+ type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
380
+ },
381
+
382
+ extraCssText: 'width: auto;height: auto;'
383
+ },
384
+ dataZoom: [{
385
+ type: 'inside',
386
+ show: true,
387
+ startValue: '0',
388
+ xAxisIndex: [0],
389
+ left: '9%',
390
+ bottom: -5,
391
+ start: 2,
392
+ end: 90 //初始化滚动条
393
+ }],
394
+ grid: {
395
+ left: '10',
396
+ right: '10',
397
+ bottom: '8',
398
+ containLabel: true
399
+ },
400
+ legend: {
401
+ data: ['入户', '到访不遇','拒检','未使用天然气'],
402
+ right: 10,
403
+ top: 12,
404
+ textStyle: {
405
+ color: "black"
406
+ },
407
+ itemWidth: 12,
408
+ itemHeight: 10,
409
+ // itemGap: 20
410
+ },
411
+ xAxis: [
412
+ {
413
+ type: 'category',
414
+ name: "安检员",
415
+ nameTextStyle: {color: "#6f8ba8"},
416
+ axisTick: {
417
+ alignWithLabel: true
418
+ },
419
+ axisLine: {show: true,lineStyle :{color:'#999999'}},
420
+ axisLabel: {show: true,interval:0,showMinLabel: true,
421
+ showMaxLabel: true, textStyle: {color: "#6f8ba8"}},
422
+ data: checkerArrray
423
+ }
424
+ ],
425
+ yAxis: [{
426
+ type: "value",
427
+ name: "数量",
428
+ nameTextStyle: {color: "#6f8ba8"},
429
+ splitLine: {show: true,lineStyle:{type:'dashed',color:'#e1e1e1'}},
430
+ axisTick: {show: true},
431
+ axisLine: {show: true,lineStyle :{color:'#999999'}},
432
+ axisLabel: {show: true, textStyle: {color: "#6f8ba8"}}
433
+ }],
434
+ series: serieData
435
+ }, true)
436
+ },
437
+ searchdata () {
438
+ console.log('searchdata')
439
+ console.log('this.orgid',this.orgid)
440
+ console.log('this.plan_type',this.plan_type)
441
+ let getGen =getData(this)
442
+ co(getGen)
443
+ }
444
+ },
445
+ ready () {
446
+ // this.orgid = `('${this.$login.f.orgid}')`
447
+ // this.orgid = this.f_filialeids
448
+ //测试
449
+ // this.orgid = '2586252.6314787'
450
+ // this.plan_type = ''
451
+ console.log('checker-safe-detail-ready')
452
+ // this.year =(new Date()).getFullYear()
453
+
454
+ this.searchdata()
455
+ },
456
+ watch: {
457
+ 'year' (val) {
458
+ console.log("我是watch")
459
+ this.searchdata()
460
+ },
461
+ 'plan_type' (val) {
462
+ console.log("我是plan_type")
463
+ this.f_safecheck_type = ''
464
+ if (this.plan_type == 'false') {
465
+ this.f_safecheck_type = '年度普检'
466
+ }
467
+ if (this.plan_type == 'true') {
468
+ this.f_safecheck_type = '首次通气'
469
+ }
470
+ this.searchdata()
471
+ },
472
+ 'f_filialeids'(){
473
+ console.log('safeer改变了')
474
+ this.orgid = this.f_filialeids
475
+ this.searchdata()
476
+ }
477
+ }
478
+
479
+ }
480
+ </script>
481
+ <style scoped>
482
+ .div-1 {
483
+ height: 85%;
484
+ width: 10%;
485
+ margin-left: 5%;
486
+ float: left;
487
+ margin-top: 1%;
488
+ }
489
+
490
+ .div-2 {
491
+ float: right;
492
+ width: 80%;
493
+ height: 55.56%;
494
+ margin-right: 1%;
495
+ margin-top: 0.5%;
496
+ }
497
+
498
+ .div-3 {
499
+ float: left;
500
+ margin-left: 2%;
501
+ padding-top: 2%;
502
+ width: 96%;
503
+ height: 99%;
504
+ }
505
+
506
+ .div-4 {
507
+ background-color: #fafafa;
508
+ }
509
+
510
+ table {
511
+ height: 100%;
512
+ width: 100%;
513
+ font-size: 12px
514
+ }
515
+
516
+ tr {
517
+ height: 25%;
518
+ width: 100%
519
+ }
520
+
521
+ td {
522
+ width: 11%;
523
+ font-size: 12px;
524
+ color: #666666;
525
+ }
526
+
527
+ .td-1 {
528
+ width: 16%;
529
+ color: #90addf;
530
+ font-size: 12px
531
+ }
532
+
533
+ .td-2 {
534
+ width: 15%;
535
+ color: #90addf;
536
+ font-size: 12px
537
+ }
538
+
539
+ span {
540
+ color: #90addf;
541
+ font-size: 12px
542
+ }
543
+
544
+ .span-1 {
545
+ color: #999999;
546
+ font-size: 12px
547
+ }
548
+
549
+ .p-1 {
550
+ font-size: 15px;
551
+ height: 99%;
552
+ width: 99%;
553
+ font-weight: bold;
554
+ color: #333333;
555
+ }
556
+
557
+ button {
558
+ width: 10%;
559
+ margin-top: 0%;
560
+ margin-left: 2%;
561
+ float: right;
562
+ background-color: #73ca73;
563
+ border-radius: 4px;
564
+ border: 1px solid #73ca73;
565
+ color: #ffffff;
566
+ font-size: 15px;
567
+ height: 120%;
568
+ }
569
+
570
+ .but-1 {
571
+ width: 17%;
572
+ float: right;
573
+ border-radius: 4px;
574
+ font-size: 12px;
575
+ height: 130%;
576
+ }
577
+
578
+ .but-2 {
579
+ background-color: #88b5e2;
580
+ border: #88b5e2;
581
+ width: 6%;
582
+ }
583
+
584
+ img {
585
+ width: 5px;
586
+ height: 18px;
587
+ }
588
+
589
+ .img-1 {
590
+ height: 12px;
591
+ width: auto;
592
+ }
593
+
594
+ </style>
595
+