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

411 lines
13 KiB

  1. webpackJsonp([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. /***/ "eOrk":
  374. /***/ (function(module, exports) {
  375. // removed by extract-text-webpack-plugin
  376. /***/ })
  377. });