完成签约之后直接添加人员,录入下发凭证
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.

423 lines
12 KiB

  1. webpackJsonp([50],{
  2. /***/ "QYMw":
  3. /***/ (function(module, exports) {
  4. // removed by extract-text-webpack-plugin
  5. /***/ }),
  6. /***/ "rQSZ":
  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/infraredAlarmHomePage.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 infraredAlarmHomePage = ({
  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. animate: false,
  76. name: localStorage.getItem("ms_username"),
  77. options: {
  78. title: {
  79. text: '红外一周报警情况'
  80. },
  81. tooltip: {
  82. trigger: 'axis'
  83. },
  84. color: ['#91cc75', '#ee6666'],
  85. legend: {
  86. data: ['', ''],
  87. textStyle: "#333"
  88. },
  89. textStyle: {
  90. color: "#333"
  91. },
  92. grid: {
  93. left: '3%',
  94. right: '4%',
  95. bottom: '3%',
  96. containLabel: true
  97. },
  98. xAxis: {
  99. type: 'category',
  100. boundaryGap: false,
  101. data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
  102. axisLabel: {
  103. textStyle: {
  104. color: "#666",
  105. margin: 15
  106. }
  107. }
  108. },
  109. yAxis: {
  110. type: 'value',
  111. axisLabel: {
  112. textStyle: {
  113. color: "#666",
  114. margin: 15
  115. }
  116. }
  117. },
  118. series: [{
  119. name: '',
  120. type: 'line',
  121. // stack: 'Total',
  122. data: [0, 0, 0, 0, 0, 0, 0]
  123. }]
  124. },
  125. options2: {
  126. title: {
  127. text: '电量分布情况'
  128. },
  129. tooltip: {
  130. trigger: 'item'
  131. },
  132. legend: {
  133. top: '5%',
  134. left: 'center',
  135. textStyle: {
  136. color: "#666"
  137. }
  138. },
  139. series: [{
  140. name: '电量情况',
  141. type: 'pie',
  142. radius: ['40%', '70%'],
  143. avoidLabelOverlap: false,
  144. itemStyle: {
  145. borderRadius: 10,
  146. borderColor: '#fff',
  147. borderWidth: 2
  148. },
  149. label: {
  150. show: false,
  151. position: 'center',
  152. color: "#666"
  153. },
  154. emphasis: {
  155. label: {
  156. show: true,
  157. fontSize: '20',
  158. fontWeight: 'bold'
  159. }
  160. },
  161. labelLine: {
  162. // show: false,
  163. normal: {
  164. length: 15, // 指示线长度
  165. lineStyle: {
  166. color: "#595959" // 指示线颜色
  167. }
  168. }
  169. },
  170. data: [{
  171. value: 0,
  172. name: '0-20%'
  173. }, {
  174. value: 0,
  175. name: '20%-40%'
  176. }, {
  177. value: 0,
  178. name: '40%-60%'
  179. }, {
  180. value: 0,
  181. name: '60%-80%'
  182. }, {
  183. value: 0,
  184. name: '80%-100%'
  185. }]
  186. }]
  187. },
  188. options3: {
  189. title: {
  190. text: '设备电量统计'
  191. },
  192. tooltip: {
  193. trigger: 'axis'
  194. },
  195. color: ['#fac858', '#91cc75', '#ee6666'],
  196. legend: {
  197. data: ['OTA未升级', 'OTA已升级', '低电设备'],
  198. textStyle: "#333"
  199. },
  200. textStyle: {
  201. color: "#333"
  202. },
  203. grid: {
  204. left: '3%',
  205. right: '4%',
  206. bottom: '3%',
  207. containLabel: true
  208. },
  209. xAxis: {
  210. type: 'category',
  211. boundaryGap: false,
  212. data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
  213. axisLabel: {
  214. textStyle: {
  215. color: "#666",
  216. margin: 15
  217. }
  218. }
  219. },
  220. yAxis: {
  221. type: 'value',
  222. axisLabel: {
  223. textStyle: {
  224. color: "#666",
  225. margin: 15
  226. }
  227. }
  228. },
  229. series: [{
  230. name: 'OTA未升级',
  231. type: 'line',
  232. // stack: 'center',
  233. data: [10, 11, 5, 6, 23, 25, 32]
  234. }, {
  235. name: 'OTA已升级',
  236. type: 'line',
  237. // stack: 'Total',
  238. data: [220, 182, 191, 234, 290, 330, 310]
  239. }, {
  240. name: '低电设备',
  241. type: 'line',
  242. // stack: 'bottom',
  243. data: [0, 1, 0, 0, 0, 0, 0]
  244. }]
  245. },
  246. items: [],
  247. alertTypeList: [],
  248. timerinf: null
  249. };
  250. },
  251. components: {
  252. Echart: echart["a" /* default */],
  253. scrolllist: scrolllist["a" /* default */]
  254. // Schart,
  255. // scrollvue
  256. },
  257. beforeDestroy: function beforeDestroy() {
  258. window.clearInterval(this.timerinf);
  259. this.timerinf = null;
  260. },
  261. created: function created() {
  262. this.alertTypeList = this.$MANUFACTURER.alertType.humanMotionSensorLog;
  263. },
  264. mounted: function mounted() {
  265. var _this = this;
  266. this.getAnalysis();
  267. this.timerinf = window.setInterval(function () {
  268. setTimeout(_this.getlog, 0);
  269. }, 4000);
  270. // setInterval(this.scroll, 1000);
  271. },
  272. methods: {
  273. getlog: function getlog() {
  274. var _this2 = this;
  275. var data = {
  276. deviceType: 6
  277. };
  278. allFun["a" /* default */].getWarningLog(data, function (callback) {
  279. if (callback.success) {
  280. callback.data.list.map(function (li, index) {
  281. li['alertTypeDesc'] = '';
  282. var alertTypeDesc = _this2.alertTypeList.filter(function (item) {
  283. return item.code == li.alertType;
  284. })[0];
  285. if (alertTypeDesc) {
  286. li['alertTypeDesc'] = alertTypeDesc.desc;
  287. } else {
  288. li['alertTypeDesc'] = '';
  289. }
  290. var resultStatus = allFun["a" /* default */].judgmentTimestamp(li.alertTime);
  291. if (resultStatus) {
  292. setTimeout(function () {
  293. _this2.$notify({
  294. title: li.alertTypeDesc,
  295. offset: 200,
  296. duration: 2000,
  297. message: li.alertTypeDesc,
  298. type: 'warning'
  299. });
  300. }, 3000);
  301. } else {}
  302. });
  303. }
  304. });
  305. },
  306. getAnalysis: function getAnalysis() {
  307. var _this3 = this;
  308. allFun["a" /* default */].getAnalysis("", 6, function (callback) {
  309. _this3.statisticalParameters[0].num = callback.total || 0;
  310. _this3.statisticalParameters[1].num = callback.onlineTotal || 0;
  311. _this3.statisticalParameters[2].num = callback.offlineTotal || 0;
  312. _this3.statisticalParameters[3].num = callback.abnormalTotal || 0;
  313. _this3.setOptionsData(callback);
  314. });
  315. allFun["a" /* default */].getAlertTypeOrder('', 6, function (callback) {
  316. if (callback.success) {
  317. if (callback.data.length > 0) {
  318. var days = allFun["a" /* default */].classification();
  319. var array = allFun["a" /* default */].groupBy(callback.data, ["code", "order"], function (cul, data) {
  320. return cul + 1;
  321. });
  322. var loopObjectData = allFun["a" /* default */].loopObject(array, _this3.alertTypeList);
  323. var legendData = [];
  324. loopObjectData.map(function (li) {
  325. legendData.push(li.name);
  326. });
  327. _this3.options.series = loopObjectData;
  328. _this3.options.legend.data = legendData;
  329. _this3.options.xAxis.data = days;
  330. }
  331. } else {
  332. _this3.$message.error(callback.message);
  333. }
  334. });
  335. },
  336. setOptionsData: function setOptionsData(data) {
  337. var options2 = this.options2;
  338. options2.series[0].data[0].value = data.batteryLevel1;
  339. options2.series[0].data[1].value = data.batteryLevel2;
  340. options2.series[0].data[2].value = data.batteryLevel3;
  341. options2.series[0].data[3].value = data.batteryLevel4;
  342. options2.series[0].data[4].value = data.batteryLevel5;
  343. },
  344. tgces: function tgces() {
  345. this.$router.push({
  346. path: "/test"
  347. });
  348. },
  349. scroll: function scroll() {
  350. var _this4 = this;
  351. this.animate = true; // 因为在消息向上滚动的时候需要添加css3过渡动画,所以这里需要设置true
  352. setTimeout(function () {
  353. // 这里直接使用了es6的箭头函数,省去了处理this指向偏移问题,代码也比之前简化了很多
  354. _this4.tableData.push(_this4.tableData[0]); // 将数组的第一个元素添加到数组的
  355. _this4.tableData.shift(); //删除数组的第一个元素
  356. _this4.animate = false; // margin-top 为0 的时候取消过渡动画,实现无缝滚动
  357. }, 500);
  358. },
  359. changeDate: function changeDate() {
  360. var now = new Date().getTime();
  361. this.data.forEach(function (item, index) {
  362. var date = new Date(now - (6 - index) * 86400000);
  363. item.name = date.getFullYear() + "/" + (date.getMonth() + 1) + "/" + date.getDate();
  364. });
  365. }
  366. }
  367. });
  368. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-7fda32d6","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/infraredAlarmHomePage.vue
  369. 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":12}},[_c('el-card',{attrs:{"shadow":"hover"}},[_c('Echart',{staticClass:"schart",attrs:{"options":_vm.options,"width":"100%","height":"18vw"}})],1)],1),_vm._v(" "),_c('el-col',{attrs:{"span":12}},[_c('el-card',{attrs:{"shadow":"hover"}},[_c('Echart',{staticClass:"schart",attrs:{"options":_vm.options2,"width":"100%","height":"18vw"}})],1)],1)],1)],1)}
  370. var staticRenderFns = []
  371. var esExports = { render: render, staticRenderFns: staticRenderFns }
  372. /* harmony default export */ var presentationPage_infraredAlarmHomePage = (esExports);
  373. // CONCATENATED MODULE: ./src/views/presentationPage/infraredAlarmHomePage.vue
  374. function injectStyle (ssrContext) {
  375. __webpack_require__("QYMw")
  376. }
  377. var normalizeComponent = __webpack_require__("VU/8")
  378. /* script */
  379. /* template */
  380. /* template functional */
  381. var __vue_template_functional__ = false
  382. /* styles */
  383. var __vue_styles__ = injectStyle
  384. /* scopeId */
  385. var __vue_scopeId__ = "data-v-7fda32d6"
  386. /* moduleIdentifier (server only) */
  387. var __vue_module_identifier__ = null
  388. var Component = normalizeComponent(
  389. infraredAlarmHomePage,
  390. presentationPage_infraredAlarmHomePage,
  391. __vue_template_functional__,
  392. __vue_styles__,
  393. __vue_scopeId__,
  394. __vue_module_identifier__
  395. )
  396. /* harmony default export */ var views_presentationPage_infraredAlarmHomePage = __webpack_exports__["default"] = (Component.exports);
  397. /***/ })
  398. });