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

414 lines
13 KiB

  1. webpackJsonp([67],{
  2. /***/ "1dxu":
  3. /***/ (function(module, exports) {
  4. // removed by extract-text-webpack-plugin
  5. /***/ }),
  6. /***/ "WbCw":
  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/core-js/json/stringify.js
  11. var stringify = __webpack_require__("mvHQ");
  12. var stringify_default = /*#__PURE__*/__webpack_require__.n(stringify);
  13. // EXTERNAL MODULE: ./src/api/index.js + 5 modules
  14. var api = __webpack_require__("gyMJ");
  15. // EXTERNAL MODULE: ./src/utils/index.js
  16. var utils = __webpack_require__("0xDb");
  17. // EXTERNAL MODULE: ./node_modules/moment/moment.js
  18. var moment = __webpack_require__("PJh5");
  19. var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
  20. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/log/humanMotionSensorLog.vue
  21. //
  22. //
  23. //
  24. //
  25. //
  26. //
  27. //
  28. //
  29. //
  30. //
  31. //
  32. //
  33. //
  34. //
  35. //
  36. //
  37. //
  38. //
  39. //
  40. //
  41. //
  42. //
  43. //
  44. //
  45. //
  46. //
  47. //
  48. //
  49. //
  50. //
  51. //
  52. //
  53. /* harmony default export */ var humanMotionSensorLog = ({
  54. name: "warningLog",
  55. data: function data() {
  56. return {
  57. query: {
  58. operType: "",
  59. operateName: "",
  60. operModul: ""
  61. },
  62. query1: {
  63. operType: "",
  64. operateName: "",
  65. operModul: ""
  66. },
  67. activeName: "first",
  68. tableData: [],
  69. tableData1: [],
  70. multipleSelection: [],
  71. delList: [],
  72. editVisible: false,
  73. pageTotal: 0,
  74. pageTotal1: 0,
  75. form: {},
  76. idx: -1,
  77. id: -1,
  78. AboutDevice: [],
  79. userInfo: {
  80. type: ''
  81. },
  82. alertTypeList: []
  83. };
  84. },
  85. props: ['deviceNum'],
  86. beforeCreate: function beforeCreate() {},
  87. created: function created() {
  88. this.alertTypeList = this.$MANUFACTURER.alertType.humanMotionSensorLog;
  89. this.userInfo = JSON.parse(localStorage.getItem('info'));
  90. this.getAboutDevice();
  91. },
  92. mounted: function mounted() {},
  93. methods: {
  94. selectTenantId: function selectTenantId(e) {
  95. localStorage.setItem('tenantId', e);
  96. this.reload();
  97. },
  98. restFun: function restFun() {
  99. var _this = this;
  100. this.query = {
  101. operType: "",
  102. operateName: "",
  103. operModul: ""
  104. };
  105. var q = {};
  106. if (this.deviceNum != '') {
  107. q = {
  108. alertType: this.query.alertType,
  109. deviceNum: this.deviceNum,
  110. deviceType: 6
  111. };
  112. } else {
  113. q = {
  114. alertType: this.query.alertType,
  115. deviceNum: this.query.deviceName,
  116. deviceType: 6
  117. };
  118. }
  119. var data = {
  120. pageNum: 1,
  121. pageSize: 10,
  122. q: this.searchParaProcess(q),
  123. orderBy: "alert_time desc"
  124. };
  125. Object(api["d" /* httpGet */])(data, this.$api.getLockAlert).then(function (res) {
  126. var AboutDevice = _this.AboutDevice;
  127. res.data.list.map(function (li) {
  128. li.createAt = _this.time(+new Date(li.createAt));
  129. li.alertTime = moment_default()(li.alertTime * 1000).format("YYYY-MM-DD HH:mm:ss");
  130. var resultArr = AboutDevice.filter(function (_item) {
  131. return _item.deviceNum == li.deviceNum;
  132. })[0];
  133. if (resultArr) {
  134. li.roomId = resultArr.id;
  135. li.roomName = resultArr.roomName;
  136. }
  137. li['alertTypeDesc'] = '';
  138. var alertTypeDesc = _this.alertTypeList.filter(function (item) {
  139. return item.code == li.alertType;
  140. })[0];
  141. if (alertTypeDesc) {
  142. li['alertTypeDesc'] = alertTypeDesc.desc;
  143. }
  144. });
  145. _this.$store.commit('increment', 1);
  146. _this.tableData = res.data.list;
  147. _this.pageTotal = res.data.total;
  148. });
  149. },
  150. // 查询和房间相关的设备
  151. getAboutDevice: function getAboutDevice() {
  152. var _this2 = this;
  153. var data = {
  154. pageNum: 0,
  155. pageSize: 0,
  156. q: stringify_default()({
  157. lockType: 6
  158. })
  159. };
  160. Object(api["g" /* httpPost */])(data, this.$api.getDeviceItems).then(function (res) {
  161. _this2.AboutDevice = res.data.list;
  162. _this2.getOperates();
  163. });
  164. },
  165. time: function time() {
  166. var time = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : +new Date();
  167. var date = new Date(time + 8 * 3600 * 1000); // 增加8小时
  168. return date.toJSON().substr(0, 19).replace("T", " ");
  169. },
  170. // 获取操作日志
  171. getOperates: function getOperates() {
  172. var _this3 = this;
  173. var q = {};
  174. if (this.deviceNum != '') {
  175. q = {
  176. deviceNum: this.deviceNum,
  177. deviceType: 6
  178. };
  179. } else {
  180. q = {
  181. deviceNum: this.query.deviceName,
  182. deviceType: 6
  183. };
  184. }
  185. var data = {
  186. pageNum: 1,
  187. pageSize: 10,
  188. orderBy: "alert_time desc",
  189. q: stringify_default()(q)
  190. // orderType:"desc"
  191. };
  192. Object(api["d" /* httpGet */])(data, this.$api.getLockAlert).then(function (res) {
  193. var AboutDevice = _this3.AboutDevice;
  194. res.data.list.map(function (li) {
  195. li.createAt = _this3.time(+new Date(li.createAt));
  196. li.alertTime = moment_default()(li.alertTime * 1000).format("YYYY-MM-DD HH:mm:ss");
  197. var resultArr = AboutDevice.filter(function (_item) {
  198. return _item.deviceNum == li.deviceNum;
  199. })[0];
  200. if (resultArr) {
  201. li.roomId = resultArr.id;
  202. li.roomName = resultArr.roomName;
  203. }
  204. li['alertTypeDesc'] = '';
  205. var alertTypeDesc = _this3.alertTypeList.filter(function (item) {
  206. return item.code == li.alertType;
  207. })[0];
  208. if (alertTypeDesc) {
  209. li['alertTypeDesc'] = alertTypeDesc.desc;
  210. }
  211. });
  212. _this3.tableData = res.data.list;
  213. _this3.pageTotal = res.data.total;
  214. });
  215. },
  216. //门锁报警同步刷新
  217. getlockAlert: function getlockAlert() {
  218. Object(api["d" /* httpGet */])("", this.$api.getLockAlert1).then(function (res) {});
  219. },
  220. searchParaProcess: function searchParaProcess(obj) {
  221. var myObj;
  222. if (obj.alertType == "" || obj.alertType == "0") {
  223. if (obj.deviceNum == "") {
  224. myObj = {
  225. deviceType: obj.deviceType
  226. };
  227. } else {
  228. myObj = {
  229. deviceNum: obj.deviceNum,
  230. deviceType: obj.deviceType
  231. };
  232. }
  233. } else {
  234. if (obj.deviceNum == "") {
  235. myObj = {
  236. alertType: obj.alertType,
  237. deviceType: obj.deviceType
  238. };
  239. } else {
  240. myObj = {
  241. alertType: obj.alertType,
  242. deviceNum: obj.deviceNum,
  243. deviceType: obj.deviceType
  244. };
  245. }
  246. }
  247. return stringify_default()(myObj);
  248. },
  249. // 触发搜索按钮
  250. handleSearch: function handleSearch() {
  251. var _this4 = this;
  252. this.getlockAlert();
  253. var q = {};
  254. if (this.deviceNum != '') {
  255. q = {
  256. alertType: this.query.alertType,
  257. deviceNum: this.deviceNum,
  258. deviceType: 6
  259. };
  260. } else {
  261. q = {
  262. alertType: this.query.alertType,
  263. deviceNum: this.query.deviceName,
  264. deviceType: 6
  265. };
  266. }
  267. var data = {
  268. pageNum: 1,
  269. pageSize: 10,
  270. q: this.searchParaProcess(q),
  271. orderBy: "alert_time desc"
  272. };
  273. Object(api["d" /* httpGet */])(data, this.$api.getLockAlert).then(function (res) {
  274. var AboutDevice = _this4.AboutDevice;
  275. res.data.list.map(function (li) {
  276. li.createAt = _this4.time(+new Date(li.createAt));
  277. li.alertTime = moment_default()(li.alertTime * 1000).format("YYYY-MM-DD HH:mm:ss");
  278. var resultArr = AboutDevice.filter(function (_item) {
  279. return _item.deviceNum == li.deviceNum;
  280. })[0];
  281. if (resultArr) {
  282. li.roomId = resultArr.id;
  283. li.roomName = resultArr.roomName;
  284. }
  285. li['alertTypeDesc'] = '';
  286. var alertTypeDesc = _this4.alertTypeList.filter(function (item) {
  287. return item.code == li.alertType;
  288. })[0];
  289. if (alertTypeDesc) {
  290. li['alertTypeDesc'] = alertTypeDesc.desc;
  291. }
  292. });
  293. _this4.$store.commit('increment', 1);
  294. _this4.tableData = res.data.list;
  295. _this4.pageTotal = res.data.total;
  296. });
  297. // this.$set(this.query, "pageIndex", 1);
  298. },
  299. // 分页导航
  300. handlePageChange: function handlePageChange(val) {
  301. var _this5 = this;
  302. this.$store.commit('increment', val);
  303. var q = {};
  304. if (this.deviceNum != '') {
  305. q = {
  306. alertType: this.query.alertType,
  307. deviceNum: this.deviceNum,
  308. deviceType: 6
  309. };
  310. } else {
  311. q = {
  312. alertType: this.query.alertType,
  313. deviceNum: this.query.deviceName,
  314. deviceType: 6
  315. };
  316. }
  317. var data = {
  318. pageNum: val,
  319. pageSize: 10,
  320. q: this.searchParaProcess(q),
  321. orderBy: "alert_time desc"
  322. };
  323. Object(api["d" /* httpGet */])(data, this.$api.getLockAlert).then(function (res) {
  324. var AboutDevice = _this5.AboutDevice;
  325. res.data.list.map(function (li) {
  326. li.createAt = _this5.time(+new Date(li.createAt));
  327. li.alertTime = moment_default()(li.alertTime * 1000).format("YYYY-MM-DD HH:mm:ss");
  328. var resultArr = AboutDevice.filter(function (_item) {
  329. return _item.deviceNum == li.deviceNum;
  330. })[0];
  331. if (resultArr) {
  332. li.roomId = resultArr.id;
  333. li.roomName = resultArr.roomName;
  334. }
  335. li['alertTypeDesc'] = '';
  336. var alertTypeDesc = _this5.alertTypeList.filter(function (item) {
  337. return item.code == li.alertType;
  338. })[0];
  339. if (alertTypeDesc) {
  340. li['alertTypeDesc'] = alertTypeDesc.desc;
  341. }
  342. });
  343. _this5.tableData = res.data.list;
  344. _this5.pageTotal = res.data.total;
  345. });
  346. }
  347. }
  348. });
  349. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-4c5a757c","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/humanMotionSensorLog.vue
  350. 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)])}
  351. var staticRenderFns = []
  352. var esExports = { render: render, staticRenderFns: staticRenderFns }
  353. /* harmony default export */ var log_humanMotionSensorLog = (esExports);
  354. // CONCATENATED MODULE: ./src/views/log/humanMotionSensorLog.vue
  355. function injectStyle (ssrContext) {
  356. __webpack_require__("1dxu")
  357. }
  358. var normalizeComponent = __webpack_require__("VU/8")
  359. /* script */
  360. /* template */
  361. /* template functional */
  362. var __vue_template_functional__ = false
  363. /* styles */
  364. var __vue_styles__ = injectStyle
  365. /* scopeId */
  366. var __vue_scopeId__ = "data-v-4c5a757c"
  367. /* moduleIdentifier (server only) */
  368. var __vue_module_identifier__ = null
  369. var Component = normalizeComponent(
  370. humanMotionSensorLog,
  371. log_humanMotionSensorLog,
  372. __vue_template_functional__,
  373. __vue_styles__,
  374. __vue_scopeId__,
  375. __vue_module_identifier__
  376. )
  377. /* harmony default export */ var views_log_humanMotionSensorLog = __webpack_exports__["default"] = (Component.exports);
  378. /***/ })
  379. });