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

2208 lines
80 KiB

  1. webpackJsonp([24,65],{
  2. /***/ "++gD":
  3. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4. "use strict";
  5. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  6. // EXTERNAL MODULE: ./node_modules/babel-runtime/core-js/json/stringify.js
  7. var stringify = __webpack_require__("mvHQ");
  8. var stringify_default = /*#__PURE__*/__webpack_require__.n(stringify);
  9. // EXTERNAL MODULE: ./src/api/index.js + 5 modules
  10. var api = __webpack_require__("gyMJ");
  11. // EXTERNAL MODULE: ./src/utils/index.js
  12. var utils = __webpack_require__("0xDb");
  13. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/log/acoustoopticAlarmLog.vue
  14. //
  15. //
  16. //
  17. //
  18. //
  19. //
  20. //
  21. //
  22. //
  23. //
  24. //
  25. //
  26. //
  27. //
  28. //
  29. //
  30. //
  31. //
  32. //
  33. //
  34. //
  35. //
  36. //
  37. //
  38. //
  39. //
  40. //
  41. //
  42. //
  43. //
  44. //
  45. //
  46. //
  47. /* harmony default export */ var acoustoopticAlarmLog = ({
  48. name: "warningLog",
  49. data: function data() {
  50. return {
  51. query: {
  52. operType: "",
  53. operateName: "",
  54. operModul: ""
  55. },
  56. query1: {
  57. operType: "",
  58. operateName: "",
  59. operModul: ""
  60. },
  61. activeName: "first",
  62. tableData: [],
  63. tableData1: [],
  64. multipleSelection: [],
  65. delList: [],
  66. editVisible: false,
  67. pageTotal: 0,
  68. pageTotal1: 0,
  69. form: {},
  70. idx: -1,
  71. id: -1,
  72. AboutDevice: [],
  73. userInfo: {
  74. type: ''
  75. },
  76. alertTypeList: []
  77. };
  78. },
  79. props: ['deviceNum'],
  80. beforeCreate: function beforeCreate() {},
  81. created: function created() {
  82. this.alertTypeList = this.$MANUFACTURER.alertType.acoustoopticAlarmLog;
  83. this.userInfo = JSON.parse(localStorage.getItem('info'));
  84. this.getAboutDevice();
  85. },
  86. mounted: function mounted() {},
  87. methods: {
  88. selectTenantId: function selectTenantId(e) {
  89. localStorage.setItem('tenantId', e);
  90. this.reload();
  91. },
  92. restFun: function restFun() {
  93. var _this = this;
  94. this.query = {
  95. operType: "",
  96. operateName: "",
  97. operModul: ""
  98. };
  99. var q = {};
  100. if (this.deviceNum != '') {
  101. q = {
  102. alertType: this.query.alertType,
  103. deviceNum: this.deviceNum,
  104. deviceType: 11
  105. };
  106. } else {
  107. q = {
  108. alertType: this.query.alertType,
  109. deviceNum: this.query.deviceName,
  110. deviceType: 11
  111. };
  112. }
  113. var data = {
  114. pageNum: 1,
  115. pageSize: 10,
  116. q: this.searchParaProcess(q),
  117. orderBy: "alert_time desc"
  118. };
  119. Object(api["d" /* httpGet */])(data, this.$api.getLockAlert).then(function (res) {
  120. var AboutDevice = _this.AboutDevice;
  121. res.data.list.map(function (li) {
  122. li.createAt = _this.time(+new Date(li.createAt));
  123. li.alertTime = _this.time(+new Date(li.alertTime * 1000));
  124. var resultArr = AboutDevice.filter(function (_item) {
  125. return _item.deviceNum == li.deviceNum;
  126. })[0];
  127. if (resultArr) {
  128. li.roomId = resultArr.id;
  129. li.roomName = resultArr.roomName;
  130. }
  131. li['alertTypeDesc'] = '';
  132. var alertTypeDesc = _this.alertTypeList.filter(function (item) {
  133. return item.code == li.alertType;
  134. })[0];
  135. if (alertTypeDesc) {
  136. li['alertTypeDesc'] = alertTypeDesc.desc;
  137. }
  138. });
  139. _this.$store.commit('increment', 1);
  140. _this.tableData = res.data.list;
  141. _this.pageTotal = res.data.total;
  142. });
  143. },
  144. // 查询和房间相关的设备
  145. getAboutDevice: function getAboutDevice() {
  146. var _this2 = this;
  147. var data = {
  148. pageNum: 0,
  149. pageSize: 0,
  150. q: stringify_default()({
  151. lockType: 11
  152. })
  153. };
  154. Object(api["g" /* httpPost */])(data, this.$api.getDeviceItems).then(function (res) {
  155. _this2.AboutDevice = res.data.list;
  156. _this2.getOperates();
  157. });
  158. },
  159. time: function time() {
  160. var time = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : +new Date();
  161. var date = new Date(time + 8 * 3600 * 1000); // 增加8小时
  162. return date.toJSON().substr(0, 19).replace("T", " ");
  163. },
  164. // 获取操作日志
  165. getOperates: function getOperates() {
  166. var _this3 = this;
  167. var q = {};
  168. if (this.deviceNum != '') {
  169. q = {
  170. deviceNum: this.deviceNum,
  171. deviceType: 11
  172. };
  173. } else {
  174. q = {
  175. deviceNum: this.query.deviceName,
  176. deviceType: 11
  177. };
  178. }
  179. var data = {
  180. pageNum: 1,
  181. pageSize: 10,
  182. orderBy: "alert_time desc",
  183. q: stringify_default()(q)
  184. // orderType:"desc"
  185. };
  186. Object(api["d" /* httpGet */])(data, this.$api.getLockAlert).then(function (res) {
  187. var AboutDevice = _this3.AboutDevice;
  188. res.data.list.map(function (li) {
  189. li.createAt = _this3.time(+new Date(li.createAt));
  190. li.alertTime = _this3.time(+new Date(li.alertTime * 1000));
  191. var resultArr = AboutDevice.filter(function (_item) {
  192. return _item.deviceNum == li.deviceNum;
  193. })[0];
  194. if (resultArr) {
  195. li.roomId = resultArr.id;
  196. li.roomName = resultArr.roomName;
  197. }
  198. li['alertTypeDesc'] = '';
  199. var alertTypeDesc = _this3.alertTypeList.filter(function (item) {
  200. return item.code == li.alertType;
  201. })[0];
  202. if (alertTypeDesc) {
  203. li['alertTypeDesc'] = alertTypeDesc.desc;
  204. }
  205. });
  206. _this3.tableData = res.data.list;
  207. _this3.pageTotal = res.data.total;
  208. });
  209. },
  210. //门锁报警同步刷新
  211. getlockAlert: function getlockAlert() {
  212. Object(api["d" /* httpGet */])("", this.$api.getLockAlert1).then(function (res) {});
  213. },
  214. searchParaProcess: function searchParaProcess(obj) {
  215. var myObj;
  216. if (obj.alertType == "" || obj.alertType == "0") {
  217. if (obj.deviceNum == "") {
  218. myObj = {
  219. deviceType: obj.deviceType
  220. };
  221. } else {
  222. myObj = {
  223. deviceNum: obj.deviceNum,
  224. deviceType: obj.deviceType
  225. };
  226. }
  227. } else {
  228. if (obj.deviceNum == "") {
  229. myObj = {
  230. alertType: obj.alertType,
  231. deviceType: obj.deviceType
  232. };
  233. } else {
  234. myObj = {
  235. alertType: obj.alertType,
  236. deviceNum: obj.deviceNum,
  237. deviceType: obj.deviceType
  238. };
  239. }
  240. }
  241. return stringify_default()(myObj);
  242. },
  243. // 触发搜索按钮
  244. handleSearch: function handleSearch() {
  245. var _this4 = this;
  246. this.getlockAlert();
  247. var q = {};
  248. if (this.deviceNum != '') {
  249. q = {
  250. alertType: this.query.alertType,
  251. deviceNum: this.deviceNum,
  252. deviceType: 11
  253. };
  254. } else {
  255. q = {
  256. alertType: this.query.alertType,
  257. deviceNum: this.query.deviceName,
  258. deviceType: 11
  259. };
  260. }
  261. var data = {
  262. pageNum: 1,
  263. pageSize: 10,
  264. q: this.searchParaProcess(q),
  265. orderBy: "alert_time desc"
  266. };
  267. Object(api["d" /* httpGet */])(data, this.$api.getLockAlert).then(function (res) {
  268. var AboutDevice = _this4.AboutDevice;
  269. res.data.list.map(function (li) {
  270. li.createAt = _this4.time(+new Date(li.createAt));
  271. li.alertTime = _this4.time(+new Date(li.alertTime * 1000));
  272. var resultArr = AboutDevice.filter(function (_item) {
  273. return _item.deviceNum == li.deviceNum;
  274. })[0];
  275. if (resultArr) {
  276. li.roomId = resultArr.id;
  277. li.roomName = resultArr.roomName;
  278. }
  279. li['alertTypeDesc'] = '';
  280. var alertTypeDesc = _this4.alertTypeList.filter(function (item) {
  281. return item.code == li.alertType;
  282. })[0];
  283. if (alertTypeDesc) {
  284. li['alertTypeDesc'] = alertTypeDesc.desc;
  285. }
  286. });
  287. _this4.$store.commit('increment', 1);
  288. _this4.tableData = res.data.list;
  289. _this4.pageTotal = res.data.total;
  290. });
  291. // this.$set(this.query, "pageIndex", 1);
  292. },
  293. // 分页导航
  294. handlePageChange: function handlePageChange(val) {
  295. var _this5 = this;
  296. this.$store.commit('increment', val);
  297. var q = {};
  298. if (this.deviceNum != '') {
  299. q = {
  300. alertType: this.query.alertType,
  301. deviceNum: this.deviceNum,
  302. deviceType: 11
  303. };
  304. } else {
  305. q = {
  306. alertType: this.query.alertType,
  307. deviceNum: this.query.deviceName,
  308. deviceType: 11
  309. };
  310. }
  311. var data = {
  312. pageNum: val,
  313. pageSize: 10,
  314. q: this.searchParaProcess(q),
  315. orderBy: "alert_time desc"
  316. };
  317. Object(api["d" /* httpGet */])(data, this.$api.getLockAlert).then(function (res) {
  318. var AboutDevice = _this5.AboutDevice;
  319. res.data.list.map(function (li) {
  320. li.createAt = _this5.time(+new Date(li.createAt));
  321. li.alertTime = _this5.time(+new Date(li.alertTime * 1000));
  322. var resultArr = AboutDevice.filter(function (_item) {
  323. return _item.deviceNum == li.deviceNum;
  324. })[0];
  325. if (resultArr) {
  326. li.roomId = resultArr.id;
  327. li.roomName = resultArr.roomName;
  328. }
  329. li['alertTypeDesc'] = '';
  330. var alertTypeDesc = _this5.alertTypeList.filter(function (item) {
  331. return item.code == li.alertType;
  332. })[0];
  333. if (alertTypeDesc) {
  334. li['alertTypeDesc'] = alertTypeDesc.desc;
  335. }
  336. });
  337. _this5.tableData = res.data.list;
  338. _this5.pageTotal = res.data.total;
  339. });
  340. }
  341. }
  342. });
  343. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-5e1aac0a","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/log/acoustoopticAlarmLog.vue
  344. var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"container"},[_c('div',{staticClass:"handle-box"},[_c('selectoption'),_vm._v(" "),_c('el-input',{staticClass:"handle-input mr10",attrs:{"size":"small","placeholder":"设备号","clearable":true},model:{value:(_vm.query.deviceName),callback:function ($$v) {_vm.$set(_vm.query, "deviceName", $$v)},expression:"query.deviceName"}}),_vm._v(" "),_c('el-select',{staticClass:"handle-select mr10",attrs:{"size":"small","clearable":true,"placeholder":"报警类型"},model:{value:(_vm.query.alertType),callback:function ($$v) {_vm.$set(_vm.query, "alertType", $$v)},expression:"query.alertType"}},_vm._l((_vm.alertTypeList),function(item){return _c('el-option',{key:item.code,attrs:{"label":item.desc,"value":item.code}})}),1),_vm._v(" "),_c('el-button',{attrs:{"type":"primary","size":"small","icon":"el-icon-search"},on:{"click":_vm.handleSearch}},[_vm._v("搜索")]),_vm._v(" "),_c('el-button',{attrs:{"type":"primary","size":"small","icon":"el-icon-search"},on:{"click":_vm.restFun}},[_vm._v("重置")])],1),_vm._v(" "),_c('el-table',{ref:"multipleTable",staticClass:"table",attrs:{"data":_vm.tableData,"border":"","header-cell-class-name":"table-header"}},[_c('el-table-column',{attrs:{"prop":"id","label":"ID"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"deviceNum","label":"设备号"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"roomName","label":"房间名称"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"alertTime","label":"报警时间"}}),_vm._v(" "),_c('el-table-column',{attrs:{"label":"报警类型"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('span',[_vm._v(_vm._s(scope.row.alertTypeDesc))])]}}])})],1),_vm._v(" "),_c('div',{staticClass:"pagination"},[_c('el-pagination',{attrs:{"background":"","layout":"total, prev, pager, next","current-page":_vm.$store.state.currentPage,"page-size":10,"total":_vm.pageTotal},on:{"current-change":_vm.handlePageChange}})],1)],1)])}
  345. var staticRenderFns = []
  346. var esExports = { render: render, staticRenderFns: staticRenderFns }
  347. /* harmony default export */ var log_acoustoopticAlarmLog = (esExports);
  348. // CONCATENATED MODULE: ./src/views/log/acoustoopticAlarmLog.vue
  349. function injectStyle (ssrContext) {
  350. __webpack_require__("eOrk")
  351. }
  352. var normalizeComponent = __webpack_require__("VU/8")
  353. /* script */
  354. /* template */
  355. /* template functional */
  356. var __vue_template_functional__ = false
  357. /* styles */
  358. var __vue_styles__ = injectStyle
  359. /* scopeId */
  360. var __vue_scopeId__ = "data-v-5e1aac0a"
  361. /* moduleIdentifier (server only) */
  362. var __vue_module_identifier__ = null
  363. var Component = normalizeComponent(
  364. acoustoopticAlarmLog,
  365. log_acoustoopticAlarmLog,
  366. __vue_template_functional__,
  367. __vue_styles__,
  368. __vue_scopeId__,
  369. __vue_module_identifier__
  370. )
  371. /* harmony default export */ var views_log_acoustoopticAlarmLog = __webpack_exports__["default"] = (Component.exports);
  372. /***/ }),
  373. /***/ "Weha":
  374. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  375. "use strict";
  376. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  377. // EXTERNAL MODULE: ./node_modules/babel-runtime/helpers/defineProperty.js
  378. var defineProperty = __webpack_require__("bOdI");
  379. var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
  380. // EXTERNAL MODULE: ./node_modules/babel-runtime/core-js/promise.js
  381. var promise = __webpack_require__("//Fk");
  382. var promise_default = /*#__PURE__*/__webpack_require__.n(promise);
  383. // EXTERNAL MODULE: ./node_modules/babel-runtime/regenerator/index.js
  384. var regenerator = __webpack_require__("Xxa5");
  385. var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
  386. // EXTERNAL MODULE: ./node_modules/babel-runtime/helpers/asyncToGenerator.js
  387. var asyncToGenerator = __webpack_require__("exGp");
  388. var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
  389. // EXTERNAL MODULE: ./node_modules/babel-runtime/core-js/json/stringify.js
  390. var stringify = __webpack_require__("mvHQ");
  391. var stringify_default = /*#__PURE__*/__webpack_require__.n(stringify);
  392. // EXTERNAL MODULE: ./src/api/index.js + 5 modules
  393. var api = __webpack_require__("gyMJ");
  394. // EXTERNAL MODULE: ./src/components/zTree1.vue + 2 modules
  395. var zTree1 = __webpack_require__("6Ljo");
  396. // EXTERNAL MODULE: ./src/components/deviceLi.vue + 2 modules
  397. var deviceLi = __webpack_require__("4qFG");
  398. // EXTERNAL MODULE: ./src/components/UnlockRecord.vue + 2 modules
  399. var UnlockRecord = __webpack_require__("YBqH");
  400. // EXTERNAL MODULE: ./src/components/DeviceFeedbackLog.vue + 2 modules
  401. var DeviceFeedbackLog = __webpack_require__("5skf");
  402. // EXTERNAL MODULE: ./src/views/log/acoustoopticAlarmLog.vue + 2 modules
  403. var acoustoopticAlarmLog = __webpack_require__("++gD");
  404. // EXTERNAL MODULE: ./src/utils/index.js
  405. var utils = __webpack_require__("0xDb");
  406. // EXTERNAL MODULE: ./node_modules/xlsx/xlsx.js
  407. var xlsx = __webpack_require__("uXZL");
  408. var xlsx_default = /*#__PURE__*/__webpack_require__.n(xlsx);
  409. // EXTERNAL MODULE: ./src/utils/util.js
  410. var util = __webpack_require__("oFuF");
  411. // EXTERNAL MODULE: ./src/utils/equipment.js
  412. var equipment = __webpack_require__("ObZk");
  413. // EXTERNAL MODULE: ./node_modules/moment/moment.js
  414. var moment = __webpack_require__("PJh5");
  415. var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
  416. // EXTERNAL MODULE: ./src/api/allFun.js
  417. var allFun = __webpack_require__("mprh");
  418. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/device/acoustoopticAlarm.vue
  419. var _methods;
  420. //
  421. //
  422. //
  423. //
  424. //
  425. //
  426. //
  427. //
  428. //
  429. //
  430. //
  431. //
  432. //
  433. //
  434. //
  435. //
  436. //
  437. //
  438. //
  439. //
  440. //
  441. //
  442. //
  443. //
  444. //
  445. //
  446. //
  447. //
  448. //
  449. //
  450. //
  451. //
  452. //
  453. //
  454. //
  455. //
  456. //
  457. //
  458. //
  459. //
  460. //
  461. //
  462. //
  463. //
  464. //
  465. //
  466. //
  467. //
  468. //
  469. //
  470. //
  471. //
  472. //
  473. //
  474. //
  475. //
  476. //
  477. //
  478. //
  479. //
  480. //
  481. //
  482. //
  483. //
  484. //
  485. //
  486. //
  487. //
  488. //
  489. //
  490. //
  491. //
  492. //
  493. //
  494. //
  495. //
  496. //
  497. //
  498. //
  499. //
  500. //
  501. //
  502. //
  503. //
  504. //
  505. //
  506. //
  507. //
  508. //
  509. //
  510. //
  511. //
  512. //
  513. //
  514. //
  515. //
  516. //
  517. //
  518. //
  519. //
  520. //
  521. //
  522. //
  523. //
  524. //
  525. //
  526. //
  527. //
  528. //
  529. //
  530. //
  531. //
  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. //
  557. //
  558. //
  559. //
  560. //
  561. //
  562. //
  563. //
  564. //
  565. //
  566. //
  567. //
  568. //
  569. //
  570. //
  571. //
  572. //
  573. //
  574. //
  575. //
  576. //
  577. //
  578. //
  579. //
  580. //
  581. //
  582. //
  583. //
  584. //
  585. //
  586. //
  587. //
  588. //
  589. //
  590. //
  591. //
  592. //
  593. //
  594. //
  595. //
  596. //
  597. //
  598. //
  599. //
  600. //
  601. //
  602. //
  603. //
  604. //
  605. //
  606. //
  607. //
  608. //
  609. //
  610. //
  611. //
  612. //
  613. //
  614. //
  615. //
  616. //
  617. //
  618. //
  619. //
  620. //
  621. //
  622. //
  623. //
  624. //
  625. //
  626. //
  627. //
  628. //
  629. //
  630. //
  631. //
  632. //
  633. //
  634. //
  635. //
  636. //
  637. //
  638. //
  639. //
  640. //
  641. //
  642. //
  643. //
  644. //
  645. //
  646. //
  647. //
  648. //
  649. //
  650. //
  651. //
  652. //
  653. //
  654. //
  655. //
  656. //
  657. //
  658. //
  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. //
  684. //
  685. //
  686. //
  687. //
  688. //
  689. //
  690. //
  691. //
  692. //
  693. //
  694. //
  695. //
  696. //
  697. //
  698. //
  699. //
  700. //
  701. //
  702. //
  703. //
  704. //
  705. //
  706. //
  707. //
  708. //
  709. //
  710. //
  711. //
  712. //
  713. //
  714. //
  715. //
  716. //
  717. //
  718. //
  719. //
  720. //
  721. //
  722. //
  723. //
  724. //
  725. //
  726. //
  727. //
  728. //
  729. //
  730. //
  731. //
  732. //
  733. //
  734. //
  735. //
  736. //
  737. //
  738. //
  739. //
  740. //
  741. //
  742. //
  743. //
  744. //
  745. //
  746. //
  747. //
  748. //
  749. //
  750. //
  751. //
  752. //
  753. //
  754. //
  755. //
  756. //
  757. /* harmony default export */ var acoustoopticAlarm = ({
  758. inject: ['reload'],
  759. name: "doorLock",
  760. data: function data() {
  761. return {
  762. searchRoom: '',
  763. deviceImg: __webpack_require__("It2U"),
  764. selectoption: [],
  765. selectoptionValue: '',
  766. senddeviceNum: '',
  767. sendroomId: '',
  768. commpontentStatus: true,
  769. Emergence: {
  770. EmerPhone: '',
  771. password: '',
  772. device: '',
  773. name: ''
  774. },
  775. defaultProps: {
  776. children: "children",
  777. label: "name"
  778. },
  779. options: [],
  780. drawer: false,
  781. value1: false,
  782. value2: 0,
  783. marks: {
  784. 0: "关",
  785. 50: "中",
  786. 100: "高"
  787. },
  788. switchtext: "关",
  789. activeName: "0",
  790. formInline: {},
  791. platlist: [{
  792. label: "电信",
  793. value: 1
  794. }, {
  795. label: "移动",
  796. value: 2
  797. }, {
  798. label: "联通",
  799. value: 3
  800. }],
  801. manufacturerList: [],
  802. setting: {
  803. edit: {
  804. enable: true,
  805. drag: {
  806. isMove: true
  807. },
  808. showRemoveBtn: false,
  809. showRenameBtn: false
  810. },
  811. check: {
  812. enable: false
  813. },
  814. data: {
  815. simpleData: {
  816. enable: true,
  817. pIdKey: "pid"
  818. }
  819. },
  820. view: {
  821. showIcon: true,
  822. addHoverDom: this.addHoverDom,
  823. removeHoverDom: this.removeHoverDom
  824. }
  825. },
  826. zNodes: [],
  827. bromm: {},
  828. query: {
  829. address: "",
  830. name: "",
  831. pageIndex: 1,
  832. pageSize: 20,
  833. options: []
  834. },
  835. search: {
  836. name: "",
  837. deviceNum: "",
  838. roomname: '',
  839. imei: "",
  840. isOnline: "",
  841. startBattery: '0',
  842. endBattery: '100'
  843. },
  844. tableData: [],
  845. multipleSelection: [],
  846. delList: [],
  847. editVisible: false,
  848. roomVisible: false,
  849. pageTotal: 0,
  850. sumpageTotal: 0,
  851. currentPage4: 1,
  852. form: {
  853. manufacturer: "",
  854. validateCode: ''
  855. },
  856. idx: -1,
  857. id: -1,
  858. abnormal: 0,
  859. online: 0,
  860. treedata: [],
  861. unonline: 0,
  862. Unlocking: false,
  863. Unlockingrow: {},
  864. lockingform: {
  865. password: ""
  866. },
  867. activeiconfont: true,
  868. info: [],
  869. uploadkj: false,
  870. userlist1statu: true,
  871. userlist2: [],
  872. multipleSelection1: [],
  873. batchAccess: "",
  874. getEmergenceStatus: false,
  875. getEmergenceNum: '',
  876. checkNodeId: '',
  877. pageSize: 10,
  878. pageNum: 1,
  879. sendStatus: true,
  880. userInfo: {
  881. type: ''
  882. },
  883. checkNodeId1: '',
  884. accessPlatform: {}
  885. };
  886. },
  887. components: {
  888. zTree: zTree1["a" /* default */],
  889. deviceLi: deviceLi["a" /* default */],
  890. UnlockRecord: UnlockRecord["a" /* default */],
  891. warningLog: acoustoopticAlarmLog["default"],
  892. DeviceFeedbackLog: DeviceFeedbackLog["a" /* default */]
  893. },
  894. beforeCreate: function beforeCreate() {},
  895. created: function created() {
  896. this.manufacturerList = this.$MANUFACTURER.MANUFACTURER.acoustoopticAlarm;
  897. this.accessPlatform = this.$MANUFACTURER.accessPlatform;
  898. this.userInfo = JSON.parse(localStorage.getItem('info'));
  899. this.getdevice();
  900. this.getalllist();
  901. this.info = JSON.parse(localStorage.getItem("info"));
  902. this.$store.commit("increment", 1);
  903. this.getcard();
  904. this.getallTree();
  905. },
  906. methods: (_methods = {
  907. InputFun: function InputFun(e, name) {
  908. if (name == 'startBattery' || name == 'endBattery') {
  909. if (Number(e) < 0) {
  910. e = 0;
  911. }
  912. if (Number(e) > 100) {
  913. e = 100;
  914. }
  915. }
  916. this.search[name] = e;
  917. },
  918. selectTenantId: function selectTenantId(e) {
  919. localStorage.setItem('tenantId', e);
  920. this.reload();
  921. },
  922. // 重置初始化
  923. resetInitialization: function resetInitialization(row, callback) {
  924. var _this2 = this;
  925. if (row.manufactureId == 201) {
  926. var data3 = {
  927. code: "zg/deleteAllUsers",
  928. data: {
  929. lockerId: row.deviceNum,
  930. imei: row.imei,
  931. order: 6501
  932. }
  933. };
  934. Object(api["g" /* httpPost */])(data3, this.$api.sendCommand).then(function (res) {
  935. if (res.success) {
  936. _this2.$message.success("重置成功");
  937. callback(true);
  938. } else {
  939. callback(false);
  940. }
  941. });
  942. } else if (row.manufactureId == 101) {
  943. var data2 = {
  944. code: "isp/restoreSetting",
  945. data: {
  946. order: 6501,
  947. imei: row.imei,
  948. deviceNum: row.deviceNum,
  949. managerTelephone: "18270949468",
  950. managerPassword: "202108"
  951. }
  952. };
  953. Object(api["g" /* httpPost */])(data2, this.$api.sendCommand).then(function (res2) {
  954. if (res2.success) {
  955. _this2.$message.success("重置成功");
  956. var str = {
  957. deviceNum: row.deviceNum,
  958. imei: row.imei,
  959. order: 6101
  960. };
  961. Object(api["g" /* httpPost */])(str, _this2.$api.getDeviceRegisterManager).then(function (res1) {
  962. var str1 = {
  963. imei: row.imei, //row.imsi,
  964. deviceNum: row.deviceNum, //row.deviceNum,
  965. operateMode: 7,
  966. is: true,
  967. order: 6207,
  968. passwordStartTime: "20210813010101",
  969. passwordEndTime: "20680813010101"
  970. };
  971. Object(api["g" /* httpPost */])(str1, _this2.$api.getDeviceOperateUserInfo).then(function (res2) {});
  972. var str2 = {
  973. imei: row.imei, //row.imsi,
  974. deviceNum: row.deviceNum, //row.deviceNum,
  975. operateMode: 4,
  976. is: true,
  977. order: 6204,
  978. passwordStartTime: "20210813010101",
  979. passwordEndTime: "20680813010101"
  980. };
  981. Object(api["g" /* httpPost */])(str2, _this2.$api.getDeviceOperateUserInfo).then(function (res3) {
  982. if (res3.success) {
  983. _this2.$message.success("初始化成功");
  984. callback(true);
  985. }
  986. });
  987. });
  988. } else {
  989. _this2.$message.error(res2.msg);
  990. callback(false);
  991. }
  992. });
  993. }
  994. },
  995. getPersonCallback: function getPersonCallback(person, alllist, callback) {
  996. var personlist = [];
  997. person.map(function (li) {
  998. var obj = {
  999. person: li,
  1000. data: alllist.filter(function (item) {
  1001. if (item.deviceNum && item.cardId == li.card) {
  1002. return item;
  1003. }
  1004. })
  1005. };
  1006. personlist.push(obj);
  1007. });
  1008. callback(personlist);
  1009. },
  1010. // 数据同步
  1011. dataSynchronization: function dataSynchronization(index, row) {
  1012. var _this3 = this;
  1013. this.$confirm("是否确认数据同步?", "提示", {
  1014. confirmButtonText: "确定",
  1015. cancelButtonText: "取消",
  1016. type: "warning"
  1017. }).then(function () {
  1018. _this3.orderDeviceData(row);
  1019. });
  1020. },
  1021. // 获取指定锁所有非703凭证数据
  1022. orderDeviceData: function orderDeviceData(row) {
  1023. var _this4 = this;
  1024. var _this = this;
  1025. if (row.roomId) {
  1026. var data1 = {
  1027. pageNum: 0,
  1028. pageSize: 0,
  1029. q: {
  1030. id: row.roomId
  1031. }
  1032. };
  1033. Object(api["d" /* httpGet */])(data1, this.$api.getSiteTenant).then(function (res) {
  1034. if (res.success) {
  1035. var person = res.data.list;
  1036. var data = {
  1037. imei: row.imei
  1038. };
  1039. Object(api["d" /* httpGet */])(data, _this4.$api.orderDeviceData).then(function (res1) {
  1040. if (res1.success) {
  1041. var alllist = res1.data;
  1042. _this4.getPersonCallback(person, alllist, function (callback) {
  1043. var personlist = callback;
  1044. _this.resetInitialization(row, function (callback) {
  1045. if (row.manufactureId == 101) {
  1046. personlist.map(function (lt) {
  1047. var endTime = new Date(lt.person.endTime).getTime();
  1048. var startTime = new Date(lt.person.startTime).getTime();
  1049. var passwordEndTime = moment_default()(endTime).format("YYYYMMDDHHmmss");
  1050. var passwordStartTime = moment_default()(startTime).format("YYYYMMDDHHmmss");
  1051. var userTelephone = JSON.parse(lt.person.info).userTelephone;
  1052. var userPassword = JSON.parse(lt.person.info).userPassword;
  1053. var data = {
  1054. deviceNum: row.deviceNum,
  1055. imei: row.imei,
  1056. userTelephone: userTelephone,
  1057. userPassword: userPassword,
  1058. password: userPassword,
  1059. operateMode: 26,
  1060. order: 6226,
  1061. passwordStartTime: passwordStartTime,
  1062. passwordEndTime: passwordEndTime,
  1063. cardName: lt.person.name,
  1064. roomName: row.roomName
  1065. };
  1066. equipment["a" /* default */].LDAddUser(data.deviceNum, data.imei, data.userTelephone, data.userPassword, data.password, passwordStartTime, passwordEndTime, data.operateMode, data.order, data.cardName, data.roomName, false, function (callback) {
  1067. lt.data.map(function (ll) {
  1068. util["a" /* default */].putCarfidAdd(row, ll);
  1069. });
  1070. });
  1071. });
  1072. } else if (row.manufactureId == 201) {
  1073. personlist.map(function (lt) {
  1074. var endTime = new Date(lt.person.endTime).getTime();
  1075. var startTime = new Date(lt.person.startTime).getTime();
  1076. var passwordEndTime = moment_default()(endTime).format("YYYYMMDDHHmmss");
  1077. var passwordStartTime = moment_default()(startTime).format("YYYYMMDDHHmmss");
  1078. var userTelephone = JSON.parse(lt.person.info).userTelephone;
  1079. var userPassword = JSON.parse(lt.person.info).userPassword;
  1080. var data = {
  1081. lockerId: row.deviceNum,
  1082. imei: row.imei,
  1083. lockerUserId: userPassword,
  1084. keyId: userPassword,
  1085. role: 0,
  1086. action: 1,
  1087. order: 6226,
  1088. cardName: lt.person.name,
  1089. roomName: row.roomName
  1090. };
  1091. equipment["a" /* default */].addUserToLock(data.lockerId, data.imei, data.lockerUserId, data.role, data.action, data.order, data.cardName, data.roomName, function (callback) {
  1092. if (callback.success) {
  1093. lt.data.map(function (ll) {
  1094. util["a" /* default */].putCarfidzgAdd(row, ll);
  1095. });
  1096. }
  1097. });
  1098. });
  1099. }
  1100. });
  1101. });
  1102. } else {
  1103. _this4.$message.error(res1.msg);
  1104. }
  1105. });
  1106. } else {
  1107. _this4.$message.error(res.msg);
  1108. }
  1109. });
  1110. } else {
  1111. this.$message.error("暂无数据");
  1112. }
  1113. },
  1114. // 从paas同步能对应得上的有效凭证
  1115. syncCommands: function syncCommands() {
  1116. Object(api["d" /* httpGet */])('', this.$api.syncCommands).then(function (res) {});
  1117. },
  1118. // 同步刷新
  1119. refreshFun: function refreshFun() {
  1120. Object(api["d" /* httpGet */])("", this.$api.lockDeviceInfoList).then(function (res) {});
  1121. },
  1122. // 选择房源
  1123. checkNode: function checkNode(e) {
  1124. this.checkNodeId = e;
  1125. var options = this.options;
  1126. var arr = this.getId(options, e[e.length - 1]);
  1127. var listarr = [arr[0]];
  1128. var obj = this.getNodeId(listarr);
  1129. this.checkNodeId = obj;
  1130. },
  1131. checkNodeOne: function checkNodeOne(e) {
  1132. this.checkNodeId1 = e[e.length - 1];
  1133. this.checkRoomDevice(e[e.length - 1]);
  1134. },
  1135. checkRoomDevice: function checkRoomDevice(id) {
  1136. var _this5 = this;
  1137. var q = {
  1138. roomIds: [id],
  1139. lockType: 11
  1140. };
  1141. var data = {
  1142. q: stringify_default()(q),
  1143. pageNum: 1,
  1144. pageSize: this.pageSize
  1145. };
  1146. Object(api["g" /* httpPost */])(data, this.$api.getDeviceItems).then(function (res) {
  1147. if (res.data.list.length > 0) {
  1148. _this5.$message.error("该房间已绑定锁,请重新选择");
  1149. _this5.checkNodeId1 = '';
  1150. }
  1151. });
  1152. },
  1153. getParentId: function getParentId(list, id) {
  1154. for (var i in list) {
  1155. if (list[i].id == id) {
  1156. return [list[i]];
  1157. }
  1158. if (list[i].children) {
  1159. var node = this.getParentId(list[i].children, id);
  1160. if (node !== undefined) {
  1161. return node.concat(list[i]);
  1162. }
  1163. }
  1164. }
  1165. },
  1166. getId: function getId(list, id) {
  1167. for (var i in list) {
  1168. if (list[i].id == id) {
  1169. return [list[i]];
  1170. }
  1171. if (list[i].children) {
  1172. var node = this.getParentId(list[i].children, id);
  1173. if (node !== undefined) {
  1174. return node;
  1175. }
  1176. }
  1177. }
  1178. },
  1179. getNodeId: function getNodeId(list) {
  1180. var newNodeId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  1181. for (var i in list) {
  1182. newNodeId.push(list[i].id);
  1183. if (list[i].children) {
  1184. this.getNodeId(list[i].children, newNodeId);
  1185. }
  1186. }
  1187. return newNodeId;
  1188. },
  1189. getallTree: function getallTree() {
  1190. var _this6 = this;
  1191. var data = {};
  1192. Object(api["d" /* httpGet */])(data, this.$api.getTree).then(function (res) {
  1193. var userlist = [];
  1194. var temp = {},
  1195. arr = [];
  1196. res.data.forEach(function (item, index) {
  1197. if (!temp[item.id]) {
  1198. arr.push(item);
  1199. temp[item.id] = true;
  1200. }
  1201. });
  1202. arr.map(function (li) {
  1203. if (li.expand) {
  1204. if (JSON.parse(li.expand).type == "0") {
  1205. userlist.push(li);
  1206. }
  1207. }
  1208. });
  1209. var arrdata = Object(utils["o" /* uniqueArray1 */])(res.data, "id");
  1210. _this6.options = Object(utils["p" /* ztreeToElementTree */])(arrdata, {});
  1211. });
  1212. },
  1213. // 获取门卡概况
  1214. getcard: function getcard() {
  1215. var _this7 = this;
  1216. allFun["a" /* default */].getAnalysis("", 5, function (callback) {
  1217. _this7.sumpageTotal = callback.total;
  1218. _this7.online = callback.onlineTotal;
  1219. _this7.unonline = callback.offlineTotal;
  1220. _this7.abnormal = callback.abnormalTotal;
  1221. });
  1222. },
  1223. // 发送离线密码
  1224. sendEmergence: function sendEmergence() {
  1225. var _this8 = this;
  1226. var re = /^1\d{10}$/;
  1227. if (re.test(this.Emergence.EmerPhone)) {
  1228. var data = {
  1229. code: this.Emergence.password,
  1230. phone: this.Emergence.EmerPhone,
  1231. device: this.Emergence.device,
  1232. name: this.Emergence.name
  1233. };
  1234. Object(api["g" /* httpPost */])(data, this.$api.sendEmergence).then(function (res) {
  1235. if (res.success) {
  1236. _this8.$message.success('发送成功');
  1237. } else {
  1238. _this8.$message.error('发送失败');
  1239. }
  1240. });
  1241. this.getEmergenceStatus = false;
  1242. } else {
  1243. this.$message.error('请填写正确手机号');
  1244. }
  1245. },
  1246. handleCheckChange: function handleCheckChange(data, checked, node) {
  1247. if (checked) {
  1248. this.treedata = data;
  1249. } else {
  1250. if (this.checkedId == data.id) {
  1251. this.$refs.tree.setCheckedKeys([data.id]);
  1252. }
  1253. }
  1254. },
  1255. // 临时密码
  1256. getEmergence: function getEmergence(index, row) {
  1257. var _this9 = this;
  1258. var data = {
  1259. code: "zg/getEmergence",
  1260. data: {
  1261. lockerId: row.deviceNum
  1262. }
  1263. };
  1264. Object(api["g" /* httpPost */])(data, this.$api.sendCommand).then(function (res) {
  1265. if (res.success) {
  1266. _this9.$message.success("获取成功");
  1267. _this9.Emergence.password = res.data.data;
  1268. _this9.Emergence.device = row.deviceNum;
  1269. _this9.Emergence.name = row.roomName;
  1270. _this9.getEmergenceStatus = true;
  1271. } else {
  1272. _this9.$message.error("获取失败");
  1273. }
  1274. });
  1275. },
  1276. // input视图刷新
  1277. changesr: function changesr(e) {
  1278. this.$forceUpdate();
  1279. },
  1280. handleSelectionChange1: function handleSelectionChange1(val) {
  1281. this.multipleSelection1 = val;
  1282. },
  1283. BatchAdd: function BatchAdd() {
  1284. this.uploadkj = true;
  1285. },
  1286. //批量添加确认
  1287. batchUploadfun: function batchUploadfun() {
  1288. var _this10 = this;
  1289. return asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee() {
  1290. return regenerator_default.a.wrap(function _callee$(_context) {
  1291. while (1) {
  1292. switch (_context.prev = _context.next) {
  1293. case 0:
  1294. if (!(_this10.batchAccess == "")) {
  1295. _context.next = 4;
  1296. break;
  1297. }
  1298. _this10.$message.error("请选择运营商");
  1299. _context.next = 10;
  1300. break;
  1301. case 4:
  1302. if (!(_this10.multipleSelection1.length == 0)) {
  1303. _context.next = 8;
  1304. break;
  1305. }
  1306. _this10.$message.error("请勾选要批量添加的设备");
  1307. _context.next = 10;
  1308. break;
  1309. case 8:
  1310. _context.next = 10;
  1311. return _this10.multipleSelection1.map(function (li, index) {
  1312. var str = {
  1313. deviceNum: li.deviceNum,
  1314. imei: li.imei,
  1315. imsi: li.imei, //row.imsi,
  1316. order: 5101,
  1317. platformId: _this10.batchAccess
  1318. };
  1319. Object(api["g" /* httpPost */])(str, _this10.$api.DeviceRegisterDevice).then(function (res) {
  1320. if (res.data.success) {
  1321. // this.$message.success(res.data.msg);
  1322. // this.editVisible = false;
  1323. // this.getdevice();
  1324. _this10.AddAdministrator(index, li);
  1325. }
  1326. });
  1327. }).then(function (res) {
  1328. _this10.$message.success("添加成功");
  1329. _this10.editVisible = false;
  1330. _this10.getdevice();
  1331. });
  1332. case 10:
  1333. case "end":
  1334. return _context.stop();
  1335. }
  1336. }
  1337. }, _callee, _this10);
  1338. }))();
  1339. },
  1340. //音量设置
  1341. stepFun: function stepFun(val) {
  1342. var _this11 = this;
  1343. var operate = "00";
  1344. if (val == 0) {
  1345. operate = "00";
  1346. } else if (val == 50) {
  1347. operate = "01";
  1348. } else if (val == 100) {
  1349. operate = "02";
  1350. }
  1351. var data = {
  1352. code: "isp/volumnSetting",
  1353. data: {
  1354. imei: this.formInline.imei,
  1355. operate: operate
  1356. }
  1357. };
  1358. Object(api["g" /* httpPost */])(data, this.$api.sendCommand).then(function (res2) {
  1359. if (res2.data.success) {
  1360. _this11.$message.success("设置成功");
  1361. } else {
  1362. _this11.$message.error(res.msg);
  1363. }
  1364. });
  1365. },
  1366. // 常开设置
  1367. switchFun: function switchFun(e) {
  1368. var _this12 = this;
  1369. var data = {};
  1370. if (e) {
  1371. this.switchtext = "开";
  1372. data = {
  1373. code: "isp/alwaysOpenSetting",
  1374. data: {
  1375. imei: this.formInline.imei,
  1376. operate: 1
  1377. }
  1378. };
  1379. } else {
  1380. this.switchtext = "关";
  1381. data = {
  1382. code: "isp/alwaysOpenSetting",
  1383. data: {
  1384. imei: this.formInline.imei,
  1385. operate: 0
  1386. }
  1387. };
  1388. }
  1389. Object(api["g" /* httpPost */])(data, this.$api.sendCommand).then(function (res2) {
  1390. if (res2.data.success) {
  1391. _this12.$message.success("设置成功");
  1392. } else {
  1393. _this12.$message.error(res.msg);
  1394. }
  1395. });
  1396. },
  1397. // 关闭侧边栏
  1398. handleClose: function handleClose() {
  1399. this.drawer = false;
  1400. },
  1401. // tabs标签页切换
  1402. handleClick: function handleClick(tab, event) {
  1403. this.commpontentStatus = true;
  1404. }
  1405. }, defineProperty_default()(_methods, "handleClose", function handleClose(done) {
  1406. done();
  1407. }), defineProperty_default()(_methods, "detailsFun", function detailsFun(index, row) {
  1408. this.drawer = true;
  1409. this.formInline = row;
  1410. this.sendStatus = false;
  1411. this.$nextTick(function () {
  1412. this.sendroomId = row.deviceNum;
  1413. this.senddeviceNum = row.deviceNum;
  1414. this.sendStatus = true;
  1415. });
  1416. }), defineProperty_default()(_methods, "Reset1", function Reset1(index, row) {
  1417. var data2 = {
  1418. code: "isp/restoreSetting",
  1419. data: {
  1420. order: 6501,
  1421. imei: row.imei,
  1422. deviceNum: row.deviceNum,
  1423. managerTelephone: "18270949468",
  1424. managerPassword: "202108"
  1425. }
  1426. };
  1427. Object(api["g" /* httpPost */])(data2, this.$api.sendCommand).then(function (res2) {
  1428. // if (res2.data.success) {
  1429. // this.$message.success("重置成功");
  1430. // } else {
  1431. // this.$message.error(res.msg);
  1432. // }
  1433. });
  1434. }), defineProperty_default()(_methods, "Reset", function Reset(index, row) {
  1435. var _this13 = this;
  1436. this.$confirm("是否确认重置门锁?", "提示", {
  1437. confirmButtonText: "确定",
  1438. cancelButtonText: "取消",
  1439. type: "warning"
  1440. }).then(function () {
  1441. if (row.manufactureId == 201) {
  1442. var data3 = {
  1443. code: "zg/deleteAllUsers",
  1444. data: {
  1445. lockerId: row.deviceNum,
  1446. imei: row.imei,
  1447. order: 6501,
  1448. cardName: _this13.info.username,
  1449. roomName: row.roomName
  1450. }
  1451. };
  1452. Object(api["g" /* httpPost */])(data3, _this13.$api.sendCommand).then(function (res) {
  1453. if (res.success) {
  1454. _this13.$message.success("重置成功");
  1455. var q = {
  1456. id: row.roomId
  1457. };
  1458. var tenant = {
  1459. q: stringify_default()(q)
  1460. };
  1461. Object(api["d" /* httpGet */])(tenant, _this13.$api.getSiteTenant).then(function (res) {
  1462. promise_default.a.all(res.data.list.map(function (element) {
  1463. return new promise_default.a(function (resolve, reject) {
  1464. resolve(element.card);
  1465. });
  1466. })).then(function (allId) {
  1467. allId.map(function (li) {
  1468. var str = [{
  1469. siteId: row.roomId,
  1470. cardId: li
  1471. }];
  1472. Object(api["g" /* httpPost */])(str, _this13.$api.unbindCard).then(function (res) {});
  1473. });
  1474. });
  1475. });
  1476. } else {
  1477. _this13.$message.success(res.msg);
  1478. }
  1479. });
  1480. } else if (row.manufactureId == 101) {
  1481. var data2 = {
  1482. code: "isp/restoreSetting",
  1483. data: {
  1484. order: 6501,
  1485. imei: row.imei,
  1486. deviceNum: row.deviceNum,
  1487. managerTelephone: "18270949468",
  1488. managerPassword: "202108",
  1489. cardName: _this13.info.username,
  1490. roomName: row.roomName
  1491. }
  1492. };
  1493. Object(api["g" /* httpPost */])(data2, _this13.$api.sendCommand).then(function (res2) {
  1494. if (res2.success) {
  1495. _this13.$message.success("重置成功");
  1496. var q = {
  1497. id: row.roomId
  1498. };
  1499. var tenant = {
  1500. q: stringify_default()(q)
  1501. };
  1502. Object(api["d" /* httpGet */])(tenant, _this13.$api.getSiteTenant).then(function (res) {
  1503. promise_default.a.all(res.data.list.map(function (element) {
  1504. return new promise_default.a(function (resolve, reject) {
  1505. resolve(element.card);
  1506. });
  1507. })).then(function (allId) {
  1508. allId.map(function (li) {
  1509. var str = [{
  1510. siteId: row.roomId,
  1511. cardId: li
  1512. }];
  1513. Object(api["g" /* httpPost */])(str, _this13.$api.unbindCard).then(function (res) {});
  1514. });
  1515. });
  1516. });
  1517. } else {
  1518. _this13.$message.error(res2.msg);
  1519. }
  1520. });
  1521. }
  1522. });
  1523. }), defineProperty_default()(_methods, "activeiconfun", function activeiconfun(t) {
  1524. this.activeiconfont = t;
  1525. }), defineProperty_default()(_methods, "getresult", function getresult() {
  1526. var data = {};
  1527. }), defineProperty_default()(_methods, "Unlockingsave", function Unlockingsave() {}), defineProperty_default()(_methods, "RemoteUnlocking", function RemoteUnlocking(index, row) {
  1528. var _this14 = this;
  1529. var str2 = {
  1530. imei: row.imei,
  1531. roomId: row.roomId,
  1532. openLockType: 2,
  1533. is: true
  1534. };
  1535. Object(api["g" /* httpPost */])(str2, this.$api.openLock).then(function (res3) {
  1536. if (res3.success) {
  1537. _this14.$message.success("开锁成功!");
  1538. _this14.Unlocking = false;
  1539. } else {
  1540. _this14.$message.error("开锁失败!");
  1541. }
  1542. });
  1543. }), defineProperty_default()(_methods, "AddAdministrator", function AddAdministrator(index, row) {
  1544. var _this15 = this;
  1545. var str = {
  1546. deviceNum: row.deviceNum,
  1547. imei: row.imei,
  1548. order: 6101
  1549. };
  1550. Object(api["g" /* httpPost */])(str, this.$api.getDeviceRegisterManager).then(function (res1) {
  1551. var str1 = {
  1552. imei: row.imei, //row.imsi,
  1553. deviceNum: row.deviceNum, //row.deviceNum,
  1554. operateMode: 7,
  1555. is: true,
  1556. order: 6207,
  1557. passwordStartTime: "20210813010101",
  1558. passwordEndTime: "20680813010101"
  1559. };
  1560. Object(api["g" /* httpPost */])(str1, _this15.$api.getDeviceOperateUserInfo).then(function (res2) {});
  1561. var str2 = {
  1562. imei: row.imei, //row.imsi,
  1563. deviceNum: row.deviceNum, //row.deviceNum,
  1564. operateMode: 4,
  1565. is: true,
  1566. order: 6204,
  1567. passwordStartTime: "20210813010101",
  1568. passwordEndTime: "20680813010101"
  1569. };
  1570. Object(api["g" /* httpPost */])(str2, _this15.$api.getDeviceOperateUserInfo).then(function (res3) {
  1571. if (res3.success) {
  1572. _this15.$message.success("初始化成功");
  1573. }
  1574. });
  1575. });
  1576. }), defineProperty_default()(_methods, "initialization", function initialization() {
  1577. var _this16 = this;
  1578. if (this.checkNodeId1 == '') {
  1579. this.$message.error("请选择房间");
  1580. } else {
  1581. if (this.form.manufacturer == 1011) {
  1582. if (this.form.deviceNum == "" || this.form.v == "" || this.form.platformId == "") {
  1583. this.$message.error("请填写完整信息");
  1584. } else {
  1585. var data = {};
  1586. var data = {
  1587. deviceNum: this.form.deviceNum,
  1588. imei: this.form.imei,
  1589. imsi: this.form.imei, //row.imsi,
  1590. order: 5101,
  1591. enterpriseId: this.userInfo.enterpriseId,
  1592. platformId: this.form.platformId,
  1593. manufactureId: this.form.manufacturer
  1594. };
  1595. allFun["a" /* default */].RegisterDevice(data, function (callback) {
  1596. if (callback.success) {
  1597. var data = [{
  1598. siteId: _this16.checkNodeId1,
  1599. deviceId: callback.data.id
  1600. }];
  1601. Object(api["g" /* httpPost */])(data, _this16.$api.bindDeviceSite).then(function (res) {
  1602. if (res.success) {
  1603. _this16.editVisible = false;
  1604. _this16.$message.success("绑定成功");
  1605. }
  1606. }).catch(function (error) {
  1607. _this16.$message.error("\u7ED1\u5B9A\u5931\u8D25");
  1608. });
  1609. _this16.$message.success(callback.data.msg);
  1610. _this16.editVisible = false;
  1611. _this16.getdevice();
  1612. } else {
  1613. _this16.$message.error(callback.message);
  1614. }
  1615. });
  1616. }
  1617. }
  1618. }
  1619. }), defineProperty_default()(_methods, "onClick", function onClick(evt, treeId, treeNode) {
  1620. // 点击事件
  1621. this.treedata = treeNode;
  1622. }), defineProperty_default()(_methods, "getalllist", function getalllist() {
  1623. var _this17 = this;
  1624. var data = {};
  1625. Object(api["d" /* httpGet */])(data, this.$api.getTree).then(function (res) {
  1626. var array = Object(utils["n" /* uniqueArray */])(res.data, "id");
  1627. _this17.zNodes = Object(utils["p" /* ztreeToElementTree */])(array, {});
  1628. });
  1629. }), defineProperty_default()(_methods, "getdevice", function getdevice() {
  1630. var _this18 = this;
  1631. var data = {
  1632. pageNum: this.$store.state.currentPage,
  1633. pageSize: 10,
  1634. q: stringify_default()({
  1635. lockType: 11
  1636. })
  1637. };
  1638. Object(api["g" /* httpPost */])(data, this.$api.getDeviceItems).then(function (res) {
  1639. var online = 0,
  1640. unonline = 0,
  1641. devIds = "";
  1642. if (res.data.list.length > 0) {
  1643. res.data.list.map(function (li) {
  1644. var accessPlatform = _this18.accessPlatform.show.filter(function (item) {
  1645. return item.code == li.accessPlatform;
  1646. })[0];
  1647. if (accessPlatform) {
  1648. li['accessPlatformText'] = accessPlatform.desc;
  1649. } else {
  1650. li['accessPlatformText'] = '';
  1651. }
  1652. if (li.isOnline == 1) {
  1653. online++;
  1654. } else if (li.isOnline == 0) {
  1655. unonline++;
  1656. }
  1657. li.createAt = _this18.timestampToTime(li.createAt);
  1658. if (li.lastReportAt) {
  1659. li.lastReportAt = moment_default()(li.lastReportAt).format("YYYY-MM-DD HH:mm:ss");
  1660. } else {
  1661. li.lastReportAt = '';
  1662. }
  1663. devIds += li.deviceNum + ",";
  1664. });
  1665. var newArr = Object(utils["n" /* uniqueArray */])(res.data.list, "id");
  1666. _this18.tableData = newArr;
  1667. } else {
  1668. _this18.tableData = [];
  1669. }
  1670. _this18.currentPage4 = 1;
  1671. _this18.pageTotal = res.data.total;
  1672. });
  1673. }), defineProperty_default()(_methods, "timestampToTime", function timestampToTime(cjsj) {
  1674. var date = new Date(cjsj); //时间戳为10位需*1000,时间戳为13位的话不需乘1000
  1675. var Y = date.getFullYear() + "-";
  1676. var M = (date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1) + "-";
  1677. var D = date.getDate() + " ";
  1678. var h = date.getHours() + ":";
  1679. var m = date.getMinutes() + ":";
  1680. var s = date.getSeconds();
  1681. return Y + M + D + h + m + s;
  1682. }), defineProperty_default()(_methods, "handleChange", function handleChange(value) {
  1683. console.log(value);
  1684. }), defineProperty_default()(_methods, "restSearch", function restSearch() {
  1685. this.search = {
  1686. name: "",
  1687. deviceNum: "",
  1688. roomname: '',
  1689. imei: "",
  1690. isOnline: "",
  1691. unBind: '',
  1692. startBattery: '',
  1693. endBattery: ''
  1694. };
  1695. this.checkNodeId = '';
  1696. this.searchRoom = '';
  1697. this.handleSearch();
  1698. }), defineProperty_default()(_methods, "handleSearch", function handleSearch() {
  1699. var _this19 = this;
  1700. var deviceNum = this.search.deviceNum.replace(/\s*/g, "");
  1701. var imei = this.search.imei.replace(/\s*/g, "");
  1702. var q = {
  1703. deviceNum: deviceNum,
  1704. imei: imei,
  1705. isOnline: this.search.isOnline,
  1706. roomName: this.search.roomname,
  1707. roomIds: this.checkNodeId,
  1708. startBattery: this.search.startBattery,
  1709. endBattery: this.search.endBattery,
  1710. lockType: 11,
  1711. unBind: this.search.unBind
  1712. };
  1713. var data = {
  1714. q: stringify_default()(q),
  1715. pageNum: 1,
  1716. pageSize: this.pageSize
  1717. };
  1718. Object(api["g" /* httpPost */])(data, this.$api.getDeviceItems).then(function (res) {
  1719. if (res.data.list.length > 0) {
  1720. res.data.list.map(function (li) {
  1721. var accessPlatform = _this19.accessPlatform.show.filter(function (item) {
  1722. return item.code == li.accessPlatform;
  1723. })[0];
  1724. if (accessPlatform) {
  1725. li['accessPlatformText'] = accessPlatform.desc;
  1726. } else {
  1727. li['accessPlatformText'] = '';
  1728. }
  1729. li.createAt = _this19.timestampToTime(li.createAt);
  1730. if (li.lastReportAt) {
  1731. li.lastReportAt = moment_default()(li.lastReportAt).format("YYYY-MM-DD HH:mm:ss");
  1732. } else {
  1733. li.lastReportAt = '';
  1734. }
  1735. });
  1736. var newArr = Object(utils["n" /* uniqueArray */])(res.data.list, "id");
  1737. _this19.pageTotal = res.data.total;
  1738. _this19.tableData = newArr;
  1739. } else {
  1740. _this19.tableData = [];
  1741. _this19.pageTotal = 0;
  1742. }
  1743. _this19.currentPage4 = 1;
  1744. _this19.$store.commit("increment", 1);
  1745. });
  1746. // this.$set(this.query, "pageIndex", 1);
  1747. }), defineProperty_default()(_methods, "handleDelete", function handleDelete(index) {
  1748. var _this20 = this;
  1749. // 二次确认删除
  1750. this.$confirm("确定要删除吗?", "提示", {
  1751. type: "warning"
  1752. }).then(function () {
  1753. _this20.$message.success("删除成功");
  1754. _this20.tableData.splice(index, 1);
  1755. }).catch(function () {});
  1756. }), defineProperty_default()(_methods, "handleSelectionChange", function handleSelectionChange(val) {
  1757. this.multipleSelection = val;
  1758. }), defineProperty_default()(_methods, "delAllSelection", function delAllSelection() {
  1759. var length = this.multipleSelection.length;
  1760. var str = "";
  1761. this.delList = this.delList.concat(this.multipleSelection);
  1762. for (var i = 0; i < length; i++) {
  1763. str += this.multipleSelection[i].name + " ";
  1764. }
  1765. this.$message.error("\u5220\u9664\u4E86" + str);
  1766. this.multipleSelection = [];
  1767. }), defineProperty_default()(_methods, "deleteLock", function deleteLock(index, row) {
  1768. var _this21 = this;
  1769. this.$confirm("确定要删除吗?", "提示", {
  1770. type: "warning"
  1771. }).then(function () {
  1772. // if (row.manufactureId == 101) {
  1773. if (row.roomId) {
  1774. var data = [{
  1775. siteId: row.roomId,
  1776. deviceId: row.id
  1777. }];
  1778. Object(api["g" /* httpPost */])(data, _this21.$api.unbindDeviceSite).then(function (res) {
  1779. if (res.success) {
  1780. var data = {
  1781. device: row.deviceNum,
  1782. imei: row.imei,
  1783. order: 5102
  1784. };
  1785. allFun["a" /* default */].DeleteDevic(data, row.manufactureId, function (callback) {
  1786. if (callback.success) {
  1787. _this21.getdevice();
  1788. _this21.$message.success('删除成功');
  1789. } else {
  1790. _this21.$message.error(callback.msg);
  1791. }
  1792. });
  1793. }
  1794. }).catch(function (error) {
  1795. _this21.$message.error("\u89E3\u7ED1\u5931\u8D25");
  1796. });
  1797. } else {
  1798. var data = {
  1799. deviceNum: row.deviceNum,
  1800. imei: row.imei,
  1801. order: 5102
  1802. };
  1803. allFun["a" /* default */].DeleteDevic(data, row.manufactureId, function (callback) {
  1804. if (callback.success) {
  1805. _this21.getdevice();
  1806. _this21.$message.success('删除成功');
  1807. } else {
  1808. _this21.$message.error(callback.msg);
  1809. }
  1810. });
  1811. }
  1812. }).catch(function () {});
  1813. }), defineProperty_default()(_methods, "bindRoom", function bindRoom(index, row) {
  1814. this.bromm = row;
  1815. this.roomVisible = true;
  1816. this.$refs.tree.setCheckedKeys([]);
  1817. }), defineProperty_default()(_methods, "bindsave", function bindsave() {
  1818. var _this22 = this;
  1819. var treedata = this.treedata;
  1820. this.roomVisible = false;
  1821. var data = [{
  1822. siteId: treedata.id,
  1823. deviceId: this.bromm.id
  1824. }];
  1825. Object(api["g" /* httpPost */])(data, this.$api.bindDeviceSite).then(function (res) {
  1826. if (res.success) {
  1827. _this22.$message.success("绑定成功");
  1828. _this22.getdevice();
  1829. }
  1830. }).catch(function (error) {
  1831. _this22.$message.error("\u7ED1\u5B9A\u5931\u8D25");
  1832. });
  1833. }), defineProperty_default()(_methods, "unbindsave", function unbindsave(index, row) {
  1834. var _this23 = this;
  1835. var data = [{
  1836. siteId: row.roomId,
  1837. deviceId: row.id
  1838. }];
  1839. var q = {
  1840. id: row.roomId
  1841. };
  1842. var tenant = {
  1843. q: stringify_default()(q)
  1844. };
  1845. // 二次确认解绑
  1846. this.$confirm("确定要解绑吗?", "提示", {
  1847. type: "warning"
  1848. }).then(function () {
  1849. // this.Reset(index, row)
  1850. Object(api["d" /* httpGet */])(tenant, _this23.$api.getSiteTenant).then(function (res) {
  1851. promise_default.a.all(res.data.list.map(function (element) {
  1852. return new promise_default.a(function (resolve, reject) {
  1853. resolve(element.card);
  1854. });
  1855. })).then(function (allId) {
  1856. allId.map(function (li) {
  1857. var str = [{
  1858. siteId: row.roomId,
  1859. cardId: li
  1860. }];
  1861. Object(api["g" /* httpPost */])(str, _this23.$api.unbindCard).then(function (res) {});
  1862. });
  1863. Object(api["g" /* httpPost */])(data, _this23.$api.unbindDeviceSite).then(function (res) {
  1864. if (res.success) {
  1865. _this23.$message.success("解绑成功");
  1866. _this23.getdevice();
  1867. } else {
  1868. _this23.$message.error("\u89E3\u7ED1\u5931\u8D25");
  1869. }
  1870. });
  1871. });
  1872. });
  1873. }).catch(function () {});
  1874. }), defineProperty_default()(_methods, "addequipment", function addequipment() {
  1875. this.editVisible = true;
  1876. this.form.customerCode = this.$store.state.customerCode;
  1877. }), defineProperty_default()(_methods, "handleEdit", function handleEdit(index, row) {
  1878. this.idx = index;
  1879. this.form = row;
  1880. this.editVisible = true;
  1881. }), defineProperty_default()(_methods, "saveEdit", function saveEdit() {
  1882. this.editVisible = false;
  1883. this.$message.success("\u4FEE\u6539\u7B2C " + (this.idx + 1) + " \u884C\u6210\u529F");
  1884. this.$set(this.tableData, this.idx, this.form);
  1885. }), defineProperty_default()(_methods, "handleSizeChange", function handleSizeChange(val) {
  1886. console.log("\u6BCF\u9875 " + val + " \u6761");
  1887. this.$router.replace({
  1888. path: this.$route.path,
  1889. query: {
  1890. page: this.$route.query.page ? this.$route.query.page : 1,
  1891. pageSize: val
  1892. }
  1893. });
  1894. this.pageSize = val;
  1895. this.getlistNum(0, val);
  1896. }), defineProperty_default()(_methods, "getlistNum", function getlistNum(val, size) {
  1897. var _this24 = this;
  1898. var deviceNum = this.search.deviceNum.replace(/\s*/g, "");
  1899. var imei = this.search.imei.replace(/\s*/g, "");
  1900. var q = {
  1901. deviceNum: deviceNum,
  1902. imei: imei,
  1903. isOnline: this.search.isOnline,
  1904. roomName: this.search.roomname,
  1905. roomIds: this.checkNodeId,
  1906. startBattery: this.search.startBattery,
  1907. endBattery: this.search.endBattery,
  1908. lockType: 11,
  1909. unBind: this.search.unBind
  1910. };
  1911. var data = {
  1912. q: stringify_default()(q),
  1913. pageNum: val,
  1914. pageSize: size
  1915. };
  1916. Object(api["g" /* httpPost */])(data, this.$api.getDeviceItems).then(function (res) {
  1917. res.data.list.map(function (li) {
  1918. var accessPlatform = _this24.accessPlatform.show.filter(function (item) {
  1919. return item.code == li.accessPlatform;
  1920. })[0];
  1921. if (accessPlatform) {
  1922. li['accessPlatformText'] = accessPlatform.desc;
  1923. } else {
  1924. li['accessPlatformText'] = '';
  1925. }
  1926. li.createAt = _this24.timestampToTime(li.createAt);
  1927. if (li.lastReportAt) {
  1928. li.lastReportAt = moment_default()(li.lastReportAt).format("YYYY-MM-DD HH:mm:ss");
  1929. } else {
  1930. li.lastReportAt = '';
  1931. }
  1932. });
  1933. var newArr = Object(utils["n" /* uniqueArray */])(res.data.list, "id");
  1934. _this24.tableData = newArr;
  1935. _this24.pageTotal = res.data.total;
  1936. });
  1937. }), defineProperty_default()(_methods, "handlePageChange", function handlePageChange(val) {
  1938. var _this25 = this;
  1939. // this.$router.replace({
  1940. // path: this.$route.path,
  1941. // query: {
  1942. // page: this.$route.query.page ? this.$route.query.page : 1,
  1943. // pageSize: val,
  1944. // },
  1945. // });
  1946. this.pageNum = val;
  1947. this.$store.commit("increment", val);
  1948. var q = {
  1949. deviceNum: this.search.deviceNum,
  1950. imei: this.search.imei,
  1951. isOnline: this.search.isOnline,
  1952. roomName: this.search.roomname,
  1953. roomIds: this.checkNodeId,
  1954. startBattery: this.search.startBattery,
  1955. endBattery: this.search.endBattery,
  1956. lockType: 11,
  1957. unBind: this.search.unBind
  1958. };
  1959. var data = {
  1960. q: stringify_default()(q),
  1961. pageNum: val,
  1962. pageSize: this.pageSize
  1963. };
  1964. Object(api["g" /* httpPost */])(data, this.$api.getDeviceItems).then(function (res) {
  1965. res.data.list.map(function (li) {
  1966. var accessPlatform = _this25.accessPlatform.show.filter(function (item) {
  1967. return item.code == li.accessPlatform;
  1968. })[0];
  1969. if (accessPlatform) {
  1970. li['accessPlatformText'] = accessPlatform.desc;
  1971. } else {
  1972. li['accessPlatformText'] = '';
  1973. }
  1974. li.createAt = _this25.timestampToTime(li.createAt);
  1975. if (li.lastReportAt) {
  1976. li.lastReportAt = moment_default()(li.lastReportAt).format("YYYY-MM-DD HH:mm:ss");
  1977. } else {
  1978. li.lastReportAt = '';
  1979. }
  1980. });
  1981. var newArr = Object(utils["n" /* uniqueArray */])(res.data.list, "id");
  1982. _this25.tableData = newArr;
  1983. _this25.pageTotal = res.data.total;
  1984. });
  1985. }), defineProperty_default()(_methods, "btnClick", function btnClick() {
  1986. document.querySelector(".input-file").click();
  1987. }), defineProperty_default()(_methods, "exportData", function exportData(event) {
  1988. if (!event.currentTarget.files.length) {
  1989. return;
  1990. }
  1991. var that = this;
  1992. // 拿取文件对象
  1993. var f = event.currentTarget.files[0];
  1994. // 用FileReader来读取
  1995. var reader = new FileReader();
  1996. // 重写FileReader上的readAsBinaryString方法
  1997. FileReader.prototype.readAsBinaryString = function (f) {
  1998. var binary = "";
  1999. var wb; // 读取完成的数据
  2000. var outdata; // 你需要的数据
  2001. var reader = new FileReader();
  2002. reader.onload = function (e) {
  2003. // 读取成Uint8Array,再转换为Unicode编码(Unicode占两个字节)
  2004. var bytes = new Uint8Array(reader.result);
  2005. var length = bytes.byteLength;
  2006. for (var i = 0; i < length; i++) {
  2007. binary += String.fromCharCode(bytes[i]);
  2008. }
  2009. // 接下来就是xlsx了,具体可看api
  2010. wb = xlsx_default.a.read(binary, {
  2011. type: "binary"
  2012. });
  2013. outdata = xlsx_default.a.utils.sheet_to_json(wb.Sheets[wb.SheetNames[0]]);
  2014. // 自定义方法向父组件传递数据
  2015. var arr1 = [];
  2016. outdata.map(function (li, index) {
  2017. var str = {};
  2018. str.deviceNum = li["设备号"];
  2019. str.imei = li["imei"];
  2020. str.ID = li["序号"];
  2021. arr1.push(str);
  2022. });
  2023. // this.tableData=arr
  2024. that.userlist1statu = false;
  2025. that.$nextTick(function () {
  2026. that.userlist2 = arr1;
  2027. that.userlist1statu = true;
  2028. });
  2029. };
  2030. reader.readAsArrayBuffer(f);
  2031. };
  2032. reader.readAsBinaryString(f);
  2033. }), _methods)
  2034. });
  2035. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-55bda2f7","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/device/acoustoopticAlarm.vue
  2036. var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-row',{staticClass:"elrow",attrs:{"gutter":20}},[_c('el-col',{attrs:{"span":24}},[_c('el-card',{attrs:{"shadow":"hover"}},[_c('el-row',[_c('el-col',{attrs:{"span":6}},[_c('div',{staticClass:"grid-content grid-con-1"},[_c('div',{staticClass:"colposition"},[_c('img',{staticClass:"w100",attrs:{"src":__webpack_require__("xXHN"),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"grid-cont-right"},[_c('div',[_vm._v("声光报警总数")]),_vm._v(" "),_c('div',{staticClass:"grid-num"},[_vm._v(_vm._s(_vm.sumpageTotal))])])])])]),_vm._v(" "),_c('el-col',{attrs:{"span":6}},[_c('div',{staticClass:"grid-content grid-con-2"},[_c('div',{staticClass:"colposition"},[_c('img',{staticClass:"w100",attrs:{"src":__webpack_require__("sFbI"),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"grid-cont-right"},[_c('div',[_vm._v("在线状态")]),_vm._v(" "),_c('div',{staticClass:"grid-num"},[_vm._v(_vm._s(_vm.online))])])])])]),_vm._v(" "),_c('el-col',{attrs:{"span":6}},[_c('div',{staticClass:"grid-content grid-con-2"},[_c('div',{staticClass:"colposition"},[_c('img',{staticClass:"w100",attrs:{"src":__webpack_require__("BpHi"),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"grid-cont-right"},[_c('div',[_vm._v("离线状态")]),_vm._v(" "),_c('div',{staticClass:"grid-num"},[_vm._v(_vm._s(_vm.unonline))])])])])]),_vm._v(" "),_c('el-col',{attrs:{"span":6}},[_c('div',{staticClass:"grid-content grid-con-2"},[_c('div',{staticClass:"colposition"},[_c('img',{staticClass:"w100",attrs:{"src":__webpack_require__("sNnU"),"alt":""}}),_vm._v(" "),_c('div',{staticClass:"grid-cont-right"},[_c('div',[_vm._v("异常状态")]),_vm._v(" "),_c('div',{staticClass:"grid-num"},[_vm._v(_vm._s(_vm.abnormal))])])])])])],1)],1)],1)],1),_vm._v(" "),_c('div',{staticClass:"container"},[_c('div',{staticClass:"handle-box"},[_c('selectoption'),_vm._v(" "),_c('el-cascader',{attrs:{"options":_vm.options,"size":"small","props":{ checkStrictly: true },"placeholder":"请选择房源","clearable":""},on:{"change":_vm.checkNode},model:{value:(_vm.searchRoom),callback:function ($$v) {_vm.searchRoom=$$v},expression:"searchRoom"}}),_vm._v(" "),_c('el-input',{staticClass:"handle-input mr10 width100",attrs:{"size":"small","placeholder":"房间名称","clearable":true},on:{"input":function($event){return _vm.changesr($event)}},model:{value:(_vm.search.roomname),callback:function ($$v) {_vm.$set(_vm.search, "roomname", $$v)},expression:"search.roomname"}}),_vm._v(" "),_c('el-input',{staticClass:"handle-input mr10 width100",attrs:{"size":"small","placeholder":"序列号","clearable":true},on:{"input":function($event){return _vm.changesr($event)}},model:{value:(_vm.search.deviceNum),callback:function ($$v) {_vm.$set(_vm.search, "deviceNum", $$v)},expression:"search.deviceNum"}}),_vm._v(" "),_c('el-input',{staticClass:"handle-input mr10 width100",attrs:{"size":"small","placeholder":"IMEI","clearable":true},on:{"input":function($event){return _vm.changesr($event)}},model:{value:(_vm.search.imei),callback:function ($$v) {_vm.$set(_vm.search, "imei", $$v)},expression:"search.imei"}}),_vm._v(" "),_c('el-select',{staticClass:"handle-select mr10",attrs:{"size":"small","placeholder":"状态","clearable":""},model:{value:(_vm.search.isOnline),callback:function ($$v) {_vm.$set(_vm.search, "isOnline", $$v)},expression:"search.isOnline"}},[_c('el-option',{key:"1",attrs:{"label":"离线","value":"0"}}),_vm._v(" "),_c('el-option',{key:"2",attrs:{"label":"在线","value":"1"}}),_vm._v(" "),_c('el-option',{key:"3",attrs:{"label":"异常","value":"2"}})],1),_vm._v(" "),_c('el-select',{staticClass:"handle-select mr10",attrs:{"size":"small","placeholder":"绑定状态","clearable":true},model:{value:(_vm.search.unBind),callback:function ($$v) {_vm.$set(_vm.search, "unBind", $$v)},expression:"search.unBind"}},[_c('el-option',{key:"0",attrs:{"label":"已绑定","value":"0"}}),_vm._v(" "),_c('el-option',{key:"1",attrs:{"label":"未绑定","value":"1"}})],1),_vm._v(" "),_c('div',{staticClass:"quantity"},[_vm._v("\n
  2037. ? 'success'
  2038. : scope.row.isOnline == '0'
  2039. ? 'danger'
  2040. : ''}},[(scope.row.isOnline == 1)?_c('span',[_vm._v("在线")]):_c('span',[_vm._v("离线")])])]}}])}),_vm._v(" "),_c('el-table-column',{attrs:{"label":"绑定房间","width":"200"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(scope.row.roomName)?_c('span',{staticClass:"blue"},[_vm._v(_vm._s(scope.row.roomName))]):_c('span',{},[_vm._v("空")])]}}])}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"firmwareVersion","label":"版本","width":"160"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"createAt","label":"创建时间","width":"160"}}),_vm._v(" "),_c('el-table-column',{attrs:{"label":"操作","width":"400","align":"center","fixed":"right"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(scope.row.roomId)?_c('el-button',{staticClass:"red",attrs:{"type":"text"},on:{"click":function($event){return _vm.unbindsave(scope.$index, scope.row)}}},[_vm._v("解绑房间\n ")]):_c('el-button',{attrs:{"type":"text"},on:{"click":function($event){return _vm.bindRoom(scope.$index, scope.row)}}},[_vm._v("绑定房间")]),_vm._v(" "),_c('el-button',{attrs:{"type":"text"},on:{"click":function($event){return _vm.detailsFun(scope.$index, scope.row)}}},[_vm._v("设备详情")])]}}])})],1),_vm._v(" "),_c('div',{staticClass:"pagination"},[_c('el-pagination',{attrs:{"current-page":_vm.$store.state.currentPage,"page-sizes":[10,20,100],"page-size":_vm.pageSize,"layout":"total, sizes, prev, pager, next, jumper","total":_vm.pageTotal},on:{"size-change":_vm.handleSizeChange,"current-change":_vm.handlePageChange}})],1)],1),_vm._v(" "),_c('el-dialog',{attrs:{"title":"绑定房间","visible":_vm.roomVisible,"width":"30%"},on:{"update:visible":function($event){_vm.roomVisible=$event}},scopedSlots:_vm._u([{key:"footer",fn:function(){return [_c('span',{staticClass:"dialog-footer"},[_c('el-button',{on:{"click":function($event){_vm.roomVisible = false}}},[_vm._v("取 消")]),_vm._v(" "),_c('el-button',{attrs:{"type":"primary"},on:{"click":_vm.bindsave}},[_vm._v("确 定")])],1)]},proxy:true}])},[_c('div',{staticClass:"ztree"},[_c('el-tree',{ref:"tree",attrs:{"data":_vm.zNodes,"show-checkbox":"","node-key":"id","props":_vm.defaultProps},on:{"check-change":_vm.handleCheckChange}})],1)]),_vm._v(" "),_c('el-dialog',{attrs:{"title":"远程开锁密码","visible":_vm.Unlocking,"width":"30%"},on:{"update:visible":function($event){_vm.Unlocking=$event}},scopedSlots:_vm._u([{key:"footer",fn:function(){return [_c('span',{staticClass:"dialog-footer"},[_c('el-button',{on:{"click":function($event){_vm.Unlocking = false}}},[_vm._v("取 消")]),_vm._v(" "),_c('el-button',{attrs:{"type":"primary"},on:{"click":_vm.Unlockingsave}},[_vm._v("确 定")])],1)]},proxy:true}])},[_c('div',[_c('el-form',{ref:"locking",attrs:{"model":_vm.lockingform,"label-width":"100px"}},[_c('el-form-item',{attrs:{"label":"管理员密码"}},[_c('el-input',{attrs:{"show-password":"","clearable":true},model:{value:(_vm.lockingform.password),callback:function ($$v) {_vm.$set(_vm.lockingform, "password", $$v)},expression:"lockingform.password"}})],1)],1)],1)]),_vm._v(" "),_c('el-dialog',{attrs:{"title":"编辑","visible":_vm.editVisible,"width":"30%"},on:{"update:visible":function($event){_vm.editVisible=$event}},scopedSlots:_vm._u([{key:"footer",fn:function(){return [_c('span',{staticClass:"dialog-footer"},[_c('el-button',{on:{"click":function($event){_vm.editVisible = false}}},[_vm._v("取 消")]),_vm._v(" "),_c('el-button',{attrs:{"type":"primary"},on:{"click":_vm.initialization}},[_vm._v("确 定")])],1)]},proxy:true}])},[_c('el-form',{ref:"form",attrs:{"model":_vm.form,"label-width":"100px"}},[_c('el-form-item',{attrs:{"label":"型号"}},[_c('el-select',{attrs:{"placeholder":"请选择"},model:{value:(_vm.form.manufacturer),callback:function ($$v) {_vm.$set(_vm.form, "manufacturer", $$v)},expression:"form.manufacturer"}},_vm._l((_vm.manufacturerList),function(item){return _c('el-option',{key:item.value,attrs:{"label":item.label,"value":item.value}})}),1)],1),_vm._v(" "),(_vm.form.manufacturer == 1011)?_c('div',[_c('el-form-item',{
  2041. var staticRenderFns = []
  2042. var esExports = { render: render, staticRenderFns: staticRenderFns }
  2043. /* harmony default export */ var device_acoustoopticAlarm = (esExports);
  2044. // CONCATENATED MODULE: ./src/views/device/acoustoopticAlarm.vue
  2045. function injectStyle (ssrContext) {
  2046. __webpack_require__("x9D/")
  2047. }
  2048. var normalizeComponent = __webpack_require__("VU/8")
  2049. /* script */
  2050. /* template */
  2051. /* template functional */
  2052. var __vue_template_functional__ = false
  2053. /* styles */
  2054. var __vue_styles__ = injectStyle
  2055. /* scopeId */
  2056. var __vue_scopeId__ = "data-v-55bda2f7"
  2057. /* moduleIdentifier (server only) */
  2058. var __vue_module_identifier__ = null
  2059. var Component = normalizeComponent(
  2060. acoustoopticAlarm,
  2061. device_acoustoopticAlarm,
  2062. __vue_template_functional__,
  2063. __vue_styles__,
  2064. __vue_scopeId__,
  2065. __vue_module_identifier__
  2066. )
  2067. /* harmony default export */ var views_device_acoustoopticAlarm = __webpack_exports__["default"] = (Component.exports);
  2068. /***/ }),
  2069. /***/ "eOrk":
  2070. /***/ (function(module, exports) {
  2071. // removed by extract-text-webpack-plugin
  2072. /***/ }),
  2073. /***/ "x9D/":
  2074. /***/ (function(module, exports) {
  2075. // removed by extract-text-webpack-plugin
  2076. /***/ })
  2077. });