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

422 lines
14 KiB

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