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

511 lines
15 KiB

  1. webpackJsonp([91],{
  2. /***/ "GXWG":
  3. /***/ (function(module, exports) {
  4. // removed by extract-text-webpack-plugin
  5. /***/ }),
  6. /***/ "VPE/":
  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/homePageDistributionCabinetIsEmpty.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. //
  49. //
  50. //
  51. //
  52. //
  53. //
  54. //
  55. // import Schart from "vue-schart";
  56. // import scrollvue from "../components/scrollvue"
  57. /* harmony default export */ var homePageDistributionCabinetIsEmpty = ({
  58. name: "dashboard",
  59. data: function data() {
  60. return {
  61. statisticalParameters: [{
  62. title: '设备总数',
  63. num: '0',
  64. company: '个'
  65. }, {
  66. title: '在线设备',
  67. num: '0',
  68. company: '个'
  69. }, {
  70. title: '离线设备',
  71. num: '0',
  72. company: '个'
  73. }, {
  74. title: '今日报警数',
  75. num: '0',
  76. company: '个'
  77. }, {
  78. title: '本月报警数',
  79. num: '0',
  80. company: '个'
  81. }],
  82. animate: false,
  83. name: localStorage.getItem("ms_username"),
  84. options3: {
  85. title: {
  86. text: '报警预警趋势'
  87. },
  88. tooltip: {
  89. trigger: 'axis'
  90. },
  91. color: ['#91cc75', '#ee6666'],
  92. legend: {
  93. data: ['预警', '报警'],
  94. type: 'scroll',
  95. orient: 'horizontal',
  96. textStyle: "#333"
  97. },
  98. textStyle: {
  99. color: "#333"
  100. },
  101. grid: {
  102. left: '3%',
  103. right: '4%',
  104. bottom: '3%',
  105. containLabel: true
  106. },
  107. xAxis: {
  108. type: 'category',
  109. boundaryGap: false,
  110. data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
  111. axisLabel: {
  112. textStyle: {
  113. color: "#666",
  114. margin: 15
  115. }
  116. }
  117. },
  118. yAxis: {
  119. type: 'value',
  120. axisLabel: {
  121. textStyle: {
  122. color: "#666",
  123. margin: 15
  124. }
  125. }
  126. },
  127. series: [{
  128. name: '预警',
  129. type: 'line',
  130. // stack: 'center',
  131. data: [0, 0, 0, 0, 0, 0, 0]
  132. }, {
  133. name: '报警',
  134. type: 'line',
  135. // stack: 'Total',
  136. data: [0, 0, 0, 0, 0, 0, 0]
  137. }]
  138. },
  139. options2: {
  140. title: {
  141. text: '报警类型分布'
  142. },
  143. tooltip: {
  144. trigger: 'item'
  145. },
  146. legend: {
  147. orient: 'vertical',
  148. top: '10%',
  149. left: 'left',
  150. type: 'scroll',
  151. textStyle: {
  152. color: "#666"
  153. }
  154. },
  155. series: [{
  156. name: '报警类型分布',
  157. type: 'pie',
  158. radius: ['40%', '70%'],
  159. avoidLabelOverlap: false,
  160. itemStyle: {
  161. borderRadius: 10,
  162. borderColor: '#fff',
  163. borderWidth: 2
  164. },
  165. label: {
  166. show: false,
  167. position: 'center',
  168. color: "#666"
  169. },
  170. emphasis: {
  171. label: {
  172. show: true,
  173. fontSize: '20',
  174. fontWeight: 'bold'
  175. }
  176. },
  177. labelLine: {
  178. // show: false,
  179. normal: {
  180. length: 15, // 指示线长度
  181. lineStyle: {
  182. color: "#595959" // 指示线颜色
  183. }
  184. }
  185. },
  186. data: [{
  187. value: 0,
  188. name: '短路报警'
  189. }, {
  190. value: 0,
  191. name: '漏电报警'
  192. }, {
  193. value: 0,
  194. name: '过载报警'
  195. }, {
  196. value: 0,
  197. name: '过流报警'
  198. }, {
  199. value: 0,
  200. name: '过压报警'
  201. }, {
  202. value: 0,
  203. name: '欠压报警'
  204. }, {
  205. value: 0,
  206. name: '温度报警'
  207. }, {
  208. value: 0,
  209. name: '浪涌报警'
  210. }, {
  211. value: 0,
  212. name: '电弧报警'
  213. }, {
  214. value: 0,
  215. name: '缺相报警'
  216. }, {
  217. value: 0,
  218. name: '三相负载不平衡报警'
  219. }, {
  220. value: 0,
  221. name: '三相序报警'
  222. }, {
  223. value: 0,
  224. name: '掉电报警'
  225. }, {
  226. value: 0,
  227. name: '开箱报警'
  228. }, {
  229. value: 0,
  230. name: '湿度报警'
  231. }, {
  232. value: 0,
  233. name: '输入报警'
  234. }, {
  235. value: 0,
  236. name: '恶性负载报警'
  237. }, {
  238. value: 0,
  239. name: '光照报警'
  240. }, {
  241. value: 0,
  242. name: '组态报警'
  243. }, {
  244. value: 0,
  245. name: '离线报警'
  246. }, {
  247. value: 0,
  248. name: '异常分闸'
  249. }, {
  250. value: 0,
  251. name: '过压报警(A级)'
  252. }, {
  253. value: 0,
  254. name: '过流报警(A级)'
  255. }, {
  256. value: 0,
  257. name: '反流报警'
  258. }, {
  259. value: 0,
  260. name: '烟雾报警'
  261. }, {
  262. value: 0,
  263. name: '压强报警'
  264. }, {
  265. value: 0,
  266. name: '液位报警'
  267. }, {
  268. value: 0,
  269. name: '燃气报警'
  270. }, {
  271. value: 0,
  272. name: '设备故障报警'
  273. }, {
  274. value: 0,
  275. name: '通讯故障报警'
  276. }]
  277. }]
  278. },
  279. options: {
  280. title: {
  281. text: '报警类型分布'
  282. },
  283. tooltip: {
  284. trigger: 'item'
  285. },
  286. legend: {
  287. orient: 'vertical',
  288. top: '10%',
  289. left: 'left',
  290. type: 'scroll',
  291. textStyle: {
  292. color: "#666"
  293. }
  294. },
  295. series: [{
  296. name: '报警类型分布',
  297. type: 'pie',
  298. radius: ['40%', '70%'],
  299. avoidLabelOverlap: false,
  300. itemStyle: {
  301. borderRadius: 10,
  302. borderColor: '#fff',
  303. borderWidth: 2
  304. },
  305. label: {
  306. show: false,
  307. position: 'center',
  308. color: "#666"
  309. },
  310. emphasis: {
  311. label: {
  312. show: true,
  313. fontSize: '20',
  314. fontWeight: 'bold'
  315. }
  316. },
  317. labelLine: {
  318. // show: false,
  319. normal: {
  320. length: 15, // 指示线长度
  321. lineStyle: {
  322. color: "#595959" // 指示线颜色
  323. }
  324. }
  325. },
  326. data: []
  327. }]
  328. },
  329. items: [],
  330. timerhome: null
  331. };
  332. },
  333. components: {
  334. Echart: echart["a" /* default */],
  335. scrolllist: scrolllist["a" /* default */]
  336. // Schart,
  337. // scrollvue
  338. },
  339. beforeDestroy: function beforeDestroy() {
  340. window.clearInterval(this.timerhome);
  341. this.timerhome = null;
  342. },
  343. created: function created() {
  344. this.alertTypeList = this.$MANUFACTURER.alertType.emptyLog;
  345. },
  346. mounted: function mounted() {
  347. var _this = this;
  348. this.getAnalysis();
  349. this.timerhome = window.setInterval(function () {
  350. setTimeout(_this.getlog, 0);
  351. }, 4000);
  352. },
  353. methods: {
  354. getlog: function getlog() {
  355. var _this2 = this;
  356. this.getAnalysis();
  357. var data = {
  358. deviceType: 3
  359. };
  360. allFun["a" /* default */].getWarningLog(data, function (callback) {
  361. if (callback.success) {
  362. callback.data.list.map(function (li, index) {
  363. li['alertTypeDesc'] = '';
  364. var alertTypeDesc = _this2.alertTypeList.filter(function (item) {
  365. return item.code == li.alertType;
  366. })[0];
  367. if (alertTypeDesc) {
  368. li['alertTypeDesc'] = alertTypeDesc.desc;
  369. } else {
  370. li['alertTypeDesc'] = '';
  371. }
  372. var resultStatus = allFun["a" /* default */].judgmentTimestamp(li.alertTime);
  373. if (resultStatus) {
  374. setTimeout(function () {
  375. _this2.$notify({
  376. title: li.alertTypeDesc,
  377. offset: 200,
  378. duration: 2000,
  379. message: li.alertTypeDesc,
  380. type: 'warning'
  381. });
  382. }, 3000);
  383. } else {}
  384. });
  385. }
  386. });
  387. },
  388. getAnalysis: function getAnalysis() {
  389. var _this3 = this;
  390. allFun["a" /* default */].getAnalysis("", 3, function (callback) {
  391. _this3.statisticalParameters[0].num = callback.total || 0;
  392. _this3.statisticalParameters[1].num = callback.onlineTotal || 0;
  393. _this3.statisticalParameters[2].num = callback.offlineTotal || 0;
  394. _this3.setOptionsData(callback);
  395. });
  396. allFun["a" /* default */].getAlertTypeOrder('', 3, function (callback) {
  397. if (callback.success) {
  398. _this3.statisticalParameters[3].num = callback.data.length || 0;
  399. _this3.statisticalParameters[4].num = callback.data.length || 0;
  400. if (callback.data.length > 0) {
  401. var days = allFun["a" /* default */].classification();
  402. var array = allFun["a" /* default */].groupBy(callback.data, ["code", "order"], function (cul, data) {
  403. return cul + 1;
  404. });
  405. var array1 = allFun["a" /* default */].groupBy(callback.data, ["code"], function (cul, data) {
  406. return cul + 1;
  407. });
  408. var loopObjectData = allFun["a" /* default */].loopObject(array, _this3.alertTypeList);
  409. var loopObjectData1 = allFun["a" /* default */].loopObjectSum(array1, _this3.alertTypeList);
  410. var legendData = [];
  411. loopObjectData.map(function (li) {
  412. legendData.push(li.name);
  413. });
  414. _this3.options3.series = loopObjectData;
  415. _this3.options3.legend.data = legendData;
  416. _this3.options3.xAxis.data = days;
  417. _this3.options.series[0].data = loopObjectData1;
  418. }
  419. } else {
  420. _this3.$message.error(callback.message);
  421. }
  422. });
  423. },
  424. setOptionsData: function setOptionsData(data) {
  425. var options2 = this.options2;
  426. options2.series[0].data[0].value = data.batteryLevel1;
  427. options2.series[0].data[1].value = data.batteryLevel2;
  428. options2.series[0].data[2].value = data.batteryLevel3;
  429. options2.series[0].data[3].value = data.batteryLevel4;
  430. options2.series[0].data[4].value = data.batteryLevel5;
  431. },
  432. tgces: function tgces() {
  433. this.$router.push({
  434. path: "/test"
  435. });
  436. },
  437. scroll: function scroll() {
  438. var _this4 = this;
  439. this.animate = true; // 因为在消息向上滚动的时候需要添加css3过渡动画,所以这里需要设置true
  440. setTimeout(function () {
  441. // 这里直接使用了es6的箭头函数,省去了处理this指向偏移问题,代码也比之前简化了很多
  442. _this4.tableData.push(_this4.tableData[0]); // 将数组的第一个元素添加到数组的
  443. _this4.tableData.shift(); //删除数组的第一个元素
  444. _this4.animate = false; // margin-top 为0 的时候取消过渡动画,实现无缝滚动
  445. }, 500);
  446. },
  447. changeDate: function changeDate() {
  448. var now = new Date().getTime();
  449. this.data.forEach(function (item, index) {
  450. var date = new Date(now - (6 - index) * 86400000);
  451. item.name = date.getFullYear() + "/" + (date.getMonth() + 1) + "/" + date.getDate();
  452. });
  453. }
  454. }
  455. });
  456. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-0716ff7e","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/homePageDistributionCabinetIsEmpty.vue
  457. 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":"15vw"}})],1)],1),_vm._v(" "),_c('el-col',{attrs:{"span":12}},[_c('el-card',{attrs:{"shadow":"hover"}},[_c('Echart',{staticClass:"schart",attrs:{"options":_vm.options3,"width":"100%","height":"15vw"}})],1)],1)],1)],1)}
  458. var staticRenderFns = []
  459. var esExports = { render: render, staticRenderFns: staticRenderFns }
  460. /* harmony default export */ var presentationPage_homePageDistributionCabinetIsEmpty = (esExports);
  461. // CONCATENATED MODULE: ./src/views/presentationPage/homePageDistributionCabinetIsEmpty.vue
  462. function injectStyle (ssrContext) {
  463. __webpack_require__("GXWG")
  464. }
  465. var normalizeComponent = __webpack_require__("VU/8")
  466. /* script */
  467. /* template */
  468. /* template functional */
  469. var __vue_template_functional__ = false
  470. /* styles */
  471. var __vue_styles__ = injectStyle
  472. /* scopeId */
  473. var __vue_scopeId__ = "data-v-0716ff7e"
  474. /* moduleIdentifier (server only) */
  475. var __vue_module_identifier__ = null
  476. var Component = normalizeComponent(
  477. homePageDistributionCabinetIsEmpty,
  478. presentationPage_homePageDistributionCabinetIsEmpty,
  479. __vue_template_functional__,
  480. __vue_styles__,
  481. __vue_scopeId__,
  482. __vue_module_identifier__
  483. )
  484. /* harmony default export */ var views_presentationPage_homePageDistributionCabinetIsEmpty = __webpack_exports__["default"] = (Component.exports);
  485. /***/ })
  486. });