safecheck-client 3.0.39-16 → 3.0.39-17

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 (242) 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/phonestate/MonthlyTraffic.vue +66 -66
  218. package/src/components/phonestate/MonthlyTrafficRouter.vue +15 -15
  219. package/src/components/phonestate/PostMap.vue +82 -82
  220. package/src/components/querycheckpaper/PaperItem.vue +59 -59
  221. package/src/components/userfile/MeterFile.vue +145 -145
  222. package/src/components/userfile/MeterModify.vue +46 -46
  223. package/src/components/userfileaudit/MeterAuditFile.vue +129 -129
  224. package/src/filiale/hanzhong/pc/CheckHiddenDanger.vue +713 -713
  225. package/src/filiale/hanzhong/pc/CheckNumberStatistics.vue +499 -499
  226. package/src/filiale/hanzhong/pc/CheckSafeDetail.vue +578 -578
  227. package/src/filiale/hanzhong/pc/CheckSafeStatus.vue +508 -508
  228. package/src/filiale/hanzhong/pc/CheckerSafeDetail.vue +595 -595
  229. package/src/filiale/hanzhong/pc/HomeEcharts.vue +153 -153
  230. package/src/filiale/siyang/android/SafecheckDevices.vue +1302 -1302
  231. package/src/plugins/LoadData.js +10 -10
  232. package/src/plugins/LoadParams.js +24 -24
  233. package/src/stores/wxconfig.js +10 -10
  234. package/src/utils/getNowDate.js +33 -33
  235. package/test/e2e/custom-assertions/elementCount.js +26 -26
  236. package/test/e2e/nightwatch.conf.js +40 -40
  237. package/test/e2e/runner.js +30 -30
  238. package/test/e2e/specs/test.js +13 -13
  239. package/test/unit/.eslintrc +5 -5
  240. package/test/unit/TestUtil.js +62 -62
  241. package/test/unit/context.html +20 -20
  242. package/test/unit/index.js +13 -13
@@ -1,578 +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('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
-
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
+