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

2323 lines
82 KiB

  1. webpackJsonp([3],{
  2. /***/ "+Vp8":
  3. /***/ (function(module, exports) {
  4. // removed by extract-text-webpack-plugin
  5. /***/ }),
  6. /***/ "+YkT":
  7. /***/ (function(module, exports) {
  8. // removed by extract-text-webpack-plugin
  9. /***/ }),
  10. /***/ "+b8P":
  11. /***/ (function(module, exports) {
  12. // removed by extract-text-webpack-plugin
  13. /***/ }),
  14. /***/ "6l9n":
  15. /***/ (function(module, exports) {
  16. // removed by extract-text-webpack-plugin
  17. /***/ }),
  18. /***/ "CecC":
  19. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20. "use strict";
  21. // EXTERNAL MODULE: ./src/router/index.js + 15 modules
  22. var router = __webpack_require__("YaEn");
  23. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/dataScreen/centerChartTop.vue
  24. //
  25. //
  26. //
  27. //
  28. //
  29. //
  30. //
  31. //
  32. //
  33. //
  34. //
  35. /* harmony default export */ var centerChartTop = ({
  36. name: 'centerChartTop',
  37. data: function data() {
  38. return {};
  39. },
  40. methods: {
  41. gotohome: function gotohome() {
  42. router["a" /* default */].push({
  43. path: '/home'
  44. });
  45. },
  46. fangda: function fangda() {
  47. if (router["a" /* default */].currentRoute.fullPath == '/Datascreen') {
  48. router["a" /* default */].push({
  49. path: '/screen'
  50. });
  51. } else if (router["a" /* default */].currentRoute.fullPath == '/screen') {
  52. router["a" /* default */].push({
  53. path: '/Datascreen'
  54. });
  55. }
  56. // let full = document.fullscreenElement;
  57. // //切换为全屏模式
  58. // if (!full) {
  59. // //文档根节点的方法requestFullscreen,实现全屏模式
  60. // document.documentElement.requestFullscreen();
  61. // }
  62. // window.onresize = () => {
  63. // return (() => {
  64. // if (document.documentElement.clientWidth < 1080) {
  65. // this.colNumOne = 26
  66. // this.colNum = 24
  67. // } else {
  68. // this.colNumOne = 12
  69. // this.colNum = 8
  70. // }
  71. // })()
  72. // }
  73. }
  74. },
  75. mounted: function mounted() {
  76. console.log(router["a" /* default */].currentRoute.fullPath);
  77. }
  78. });
  79. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-d7672b02","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/dataScreen/centerChartTop.vue
  80. var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"centerChartTop"},[_c('div',{staticClass:"centerChartTopall",on:{"click":_vm.fangda}},[_c('i',{staticClass:"gongyu gy-quanping1"})]),_vm._v(" "),_c('div',{staticClass:"centerChartTophome",on:{"click":_vm.gotohome}},[_c('i',{staticClass:"gongyu gy-zhuye"})])])}
  81. var staticRenderFns = []
  82. var esExports = { render: render, staticRenderFns: staticRenderFns }
  83. /* harmony default export */ var dataScreen_centerChartTop = (esExports);
  84. // CONCATENATED MODULE: ./src/views/dataScreen/centerChartTop.vue
  85. function injectStyle (ssrContext) {
  86. __webpack_require__("q1EO")
  87. }
  88. var normalizeComponent = __webpack_require__("VU/8")
  89. /* script */
  90. /* template */
  91. /* template functional */
  92. var __vue_template_functional__ = false
  93. /* styles */
  94. var __vue_styles__ = injectStyle
  95. /* scopeId */
  96. var __vue_scopeId__ = "data-v-d7672b02"
  97. /* moduleIdentifier (server only) */
  98. var __vue_module_identifier__ = null
  99. var Component = normalizeComponent(
  100. centerChartTop,
  101. dataScreen_centerChartTop,
  102. __vue_template_functional__,
  103. __vue_styles__,
  104. __vue_scopeId__,
  105. __vue_module_identifier__
  106. )
  107. /* harmony default export */ var views_dataScreen_centerChartTop = __webpack_exports__["a"] = (Component.exports);
  108. /***/ }),
  109. /***/ "FR5K":
  110. /***/ (function(module, exports) {
  111. // removed by extract-text-webpack-plugin
  112. /***/ }),
  113. /***/ "JlHD":
  114. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  115. "use strict";
  116. // EXTERNAL MODULE: ./src/api/index.js + 5 modules
  117. var api = __webpack_require__("gyMJ");
  118. // EXTERNAL MODULE: ./src/router/index.js + 15 modules
  119. var router = __webpack_require__("YaEn");
  120. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/dataScreen/rightChartcenter.vue
  121. //
  122. //
  123. //
  124. //
  125. //
  126. //
  127. //
  128. //
  129. //
  130. //
  131. /* harmony default export */ var rightChartcenter = ({
  132. name: "rightChartcenter",
  133. data: function data() {
  134. return {
  135. charts: {
  136. // title: {
  137. // text: '本月租金收入(元)',
  138. // left: 'center',
  139. // textStyle: {
  140. // // color: '#00BFFF',
  141. // fontWeight: 'bold',
  142. // fontSize: 20
  143. // }
  144. // },
  145. tooltip: {},
  146. xAxis: {
  147. type: 'category',
  148. data: ['公寓', '房源', '平山村'],
  149. splitLine: {
  150. show: false
  151. }
  152. },
  153. yAxis: {
  154. type: 'value',
  155. splitLine: {
  156. show: false
  157. }
  158. },
  159. series: [{
  160. data: [3521, 2250, 1542],
  161. type: 'bar',
  162. backgroundStyle: {
  163. color: 'rgba(180, 180, 180, 0.2)'
  164. },
  165. itemStyle: {
  166. normal: {
  167. //这里是颜色
  168. color: function color(params) {
  169. //注意,如果颜色太少的话,后面颜色不会自动循环,最好多定义几个颜色
  170. var colorList = ['#00A3E0', '#FFA100', '#ffc0cb', '#CCCCCC', '#BBFFAA', '#749f83', '#ca8622'];
  171. return colorList[params.dataIndex];
  172. }
  173. }
  174. }
  175. }]
  176. }
  177. };
  178. },
  179. methods: {
  180. gotohome: function gotohome() {
  181. router["a" /* default */].push({
  182. path: '/home'
  183. });
  184. }
  185. },
  186. mounted: function mounted() {
  187. var _this = this;
  188. var charts = this.charts;
  189. Object(api["d" /* httpGet */])('', this.$api.getStatisticsRevenueTop).then(function (res) {
  190. if (res.success) {
  191. var date = new Date();
  192. var month = date.getMonth() + 1;
  193. res.data.map(function (li) {
  194. if (li.month == month) {
  195. if (li.name == '公寓') {
  196. charts.series[0].data[0] = li.rent;
  197. } else if (li.name == '房源') {
  198. charts.series[0].data[1] = li.rent;
  199. } else if (li.name == '平山村') {
  200. charts.series[0].data[2] = li.rent;
  201. }
  202. }
  203. });
  204. var chartsObj = _this.$echarts.init(document.getElementById('chartsrightcenter'));
  205. chartsObj.setOption(charts, true);
  206. }
  207. });
  208. }
  209. });
  210. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-ecb2ccee","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/dataScreen/rightChartcenter.vue
  211. var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"rightChartcenter"},[_c('div',{staticClass:"rightChartcenter-title"},[_vm._v("本月租金收入(元)")]),_vm._v(" "),_c('div',{style:({ height: '250px', width: '100%' }),attrs:{"id":"chartsrightcenter"}})])}
  212. var staticRenderFns = []
  213. var esExports = { render: render, staticRenderFns: staticRenderFns }
  214. /* harmony default export */ var dataScreen_rightChartcenter = (esExports);
  215. // CONCATENATED MODULE: ./src/views/dataScreen/rightChartcenter.vue
  216. function injectStyle (ssrContext) {
  217. __webpack_require__("bmSL")
  218. }
  219. var normalizeComponent = __webpack_require__("VU/8")
  220. /* script */
  221. /* template */
  222. /* template functional */
  223. var __vue_template_functional__ = false
  224. /* styles */
  225. var __vue_styles__ = injectStyle
  226. /* scopeId */
  227. var __vue_scopeId__ = "data-v-ecb2ccee"
  228. /* moduleIdentifier (server only) */
  229. var __vue_module_identifier__ = null
  230. var Component = normalizeComponent(
  231. rightChartcenter,
  232. dataScreen_rightChartcenter,
  233. __vue_template_functional__,
  234. __vue_styles__,
  235. __vue_scopeId__,
  236. __vue_module_identifier__
  237. )
  238. /* harmony default export */ var views_dataScreen_rightChartcenter = __webpack_exports__["a"] = (Component.exports);
  239. /***/ }),
  240. /***/ "KKTH":
  241. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  242. "use strict";
  243. // EXTERNAL MODULE: ./node_modules/babel-runtime/regenerator/index.js
  244. var regenerator = __webpack_require__("Xxa5");
  245. var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
  246. // EXTERNAL MODULE: ./node_modules/babel-runtime/helpers/asyncToGenerator.js
  247. var asyncToGenerator = __webpack_require__("exGp");
  248. var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
  249. // EXTERNAL MODULE: ./node_modules/babel-runtime/core-js/json/stringify.js
  250. var stringify = __webpack_require__("mvHQ");
  251. var stringify_default = /*#__PURE__*/__webpack_require__.n(stringify);
  252. // EXTERNAL MODULE: ./src/api/index.js + 5 modules
  253. var api = __webpack_require__("gyMJ");
  254. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/dataScreen/centerChartBottom.vue
  255. //
  256. //
  257. //
  258. //
  259. //
  260. //
  261. //
  262. //
  263. //
  264. //
  265. //
  266. //
  267. //
  268. //
  269. //
  270. //
  271. //
  272. //
  273. //
  274. //
  275. //
  276. //
  277. //
  278. //
  279. //
  280. /* harmony default export */ var centerChartBottom = ({
  281. name: 'centerChartBottom',
  282. data: function data() {
  283. return {
  284. list: [{ title: '房间总数', total: 0, name: '(间)' }, { title: '人员总数', total: 0, name: '(人)' }, { title: '总收入', total: 0, name: '(万元)' }, { title: '开锁总数', total: 0, name: '(次)' }],
  285. shebei: [{ title: '总设备', total: 0, name: '(个)' }, { title: '异常数', total: 0, name: '(个)' }, { title: '低电数', total: 0, name: '(个)' }, { title: '离线设备数', total: 0, name: '(个)' }],
  286. statisticsDateDefault: {
  287. "cdata": ["0", "0", "0", "0", "0"],
  288. "seriesData": {
  289. "abnormalTotal": 0,
  290. "batteryLevel1": 0,
  291. "batteryLevel2": 0,
  292. "batteryLevel3": 0,
  293. "batteryLevel4": 0,
  294. "batteryLevel5": 0,
  295. "closeTotal": 0,
  296. "offlineTotal": 0,
  297. "onlineTotal": 0,
  298. "openTotal": 0,
  299. "projects": 0,
  300. "total": 0
  301. },
  302. "collectUS": {
  303. "card300": 0,
  304. "site200": 0,
  305. "card200": 0,
  306. "userCount": 0,
  307. "site300": 0,
  308. "lock300": 0,
  309. "site400": 0,
  310. "lock200": 0,
  311. "houseSensor400": 0
  312. },
  313. "collectOpenLock": {
  314. "week300": [{
  315. "count": 0,
  316. "order": "2022-05-15"
  317. }, {
  318. "count": 0,
  319. "order": "2022-05-16"
  320. }, {
  321. "count": 0,
  322. "order": "2022-05-17"
  323. }, {
  324. "count": 0,
  325. "order": "2022-05-18"
  326. }, {
  327. "count": 0,
  328. "order": "2022-05-19"
  329. }, {
  330. "count": 0,
  331. "order": "2022-05-20"
  332. }, {
  333. "count": 0,
  334. "order": "2022-05-21"
  335. }, {
  336. "count": 0,
  337. "order": "2022-05-22"
  338. }, {
  339. "count": 0,
  340. "order": "2022-05-23"
  341. }, {
  342. "count": 0,
  343. "order": "2022-05-24"
  344. }, {
  345. "count": 0,
  346. "order": "2022-05-25"
  347. }, {
  348. "count": 0,
  349. "order": "2022-05-26"
  350. }],
  351. "week200": [{
  352. "count": 0,
  353. "order": "2022-05-19"
  354. }, {
  355. "count": 0,
  356. "order": "2022-05-20"
  357. }, {
  358. "count": 0,
  359. "order": "2022-05-21"
  360. }, {
  361. "count": 0,
  362. "order": "2022-05-22"
  363. }, {
  364. "count": 0,
  365. "order": "2022-05-23"
  366. }, {
  367. "count": 0,
  368. "order": "2022-05-24"
  369. }, {
  370. "count": 0,
  371. "order": "2022-05-25"
  372. }, {
  373. "count": 0,
  374. "order": "2022-05-26"
  375. }],
  376. "allCount300": 0,
  377. "allCount200": 0
  378. },
  379. "weekopenlock": [{
  380. "order": "2022-05-19",
  381. "count": 0
  382. }, {
  383. "order": "2022-05-20",
  384. "count": 0
  385. }, {
  386. "order": "2022-05-21",
  387. "count": 0
  388. }, {
  389. "order": "2022-05-22",
  390. "count": 0
  391. }, {
  392. "order": "2022-05-23",
  393. "count": 0
  394. }, {
  395. "order": "2022-05-24",
  396. "count": 0
  397. }, {
  398. "order": "2022-05-25",
  399. "count": 0
  400. }, {
  401. "order": "2022-05-26",
  402. "count": 0
  403. }],
  404. "addDeviceWeek": [{
  405. "order": "2022/05/20",
  406. "count": 0
  407. }, {
  408. "order": "2022/05/21",
  409. "count": 0
  410. }, {
  411. "order": "2022/05/22",
  412. "count": 0
  413. }, {
  414. "order": "2022/05/23",
  415. "count": 0
  416. }, {
  417. "order": "2022/05/24",
  418. "count": 0
  419. }, {
  420. "order": "2022/05/25",
  421. "count": 0
  422. }, {
  423. "order": "2022-05-26",
  424. "count": 0
  425. }]
  426. }
  427. };
  428. },
  429. mounted: function mounted() {
  430. var _this = this;
  431. Object(api["d" /* httpGet */])('', this.$api.getCommunityrentStatistics).then(function (res) {});
  432. this.$store.commit('setUser1');
  433. if (!localStorage.getItem('statisticsDate')) {
  434. var _data = this.statisticsDateDefault;
  435. localStorage.setItem('statisticsDate', stringify_default()(_data));
  436. this.reload();
  437. }
  438. var statisticsDate = JSON.parse(localStorage.getItem('statisticsDate'));
  439. this.statisticsDate = statisticsDate;
  440. this.statisticsDate.abnormalTotal = this.statisticsDate.seriesData.abnormalTotal || 0;
  441. this.statisticsDate.offlineTotal = this.statisticsDate.seriesData.offlineTotal || 0;
  442. this.statisticsDate.onlineTotal = this.statisticsDate.seriesData.onlineTotal || 0;
  443. this.statisticsDate.isAppBind = this.statisticsDate.seriesData.isAppBind || 0;
  444. this.statisticsDate.batteryLevel1 = this.statisticsDate.seriesData.batteryLevel1 || 0;
  445. this.shebei[0].total = statisticsDate.seriesData.total;
  446. this.shebei[1].total = statisticsDate.seriesData.isAppBind;
  447. this.shebei[2].total = statisticsDate.seriesData.batteryLevel1;
  448. this.shebei[3].total = statisticsDate.seriesData.offlineTotal;
  449. // 总收入
  450. Object(api["d" /* httpGet */])('', this.$api.getTotalRevenue).then(function (res) {
  451. if (res.success) {
  452. _this.list[2].total = (res.data / 1000000).toFixed(2);
  453. }
  454. });
  455. for (var t in statisticsDate.collectUS) {
  456. // 人员总数
  457. var l = t.indexOf('card');
  458. if (l != -1) {
  459. this.list[1].total += statisticsDate.collectUS[t];
  460. }
  461. // 房间总数
  462. var p = t.indexOf('site');
  463. if (p != -1) {
  464. this.list[0].total += statisticsDate.collectUS[t];
  465. }
  466. }
  467. // 开锁总数
  468. var data = { pageNum: 1, pageSize: 20, orderBy: "open_time desc", q: "{}" };
  469. Object(api["d" /* httpGet */])(data, this.$api.orderLockOpen).then(function () {
  470. var _ref = asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee(res) {
  471. return regenerator_default.a.wrap(function _callee$(_context) {
  472. while (1) {
  473. switch (_context.prev = _context.next) {
  474. case 0:
  475. _this.list[3].total = res.data.total || 0;
  476. case 1:
  477. case 'end':
  478. return _context.stop();
  479. }
  480. }
  481. }, _callee, _this);
  482. }));
  483. return function (_x) {
  484. return _ref.apply(this, arguments);
  485. };
  486. }());
  487. }
  488. });
  489. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-397380fa","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/dataScreen/centerChartBottom.vue
  490. var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"centerChartBottom"},[_c('div',{staticClass:"datalist"},_vm._l((_vm.shebei),function(item,index){return _c('div',{key:index,staticClass:"datalist-item"},[_c('div',{staticClass:"item-middle"},[_c('span',{staticClass:"datalist-item-total"},[_vm._v(_vm._s(item.total))]),_vm._v(" "),_c('span',{staticClass:"datalist-item-title"},[_vm._v(_vm._s(item.title)),_c('span',{staticClass:"datalist-item-name"},[_vm._v(_vm._s(item.name))])])])])}),0),_vm._v(" "),_c('div',{staticClass:"datalist"},_vm._l((_vm.list),function(item,index){return _c('div',{key:index,staticClass:"datalist-item"},[_c('div',{staticClass:"item-middle"},[_c('span',{staticClass:"datalist-item-total"},[_vm._v(_vm._s(item.total))]),_vm._v(" "),_c('span',{staticClass:"datalist-item-title"},[_vm._v(_vm._s(item.title)),_c('span',{staticClass:"datalist-item-name"},[_vm._v(_vm._s(item.name))])])])])}),0)])}
  491. var staticRenderFns = []
  492. var esExports = { render: render, staticRenderFns: staticRenderFns }
  493. /* harmony default export */ var dataScreen_centerChartBottom = (esExports);
  494. // CONCATENATED MODULE: ./src/views/dataScreen/centerChartBottom.vue
  495. function injectStyle (ssrContext) {
  496. __webpack_require__("+b8P")
  497. }
  498. var normalizeComponent = __webpack_require__("VU/8")
  499. /* script */
  500. /* template */
  501. /* template functional */
  502. var __vue_template_functional__ = false
  503. /* styles */
  504. var __vue_styles__ = injectStyle
  505. /* scopeId */
  506. var __vue_scopeId__ = "data-v-397380fa"
  507. /* moduleIdentifier (server only) */
  508. var __vue_module_identifier__ = null
  509. var Component = normalizeComponent(
  510. centerChartBottom,
  511. dataScreen_centerChartBottom,
  512. __vue_template_functional__,
  513. __vue_styles__,
  514. __vue_scopeId__,
  515. __vue_module_identifier__
  516. )
  517. /* harmony default export */ var views_dataScreen_centerChartBottom = __webpack_exports__["a"] = (Component.exports);
  518. /***/ }),
  519. /***/ "QqKr":
  520. /***/ (function(module, exports) {
  521. // removed by extract-text-webpack-plugin
  522. /***/ }),
  523. /***/ "X9Mt":
  524. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  525. "use strict";
  526. // EXTERNAL MODULE: ./node_modules/babel-runtime/core-js/json/stringify.js
  527. var stringify = __webpack_require__("mvHQ");
  528. var stringify_default = /*#__PURE__*/__webpack_require__.n(stringify);
  529. // EXTERNAL MODULE: ./src/api/index.js + 5 modules
  530. var api = __webpack_require__("gyMJ");
  531. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/dataScreen/leftChartcenter.vue
  532. //
  533. //
  534. //
  535. //
  536. //
  537. //
  538. //
  539. //
  540. //
  541. //
  542. //
  543. //
  544. //
  545. //
  546. //
  547. //
  548. //
  549. //
  550. //
  551. //
  552. //
  553. //
  554. //
  555. //
  556. /* harmony default export */ var leftChartcenter = ({
  557. name: 'leftChartcenter',
  558. data: function data() {
  559. return {
  560. list: [{ title: '总设备', total: 0 }, { title: '异常数', total: 0 }, { title: '低电数', total: 0 }, { title: '离线设备数', total: 0 }],
  561. list2: [{ title: '合同数', total: 0 }, { title: '已签约', total: 0 }, { title: '已到期', total: 0 }, { title: '已欠费', total: 0 }],
  562. statisticsDateDefault: {
  563. "cdata": ["0", "0", "0", "0", "0"],
  564. "seriesData": {
  565. "abnormalTotal": 0,
  566. "batteryLevel1": 0,
  567. "batteryLevel2": 0,
  568. "batteryLevel3": 0,
  569. "batteryLevel4": 0,
  570. "batteryLevel5": 0,
  571. "closeTotal": 0,
  572. "offlineTotal": 0,
  573. "onlineTotal": 0,
  574. "openTotal": 0,
  575. "projects": 0,
  576. "total": 0
  577. },
  578. "collectUS": {
  579. "card300": 0,
  580. "site200": 0,
  581. "card200": 0,
  582. "userCount": 0,
  583. "site300": 0,
  584. "lock300": 0,
  585. "site400": 0,
  586. "lock200": 0,
  587. "houseSensor400": 0
  588. },
  589. "collectOpenLock": {
  590. "week300": [{
  591. "count": 0,
  592. "order": "2022-05-15"
  593. }, {
  594. "count": 0,
  595. "order": "2022-05-16"
  596. }, {
  597. "count": 0,
  598. "order": "2022-05-17"
  599. }, {
  600. "count": 0,
  601. "order": "2022-05-18"
  602. }, {
  603. "count": 0,
  604. "order": "2022-05-19"
  605. }, {
  606. "count": 0,
  607. "order": "2022-05-20"
  608. }, {
  609. "count": 0,
  610. "order": "2022-05-21"
  611. }, {
  612. "count": 0,
  613. "order": "2022-05-22"
  614. }, {
  615. "count": 0,
  616. "order": "2022-05-23"
  617. }, {
  618. "count": 0,
  619. "order": "2022-05-24"
  620. }, {
  621. "count": 0,
  622. "order": "2022-05-25"
  623. }, {
  624. "count": 0,
  625. "order": "2022-05-26"
  626. }],
  627. "week200": [{
  628. "count": 0,
  629. "order": "2022-05-19"
  630. }, {
  631. "count": 0,
  632. "order": "2022-05-20"
  633. }, {
  634. "count": 0,
  635. "order": "2022-05-21"
  636. }, {
  637. "count": 0,
  638. "order": "2022-05-22"
  639. }, {
  640. "count": 0,
  641. "order": "2022-05-23"
  642. }, {
  643. "count": 0,
  644. "order": "2022-05-24"
  645. }, {
  646. "count": 0,
  647. "order": "2022-05-25"
  648. }, {
  649. "count": 0,
  650. "order": "2022-05-26"
  651. }],
  652. "allCount300": 0,
  653. "allCount200": 0
  654. },
  655. "weekopenlock": [{
  656. "order": "2022-05-19",
  657. "count": 0
  658. }, {
  659. "order": "2022-05-20",
  660. "count": 0
  661. }, {
  662. "order": "2022-05-21",
  663. "count": 0
  664. }, {
  665. "order": "2022-05-22",
  666. "count": 0
  667. }, {
  668. "order": "2022-05-23",
  669. "count": 0
  670. }, {
  671. "order": "2022-05-24",
  672. "count": 0
  673. }, {
  674. "order": "2022-05-25",
  675. "count": 0
  676. }, {
  677. "order": "2022-05-26",
  678. "count": 0
  679. }],
  680. "addDeviceWeek": [{
  681. "order": "2022/05/20",
  682. "count": 0
  683. }, {
  684. "order": "2022/05/21",
  685. "count": 0
  686. }, {
  687. "order": "2022/05/22",
  688. "count": 0
  689. }, {
  690. "order": "2022/05/23",
  691. "count": 0
  692. }, {
  693. "order": "2022/05/24",
  694. "count": 0
  695. }, {
  696. "order": "2022/05/25",
  697. "count": 0
  698. }, {
  699. "order": "2022-05-26",
  700. "count": 0
  701. }]
  702. }
  703. };
  704. },
  705. methods: {
  706. // 获取合约
  707. getLeasesList: function getLeasesList() {
  708. var _this = this;
  709. var data = {
  710. pageNum: this.pageNum,
  711. pageSize: this.pageSize,
  712. orderBy: "create_time desc"
  713. };
  714. Object(api["g" /* httpPost */])(data, this.$api.postLeasesList).then(function (res) {
  715. if (res.success) {
  716. _this.list2[0].total = res.data.total;
  717. } else {
  718. _this.$message.error(res.message);
  719. }
  720. });
  721. },
  722. // 获取合约状态
  723. getLeasesStatus: function getLeasesStatus() {
  724. var _this2 = this;
  725. Object(api["d" /* httpGet */])('', this.$api.getLeasesStatusstatistics).then(function (res) {
  726. if (res.success) {
  727. var list = res.data;
  728. list.map(function (li) {
  729. if (li.value === 1) {
  730. _this2.list2[1].total += li.total;
  731. } else if (li.value === 2) {
  732. _this2.list2[3].total += li.total;
  733. }
  734. });
  735. _this2.list2[2].total = _this2.list2[0].total - _this2.list2[1].total - _this2.list2[3].total;
  736. }
  737. });
  738. }
  739. },
  740. mounted: function mounted() {
  741. // 总设备等
  742. Object(api["d" /* httpGet */])('', this.$api.getCommunityrentStatistics).then(function (res) {});
  743. this.$store.commit('setUser1');
  744. if (!localStorage.getItem('statisticsDate')) {
  745. var data = this.statisticsDateDefault;
  746. localStorage.setItem('statisticsDate', stringify_default()(data));
  747. this.reload();
  748. }
  749. var statisticsDate = JSON.parse(localStorage.getItem('statisticsDate'));
  750. this.statisticsDate = statisticsDate;
  751. this.list[0].total = statisticsDate.seriesData.total;
  752. this.list[1].total = statisticsDate.seriesData.isAppBind;
  753. this.list[2].total = statisticsDate.seriesData.batteryLevel1;
  754. this.list[3].total = statisticsDate.seriesData.offlineTotal;
  755. // 合同等
  756. this.getLeasesList();
  757. this.getLeasesStatus();
  758. }
  759. });
  760. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-ad19b5fe","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/dataScreen/leftChartcenter.vue
  761. var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"title"},[_vm._v("数据统计分析")]),_vm._v(" "),_c('div',{staticClass:"leftChartcenter"},[_c('div',{staticClass:"leftChartcenterlistone"},_vm._l((_vm.list2),function(item,index){return _c('div',{key:index,staticClass:"leftchart-item"},[_c('div',{staticClass:"item-middle"},[_c('div',{staticClass:"item-title"},[_vm._v(_vm._s(item.title)+" (个)")]),_vm._v(" "),_c('div',{staticClass:"item-total"},[_vm._v(_vm._s(item.total))])])])}),0),_vm._v(" "),_c('div',{staticClass:"leftChartcenterlistone"},_vm._l((_vm.list),function(item,index){return _c('div',{key:index,staticClass:"leftchart-item"},[_c('div',{staticClass:"item-middle"},[_c('div',{staticClass:"item-title"},[_vm._v(_vm._s(item.title)+" (个)")]),_vm._v(" "),_c('div',{staticClass:"item-total"},[_vm._v(_vm._s(item.total))])])])}),0)])])}
  762. var staticRenderFns = []
  763. var esExports = { render: render, staticRenderFns: staticRenderFns }
  764. /* harmony default export */ var dataScreen_leftChartcenter = (esExports);
  765. // CONCATENATED MODULE: ./src/views/dataScreen/leftChartcenter.vue
  766. function injectStyle (ssrContext) {
  767. __webpack_require__("rOXf")
  768. }
  769. var normalizeComponent = __webpack_require__("VU/8")
  770. /* script */
  771. /* template */
  772. /* template functional */
  773. var __vue_template_functional__ = false
  774. /* styles */
  775. var __vue_styles__ = injectStyle
  776. /* scopeId */
  777. var __vue_scopeId__ = "data-v-ad19b5fe"
  778. /* moduleIdentifier (server only) */
  779. var __vue_module_identifier__ = null
  780. var Component = normalizeComponent(
  781. leftChartcenter,
  782. dataScreen_leftChartcenter,
  783. __vue_template_functional__,
  784. __vue_styles__,
  785. __vue_scopeId__,
  786. __vue_module_identifier__
  787. )
  788. /* harmony default export */ var views_dataScreen_leftChartcenter = __webpack_exports__["a"] = (Component.exports);
  789. /***/ }),
  790. /***/ "bmSL":
  791. /***/ (function(module, exports) {
  792. // removed by extract-text-webpack-plugin
  793. /***/ }),
  794. /***/ "boqQ":
  795. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  796. "use strict";
  797. // EXTERNAL MODULE: ./node_modules/babel-runtime/core-js/json/stringify.js
  798. var stringify = __webpack_require__("mvHQ");
  799. var stringify_default = /*#__PURE__*/__webpack_require__.n(stringify);
  800. // EXTERNAL MODULE: ./src/api/index.js + 5 modules
  801. var api = __webpack_require__("gyMJ");
  802. // EXTERNAL MODULE: ./node_modules/moment/moment.js
  803. var moment = __webpack_require__("PJh5");
  804. var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
  805. // EXTERNAL MODULE: ./node_modules/echarts/index.js
  806. var echarts = __webpack_require__("XLwt");
  807. var echarts_default = /*#__PURE__*/__webpack_require__.n(echarts);
  808. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/dataScreen/leftChartBottom.vue
  809. //
  810. //
  811. //
  812. //
  813. //
  814. //
  815. //
  816. /* harmony default export */ var leftChartBottom = ({
  817. name: 'leftChartBottom',
  818. data: function data() {
  819. return {
  820. chartsBottom: {
  821. tooltip: {
  822. trigger: 'axis',
  823. axisPointer: {
  824. type: 'cross'
  825. }
  826. },
  827. legend: {},
  828. xAxis: [{
  829. type: 'category',
  830. boundaryGap: false,
  831. data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
  832. splitLine: {
  833. show: false
  834. }
  835. }],
  836. yAxis: [{
  837. type: 'value',
  838. splitLine: {
  839. show: false
  840. }
  841. }],
  842. series: [{
  843. type: 'line',
  844. name: '签约数',
  845. lineStyle: {
  846. normal: {
  847. width: 2,
  848. color: "#0000ff" //设置实线的颜色
  849. }
  850. },
  851. areaStyle: {
  852. opacity: 0.8,
  853. color: new echarts_default.a.graphic.LinearGradient(0, 0, 0, 1, [{
  854. offset: 0,
  855. color: 'rgb(128, 255, 165)'
  856. }, {
  857. offset: 1,
  858. color: 'rgb(1, 191, 236)'
  859. }])
  860. },
  861. smooth: true,
  862. data: [10, 20, 54, 5, 35, 41, 18]
  863. }]
  864. }
  865. };
  866. },
  867. mounted: function mounted() {
  868. var _this = this;
  869. var charts = this.chartsBottom;
  870. var data = {
  871. "orderBy": "create_time desc",
  872. "q": stringify_default()({
  873. status: '1'
  874. })
  875. };
  876. var list = [];
  877. for (var i = 1; i <= 7; i++) {
  878. list.unshift(moment_default()().subtract(i, 'days').format('MM-DD'));
  879. }
  880. charts.xAxis[0].data = list;
  881. Object(api["g" /* httpPost */])(data, this.$api.postLeasesList).then(function (res) {
  882. console.log("111", res);
  883. if (res.success) {
  884. res.data.list.map(function (li) {
  885. li.createTime = moment_default()().format("MM-DD");
  886. for (var _i = 0; _i < 7; _i++) {
  887. if (list[_i] == li.createTime) {
  888. charts.series[0].data[_i] += 1;
  889. }
  890. }
  891. });
  892. }
  893. var chartsObj2 = _this.$echarts.init(document.getElementById('leftChartBottom'));
  894. chartsObj2.setOption(charts, true);
  895. });
  896. // let chartsObj2 = this.$echarts.init(
  897. // document.getElementById('leftChartBottom')
  898. // )
  899. // chartsObj2.setOption(charts, true)
  900. }
  901. });
  902. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-6807bc62","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/dataScreen/leftChartBottom.vue
  903. var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"leftChartBottom"},[_c('div',{staticClass:"leftchartbottom-title"},[_vm._v("近期新增签约")]),_vm._v(" "),_c('div',{style:({ height: '250px', width: '100%' }),attrs:{"id":"leftChartBottom"}})])}
  904. var staticRenderFns = []
  905. var esExports = { render: render, staticRenderFns: staticRenderFns }
  906. /* harmony default export */ var dataScreen_leftChartBottom = (esExports);
  907. // CONCATENATED MODULE: ./src/views/dataScreen/leftChartBottom.vue
  908. function injectStyle (ssrContext) {
  909. __webpack_require__("QqKr")
  910. }
  911. var normalizeComponent = __webpack_require__("VU/8")
  912. /* script */
  913. /* template */
  914. /* template functional */
  915. var __vue_template_functional__ = false
  916. /* styles */
  917. var __vue_styles__ = injectStyle
  918. /* scopeId */
  919. var __vue_scopeId__ = "data-v-6807bc62"
  920. /* moduleIdentifier (server only) */
  921. var __vue_module_identifier__ = null
  922. var Component = normalizeComponent(
  923. leftChartBottom,
  924. dataScreen_leftChartBottom,
  925. __vue_template_functional__,
  926. __vue_styles__,
  927. __vue_scopeId__,
  928. __vue_module_identifier__
  929. )
  930. /* harmony default export */ var views_dataScreen_leftChartBottom = __webpack_exports__["a"] = (Component.exports);
  931. /***/ }),
  932. /***/ "ehEW":
  933. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  934. "use strict";
  935. // EXTERNAL MODULE: ./node_modules/babel-runtime/regenerator/index.js
  936. var regenerator = __webpack_require__("Xxa5");
  937. var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
  938. // EXTERNAL MODULE: ./node_modules/babel-runtime/helpers/asyncToGenerator.js
  939. var asyncToGenerator = __webpack_require__("exGp");
  940. var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
  941. // EXTERNAL MODULE: ./src/api/index.js + 5 modules
  942. var api = __webpack_require__("gyMJ");
  943. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/dataScreen/leftChartOne.vue
  944. //
  945. //
  946. //
  947. //
  948. //
  949. //
  950. //
  951. //
  952. //
  953. //
  954. //
  955. //
  956. //
  957. //
  958. //
  959. //
  960. //
  961. //
  962. //
  963. //
  964. //
  965. //
  966. //
  967. //
  968. //
  969. //
  970. //
  971. //
  972. //
  973. //
  974. //
  975. //
  976. //
  977. /* harmony default export */ var leftChartOne = ({
  978. name: 'leftChartOne',
  979. data: function data() {
  980. return {
  981. charts: {
  982. title: {},
  983. tooltip: {},
  984. legend: {},
  985. grud: {},
  986. series: [{
  987. type: 'pie',
  988. radius: '50%',
  989. center: ['50%', '50%'],
  990. selectedMode: 'single',
  991. data: []
  992. }]
  993. },
  994. statisticsDateDefault: {
  995. "cdata": ["0", "0", "0", "0", "0"],
  996. "seriesData": {
  997. "abnormalTotal": 0,
  998. "batteryLevel1": 0,
  999. "batteryLevel2": 0,
  1000. "batteryLevel3": 0,
  1001. "batteryLevel4": 0,
  1002. "batteryLevel5": 0,
  1003. "closeTotal": 0,
  1004. "offlineTotal": 0,
  1005. "onlineTotal": 0,
  1006. "openTotal": 0,
  1007. "projects": 0,
  1008. "total": 0
  1009. },
  1010. "collectUS": {
  1011. "card300": 0,
  1012. "site200": 0,
  1013. "card200": 0,
  1014. "userCount": 0,
  1015. "site300": 0,
  1016. "lock300": 0,
  1017. "site400": 0,
  1018. "lock200": 0,
  1019. "houseSensor400": 0
  1020. },
  1021. "collectOpenLock": {
  1022. "week300": [{
  1023. "count": 0,
  1024. "order": "2022-05-15"
  1025. }, {
  1026. "count": 0,
  1027. "order": "2022-05-16"
  1028. }, {
  1029. "count": 0,
  1030. "order": "2022-05-17"
  1031. }, {
  1032. "count": 0,
  1033. "order": "2022-05-18"
  1034. }, {
  1035. "count": 0,
  1036. "order": "2022-05-19"
  1037. }, {
  1038. "count": 0,
  1039. "order": "2022-05-20"
  1040. }, {
  1041. "count": 0,
  1042. "order": "2022-05-21"
  1043. }, {
  1044. "count": 0,
  1045. "order": "2022-05-22"
  1046. }, {
  1047. "count": 0,
  1048. "order": "2022-05-23"
  1049. }, {
  1050. "count": 0,
  1051. "order": "2022-05-24"
  1052. }, {
  1053. "count": 0,
  1054. "order": "2022-05-25"
  1055. }, {
  1056. "count": 0,
  1057. "order": "2022-05-26"
  1058. }],
  1059. "week200": [{
  1060. "count": 0,
  1061. "order": "2022-05-19"
  1062. }, {
  1063. "count": 0,
  1064. "order": "2022-05-20"
  1065. }, {
  1066. "count": 0,
  1067. "order": "2022-05-21"
  1068. }, {
  1069. "count": 0,
  1070. "order": "2022-05-22"
  1071. }, {
  1072. "count": 0,
  1073. "order": "2022-05-23"
  1074. }, {
  1075. "count": 0,
  1076. "order": "2022-05-24"
  1077. }, {
  1078. "count": 0,
  1079. "order": "2022-05-25"
  1080. }, {
  1081. "count": 0,
  1082. "order": "2022-05-26"
  1083. }],
  1084. "allCount300": 0,
  1085. "allCount200": 0
  1086. },
  1087. "weekopenlock": [{
  1088. "order": "2022-05-19",
  1089. "count": 0
  1090. }, {
  1091. "order": "2022-05-20",
  1092. "count": 0
  1093. }, {
  1094. "order": "2022-05-21",
  1095. "count": 0
  1096. }, {
  1097. "order": "2022-05-22",
  1098. "count": 0
  1099. }, {
  1100. "order": "2022-05-23",
  1101. "count": 0
  1102. }, {
  1103. "order": "2022-05-24",
  1104. "count": 0
  1105. }, {
  1106. "order": "2022-05-25",
  1107. "count": 0
  1108. }, {
  1109. "order": "2022-05-26",
  1110. "count": 0
  1111. }],
  1112. "addDeviceWeek": [{
  1113. "order": "2022/05/20",
  1114. "count": 0
  1115. }, {
  1116. "order": "2022/05/21",
  1117. "count": 0
  1118. }, {
  1119. "order": "2022/05/22",
  1120. "count": 0
  1121. }, {
  1122. "order": "2022/05/23",
  1123. "count": 0
  1124. }, {
  1125. "order": "2022/05/24",
  1126. "count": 0
  1127. }, {
  1128. "order": "2022/05/25",
  1129. "count": 0
  1130. }, {
  1131. "order": "2022-05-26",
  1132. "count": 0
  1133. }]
  1134. },
  1135. sumRoom: 0, // 签约总数
  1136. sumCard: 0, // 已签约
  1137. sumTotal: 0, // 已退租
  1138. sumOpen: 0 // 已欠费
  1139. };
  1140. },
  1141. mounted: function mounted() {
  1142. var _this = this;
  1143. var sumRoom = 0,
  1144. sumCard = 0,
  1145. sumTotal = 0,
  1146. sumOpen = 0;
  1147. Object(api["d" /* httpGet */])('', this.$api.getCommonStatistics).then(function () {
  1148. var _ref = asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee(res) {
  1149. var list, chartsone, chartsObj;
  1150. return regenerator_default.a.wrap(function _callee$(_context) {
  1151. while (1) {
  1152. switch (_context.prev = _context.next) {
  1153. case 0:
  1154. if (res.success) {
  1155. list = res.data;
  1156. list.map(function (li) {
  1157. if (li.status === 1) {
  1158. sumCard += li.total;
  1159. _this.sumCard += li.total;
  1160. } else if (li.status === 2) {
  1161. sumTotal += li.total;
  1162. _this.sumTotal += li.total;
  1163. } else if (li.status === 3) {
  1164. sumOpen += li.total;
  1165. _this.sumOpen += li.total;
  1166. }
  1167. });
  1168. _this.sumRoom = _this.sumCard + _this.sumOpen + _this.sumTotal;
  1169. sumRoom = sumCard + sumOpen + sumTotal;
  1170. chartsone = _this.charts;
  1171. chartsone.series[0].data[0] = { value: sumRoom, name: "签约总数" };
  1172. chartsone.series[0].data[1] = { value: sumCard, name: "已签约" };
  1173. chartsone.series[0].data[2] = { value: sumOpen, name: "已退租" };
  1174. chartsone.series[0].data[3] = { value: sumTotal, name: "已欠费" };
  1175. console.log(chartsone.series[0].data, sumRoom);
  1176. chartsObj = _this.$echarts.init(document.getElementById('chartsone'));
  1177. chartsObj.setOption(chartsone, true);
  1178. }
  1179. case 1:
  1180. case 'end':
  1181. return _context.stop();
  1182. }
  1183. }
  1184. }, _callee, _this);
  1185. }));
  1186. return function (_x) {
  1187. return _ref.apply(this, arguments);
  1188. };
  1189. }());
  1190. }
  1191. });
  1192. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-11b8a6c7","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/dataScreen/leftChartOne.vue
  1193. var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"leftChartOne"},[_c('div',{staticClass:"chartstitle1"},[_vm._v("合同数")]),_vm._v(" "),_c('div',{style:({ height: '250px', width: '100%' }),attrs:{"id":"chartsone"}}),_vm._v(" "),_c('div',{staticClass:"tablist"},[_c('div',{staticClass:"tablist-item"},[_c('div',{staticClass:"item-middle"},[_c('span',{staticClass:"tablist-item-title"},[_vm._v("签约总数")]),_vm._v(" "),_c('span',{staticClass:"tablist-item-total"},[_vm._v(_vm._s(_vm.sumRoom))])])]),_vm._v(" "),_c('div',{staticClass:"tablist-item"},[_c('div',{staticClass:"item-middle"},[_c('span',{staticClass:"tablist-item-title"},[_vm._v("已签约")]),_vm._v(" "),_c('span',{staticClass:"tablist-item-total"},[_vm._v(_vm._s(_vm.sumCard))])])]),_vm._v(" "),_c('div',{staticClass:"tablist-item"},[_c('div',{staticClass:"item-middle"},[_c('span',{staticClass:"tablist-item-title"},[_vm._v("已退租")]),_vm._v(" "),_c('span',{staticClass:"tablist-item-total"},[_vm._v(_vm._s(_vm.sumTotal))])])]),_vm._v(" "),_c('div',{staticClass:"tablist-item"},[_c('div',{staticClass:"item-middle"},[_c('span',{staticClass:"tablist-item-title"},[_vm._v("已欠费")]),_vm._v(" "),_c('span',{staticClass:"tablist-item-total"},[_vm._v(_vm._s(_vm.sumOpen))])])])])])}
  1194. var staticRenderFns = []
  1195. var esExports = { render: render, staticRenderFns: staticRenderFns }
  1196. /* harmony default export */ var dataScreen_leftChartOne = (esExports);
  1197. // CONCATENATED MODULE: ./src/views/dataScreen/leftChartOne.vue
  1198. function injectStyle (ssrContext) {
  1199. __webpack_require__("+YkT")
  1200. }
  1201. var normalizeComponent = __webpack_require__("VU/8")
  1202. /* script */
  1203. /* template */
  1204. /* template functional */
  1205. var __vue_template_functional__ = false
  1206. /* styles */
  1207. var __vue_styles__ = injectStyle
  1208. /* scopeId */
  1209. var __vue_scopeId__ = "data-v-11b8a6c7"
  1210. /* moduleIdentifier (server only) */
  1211. var __vue_module_identifier__ = null
  1212. var Component = normalizeComponent(
  1213. leftChartOne,
  1214. dataScreen_leftChartOne,
  1215. __vue_template_functional__,
  1216. __vue_styles__,
  1217. __vue_scopeId__,
  1218. __vue_module_identifier__
  1219. )
  1220. /* harmony default export */ var views_dataScreen_leftChartOne = __webpack_exports__["a"] = (Component.exports);
  1221. /***/ }),
  1222. /***/ "jDcs":
  1223. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1224. "use strict";
  1225. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/dataScreen/rightChartTop.vue
  1226. //
  1227. //
  1228. //
  1229. //
  1230. //
  1231. //
  1232. //
  1233. //
  1234. //
  1235. //
  1236. //
  1237. //
  1238. //
  1239. //
  1240. //
  1241. //
  1242. //
  1243. //
  1244. //
  1245. /* harmony default export */ var rightChartTop = ({
  1246. name: 'rightChartTop',
  1247. data: function data() {
  1248. return {
  1249. animate: false,
  1250. intNum: null,
  1251. list: [{ namt: '测试01', number: '2023-06-15', momey: '800' }, { namt: '测试02', number: '2023-06-14', momey: '900' }, { namt: '测试03', number: '2023-06-13', momey: '1000' }, { namt: '测试04', number: '2023-06-12', momey: '1100' }, { namt: '测试05', number: '2023-06-11', momey: '1200' }, { namt: '测试06', number: '2023-06-10', momey: '1300' }, { namt: '测试07', number: '2023-06-09', momey: '1400' }, { namt: '测试08', number: '2023-06-08', momey: '1500' }]
  1252. };
  1253. },
  1254. created: function created() {
  1255. this.ScrollUp();
  1256. },
  1257. methods: {
  1258. ScrollUp: function ScrollUp() {
  1259. var _this = this;
  1260. this.intNum = setInterval(function () {
  1261. _this.animate = true; // 向上滚动时添加css过渡动画
  1262. setTimeout(function () {
  1263. _this.list.push(_this.list[0]);
  1264. _this.list.shift();
  1265. _this.animate = false;
  1266. }, 500);
  1267. }, 3000);
  1268. },
  1269. Stop: function Stop() {
  1270. clearInterval(this.intNum);
  1271. },
  1272. Up: function Up() {
  1273. this.ScrollUp();
  1274. }
  1275. }
  1276. });
  1277. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-55db652e","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/dataScreen/rightChartTop.vue
  1278. var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"rightChartTop"},[_vm._m(0),_vm._v(" "),_c('div',{staticClass:"one"},[_c('ul',{staticClass:"new-list",class:{ anim: _vm.animate },on:{"mouseenter":function($event){return _vm.Stop()},"mouseleave":function($event){return _vm.Up()}}},_vm._l((_vm.list),function(item,index){return _c('li',{key:index,staticClass:"liscroll"},[_c('span',[_vm._v(_vm._s(item.namt))]),_vm._v(" "),_c('span',[_vm._v(_vm._s(item.momey))]),_vm._v(" "),_c('span',[_vm._v(_vm._s(item.number))])])}),0)])])}
  1279. var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"title"},[_c('div',{staticClass:"title1"},[_vm._v("人员")]),_vm._v(" "),_c('div',[_vm._v("租金(¥)")]),_vm._v(" "),_c('div',{staticClass:"date"},[_vm._v("签约时间")])])}]
  1280. var esExports = { render: render, staticRenderFns: staticRenderFns }
  1281. /* harmony default export */ var dataScreen_rightChartTop = (esExports);
  1282. // CONCATENATED MODULE: ./src/views/dataScreen/rightChartTop.vue
  1283. function injectStyle (ssrContext) {
  1284. __webpack_require__("ydAD")
  1285. }
  1286. var normalizeComponent = __webpack_require__("VU/8")
  1287. /* script */
  1288. /* template */
  1289. /* template functional */
  1290. var __vue_template_functional__ = false
  1291. /* styles */
  1292. var __vue_styles__ = injectStyle
  1293. /* scopeId */
  1294. var __vue_scopeId__ = "data-v-55db652e"
  1295. /* moduleIdentifier (server only) */
  1296. var __vue_module_identifier__ = null
  1297. var Component = normalizeComponent(
  1298. rightChartTop,
  1299. dataScreen_rightChartTop,
  1300. __vue_template_functional__,
  1301. __vue_styles__,
  1302. __vue_scopeId__,
  1303. __vue_module_identifier__
  1304. )
  1305. /* harmony default export */ var views_dataScreen_rightChartTop = __webpack_exports__["a"] = (Component.exports);
  1306. /***/ }),
  1307. /***/ "jHVQ":
  1308. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1309. "use strict";
  1310. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/dataScreen/screenTop.vue
  1311. //
  1312. //
  1313. //
  1314. //
  1315. //
  1316. //
  1317. /* harmony default export */ var screenTop = ({
  1318. name: 'screenTop',
  1319. data: function data() {
  1320. return {};
  1321. },
  1322. mounted: function mounted() {},
  1323. methods: {}
  1324. });
  1325. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-33a2a7ec","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/dataScreen/screenTop.vue
  1326. var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _vm._m(0)}
  1327. var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"top"},[_c('div',{staticClass:"title"},[_vm._v("智慧公寓平台")])])}]
  1328. var esExports = { render: render, staticRenderFns: staticRenderFns }
  1329. /* harmony default export */ var dataScreen_screenTop = (esExports);
  1330. // CONCATENATED MODULE: ./src/views/dataScreen/screenTop.vue
  1331. function injectStyle (ssrContext) {
  1332. __webpack_require__("FR5K")
  1333. }
  1334. var normalizeComponent = __webpack_require__("VU/8")
  1335. /* script */
  1336. /* template */
  1337. /* template functional */
  1338. var __vue_template_functional__ = false
  1339. /* styles */
  1340. var __vue_styles__ = injectStyle
  1341. /* scopeId */
  1342. var __vue_scopeId__ = "data-v-33a2a7ec"
  1343. /* moduleIdentifier (server only) */
  1344. var __vue_module_identifier__ = null
  1345. var Component = normalizeComponent(
  1346. screenTop,
  1347. dataScreen_screenTop,
  1348. __vue_template_functional__,
  1349. __vue_styles__,
  1350. __vue_scopeId__,
  1351. __vue_module_identifier__
  1352. )
  1353. /* harmony default export */ var views_dataScreen_screenTop = __webpack_exports__["a"] = (Component.exports);
  1354. /***/ }),
  1355. /***/ "p64W":
  1356. /***/ (function(module, exports) {
  1357. // removed by extract-text-webpack-plugin
  1358. /***/ }),
  1359. /***/ "q1EO":
  1360. /***/ (function(module, exports) {
  1361. // removed by extract-text-webpack-plugin
  1362. /***/ }),
  1363. /***/ "qJzB":
  1364. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1365. "use strict";
  1366. // EXTERNAL MODULE: ./node_modules/babel-runtime/core-js/json/stringify.js
  1367. var stringify = __webpack_require__("mvHQ");
  1368. var stringify_default = /*#__PURE__*/__webpack_require__.n(stringify);
  1369. // EXTERNAL MODULE: ./node_modules/babel-runtime/regenerator/index.js
  1370. var regenerator = __webpack_require__("Xxa5");
  1371. var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
  1372. // EXTERNAL MODULE: ./node_modules/babel-runtime/helpers/asyncToGenerator.js
  1373. var asyncToGenerator = __webpack_require__("exGp");
  1374. var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
  1375. // EXTERNAL MODULE: ./src/api/index.js + 5 modules
  1376. var api = __webpack_require__("gyMJ");
  1377. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/dataScreen/Tourist.vue
  1378. //
  1379. //
  1380. //
  1381. //
  1382. //
  1383. //
  1384. //
  1385. /* harmony default export */ var Tourist = ({
  1386. name: 'Tourist',
  1387. data: function data() {
  1388. return {
  1389. chartsOne: {
  1390. // title: {
  1391. // text: '房屋入住率'
  1392. // },
  1393. tooltip: {},
  1394. //系列:决定你展示什么样的图形图标
  1395. series: {
  1396. type: 'liquidFill', //系列
  1397. data: [], //展示的数据
  1398. label: {
  1399. normal: {
  1400. formatter: "", //水球上显示文字,可以设置任意文字
  1401. show: true,
  1402. textStyle: {
  1403. // color: '#ffffff',
  1404. fontSize: '25',
  1405. fontFamily: 'serif',
  1406. fontWeight: 'bold'
  1407. }
  1408. }
  1409. },
  1410. waveAnimation: true, //动画
  1411. animationDuration: 3,
  1412. animationDurationUpdate: 0, // 控制波浪上升
  1413. radius: '70%', //半径
  1414. outline: { //外层边框颜色设置
  1415. show: true,
  1416. borderDistance: 8,
  1417. itemStyle: {
  1418. color: 'skyblue',
  1419. borderColor: '#294D99',
  1420. borderWidth: 8,
  1421. shadowBlur: 20,
  1422. shadowColor: 'rgba(0, 0, 0, 0.25)'
  1423. }
  1424. }
  1425. }
  1426. },
  1427. // Occupancyrate: '',
  1428. statisticsDateDefault: {
  1429. "cdata": ["0", "0", "0", "0", "0"],
  1430. "seriesData": {
  1431. "abnormalTotal": 0,
  1432. "batteryLevel1": 0,
  1433. "batteryLevel2": 0,
  1434. "batteryLevel3": 0,
  1435. "batteryLevel4": 0,
  1436. "batteryLevel5": 0,
  1437. "closeTotal": 0,
  1438. "offlineTotal": 0,
  1439. "onlineTotal": 0,
  1440. "openTotal": 0,
  1441. "projects": 0,
  1442. "total": 0
  1443. },
  1444. "collectUS": {
  1445. "card300": 0,
  1446. "site200": 0,
  1447. "card200": 0,
  1448. "userCount": 0,
  1449. "site300": 0,
  1450. "lock300": 0,
  1451. "site400": 0,
  1452. "lock200": 0,
  1453. "houseSensor400": 0
  1454. },
  1455. "collectOpenLock": {
  1456. "week300": [{
  1457. "count": 0,
  1458. "order": "2022-05-15"
  1459. }, {
  1460. "count": 0,
  1461. "order": "2022-05-16"
  1462. }, {
  1463. "count": 0,
  1464. "order": "2022-05-17"
  1465. }, {
  1466. "count": 0,
  1467. "order": "2022-05-18"
  1468. }, {
  1469. "count": 0,
  1470. "order": "2022-05-19"
  1471. }, {
  1472. "count": 0,
  1473. "order": "2022-05-20"
  1474. }, {
  1475. "count": 0,
  1476. "order": "2022-05-21"
  1477. }, {
  1478. "count": 0,
  1479. "order": "2022-05-22"
  1480. }, {
  1481. "count": 0,
  1482. "order": "2022-05-23"
  1483. }, {
  1484. "count": 0,
  1485. "order": "2022-05-24"
  1486. }, {
  1487. "count": 0,
  1488. "order": "2022-05-25"
  1489. }, {
  1490. "count": 0,
  1491. "order": "2022-05-26"
  1492. }],
  1493. "week200": [{
  1494. "count": 0,
  1495. "order": "2022-05-19"
  1496. }, {
  1497. "count": 0,
  1498. "order": "2022-05-20"
  1499. }, {
  1500. "count": 0,
  1501. "order": "2022-05-21"
  1502. }, {
  1503. "count": 0,
  1504. "order": "2022-05-22"
  1505. }, {
  1506. "count": 0,
  1507. "order": "2022-05-23"
  1508. }, {
  1509. "count": 0,
  1510. "order": "2022-05-24"
  1511. }, {
  1512. "count": 0,
  1513. "order": "2022-05-25"
  1514. }, {
  1515. "count": 0,
  1516. "order": "2022-05-26"
  1517. }],
  1518. "allCount300": 0,
  1519. "allCount200": 0
  1520. },
  1521. "weekopenlock": [{
  1522. "order": "2022-05-19",
  1523. "count": 0
  1524. }, {
  1525. "order": "2022-05-20",
  1526. "count": 0
  1527. }, {
  1528. "order": "2022-05-21",
  1529. "count": 0
  1530. }, {
  1531. "order": "2022-05-22",
  1532. "count": 0
  1533. }, {
  1534. "order": "2022-05-23",
  1535. "count": 0
  1536. }, {
  1537. "order": "2022-05-24",
  1538. "count": 0
  1539. }, {
  1540. "order": "2022-05-25",
  1541. "count": 0
  1542. }, {
  1543. "order": "2022-05-26",
  1544. "count": 0
  1545. }],
  1546. "addDeviceWeek": [{
  1547. "order": "2022/05/20",
  1548. "count": 0
  1549. }, {
  1550. "order": "2022/05/21",
  1551. "count": 0
  1552. }, {
  1553. "order": "2022/05/22",
  1554. "count": 0
  1555. }, {
  1556. "order": "2022/05/23",
  1557. "count": 0
  1558. }, {
  1559. "order": "2022/05/24",
  1560. "count": 0
  1561. }, {
  1562. "order": "2022/05/25",
  1563. "count": 0
  1564. }, {
  1565. "order": "2022-05-26",
  1566. "count": 0
  1567. }]
  1568. }
  1569. };
  1570. },
  1571. created: function created() {
  1572. var _this = this;
  1573. return asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee() {
  1574. return regenerator_default.a.wrap(function _callee$(_context) {
  1575. while (1) {
  1576. switch (_context.prev = _context.next) {
  1577. case 0:
  1578. case 'end':
  1579. return _context.stop();
  1580. }
  1581. }
  1582. }, _callee, _this);
  1583. }))();
  1584. },
  1585. mounted: function mounted() {
  1586. var _this2 = this;
  1587. // httpGet('', this.$api.getCommunityrentStatistics).then(res => { })
  1588. var sumRoom = '';
  1589. var Occupancyrate = '';
  1590. this.$store.commit('setUser1');
  1591. if (!localStorage.getItem('statisticsDate')) {
  1592. var data = this.statisticsDateDefault;
  1593. localStorage.setItem('statisticsDate', stringify_default()(data));
  1594. this.reload();
  1595. }
  1596. var statisticsDate = JSON.parse(localStorage.getItem('statisticsDate'));
  1597. this.statisticsDate = statisticsDate;
  1598. this.statisticsDate.abnormalTotal = this.statisticsDate.seriesData.abnormalTotal || 0;
  1599. this.statisticsDate.offlineTotal = this.statisticsDate.seriesData.offlineTotal || 0;
  1600. this.statisticsDate.onlineTotal = this.statisticsDate.seriesData.onlineTotal || 0;
  1601. this.statisticsDate.isAppBind = this.statisticsDate.seriesData.isAppBind || 0;
  1602. this.statisticsDate.batteryLevel1 = this.statisticsDate.seriesData.batteryLevel1 || 0;
  1603. // this.collectUS = statisticsDate.collectUS
  1604. // this.sumProjects = statisticsDate.seriesData.projects
  1605. for (var t in statisticsDate.collectUS) {
  1606. var p = t.indexOf('site');
  1607. if (p != -1) {
  1608. sumRoom += statisticsDate.collectUS[t];
  1609. }
  1610. }
  1611. Object(api["d" /* httpGet */])('', this.$api.getCommonStatistics).then(function () {
  1612. var _ref = asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee2(res6) {
  1613. var list, occupied, chartsOne, chartsObjOne;
  1614. return regenerator_default.a.wrap(function _callee2$(_context2) {
  1615. while (1) {
  1616. switch (_context2.prev = _context2.next) {
  1617. case 0:
  1618. console.log('222', res6);
  1619. if (res6.success) {
  1620. list = res6.data;
  1621. occupied = 0;
  1622. list.map(function (li) {
  1623. if (li.status === 1) {
  1624. occupied += li.total;
  1625. }
  1626. });
  1627. Occupancyrate = (occupied / sumRoom).toFixed(2);
  1628. chartsOne = _this2.chartsOne;
  1629. // chartsOne.series.data[0] = Occupancyrate
  1630. chartsOne.series.data[0] = 0.4;
  1631. // chartsOne.series.label.normal.formatter = Occupancyrate + '%'
  1632. chartsOne.series.label.normal.formatter = '40' + '%';
  1633. chartsObjOne = _this2.$echarts.init(document.getElementById("charts"));
  1634. chartsObjOne.setOption(chartsOne, true);
  1635. }
  1636. case 2:
  1637. case 'end':
  1638. return _context2.stop();
  1639. }
  1640. }
  1641. }, _callee2, _this2);
  1642. }));
  1643. return function (_x) {
  1644. return _ref.apply(this, arguments);
  1645. };
  1646. }());
  1647. // let chartsOne = this.chartsOne
  1648. // chartsOne.series.data[0] = this.Occupancyrate
  1649. // chartsOne.series.label.normal.formatter = this.Occupancyrate + '%'
  1650. // let chartsObjOne = this.$echarts.init(
  1651. // document.getElementById("charts")
  1652. // );
  1653. // chartsObjOne.setOption(chartsOne, true);
  1654. }
  1655. });
  1656. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-4d3946e0","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/dataScreen/Tourist.vue
  1657. var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"Tourist"},[_c('div',{staticClass:"tourist-title"},[_vm._v("房屋入住率")]),_vm._v(" "),_c('div',{style:({ height: '250px', width: '100%' }),attrs:{"id":"charts"}})])}
  1658. var staticRenderFns = []
  1659. var esExports = { render: render, staticRenderFns: staticRenderFns }
  1660. /* harmony default export */ var dataScreen_Tourist = (esExports);
  1661. // CONCATENATED MODULE: ./src/views/dataScreen/Tourist.vue
  1662. function injectStyle (ssrContext) {
  1663. __webpack_require__("+Vp8")
  1664. }
  1665. var normalizeComponent = __webpack_require__("VU/8")
  1666. /* script */
  1667. /* template */
  1668. /* template functional */
  1669. var __vue_template_functional__ = false
  1670. /* styles */
  1671. var __vue_styles__ = injectStyle
  1672. /* scopeId */
  1673. var __vue_scopeId__ = "data-v-4d3946e0"
  1674. /* moduleIdentifier (server only) */
  1675. var __vue_module_identifier__ = null
  1676. var Component = normalizeComponent(
  1677. Tourist,
  1678. dataScreen_Tourist,
  1679. __vue_template_functional__,
  1680. __vue_styles__,
  1681. __vue_scopeId__,
  1682. __vue_module_identifier__
  1683. )
  1684. /* harmony default export */ var views_dataScreen_Tourist = __webpack_exports__["a"] = (Component.exports);
  1685. /***/ }),
  1686. /***/ "rOXf":
  1687. /***/ (function(module, exports) {
  1688. // removed by extract-text-webpack-plugin
  1689. /***/ }),
  1690. /***/ "sJZa":
  1691. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1692. "use strict";
  1693. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  1694. // EXTERNAL MODULE: ./src/views/dataScreen/screenTop.vue + 2 modules
  1695. var screenTop = __webpack_require__("jHVQ");
  1696. // EXTERNAL MODULE: ./src/views/dataScreen/Tourist.vue + 2 modules
  1697. var Tourist = __webpack_require__("qJzB");
  1698. // EXTERNAL MODULE: ./src/views/dataScreen/rightChartcenter.vue + 2 modules
  1699. var rightChartcenter = __webpack_require__("JlHD");
  1700. // EXTERNAL MODULE: ./src/views/dataScreen/leftChartOne.vue + 2 modules
  1701. var leftChartOne = __webpack_require__("ehEW");
  1702. // EXTERNAL MODULE: ./src/views/dataScreen/centerChartBottom.vue + 2 modules
  1703. var centerChartBottom = __webpack_require__("KKTH");
  1704. // EXTERNAL MODULE: ./src/views/dataScreen/rightChartTop.vue + 2 modules
  1705. var rightChartTop = __webpack_require__("jDcs");
  1706. // EXTERNAL MODULE: ./src/views/dataScreen/leftChartBottom.vue + 2 modules
  1707. var leftChartBottom = __webpack_require__("boqQ");
  1708. // EXTERNAL MODULE: ./src/views/dataScreen/leftChartcenter.vue + 2 modules
  1709. var leftChartcenter = __webpack_require__("X9Mt");
  1710. // EXTERNAL MODULE: ./src/views/dataScreen/centerChartTop.vue + 2 modules
  1711. var centerChartTop = __webpack_require__("CecC");
  1712. // EXTERNAL MODULE: ./src/views/dataScreen/rightChartcentertwo.vue + 2 modules
  1713. var rightChartcentertwo = __webpack_require__("xyEF");
  1714. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/Datascreen.vue
  1715. //
  1716. //
  1717. //
  1718. //
  1719. //
  1720. //
  1721. //
  1722. //
  1723. //
  1724. //
  1725. //
  1726. //
  1727. //
  1728. //
  1729. //
  1730. //
  1731. //
  1732. //
  1733. //
  1734. //
  1735. //
  1736. //
  1737. //
  1738. //
  1739. //
  1740. //
  1741. //
  1742. //
  1743. //
  1744. //
  1745. //
  1746. /* harmony default export */ var Datascreen = ({
  1747. name: 'Datascreen',
  1748. components: { screenTop: screenTop["a" /* default */], Tourist: Tourist["a" /* default */], leftChartOne: leftChartOne["a" /* default */], rightChartcenter: rightChartcenter["a" /* default */], centerChartBottom: centerChartBottom["a" /* default */], rightChartTop: rightChartTop["a" /* default */], leftChartBottom: leftChartBottom["a" /* default */], leftChartcenter: leftChartcenter["a" /* default */], centerChartTop: centerChartTop["a" /* default */], rightChartcentertwo: rightChartcentertwo["a" /* default */] },
  1749. data: function data() {
  1750. return {};
  1751. },
  1752. created: function created() {
  1753. // if (document.documentElement.clientWidth < 1080) {
  1754. // this.colNumOne = 24
  1755. // this.colNum = 24
  1756. // } else {
  1757. // this.colNumOne = 12
  1758. // this.colNum = 8
  1759. // }
  1760. },
  1761. methods: {},
  1762. mounted: function mounted() {
  1763. // let full = document.fullscreenElement;
  1764. // //切换为全屏模式
  1765. // if (!full) {
  1766. // //文档根节点的方法requestFullscreen,实现全屏模式
  1767. // document.documentElement.requestFullscreen();
  1768. // }
  1769. // window.onresize = () => {
  1770. // return (() => {
  1771. // if (document.documentElement.clientWidth < 1080) {
  1772. // this.colNumOne = 24
  1773. // this.colNum = 24
  1774. // } else {
  1775. // this.colNumOne = 12
  1776. // this.colNum = 8
  1777. // }
  1778. // })()
  1779. // }
  1780. }
  1781. });
  1782. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-154492f2","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/Datascreen.vue
  1783. var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"container"},[_c('div',{staticClass:"screen"},[_c('div',{staticClass:"top"},[_c('screenTop')],1),_vm._v(" "),_c('div',{staticClass:"bottom"},[_c('div',{staticClass:"left"},[_c('leftChartOne',{staticClass:"leftChartOne"}),_vm._v(" "),_c('rightChartcenter',{staticClass:"leftChartcenter"}),_vm._v(" "),_c('leftChartBottom',{staticClass:"leftChartBottom"})],1),_vm._v(" "),_c('div',{staticClass:"center"},[_c('centerChartTop'),_vm._v(" "),_c('centerChartBottom')],1),_vm._v(" "),_c('div',{staticClass:"right"},[_c('rightChartTop',{staticClass:"rightChartTop"}),_vm._v(" "),_c('rightChartcentertwo',{staticClass:"rightChartcenter"}),_vm._v(" "),_c('Tourist',{staticClass:"tourist"})],1)])])])}
  1784. var staticRenderFns = []
  1785. var esExports = { render: render, staticRenderFns: staticRenderFns }
  1786. /* harmony default export */ var views_Datascreen = (esExports);
  1787. // CONCATENATED MODULE: ./src/views/Datascreen.vue
  1788. function injectStyle (ssrContext) {
  1789. __webpack_require__("p64W")
  1790. }
  1791. var normalizeComponent = __webpack_require__("VU/8")
  1792. /* script */
  1793. /* template */
  1794. /* template functional */
  1795. var __vue_template_functional__ = false
  1796. /* styles */
  1797. var __vue_styles__ = injectStyle
  1798. /* scopeId */
  1799. var __vue_scopeId__ = "data-v-154492f2"
  1800. /* moduleIdentifier (server only) */
  1801. var __vue_module_identifier__ = null
  1802. var Component = normalizeComponent(
  1803. Datascreen,
  1804. views_Datascreen,
  1805. __vue_template_functional__,
  1806. __vue_styles__,
  1807. __vue_scopeId__,
  1808. __vue_module_identifier__
  1809. )
  1810. /* harmony default export */ var src_views_Datascreen = __webpack_exports__["default"] = (Component.exports);
  1811. /***/ }),
  1812. /***/ "xyEF":
  1813. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1814. "use strict";
  1815. // EXTERNAL MODULE: ./node_modules/babel-runtime/core-js/json/stringify.js
  1816. var stringify = __webpack_require__("mvHQ");
  1817. var stringify_default = /*#__PURE__*/__webpack_require__.n(stringify);
  1818. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/dataScreen/rightChartcentertwo.vue
  1819. //
  1820. //
  1821. //
  1822. //
  1823. //
  1824. //
  1825. //
  1826. //
  1827. //
  1828. //
  1829. //
  1830. //
  1831. //
  1832. //
  1833. //
  1834. /* harmony default export */ var rightChartcentertwo = ({
  1835. name: 'rightChartcentertwo',
  1836. data: function data() {
  1837. return {
  1838. charts: {
  1839. // title: {
  1840. // text: '设备电量占比',
  1841. // textStyle: {
  1842. // color: '#00BFFF',
  1843. // }
  1844. // },
  1845. tooltip: {},
  1846. series: [{
  1847. type: 'funnel',
  1848. top: 10,
  1849. // bottom: 60,
  1850. left: '10%',
  1851. width: '70%',
  1852. height: '80%',
  1853. // min: 0,
  1854. // max: 100,
  1855. minSize: '0%',
  1856. maxSize: '100%',
  1857. sort: 'ascending',
  1858. gap: 2,
  1859. label: {
  1860. show: true,
  1861. position: 'inside'
  1862. },
  1863. labelLine: {
  1864. length: 10,
  1865. lineStyle: {
  1866. width: 1,
  1867. type: 'solid'
  1868. }
  1869. },
  1870. itemStyle: {
  1871. borderColor: '#fff',
  1872. borderWidth: 1
  1873. },
  1874. emphasis: {
  1875. label: {
  1876. fontSize: 20
  1877. }
  1878. },
  1879. data: [{ value: 0, name: '电量(0~20%)' }, { value: 0, name: '电量(20~40%)' }, { value: 0, name: '电量(40~60%)' }, { value: 0, name: '电量(60~80%)' }, { value: 0, name: '电量(80~100%)' }]
  1880. }]
  1881. },
  1882. statisticsDateDefault: {
  1883. "cdata": ["0", "0", "0", "0", "0"],
  1884. "seriesData": {
  1885. "abnormalTotal": 0,
  1886. "batteryLevel1": 0,
  1887. "batteryLevel2": 0,
  1888. "batteryLevel3": 0,
  1889. "batteryLevel4": 0,
  1890. "batteryLevel5": 0,
  1891. "closeTotal": 0,
  1892. "offlineTotal": 0,
  1893. "onlineTotal": 0,
  1894. "openTotal": 0,
  1895. "projects": 0,
  1896. "total": 0
  1897. },
  1898. "collectUS": {
  1899. "card300": 0,
  1900. "site200": 0,
  1901. "card200": 0,
  1902. "userCount": 0,
  1903. "site300": 0,
  1904. "lock300": 0,
  1905. "site400": 0,
  1906. "lock200": 0,
  1907. "houseSensor400": 0
  1908. },
  1909. "collectOpenLock": {
  1910. "week300": [{
  1911. "count": 0,
  1912. "order": "2022-05-15"
  1913. }, {
  1914. "count": 0,
  1915. "order": "2022-05-16"
  1916. }, {
  1917. "count": 0,
  1918. "order": "2022-05-17"
  1919. }, {
  1920. "count": 0,
  1921. "order": "2022-05-18"
  1922. }, {
  1923. "count": 0,
  1924. "order": "2022-05-19"
  1925. }, {
  1926. "count": 0,
  1927. "order": "2022-05-20"
  1928. }, {
  1929. "count": 0,
  1930. "order": "2022-05-21"
  1931. }, {
  1932. "count": 0,
  1933. "order": "2022-05-22"
  1934. }, {
  1935. "count": 0,
  1936. "order": "2022-05-23"
  1937. }, {
  1938. "count": 0,
  1939. "order": "2022-05-24"
  1940. }, {
  1941. "count": 0,
  1942. "order": "2022-05-25"
  1943. }, {
  1944. "count": 0,
  1945. "order": "2022-05-26"
  1946. }],
  1947. "week200": [{
  1948. "count": 0,
  1949. "order": "2022-05-19"
  1950. }, {
  1951. "count": 0,
  1952. "order": "2022-05-20"
  1953. }, {
  1954. "count": 0,
  1955. "order": "2022-05-21"
  1956. }, {
  1957. "count": 0,
  1958. "order": "2022-05-22"
  1959. }, {
  1960. "count": 0,
  1961. "order": "2022-05-23"
  1962. }, {
  1963. "count": 0,
  1964. "order": "2022-05-24"
  1965. }, {
  1966. "count": 0,
  1967. "order": "2022-05-25"
  1968. }, {
  1969. "count": 0,
  1970. "order": "2022-05-26"
  1971. }],
  1972. "allCount300": 0,
  1973. "allCount200": 0
  1974. },
  1975. "weekopenlock": [{
  1976. "order": "2022-05-19",
  1977. "count": 0
  1978. }, {
  1979. "order": "2022-05-20",
  1980. "count": 0
  1981. }, {
  1982. "order": "2022-05-21",
  1983. "count": 0
  1984. }, {
  1985. "order": "2022-05-22",
  1986. "count": 0
  1987. }, {
  1988. "order": "2022-05-23",
  1989. "count": 0
  1990. }, {
  1991. "order": "2022-05-24",
  1992. "count": 0
  1993. }, {
  1994. "order": "2022-05-25",
  1995. "count": 0
  1996. }, {
  1997. "order": "2022-05-26",
  1998. "count": 0
  1999. }],
  2000. "addDeviceWeek": [{
  2001. "order": "2022/05/20",
  2002. "count": 0
  2003. }, {
  2004. "order": "2022/05/21",
  2005. "count": 0
  2006. }, {
  2007. "order": "2022/05/22",
  2008. "count": 0
  2009. }, {
  2010. "order": "2022/05/23",
  2011. "count": 0
  2012. }, {
  2013. "order": "2022/05/24",
  2014. "count": 0
  2015. }, {
  2016. "order": "2022/05/25",
  2017. "count": 0
  2018. }, {
  2019. "order": "2022-05-26",
  2020. "count": 0
  2021. }]
  2022. },
  2023. batterylist: [{ title: '电量 (0~20%)', total: 0 }, { title: '电量 (20~40%)', total: 0 }, { title: '电量 (40~60%)', total: 0 }, { title: '电量 (60~80%)', total: 0 }, { title: '电量 (80~100%)', total: 0 }],
  2024. colors: ['one', 'two', 'three', 'four', 'five']
  2025. };
  2026. },
  2027. mounted: function mounted() {
  2028. var charts = this.charts;
  2029. this.$store.commit('setUser1');
  2030. if (!localStorage.getItem('statisticsDate')) {
  2031. var data = this.statisticsDateDefault;
  2032. localStorage.setItem('statisticsDate', stringify_default()(data));
  2033. this.reload();
  2034. }
  2035. var statisticsDate = JSON.parse(localStorage.getItem('statisticsDate'));
  2036. this.statisticsDate = statisticsDate;
  2037. this.batterylist[0].total = this.statisticsDate.seriesData.batteryLevel1;
  2038. this.batterylist[1].total = this.statisticsDate.seriesData.batteryLevel2;
  2039. this.batterylist[2].total = this.statisticsDate.seriesData.batteryLevel3;
  2040. this.batterylist[3].total = this.statisticsDate.seriesData.batteryLevel4;
  2041. this.batterylist[4].total = this.statisticsDate.seriesData.batteryLevel5;
  2042. charts.series[0].data[0].value = this.statisticsDate.seriesData.batteryLevel1;
  2043. charts.series[0].data[1].value = this.statisticsDate.seriesData.batteryLevel2;
  2044. charts.series[0].data[2].value = this.statisticsDate.seriesData.batteryLevel3;
  2045. charts.series[0].data[3].value = this.statisticsDate.seriesData.batteryLevel4;
  2046. charts.series[0].data[4].value = this.statisticsDate.seriesData.batteryLevel5;
  2047. console.log(charts);
  2048. var chartsObj = this.$echarts.init(document.getElementById('rightChartcentertwo'));
  2049. chartsObj.setOption(charts, true);
  2050. }
  2051. });
  2052. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-08b91280","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/dataScreen/rightChartcentertwo.vue
  2053. var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"rightChartcenterthree"},[_c('div',{staticClass:"rightChartcentertwo-title"},[_vm._v("设备电量占比")]),_vm._v(" "),_c('div',{staticClass:"rightChartcentertwo"},[_c('div',{style:({ width: '100%', height: '250px' }),attrs:{"id":"rightChartcentertwo"}}),_vm._v(" "),_c('div',{staticClass:"battery"},_vm._l((_vm.batterylist),function(item,index){return _c('div',{key:index,staticClass:"battery-item"},[_c('span',{staticClass:"battery-item-title"},[_vm._v(_vm._s(item.title))]),_vm._v(" "),_c('span',{staticClass:"battery-item-number",class:index < 5 ? _vm.colors[index] : ''},[_vm._v(_vm._s(item.total)+" 个")])])}),0)])])}
  2054. var staticRenderFns = []
  2055. var esExports = { render: render, staticRenderFns: staticRenderFns }
  2056. /* harmony default export */ var dataScreen_rightChartcentertwo = (esExports);
  2057. // CONCATENATED MODULE: ./src/views/dataScreen/rightChartcentertwo.vue
  2058. function injectStyle (ssrContext) {
  2059. __webpack_require__("6l9n")
  2060. }
  2061. var normalizeComponent = __webpack_require__("VU/8")
  2062. /* script */
  2063. /* template */
  2064. /* template functional */
  2065. var __vue_template_functional__ = false
  2066. /* styles */
  2067. var __vue_styles__ = injectStyle
  2068. /* scopeId */
  2069. var __vue_scopeId__ = "data-v-08b91280"
  2070. /* moduleIdentifier (server only) */
  2071. var __vue_module_identifier__ = null
  2072. var Component = normalizeComponent(
  2073. rightChartcentertwo,
  2074. dataScreen_rightChartcentertwo,
  2075. __vue_template_functional__,
  2076. __vue_styles__,
  2077. __vue_scopeId__,
  2078. __vue_module_identifier__
  2079. )
  2080. /* harmony default export */ var views_dataScreen_rightChartcentertwo = __webpack_exports__["a"] = (Component.exports);
  2081. /***/ }),
  2082. /***/ "ydAD":
  2083. /***/ (function(module, exports) {
  2084. // removed by extract-text-webpack-plugin
  2085. /***/ })
  2086. });