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