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

2325 lines
82 KiB

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