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

1375 lines
50 KiB

  1. webpackJsonp([38],{
  2. /***/ "2cpK":
  3. /***/ (function(module, exports) {
  4. // removed by extract-text-webpack-plugin
  5. /***/ }),
  6. /***/ "4SPr":
  7. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8. "use strict";
  9. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  10. // EXTERNAL MODULE: ./node_modules/babel-runtime/helpers/typeof.js
  11. var helpers_typeof = __webpack_require__("pFYg");
  12. var typeof_default = /*#__PURE__*/__webpack_require__.n(helpers_typeof);
  13. // EXTERNAL MODULE: ./node_modules/babel-runtime/core-js/promise.js
  14. var promise = __webpack_require__("//Fk");
  15. var promise_default = /*#__PURE__*/__webpack_require__.n(promise);
  16. // EXTERNAL MODULE: ./node_modules/babel-runtime/core-js/json/stringify.js
  17. var stringify = __webpack_require__("mvHQ");
  18. var stringify_default = /*#__PURE__*/__webpack_require__.n(stringify);
  19. // EXTERNAL MODULE: ./src/api/index.js + 5 modules
  20. var api = __webpack_require__("gyMJ");
  21. // EXTERNAL MODULE: ./src/components/zTree1.vue + 2 modules
  22. var zTree1 = __webpack_require__("6Ljo");
  23. // EXTERNAL MODULE: ./src/components/deviceLi.vue + 2 modules
  24. var deviceLi = __webpack_require__("4qFG");
  25. // EXTERNAL MODULE: ./src/components/UnlockRecord.vue + 2 modules
  26. var UnlockRecord = __webpack_require__("YBqH");
  27. // EXTERNAL MODULE: ./src/components/DeviceFeedbackLog.vue + 2 modules
  28. var DeviceFeedbackLog = __webpack_require__("5skf");
  29. // EXTERNAL MODULE: ./src/components/warningLog.vue + 2 modules
  30. var warningLog = __webpack_require__("+K0N");
  31. // EXTERNAL MODULE: ./src/components/voucherCom.vue + 2 modules
  32. var voucherCom = __webpack_require__("JoDB");
  33. // EXTERNAL MODULE: ./src/utils/index.js
  34. var utils = __webpack_require__("0xDb");
  35. // EXTERNAL MODULE: ./node_modules/xlsx/xlsx.js
  36. var xlsx = __webpack_require__("uXZL");
  37. var xlsx_default = /*#__PURE__*/__webpack_require__.n(xlsx);
  38. // EXTERNAL MODULE: ./src/utils/util.js
  39. var util = __webpack_require__("oFuF");
  40. // EXTERNAL MODULE: ./src/utils/equipment.js
  41. var equipment = __webpack_require__("ObZk");
  42. // EXTERNAL MODULE: ./node_modules/moment/moment.js
  43. var moment = __webpack_require__("PJh5");
  44. var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
  45. // EXTERNAL MODULE: ./src/api/allFun.js
  46. var allFun = __webpack_require__("mprh");
  47. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/allDevice.vue
  48. //
  49. //
  50. //
  51. //
  52. //
  53. //
  54. //
  55. //
  56. //
  57. //
  58. //
  59. //
  60. //
  61. //
  62. //
  63. //
  64. //
  65. //
  66. //
  67. //
  68. //
  69. //
  70. //
  71. //
  72. //
  73. //
  74. //
  75. //
  76. //
  77. //
  78. //
  79. //
  80. //
  81. //
  82. //
  83. //
  84. //
  85. //
  86. //
  87. //
  88. //
  89. //
  90. //
  91. //
  92. //
  93. //
  94. //
  95. //
  96. //
  97. //
  98. //
  99. //
  100. //
  101. //
  102. //
  103. //
  104. //
  105. //
  106. //
  107. //
  108. //
  109. //
  110. //
  111. //
  112. //
  113. //
  114. //
  115. //
  116. //
  117. //
  118. //
  119. //
  120. //
  121. //
  122. //
  123. //
  124. //
  125. //
  126. //
  127. //
  128. //
  129. //
  130. //
  131. //
  132. //
  133. //
  134. //
  135. //
  136. //
  137. //
  138. //
  139. //
  140. //
  141. //
  142. //
  143. //
  144. //
  145. //
  146. //
  147. //
  148. //
  149. //
  150. //
  151. //
  152. //
  153. //
  154. //
  155. //
  156. //
  157. //
  158. //
  159. //
  160. //
  161. //
  162. //
  163. //
  164. //
  165. //
  166. //
  167. //
  168. //
  169. //
  170. //
  171. //
  172. //
  173. //
  174. //
  175. //
  176. //
  177. //
  178. //
  179. //
  180. //
  181. //
  182. //
  183. //
  184. //
  185. //
  186. //
  187. //
  188. //
  189. //
  190. //
  191. //
  192. //
  193. //
  194. //
  195. //
  196. //
  197. //
  198. //
  199. //
  200. //
  201. //
  202. //
  203. //
  204. //
  205. //
  206. //
  207. //
  208. //
  209. //
  210. //
  211. //
  212. //
  213. //
  214. //
  215. //
  216. //
  217. //
  218. //
  219. //
  220. //
  221. //
  222. //
  223. //
  224. //
  225. //
  226. //
  227. //
  228. //
  229. //
  230. //
  231. //
  232. //
  233. //
  234. //
  235. //
  236. //
  237. //
  238. //
  239. //
  240. //
  241. //
  242. //
  243. //
  244. //
  245. //
  246. //
  247. //
  248. //
  249. //
  250. //
  251. //
  252. //
  253. //
  254. //
  255. //
  256. //
  257. //
  258. //
  259. //
  260. //
  261. //
  262. //
  263. //
  264. //
  265. //
  266. //
  267. //
  268. //
  269. //
  270. //
  271. //
  272. //
  273. //
  274. //
  275. //
  276. //
  277. //
  278. //
  279. //
  280. //
  281. //
  282. //
  283. //
  284. //
  285. //
  286. //
  287. //
  288. //
  289. //
  290. //
  291. //
  292. //
  293. //
  294. //
  295. //
  296. //
  297. //
  298. //
  299. //
  300. //
  301. //
  302. //
  303. //
  304. //
  305. //
  306. //
  307. //
  308. //
  309. //
  310. //
  311. //
  312. //
  313. //
  314. //
  315. //
  316. //
  317. //
  318. //
  319. //
  320. //
  321. //
  322. //
  323. //
  324. //
  325. //
  326. //
  327. //
  328. //
  329. //
  330. //
  331. //
  332. //
  333. //
  334. //
  335. //
  336. //
  337. //
  338. //
  339. //
  340. //
  341. //
  342. //
  343. //
  344. //
  345. //
  346. //
  347. /* harmony default export */ var allDevice = ({
  348. inject: ['reload'],
  349. name: "allDevice",
  350. data: function data() {
  351. return {
  352. contentSearchShow: false,
  353. searchRoom: "",
  354. deviceImg: __webpack_require__("Dvxw"),
  355. selectoption: [],
  356. selectoptionValue: '',
  357. senddeviceNum: '',
  358. sendDevice: {
  359. deviceNum: ''
  360. },
  361. sendroomId: '',
  362. commpontentStatus: true,
  363. Emergence: {
  364. EmerPhone: '',
  365. password: '',
  366. device: '',
  367. name: ''
  368. },
  369. defaultProps: {
  370. children: "children",
  371. label: "name"
  372. },
  373. options: [],
  374. drawer: false,
  375. value1: false,
  376. value2: 0,
  377. marks: {
  378. 0: "关",
  379. 50: "中",
  380. 100: "高"
  381. },
  382. switchtext: "关",
  383. activeName: "0",
  384. formInline: {},
  385. platlist: [{
  386. label: "电信",
  387. value: 1
  388. }, {
  389. label: "移动",
  390. value: 2
  391. }, {
  392. label: "联通",
  393. value: 3
  394. }],
  395. manufacturerList: [],
  396. setting: {
  397. edit: {
  398. enable: true,
  399. drag: {
  400. isMove: true
  401. },
  402. showRemoveBtn: false,
  403. showRenameBtn: false
  404. },
  405. check: {
  406. enable: false
  407. },
  408. data: {
  409. simpleData: {
  410. enable: true,
  411. pIdKey: "pid"
  412. }
  413. },
  414. view: {
  415. showIcon: true,
  416. addHoverDom: this.addHoverDom,
  417. removeHoverDom: this.removeHoverDom
  418. }
  419. },
  420. zNodes: [],
  421. bromm: {},
  422. query: {
  423. address: "",
  424. name: "",
  425. pageIndex: 1,
  426. pageSize: 20,
  427. options: []
  428. },
  429. search: {
  430. name: "",
  431. deviceNum: "",
  432. roomname: '',
  433. imei: "",
  434. isOnline: "",
  435. startBattery: '',
  436. endBattery: '',
  437. lockType: ''
  438. },
  439. tableData: [],
  440. multipleSelection: [],
  441. delList: [],
  442. roomVisible: false,
  443. pageTotal: 0,
  444. sumpageTotal: 0,
  445. currentPage4: 1,
  446. form: {
  447. manufacturer: "",
  448. validateCode: ''
  449. },
  450. manufacturer: '',
  451. idx: -1,
  452. id: -1,
  453. abnormal: 0,
  454. online: 0,
  455. treedata: [],
  456. unonline: 0,
  457. Unlocking: false,
  458. Unlockingrow: {},
  459. lockingform: {
  460. password: ""
  461. },
  462. activeiconfont: true,
  463. info: [],
  464. uploadkj: false,
  465. userlist1statu: true,
  466. userlist2: [],
  467. multipleSelection1: [],
  468. batchAccess: "",
  469. getEmergenceStatus: false,
  470. getEmergenceNum: '',
  471. checkNodeId: '',
  472. pageSize: 10,
  473. pageNum: 1,
  474. sendStatus: true,
  475. userInfo: {
  476. type: ''
  477. },
  478. checkNodeId1: ''
  479. };
  480. },
  481. components: {
  482. zTree: zTree1["a" /* default */],
  483. deviceLi: deviceLi["a" /* default */],
  484. UnlockRecord: UnlockRecord["a" /* default */],
  485. warningLog: warningLog["a" /* default */],
  486. DeviceFeedbackLog: DeviceFeedbackLog["a" /* default */],
  487. voucherCom: voucherCom["a" /* default */]
  488. },
  489. beforeCreate: function beforeCreate() {
  490. // var tenantId = JSON.parse(localStorage.getItem('tenantId'))
  491. // if (tenantId == 400) {
  492. // this.$store.commit('defaultsettenantid')
  493. // }
  494. },
  495. created: function created() {
  496. this.manufacturerList = this.$MANUFACTURER.DEVICETYPE;
  497. var queryData = this.$route.params;
  498. if (queryData.isOnline) {
  499. this.search.isOnline = queryData.isOnline;
  500. }
  501. if (queryData.lockType) {
  502. this.search.lockType = queryData.lockType;
  503. }
  504. if (queryData.startBattery) {
  505. this.search.startBattery = queryData.startBattery;
  506. } else {
  507. this.search.startBattery = 0;
  508. }
  509. if (queryData.endBattery) {
  510. this.search.endBattery = queryData.endBattery;
  511. } else {
  512. this.search.endBattery = 100;
  513. }
  514. this.userInfo = JSON.parse(localStorage.getItem('info'));
  515. this.getdevice();
  516. this.getalllist();
  517. this.info = JSON.parse(localStorage.getItem("info"));
  518. this.$store.commit("increment", 1);
  519. // this.getcard()
  520. this.getallTree();
  521. },
  522. methods: {
  523. InputFun: function InputFun(e, name) {
  524. if (name == 'startBattery' || name == 'endBattery') {
  525. if (Number(e) < 0) {
  526. e = 0;
  527. }
  528. if (Number(e) > 100) {
  529. e = 100;
  530. }
  531. }
  532. this.search[name] = e;
  533. },
  534. selectTenantId: function selectTenantId(e) {
  535. localStorage.setItem('tenantId', e);
  536. this.reload();
  537. },
  538. // 同步刷新
  539. refreshFun: function refreshFun() {
  540. Object(api["d" /* httpGet */])("", this.$api.lockDeviceInfoList).then(function (res) {});
  541. },
  542. // 选择房源
  543. checkNode: function checkNode(e) {
  544. this.checkNodeId = e;
  545. var options = this.options;
  546. var arr = this.getId(options, e[e.length - 1]);
  547. var obj = this.getNodeId(arr);
  548. this.checkNodeId = obj;
  549. },
  550. checkNodeOne: function checkNodeOne(e) {
  551. this.checkNodeId1 = e[e.length - 1];
  552. this.checkRoomDevice(e[e.length - 1]);
  553. },
  554. checkRoomDevice: function checkRoomDevice(id) {
  555. var _this = this;
  556. var q = {
  557. roomIds: [id],
  558. lockType: this.search.lockType
  559. };
  560. var data = {
  561. q: stringify_default()(q),
  562. pageNum: 1,
  563. pageSize: this.pageSize
  564. };
  565. Object(api["g" /* httpPost */])(data, this.$api.getDeviceItems).then(function (res) {
  566. if (res.data.list.length > 0) {
  567. _this.$message.error("该房间已绑定锁,请重新选择");
  568. _this.checkNodeId1 = '';
  569. }
  570. });
  571. },
  572. getParentId: function getParentId(list, id) {
  573. for (var i in list) {
  574. if (list[i].id == id) {
  575. return [list[i]];
  576. }
  577. if (list[i].children) {
  578. var node = this.getParentId(list[i].children, id);
  579. if (node !== undefined) {
  580. return node.concat(list[i]);
  581. }
  582. }
  583. }
  584. },
  585. getId: function getId(list, id) {
  586. for (var i in list) {
  587. if (list[i].id == id) {
  588. return [list[i]];
  589. }
  590. if (list[i].children) {
  591. var node = this.getParentId(list[i].children, id);
  592. if (node !== undefined) {
  593. return node;
  594. }
  595. }
  596. }
  597. },
  598. getNodeId: function getNodeId(list) {
  599. var newNodeId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  600. for (var i in list) {
  601. newNodeId.push(list[i].id);
  602. if (list[i].children) {
  603. this.getNodeId(list[i].children, newNodeId);
  604. }
  605. }
  606. return newNodeId;
  607. },
  608. getallTree: function getallTree() {
  609. var _this2 = this;
  610. var data = {};
  611. Object(api["d" /* httpGet */])(data, this.$api.getTree).then(function (res) {
  612. var userlist = [];
  613. var temp = {},
  614. arr = [];
  615. res.data.forEach(function (item, index) {
  616. if (!temp[item.id]) {
  617. arr.push(item);
  618. temp[item.id] = true;
  619. }
  620. });
  621. arr.map(function (li) {
  622. if (li.expand) {
  623. if (JSON.parse(li.expand).type == "0") {
  624. userlist.push(li);
  625. }
  626. }
  627. });
  628. var arrdata = Object(utils["o" /* uniqueArray1 */])(res.data, "id");
  629. _this2.options = Object(utils["p" /* ztreeToElementTree */])(arrdata, {});
  630. });
  631. },
  632. // 获取设备概况
  633. getcard: function getcard() {
  634. var _this3 = this;
  635. allFun["a" /* default */].getAnalysis("", -1, function (callback) {
  636. _this3.sumpageTotal = callback.total;
  637. _this3.online = callback.onlineTotal;
  638. _this3.unonline = callback.offlineTotal;
  639. _this3.abnormal = callback.isAppBind;
  640. });
  641. },
  642. handleCheckChange: function handleCheckChange(data, checked, node) {
  643. if (checked) {
  644. this.treedata = data;
  645. } else {
  646. if (this.checkedId == data.id) {
  647. this.$refs.tree.setCheckedKeys([data.id]);
  648. }
  649. }
  650. },
  651. // input视图刷新
  652. changesr: function changesr(e) {
  653. this.$forceUpdate();
  654. },
  655. // 关闭侧边栏
  656. handleClose: function handleClose() {
  657. this.drawer = false;
  658. },
  659. // tabs标签页切换
  660. handleClick: function handleClick(tab, event) {
  661. this.commpontentStatus = true;
  662. },
  663. //查看门锁详情
  664. detailsFun: function detailsFun(index, row) {
  665. this.drawer = true;
  666. this.formInline = row;
  667. this.sendStatus = false;
  668. this.$nextTick(function () {
  669. this.sendroomId = row.deviceNum;
  670. this.senddeviceNum = row.deviceNum;
  671. this.sendDevice = row;
  672. this.sendStatus = true;
  673. });
  674. },
  675. activeiconfun: function activeiconfun(t) {
  676. this.activeiconfont = t;
  677. },
  678. // 重置添加管理员
  679. AddAdministrator: function AddAdministrator(index, row) {
  680. var _this4 = this;
  681. this.$confirm("确定要初始化吗?", "提示", {
  682. type: "warning"
  683. }).then(function () {
  684. var str = {
  685. deviceNum: row.deviceNum,
  686. imei: row.imei,
  687. order: 6101
  688. };
  689. Object(api["g" /* httpPost */])(str, _this4.$api.getDeviceRegisterManager).then(function (res1) {
  690. var str1 = {
  691. imei: row.imei, //row.imsi,
  692. deviceNum: row.deviceNum, //row.deviceNum,
  693. operateMode: 7,
  694. is: true,
  695. order: 6207,
  696. passwordStartTime: "20210813010101",
  697. passwordEndTime: "20680813010101"
  698. };
  699. Object(api["g" /* httpPost */])(str1, _this4.$api.getDeviceOperateUserInfo).then(function (res2) {});
  700. var str2 = {
  701. imei: row.imei, //row.imsi,
  702. deviceNum: row.deviceNum, //row.deviceNum,
  703. operateMode: 4,
  704. is: true,
  705. order: 6204,
  706. passwordStartTime: "20210813010101",
  707. passwordEndTime: "20680813010101"
  708. };
  709. Object(api["g" /* httpPost */])(str2, _this4.$api.getDeviceOperateUserInfo).then(function (res3) {
  710. if (res3.success) {
  711. _this4.$message.success("初始化成功");
  712. }
  713. });
  714. });
  715. });
  716. },
  717. // 选择绑定房间
  718. onClick: function onClick(evt, treeId, treeNode) {
  719. // 点击事件
  720. this.treedata = treeNode;
  721. },
  722. // 获取绑定所有房间
  723. getalllist: function getalllist() {
  724. var _this5 = this;
  725. var data = {};
  726. Object(api["d" /* httpGet */])(data, this.$api.getTree).then(function (res) {
  727. var array = Object(utils["n" /* uniqueArray */])(res.data, "id");
  728. _this5.zNodes = Object(utils["p" /* ztreeToElementTree */])(array, {});
  729. });
  730. },
  731. // 获取设备
  732. getdevice: function getdevice() {
  733. var _this6 = this;
  734. var isAppBind = '';
  735. if (this.search.isOnline == '2') {
  736. isAppBind = 1;
  737. } else {
  738. isAppBind = '';
  739. }
  740. var q = {
  741. lockType: this.search.lockType,
  742. isOnline: this.search.isOnline,
  743. startBattery: this.search.startBattery,
  744. endBattery: this.search.endBattery,
  745. isAppBind: isAppBind,
  746. isUsed: this.search.isUsed
  747. };
  748. if (q.isOnline == 2) {
  749. delete q.isOnline;
  750. }
  751. var data = {
  752. q: stringify_default()(q),
  753. pageNum: 1,
  754. pageSize: 10
  755. };
  756. this.screenStatisticsItemsMethods(data);
  757. Object(api["g" /* httpPost */])(data, this.$api.getDeviceItems).then(function (res) {
  758. var online = 0,
  759. unonline = 0,
  760. devIds = "";
  761. res.data.list.map(function (li) {
  762. if (li.isOnline == 1) {
  763. online++;
  764. } else if (li.isOnline == 0) {
  765. unonline++;
  766. }
  767. li.createAt = moment_default()(li.createAt).format("YYYY-MM-DD HH:mm:ss");
  768. if (li.lastReportAt) {
  769. li.lastReportAt = moment_default()(li.lastReportAt).format("YYYY-MM-DD HH:mm:ss");
  770. } else {
  771. li['lastReportAt'] = '';
  772. }
  773. devIds += li.deviceNum + ",";
  774. });
  775. var newArr = Object(utils["n" /* uniqueArray */])(res.data.list, "id");
  776. _this6.tableData = newArr;
  777. _this6.currentPage4 = 1;
  778. _this6.pageTotal = res.data.total;
  779. });
  780. },
  781. timestampToTime: function timestampToTime(cjsj) {
  782. var date = new Date(cjsj); //时间戳为10位需*1000,时间戳为13位的话不需乘1000
  783. var Y = date.getFullYear() + "-";
  784. var M = (date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1) + "-";
  785. var D = date.getDate() + " ";
  786. var h = date.getHours() + ":";
  787. var m = date.getMinutes() + ":";
  788. var s = date.getSeconds();
  789. return Y + M + D + h + m + s;
  790. },
  791. handleChange: function handleChange(value) {
  792. console.log(value);
  793. },
  794. restSearch: function restSearch() {
  795. this.search = {
  796. name: "",
  797. deviceNum: "",
  798. roomname: '',
  799. imei: "",
  800. isOnline: "",
  801. unBind: '',
  802. startBattery: '',
  803. endBattery: ''
  804. };
  805. this.searchRoom = '';
  806. this.checkNodeId = '';
  807. this.handleSearch();
  808. },
  809. // 设备状态统计筛选
  810. screenStatisticsItemsMethods: function screenStatisticsItemsMethods(data) {
  811. var _this7 = this;
  812. Object(api["g" /* httpPost */])(data, this.$api.screenStatisticsItems).then(function (res) {
  813. if (res.code == 200) {
  814. var sumpageTotal = 0,
  815. online = 0,
  816. unonline = 0,
  817. abnormal = 0;
  818. res.data.map(function (li) {
  819. if (li.isAppBind == 1) {
  820. abnormal++;
  821. }
  822. if (li.isOnline == '0') {
  823. unonline++;
  824. }
  825. if (li.isOnline == '1') {
  826. online++;
  827. }
  828. });
  829. _this7.sumpageTotal = res.data.length;
  830. _this7.online = online;
  831. _this7.unonline = unonline;
  832. _this7.abnormal = abnormal;
  833. }
  834. });
  835. },
  836. // 触发搜索按钮
  837. handleSearch: function handleSearch() {
  838. var _this8 = this;
  839. var deviceNum = this.search.deviceNum.replace(/\s*/g, "");
  840. var imei = this.search.imei.replace(/\s*/g, "");
  841. console.log(this.search);
  842. if (this.search.isOnline == '2') {
  843. this.search.isAppBind = 1;
  844. } else {
  845. this.search.isAppBind = '';
  846. }
  847. var q = {
  848. deviceNum: this.search.deviceNum,
  849. imei: this.search.imei,
  850. isOnline: this.search.isOnline,
  851. roomName: this.search.roomname,
  852. roomIds: this.checkNodeId,
  853. startBattery: this.search.startBattery,
  854. endBattery: this.search.endBattery,
  855. lockType: this.search.lockType,
  856. unBind: this.search.unBind,
  857. firmwareVersion: this.search.firmwareVersion,
  858. isUsed: this.search.isUsed,
  859. iccid: this.search.iccid,
  860. rssiStart: this.search.rssiStart,
  861. rssiEnd: this.search.rssiEnd,
  862. createStart: this.search.createStart,
  863. createEnd: this.search.createEnd,
  864. isAppBind: this.search.isAppBind
  865. };
  866. if (q.isOnline == 2) {
  867. delete q.isOnline;
  868. }
  869. var data = {
  870. q: stringify_default()(q),
  871. pageNum: 1,
  872. pageSize: this.pageSize
  873. };
  874. this.screenStatisticsItemsMethods(data);
  875. Object(api["g" /* httpPost */])(data, this.$api.getDeviceItems).then(function (res) {
  876. if (res.data.list.length > 0) {
  877. res.data.list.map(function (li) {
  878. li.createAt = moment_default()(li.createAt).format("YYYY-MM-DD HH:mm:ss");
  879. if (li.lastReportAt) {
  880. li.lastReportAt = moment_default()(li.lastReportAt).format("YYYY-MM-DD HH:mm:ss");
  881. } else {
  882. li['lastReportAt'] = '';
  883. }
  884. });
  885. var newArr = Object(utils["n" /* uniqueArray */])(res.data.list, "id");
  886. _this8.pageTotal = res.data.total;
  887. _this8.tableData = newArr;
  888. } else {
  889. _this8.tableData = [];
  890. _this8.pageTotal = 0;
  891. }
  892. _this8.currentPage4 = 1;
  893. _this8.$store.commit("increment", 1);
  894. });
  895. // this.$set(this.query, "pageIndex", 1);
  896. },
  897. // 删除操作
  898. handleDelete: function handleDelete(index) {
  899. var _this9 = this;
  900. // 二次确认删除
  901. this.$confirm("确定要删除吗?", "提示", {
  902. type: "warning"
  903. }).then(function () {
  904. _this9.$message.success("删除成功");
  905. _this9.tableData.splice(index, 1);
  906. }).catch(function () {});
  907. },
  908. // 多选操作
  909. handleSelectionChange: function handleSelectionChange(val) {
  910. this.multipleSelection = val;
  911. },
  912. delAllSelection: function delAllSelection() {
  913. var length = this.multipleSelection.length;
  914. var str = "";
  915. this.delList = this.delList.concat(this.multipleSelection);
  916. for (var i = 0; i < length; i++) {
  917. str += this.multipleSelection[i].name + " ";
  918. }
  919. this.$message.error("\u5220\u9664\u4E86" + str);
  920. this.multipleSelection = [];
  921. },
  922. // 删除设备
  923. deleteLock: function deleteLock(index, row) {
  924. var _this10 = this;
  925. this.$confirm("确定要删除吗?", "提示", {
  926. type: "warning"
  927. }).then(function () {
  928. // if (row.manufactureId == 101) {
  929. if (row.roomId) {
  930. var data = [{
  931. siteId: row.roomId,
  932. deviceId: row.id
  933. }];
  934. Object(api["g" /* httpPost */])(data, _this10.$api.unbindDeviceSite).then(function (res) {
  935. if (res.success) {
  936. var data = {
  937. device: row.deviceNum,
  938. imei: row.imei,
  939. order: 5102
  940. };
  941. allFun["a" /* default */].DeleteDevic(data, row.manufactureId).then(function (res) {
  942. if (res.success) {
  943. _this10.getdevice();
  944. _this10.$message.success('删除成功');
  945. } else {
  946. _this10.$message.error(res.msg);
  947. }
  948. });
  949. }
  950. }).catch(function (error) {
  951. _this10.$message.error("\u89E3\u7ED1\u5931\u8D25");
  952. });
  953. } else {
  954. var data = {
  955. deviceNum: row.deviceNum,
  956. imei: row.imei,
  957. order: 5102
  958. };
  959. allFun["a" /* default */].DeleteDevic(data, row.manufactureId).then(function (res) {
  960. if (res.success) {
  961. _this10.$message.success("删除成功");
  962. _this10.getdevice();
  963. } else {
  964. _this10.$message.error(res.msg);
  965. }
  966. });
  967. }
  968. }).catch(function () {});
  969. },
  970. // 绑定房间
  971. bindRoom: function bindRoom(index, row) {
  972. this.bromm = row;
  973. this.roomVisible = true;
  974. this.$refs.tree.setCheckedKeys([]);
  975. },
  976. // 确定绑定
  977. bindsave: function bindsave() {
  978. var _this11 = this;
  979. var treedata = this.treedata;
  980. this.roomVisible = false;
  981. var data = [{
  982. siteId: treedata.id,
  983. deviceId: this.bromm.id
  984. }];
  985. Object(api["g" /* httpPost */])(data, this.$api.bindDeviceSite).then(function (res) {
  986. if (res.success) {
  987. _this11.$message.success("绑定成功");
  988. _this11.getdevice();
  989. }
  990. }).catch(function (error) {
  991. _this11.$message.error("\u7ED1\u5B9A\u5931\u8D25");
  992. });
  993. },
  994. unbindsave: function unbindsave(index, row) {
  995. var _this12 = this;
  996. var data = [{
  997. siteId: row.roomId,
  998. deviceId: row.id
  999. }];
  1000. var q = {
  1001. id: row.roomId
  1002. };
  1003. var tenant = {
  1004. q: stringify_default()(q)
  1005. };
  1006. // 二次确认解绑
  1007. this.$confirm("确定要解绑吗?", "提示", {
  1008. type: "warning"
  1009. }).then(function () {
  1010. Object(api["d" /* httpGet */])(tenant, _this12.$api.getSiteTenant).then(function (res) {
  1011. promise_default.a.all(res.data.list.map(function (element) {
  1012. return new promise_default.a(function (resolve, reject) {
  1013. resolve(element.card);
  1014. });
  1015. })).then(function (allId) {
  1016. allId.map(function (li) {
  1017. var str = [{
  1018. siteId: row.roomId,
  1019. cardId: li
  1020. }];
  1021. Object(api["g" /* httpPost */])(str, _this12.$api.unbindCard).then(function (res) {});
  1022. });
  1023. Object(api["g" /* httpPost */])(data, _this12.$api.unbindDeviceSite).then(function (res) {
  1024. if (res.success) {
  1025. _this12.$message.success("解绑成功");
  1026. _this12.getdevice();
  1027. } else {
  1028. _this12.$message.error("\u89E3\u7ED1\u5931\u8D25");
  1029. }
  1030. });
  1031. });
  1032. });
  1033. }).catch(function () {});
  1034. },
  1035. handleSizeChange: function handleSizeChange(val) {
  1036. console.log("\u6BCF\u9875 " + val + " \u6761");
  1037. this.$router.replace({
  1038. path: this.$route.path,
  1039. query: {
  1040. page: this.$route.query.page ? this.$route.query.page : 1,
  1041. pageSize: val
  1042. }
  1043. });
  1044. this.pageSize = val;
  1045. this.getlistNum(0, val);
  1046. },
  1047. getlistNum: function getlistNum(val, size) {
  1048. var _this13 = this;
  1049. var deviceNum = this.search.deviceNum.replace(/\s*/g, "");
  1050. var imei = this.search.imei.replace(/\s*/g, "");
  1051. var q = {
  1052. deviceNum: this.search.deviceNum,
  1053. imei: this.search.imei,
  1054. isOnline: this.search.isOnline,
  1055. roomName: this.search.roomname,
  1056. roomIds: this.checkNodeId,
  1057. startBattery: this.search.startBattery,
  1058. endBattery: this.search.endBattery,
  1059. lockType: this.search.lockType,
  1060. unBind: this.search.unBind,
  1061. firmwareVersion: this.search.firmwareVersion,
  1062. isUsed: this.search.isUsed,
  1063. iccid: this.search.iccid,
  1064. rssiStart: this.search.rssiStart,
  1065. rssiEnd: this.search.rssiEnd,
  1066. createStart: this.search.createStart,
  1067. createEnd: this.search.createEnd,
  1068. isAppBind: this.search.isAppBind
  1069. };
  1070. if (q.isOnline == 2) {
  1071. delete q.isOnline;
  1072. }
  1073. var data = {
  1074. q: stringify_default()(q),
  1075. pageNum: val,
  1076. pageSize: size
  1077. };
  1078. Object(api["g" /* httpPost */])(data, this.$api.getDeviceItems).then(function (res) {
  1079. res.data.list.map(function (li) {
  1080. li.createAt = moment_default()(li.createAt).format("YYYY-MM-DD HH:mm:ss");
  1081. if (li.lastReportAt) {
  1082. li.lastReportAt = moment_default()(li.lastReportAt).format("YYYY-MM-DD HH:mm:ss");
  1083. } else {
  1084. li['lastReportAt'] = '';
  1085. }
  1086. });
  1087. var newArr = Object(utils["n" /* uniqueArray */])(res.data.list, "id");
  1088. _this13.tableData = newArr;
  1089. _this13.pageTotal = res.data.total;
  1090. });
  1091. },
  1092. // 分页导航
  1093. handlePageChange: function handlePageChange(val) {
  1094. var _this14 = this;
  1095. // this.$router.replace({
  1096. // path: this.$route.path,
  1097. // query: {
  1098. // page: this.$route.query.page ? this.$route.query.page : 1,
  1099. // pageSize: val,
  1100. // },
  1101. // });
  1102. this.pageNum = val;
  1103. this.$store.commit("increment", val);
  1104. var q = {
  1105. deviceNum: this.search.deviceNum,
  1106. imei: this.search.imei,
  1107. isOnline: this.search.isOnline,
  1108. roomName: this.search.roomname,
  1109. roomIds: this.checkNodeId,
  1110. startBattery: this.search.startBattery,
  1111. endBattery: this.search.endBattery,
  1112. lockType: this.search.lockType,
  1113. unBind: this.search.unBind,
  1114. firmwareVersion: this.search.firmwareVersion,
  1115. isUsed: this.search.isUsed,
  1116. iccid: this.search.iccid,
  1117. rssiStart: this.search.rssiStart,
  1118. rssiEnd: this.search.rssiEnd,
  1119. createStart: this.search.createStart,
  1120. createEnd: this.search.createEnd,
  1121. isAppBind: this.search.isAppBind
  1122. };
  1123. if (q.isOnline == 2) {
  1124. delete q.isOnline;
  1125. }
  1126. var data = {
  1127. q: stringify_default()(q),
  1128. pageNum: val,
  1129. pageSize: this.pageSize
  1130. };
  1131. Object(api["g" /* httpPost */])(data, this.$api.getDeviceItems).then(function (res) {
  1132. res.data.list.map(function (li) {
  1133. li.createAt = moment_default()(li.createAt).format("YYYY-MM-DD HH:mm:ss");
  1134. if (li.createAt) {}
  1135. if (li.lastReportAt) {
  1136. li.lastReportAt = moment_default()(li.lastReportAt).format("YYYY-MM-DD HH:mm:ss");
  1137. } else {
  1138. li['lastReportAt'] = '';
  1139. }
  1140. });
  1141. var newArr = Object(utils["n" /* uniqueArray */])(res.data.list, "id");
  1142. _this14.tableData = newArr;
  1143. _this14.pageTotal = res.data.total;
  1144. });
  1145. },
  1146. btnClick: function btnClick() {
  1147. document.querySelector(".input-file").click();
  1148. },
  1149. exportBtn: function exportBtn() {
  1150. this.exportExcel();
  1151. },
  1152. exportExcel: function exportExcel() {
  1153. var sheet1data = [['设备号', 'mac地址', 'sn', 'imei', 'app绑定号', '生产写入号']];
  1154. var sheet1 = xlsx_default.a.utils.json_to_sheet(sheet1data, {
  1155. skipHeader: true
  1156. });
  1157. // 创建一个新的空的workbook
  1158. var wb = xlsx_default.a.utils.book_new();
  1159. xlsx_default.a.utils.book_append_sheet(wb, sheet1, '设备导入模板');
  1160. // XLSX.utils.book_append_sheet(wb, sheet2, '行政部')
  1161. // XLSX.utils.book_append_sheet(wb, sheet3, '前端部')
  1162. var workbookBlob = this.workbook2blob(wb);
  1163. this.openDownloadDialog(workbookBlob, '设备导入模板.xlsx');
  1164. },
  1165. // 下载模板
  1166. workbook2blob: function workbook2blob(workbook) {
  1167. // 生成excel的配置项
  1168. var wopts = {
  1169. // 要生成的文件类型
  1170. bookType: 'xlsx',
  1171. // // 是否生成Shared String Table,官方解释是,如果开启生成速度会下降,但在低版本IOS设备上有更好的兼容性
  1172. bookSST: false,
  1173. type: 'binary'
  1174. };
  1175. var wbout = xlsx_default.a.write(workbook, wopts);
  1176. // 将字符串转ArrayBuffer
  1177. function s2ab(s) {
  1178. var buf = new ArrayBuffer(s.length);
  1179. var view = new Uint8Array(buf);
  1180. for (var i = 0; i !== s.length; ++i) {
  1181. view[i] = s.charCodeAt(i) & 0xff;
  1182. }return buf;
  1183. }
  1184. var buf = s2ab(wbout);
  1185. var blob = new Blob([buf], {
  1186. type: 'application/octet-stream'
  1187. });
  1188. return blob;
  1189. },
  1190. // 将blob对象 创建bloburl,然后用a标签实现弹出下载框
  1191. openDownloadDialog: function openDownloadDialog(blob, fileName) {
  1192. if ((typeof blob === "undefined" ? "undefined" : typeof_default()(blob)) === 'object' && blob instanceof Blob) {
  1193. blob = URL.createObjectURL(blob); // 创建blob地址
  1194. }
  1195. var aLink = document.createElement('a');
  1196. aLink.href = blob;
  1197. // HTML5新增的属性,指定保存文件名,可以不要后缀,注意,有时候 file:///模式下不会生效
  1198. aLink.download = fileName || '';
  1199. var event;
  1200. if (window.MouseEvent) event = new MouseEvent('click');
  1201. // 移动端
  1202. else {
  1203. event = document.createEvent('MouseEvents');
  1204. event.initMouseEvent('click', true, false, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
  1205. }
  1206. aLink.dispatchEvent(event);
  1207. },
  1208. exportData: function exportData(event) {
  1209. if (!event.currentTarget.files.length) {
  1210. return;
  1211. }
  1212. var that = this;
  1213. // 拿取文件对象
  1214. var f = event.currentTarget.files[0];
  1215. // 用FileReader来读取
  1216. var reader = new FileReader();
  1217. // 重写FileReader上的readAsBinaryString方法
  1218. FileReader.prototype.readAsBinaryString = function (f) {
  1219. var binary = "";
  1220. var wb; // 读取完成的数据
  1221. var outdata; // 你需要的数据
  1222. var reader = new FileReader();
  1223. reader.onload = function (e) {
  1224. // 读取成Uint8Array,再转换为Unicode编码(Unicode占两个字节)
  1225. var bytes = new Uint8Array(reader.result);
  1226. var length = bytes.byteLength;
  1227. for (var i = 0; i < length; i++) {
  1228. binary += String.fromCharCode(bytes[i]);
  1229. }
  1230. // 接下来就是xlsx了,具体可看api
  1231. wb = xlsx_default.a.read(binary, {
  1232. type: "binary"
  1233. });
  1234. outdata = xlsx_default.a.utils.sheet_to_json(wb.Sheets[wb.SheetNames[0]]);
  1235. // 自定义方法向父组件传递数据
  1236. var arr1 = [];
  1237. outdata.map(function (li, index) {
  1238. var str = {};
  1239. str.deviceNum = li["设备号"];
  1240. str.mac = li["mac地址"];
  1241. str.imei = li["imei"];
  1242. str.app = li["app绑定号"];
  1243. str.write = li["生产写入号"];
  1244. arr1.push(str);
  1245. });
  1246. // this.tableData=arr
  1247. that.userlist1statu = false;
  1248. that.$nextTick(function () {
  1249. that.userlist2 = arr1;
  1250. that.userlist1statu = true;
  1251. });
  1252. };
  1253. reader.readAsArrayBuffer(f);
  1254. };
  1255. reader.readAsBinaryString(f);
  1256. }
  1257. }
  1258. });
  1259. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-cd70f15a","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/allDevice.vue
  1260. var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{on:{"click":function($event){_vm.contentSearchShow=false}}},[_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 },"clearable":true},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-select',{staticClass:"handle-select mr10",attrs:{"size":"small","placeholder":"在线状态","clearable":true},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-button',{staticClass:"mr10",attrs:{"type":"primary","size":"small","icon":"el-icon-search"},on:{"click":_vm.handleSearch}},[_vm._v("搜索")]),_vm._v(" "),_c('el-button',{staticClass:"mr10",attrs:{"type":"primary","size":"small"},on:{"click":_vm.restSearch}},[_vm._v("重置搜索")]),_vm._v(" "),_c('div',{staticClass:"position-father",on:{"click":function($event){$event.stopPropagation();_vm.contentSearchShow=true}}},[_c('div',{staticClass:"el-button mountClickObject el-button--primary mr10 el-button--small",on:{"click":function($event){$event.stopPropagation();_vm.contentSearchShow=!_vm.contentSearchShow}}},[_vm._v("\n 高级查询")]),_vm._v(" "),(_vm.contentSearchShow)?_c('div',{staticClass:"contentSearch",attrs:{"id":"contentSearch"},on:{"click":function($event){$event.stopPropagation();_vm.contentSearchShow=true}}},[_c('el-input',{staticClass:"handle-input width100",attrs:{"size":"small","placeholder":"序列号","clearable":true},on:{"input":function($event){return _vm.changesr($event)}},model:{value:(_vm.search
  1261. ? 'success'
  1262. : scope.row.isOnline == '0'
  1263. ? 'danger'
  1264. : ''}},[(scope.row.isOnline == 1)?_c('span',[_vm._v("在线")]):_c('span',[_vm._v("离线")])])]}}])}),_vm._v(" "),_c('el-table-column',{attrs:{"label":"门的状态"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(scope.row.lockStatus == 0)?_c('i',{staticClass:"iconfont httpicon-men"}):_vm._e(),_vm._v(" "),(scope.row.lockStatus == 1)?_c('i',{staticClass:"iconfont httpicon-mendoor13"}):_vm._e(),_vm._v(" "),(scope.row.lockStatus == 2)?_c('i',{staticClass:"iconfont httpicon-men",staticStyle:{"color":"red"}}):_vm._e()]}}])}),_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-drawer',{attrs:{"title":"设备详情","visible":_vm.drawer,"custom-class":"operationclass","size":"50%","before-close":_vm.handleClose},on:{"update:visible":function($event){_vm.drawer=$event}}},[_c('div',{staticClass:"rltable"},[_c('el-tabs',{attrs:{"border":""},on:{"tab-click":_vm.handleClick},model:{value:(_vm.activeName),callback:function ($$v) {_vm.activeName=$$v},expression:"activeName"}},[_c('el-tab-pane',{attrs:{"label":"门锁详情","name":"0"}},[_c('el-form',{staticClass:"demo-form-inline",attrs:{"inline":true,"model":_vm.formInline}},[_c('el-form-item',{attrs:{"label":"设备号:"}},[_c('span',{staticClass:"half"},[_vm._v(_vm._s(_vm.formInline.deviceNum))])]),_vm._v(" "),_c('el-form-item',{attrs:{"label":"IMEI:"}},[_c('span',{staticClass:"half"},[_vm._v(_vm._s(_vm.formInline.imei))])]),_vm._v(" "),_c('el-form-item',{attrs:{"label":"IMSI:"}},[_c('span',{staticClass:"half"},[_vm._v(_vm._s(_vm.formInline.imsi))])]),_vm._v(" "),_c('el-form-item',{attrs:{"label":"信号强度:"}},[_c('span',{staticClass:"half"},[_vm._v(_vm._s(_vm.formInline.rssi))])]),_vm._v(" "),_c('el-form-item',{attrs:{"label":"电池电量:"}},[_c('span',{staticClass:"half"},[_vm._v(_vm._s(_vm.formInline.battery))])]),_vm._v(" "),_c('el-form-item',{attrs:{"label":"在线状态:"}},[(_vm.formInline.isOnline == 1)?_c('span',{staticClass:"half"},[_vm._v("在线")]):_c('span',{staticCl
  1265. var staticRenderFns = []
  1266. var esExports = { render: render, staticRenderFns: staticRenderFns }
  1267. /* harmony default export */ var views_allDevice = (esExports);
  1268. // CONCATENATED MODULE: ./src/views/allDevice.vue
  1269. function injectStyle (ssrContext) {
  1270. __webpack_require__("2cpK")
  1271. }
  1272. var normalizeComponent = __webpack_require__("VU/8")
  1273. /* script */
  1274. /* template */
  1275. /* template functional */
  1276. var __vue_template_functional__ = false
  1277. /* styles */
  1278. var __vue_styles__ = injectStyle
  1279. /* scopeId */
  1280. var __vue_scopeId__ = "data-v-cd70f15a"
  1281. /* moduleIdentifier (server only) */
  1282. var __vue_module_identifier__ = null
  1283. var Component = normalizeComponent(
  1284. allDevice,
  1285. views_allDevice,
  1286. __vue_template_functional__,
  1287. __vue_styles__,
  1288. __vue_scopeId__,
  1289. __vue_module_identifier__
  1290. )
  1291. /* harmony default export */ var src_views_allDevice = __webpack_exports__["default"] = (Component.exports);
  1292. /***/ })
  1293. });