完成签约之后直接添加人员,录入下发凭证
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

444 lines
13 KiB

  1. webpackJsonp([81],{
  2. /***/ "U409":
  3. /***/ (function(module, exports) {
  4. // removed by extract-text-webpack-plugin
  5. /***/ }),
  6. /***/ "mHv0":
  7. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8. "use strict";
  9. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  10. // EXTERNAL MODULE: ./src/api/allFun.js
  11. var allFun = __webpack_require__("mprh");
  12. // EXTERNAL MODULE: ./src/common/echart/index.vue + 4 modules
  13. var echart = __webpack_require__("C3+4");
  14. // EXTERNAL MODULE: ./src/components/scrolllist/index.vue + 2 modules
  15. var scrolllist = __webpack_require__("Lbay");
  16. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/presentationPage/manholeCoverMonitorHomePage.vue
  17. //
  18. //
  19. //
  20. //
  21. //
  22. //
  23. //
  24. //
  25. //
  26. //
  27. //
  28. //
  29. //
  30. //
  31. //
  32. //
  33. //
  34. //
  35. //
  36. //
  37. //
  38. //
  39. //
  40. //
  41. //
  42. //
  43. //
  44. //
  45. //
  46. //
  47. //
  48. // import Schart from "vue-schart";
  49. // import scrollvue from "../components/scrollvue"
  50. /* harmony default export */ var manholeCoverMonitorHomePage = ({
  51. name: "dashboard",
  52. data: function data() {
  53. return {
  54. statisticalParameters: [{
  55. title: '设备总数',
  56. num: '0',
  57. company: '个'
  58. }, {
  59. title: '在线设备',
  60. num: '0',
  61. company: '个'
  62. }, {
  63. title: '离线设备',
  64. num: '0',
  65. company: '个'
  66. }, {
  67. title: '异常设备',
  68. num: '0',
  69. company: '个'
  70. }, {
  71. title: '井盖打开数量',
  72. num: '0',
  73. company: '个'
  74. }, {
  75. title: '井盖晃动数量',
  76. num: '0',
  77. company: '个'
  78. }, {
  79. title: '满溢数量',
  80. num: '0',
  81. company: '个'
  82. }, {
  83. title: '甲烷气体超标数量',
  84. num: '0',
  85. company: '个'
  86. }, {
  87. title: '高温数量',
  88. num: '0',
  89. company: '个'
  90. }],
  91. animate: false,
  92. name: localStorage.getItem("ms_username"),
  93. options: {
  94. title: {
  95. text: '电量满溢情况'
  96. },
  97. tooltip: {
  98. trigger: 'axis'
  99. },
  100. color: ['#91cc75', '#ee6666'],
  101. legend: {
  102. data: ['正常', '满溢警告'],
  103. textStyle: "#333"
  104. },
  105. textStyle: {
  106. color: "#333"
  107. },
  108. grid: {
  109. left: '3%',
  110. right: '4%',
  111. bottom: '3%',
  112. containLabel: true
  113. },
  114. xAxis: {
  115. type: 'category',
  116. boundaryGap: false,
  117. data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
  118. axisLabel: {
  119. textStyle: {
  120. color: "#666",
  121. margin: 15
  122. }
  123. }
  124. },
  125. yAxis: {
  126. type: 'value',
  127. axisLabel: {
  128. textStyle: {
  129. color: "#666",
  130. margin: 15
  131. }
  132. }
  133. },
  134. series: [{
  135. name: '正常',
  136. type: 'line',
  137. // stack: 'Total',
  138. data: [220, 182, 191, 234, 290, 330, 310]
  139. }, {
  140. name: '满溢警告',
  141. type: 'line',
  142. // stack: 'center',
  143. data: [10, 11, 5, 6, 23, 25, 32]
  144. }]
  145. },
  146. options2: {
  147. title: {
  148. text: '电量分布情况'
  149. },
  150. tooltip: {
  151. trigger: 'item'
  152. },
  153. legend: {
  154. top: '5%',
  155. left: 'center',
  156. textStyle: {
  157. color: "#666"
  158. }
  159. },
  160. series: [{
  161. name: '电量情况',
  162. type: 'pie',
  163. radius: ['40%', '70%'],
  164. avoidLabelOverlap: false,
  165. itemStyle: {
  166. borderRadius: 10,
  167. borderColor: '#fff',
  168. borderWidth: 2
  169. },
  170. label: {
  171. show: false,
  172. position: 'center',
  173. color: "#666"
  174. },
  175. emphasis: {
  176. label: {
  177. show: true,
  178. fontSize: '20',
  179. fontWeight: 'bold'
  180. }
  181. },
  182. labelLine: {
  183. // show: false,
  184. normal: {
  185. length: 15, // 指示线长度
  186. lineStyle: {
  187. color: "#595959" // 指示线颜色
  188. }
  189. }
  190. },
  191. data: [{
  192. value: 0,
  193. name: '0-20%'
  194. }, {
  195. value: 0,
  196. name: '20%-40%'
  197. }, {
  198. value: 0,
  199. name: '40%-60%'
  200. }, {
  201. value: 0,
  202. name: '60%-80%'
  203. }, {
  204. value: 0,
  205. name: '80%-100%'
  206. }]
  207. }]
  208. },
  209. options3: {
  210. title: {
  211. text: '设备电量统计'
  212. },
  213. tooltip: {
  214. trigger: 'axis'
  215. },
  216. color: ['#fac858', '#91cc75', '#ee6666'],
  217. legend: {
  218. data: ['OTA未升级', 'OTA已升级', '低电设备'],
  219. textStyle: "#333"
  220. },
  221. textStyle: {
  222. color: "#333"
  223. },
  224. grid: {
  225. left: '3%',
  226. right: '4%',
  227. bottom: '3%',
  228. containLabel: true
  229. },
  230. xAxis: {
  231. type: 'category',
  232. boundaryGap: false,
  233. data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
  234. axisLabel: {
  235. textStyle: {
  236. color: "#666",
  237. margin: 15
  238. }
  239. }
  240. },
  241. yAxis: {
  242. type: 'value',
  243. axisLabel: {
  244. textStyle: {
  245. color: "#666",
  246. margin: 15
  247. }
  248. }
  249. },
  250. series: [{
  251. name: 'OTA未升级',
  252. type: 'line',
  253. // stack: 'center',
  254. data: [10, 11, 5, 6, 23, 25, 32]
  255. }, {
  256. name: 'OTA已升级',
  257. type: 'line',
  258. // stack: 'Total',
  259. data: [220, 182, 191, 234, 290, 330, 310]
  260. }, {
  261. name: '低电设备',
  262. type: 'line',
  263. // stack: 'bottom',
  264. data: [0, 1, 0, 0, 0, 0, 0]
  265. }]
  266. },
  267. items: [],
  268. alertTypeList: [],
  269. timerman: null
  270. };
  271. },
  272. components: {
  273. Echart: echart["a" /* default */],
  274. scrolllist: scrolllist["a" /* default */]
  275. // Schart,
  276. // scrollvue
  277. },
  278. beforeDestroy: function beforeDestroy() {
  279. window.clearInterval(this.timerman);
  280. this.timerman = null;
  281. },
  282. created: function created() {
  283. this.alertTypeList = this.$MANUFACTURER.alertType.manholeCoverLog;
  284. },
  285. mounted: function mounted() {
  286. var _this = this;
  287. this.getAnalysis();
  288. this.timerman = window.setInterval(function () {
  289. setTimeout(_this.getlog, 0);
  290. }, 4000);
  291. // setInterval(this.scroll, 1000);
  292. },
  293. methods: {
  294. getlog: function getlog() {
  295. var _this2 = this;
  296. var data = {
  297. deviceType: 8
  298. };
  299. allFun["a" /* default */].getWarningLog(data, function (callback) {
  300. if (callback.success) {
  301. callback.data.list.map(function (li, index) {
  302. li['alertTypeDesc'] = '';
  303. var alertTypeDesc = _this2.alertTypeList.filter(function (item) {
  304. return item.code == li.alertType;
  305. })[0];
  306. if (alertTypeDesc) {
  307. li['alertTypeDesc'] = alertTypeDesc.desc;
  308. } else {
  309. li['alertTypeDesc'] = '';
  310. }
  311. var resultStatus = allFun["a" /* default */].judgmentTimestamp(li.alertTime);
  312. if (resultStatus) {
  313. setTimeout(function () {
  314. _this2.$notify({
  315. title: li.alertTypeDesc,
  316. offset: 200,
  317. duration: 2000,
  318. message: li.alertTypeDesc,
  319. type: 'warning'
  320. });
  321. }, 3000);
  322. } else {}
  323. });
  324. }
  325. });
  326. },
  327. getAnalysis: function getAnalysis() {
  328. var _this3 = this;
  329. allFun["a" /* default */].getAnalysis("", 8, function (callback) {
  330. _this3.statisticalParameters[0].num = callback.total || 0;
  331. _this3.statisticalParameters[1].num = callback.onlineTotal || 0;
  332. _this3.statisticalParameters[2].num = callback.offlineTotal || 0;
  333. _this3.statisticalParameters[3].num = callback.abnormalTotal || 0;
  334. _this3.setOptionsData(callback);
  335. });
  336. allFun["a" /* default */].getAlertTypeOrder('', 8, function (callback) {
  337. if (callback.success) {
  338. if (callback.data.length > 0) {
  339. var days = allFun["a" /* default */].classification();
  340. var array = allFun["a" /* default */].groupBy(callback.data, ["code", "order"], function (cul, data) {
  341. return cul + 1;
  342. });
  343. var loopObjectData = allFun["a" /* default */].loopObject(array, _this3.alertTypeList);
  344. var legendData = [];
  345. loopObjectData.map(function (li) {
  346. legendData.push(li.name);
  347. });
  348. _this3.options.series = loopObjectData;
  349. _this3.options.legend.data = legendData;
  350. _this3.options.xAxis.data = days;
  351. }
  352. } else {
  353. _this3.$message.error(callback.message);
  354. }
  355. });
  356. },
  357. setOptionsData: function setOptionsData(data) {
  358. var options2 = this.options2;
  359. options2.series[0].data[0].value = data.batteryLevel1;
  360. options2.series[0].data[1].value = data.batteryLevel2;
  361. options2.series[0].data[2].value = data.batteryLevel3;
  362. options2.series[0].data[3].value = data.batteryLevel4;
  363. options2.series[0].data[4].value = data.batteryLevel5;
  364. },
  365. tgces: function tgces() {
  366. this.$router.push({
  367. path: "/test"
  368. });
  369. },
  370. scroll: function scroll() {
  371. var _this4 = this;
  372. this.animate = true; // 因为在消息向上滚动的时候需要添加css3过渡动画,所以这里需要设置true
  373. setTimeout(function () {
  374. // 这里直接使用了es6的箭头函数,省去了处理this指向偏移问题,代码也比之前简化了很多
  375. _this4.tableData.push(_this4.tableData[0]); // 将数组的第一个元素添加到数组的
  376. _this4.tableData.shift(); //删除数组的第一个元素
  377. _this4.animate = false; // margin-top 为0 的时候取消过渡动画,实现无缝滚动
  378. }, 500);
  379. },
  380. changeDate: function changeDate() {
  381. var now = new Date().getTime();
  382. this.data.forEach(function (item, index) {
  383. var date = new Date(now - (6 - index) * 86400000);
  384. item.name = date.getFullYear() + "/" + (date.getMonth() + 1) + "/" + date.getDate();
  385. });
  386. }
  387. }
  388. });
  389. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-2262c065","hasScoped":true,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/presentationPage/manholeCoverMonitorHomePage.vue
  390. var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"content1"},[_c('el-row',{staticClass:"elrow",attrs:{"gutter":20}},_vm._l((_vm.statisticalParameters),function(item,index){return _c('el-col',{key:index,staticClass:"mrBottom20",attrs:{"span":4}},[_c('el-card',{staticClass:"caredradious",attrs:{"shadow":"always","body-style":{padding:'0px'}}},[_c('div',{staticClass:"grid-content grid-con-1"},[_c('div',{staticClass:"colposition"},[_c('div',{staticClass:"grid-cont-right"},[_c('div',[_vm._v(_vm._s(item.title))]),_vm._v(" "),_c('div',{staticClass:"grid-num"},[_vm._v(_vm._s(item.num)+" "),_c('span',[_vm._v(_vm._s(item.company))])])])])])])],1)}),1),_vm._v(" "),_c('el-row',{staticClass:"elrow",attrs:{"gutter":20}},[_c('el-col',{attrs:{"span":24}},[_c('el-card',{attrs:{"shadow":"hover"}},[_c('Echart',{staticClass:"schart",attrs:{"options":_vm.options2,"width":"100%","height":"18vw"}})],1)],1)],1)],1)}
  391. var staticRenderFns = []
  392. var esExports = { render: render, staticRenderFns: staticRenderFns }
  393. /* harmony default export */ var presentationPage_manholeCoverMonitorHomePage = (esExports);
  394. // CONCATENATED MODULE: ./src/views/presentationPage/manholeCoverMonitorHomePage.vue
  395. function injectStyle (ssrContext) {
  396. __webpack_require__("U409")
  397. }
  398. var normalizeComponent = __webpack_require__("VU/8")
  399. /* script */
  400. /* template */
  401. /* template functional */
  402. var __vue_template_functional__ = false
  403. /* styles */
  404. var __vue_styles__ = injectStyle
  405. /* scopeId */
  406. var __vue_scopeId__ = "data-v-2262c065"
  407. /* moduleIdentifier (server only) */
  408. var __vue_module_identifier__ = null
  409. var Component = normalizeComponent(
  410. manholeCoverMonitorHomePage,
  411. presentationPage_manholeCoverMonitorHomePage,
  412. __vue_template_functional__,
  413. __vue_styles__,
  414. __vue_scopeId__,
  415. __vue_module_identifier__
  416. )
  417. /* harmony default export */ var views_presentationPage_manholeCoverMonitorHomePage = __webpack_exports__["default"] = (Component.exports);
  418. /***/ })
  419. });