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

427 lines
13 KiB

  1. webpackJsonp([71],{
  2. /***/ "84kZ":
  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/trashLog.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 trashLog = ({
  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.trashLog;
  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: 9
  105. };
  106. } else {
  107. q = {
  108. alertType: this.query.alertType,
  109. deviceNum: this.query.deviceName,
  110. deviceType: 9
  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. if (typeof li.content == 'undefined') {
  139. li['content'] = '';
  140. }
  141. });
  142. _this.$store.commit('increment', 1);
  143. _this.tableData = res.data.list;
  144. _this.pageTotal = res.data.total;
  145. });
  146. },
  147. // 查询和房间相关的设备
  148. getAboutDevice: function getAboutDevice() {
  149. var _this2 = this;
  150. var data = {
  151. pageNum: 0,
  152. pageSize: 0,
  153. q: stringify_default()({
  154. lockType: 9
  155. })
  156. };
  157. Object(api["g" /* httpPost */])(data, this.$api.getDeviceItems).then(function (res) {
  158. _this2.AboutDevice = res.data.list;
  159. _this2.getOperates();
  160. });
  161. },
  162. time: function time() {
  163. var time = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : +new Date();
  164. var date = new Date(time + 8 * 3600 * 1000); // 增加8小时
  165. return date.toJSON().substr(0, 19).replace("T", " ");
  166. },
  167. // 获取操作日志
  168. getOperates: function getOperates() {
  169. var _this3 = this;
  170. var q = {};
  171. if (this.deviceNum != '') {
  172. q = {
  173. alertType: this.query.alertType,
  174. deviceNum: this.deviceNum,
  175. deviceType: 9
  176. };
  177. } else {
  178. q = {
  179. alertType: this.query.alertType,
  180. deviceNum: this.query.deviceName,
  181. deviceType: 9
  182. };
  183. }
  184. var data = {
  185. pageNum: 1,
  186. pageSize: 10,
  187. orderBy: "alert_time desc",
  188. q: stringify_default()(q)
  189. // orderType:"desc"
  190. };
  191. Object(api["d" /* httpGet */])(data, this.$api.getLockAlert).then(function (res) {
  192. var AboutDevice = _this3.AboutDevice;
  193. res.data.list.map(function (li) {
  194. li.createAt = _this3.time(+new Date(li.createAt));
  195. li.alertTime = _this3.time(+new Date(li.alertTime * 1000));
  196. var resultArr = AboutDevice.filter(function (_item) {
  197. return _item.deviceNum == li.deviceNum;
  198. })[0];
  199. if (resultArr) {
  200. li.roomId = resultArr.id;
  201. li.roomName = resultArr.roomName;
  202. }
  203. li['alertTypeDesc'] = '';
  204. var alertTypeDesc = _this3.alertTypeList.filter(function (item) {
  205. return item.code == li.alertType;
  206. })[0];
  207. if (alertTypeDesc) {
  208. li['alertTypeDesc'] = alertTypeDesc.desc;
  209. }
  210. if (typeof li.content == 'undefined') {
  211. li['content'] = '';
  212. }
  213. });
  214. _this3.tableData = res.data.list;
  215. _this3.pageTotal = res.data.total;
  216. });
  217. },
  218. //门锁报警同步刷新
  219. getlockAlert: function getlockAlert() {
  220. Object(api["d" /* httpGet */])("", this.$api.getLockAlert1).then(function (res) {});
  221. },
  222. searchParaProcess: function searchParaProcess(obj) {
  223. var myObj;
  224. if (obj.alertType == "" || obj.alertType == "0") {
  225. if (obj.deviceNum == "") {
  226. myObj = {
  227. deviceType: obj.deviceType
  228. };
  229. } else {
  230. myObj = {
  231. deviceNum: obj.deviceNum,
  232. deviceType: obj.deviceType
  233. };
  234. }
  235. } else {
  236. if (obj.deviceNum == "") {
  237. myObj = {
  238. alertType: obj.alertType,
  239. deviceType: obj.deviceType
  240. };
  241. } else {
  242. myObj = {
  243. alertType: obj.alertType,
  244. deviceNum: obj.deviceNum,
  245. deviceType: obj.deviceType
  246. };
  247. }
  248. }
  249. return stringify_default()(myObj);
  250. },
  251. // 触发搜索按钮
  252. handleSearch: function handleSearch() {
  253. var _this4 = this;
  254. this.getlockAlert();
  255. var q = {};
  256. if (this.deviceNum != '') {
  257. q = {
  258. alertType: this.query.alertType,
  259. deviceNum: this.deviceNum,
  260. deviceType: 9
  261. };
  262. } else {
  263. q = {
  264. alertType: this.query.alertType,
  265. deviceNum: this.query.deviceName,
  266. deviceType: 9
  267. };
  268. }
  269. var data = {
  270. pageNum: 1,
  271. pageSize: 10,
  272. q: this.searchParaProcess(q),
  273. orderBy: "alert_time desc"
  274. };
  275. Object(api["d" /* httpGet */])(data, this.$api.getLockAlert).then(function (res) {
  276. var AboutDevice = _this4.AboutDevice;
  277. res.data.list.map(function (li) {
  278. li.createAt = _this4.time(+new Date(li.createAt));
  279. li.alertTime = _this4.time(+new Date(li.alertTime * 1000));
  280. var resultArr = AboutDevice.filter(function (_item) {
  281. return _item.deviceNum == li.deviceNum;
  282. })[0];
  283. if (resultArr) {
  284. li.roomId = resultArr.id;
  285. li.roomName = resultArr.roomName;
  286. }
  287. li['alertTypeDesc'] = '';
  288. var alertTypeDesc = _this4.alertTypeList.filter(function (item) {
  289. return item.code == li.alertType;
  290. })[0];
  291. if (alertTypeDesc) {
  292. li['alertTypeDesc'] = alertTypeDesc.desc;
  293. }
  294. if (typeof li.content == 'undefined') {
  295. li['content'] = '';
  296. }
  297. });
  298. _this4.$store.commit('increment', 1);
  299. _this4.tableData = res.data.list;
  300. _this4.pageTotal = res.data.total;
  301. });
  302. // this.$set(this.query, "pageIndex", 1);
  303. },
  304. // 分页导航
  305. handlePageChange: function handlePageChange(val) {
  306. var _this5 = this;
  307. this.$store.commit('increment', val);
  308. var q = {};
  309. if (this.deviceNum != '') {
  310. q = {
  311. alertType: this.query.alertType,
  312. deviceNum: this.deviceNum,
  313. deviceType: 9
  314. };
  315. } else {
  316. q = {
  317. alertType: this.query.alertType,
  318. deviceNum: this.query.deviceName,
  319. deviceType: 9
  320. };
  321. }
  322. var data = {
  323. pageNum: val,
  324. pageSize: 10,
  325. q: this.searchParaProcess(q),
  326. orderBy: "alert_time desc"
  327. };
  328. Object(api["d" /* httpGet */])(data, this.$api.getLockAlert).then(function (res) {
  329. var AboutDevice = _this5.AboutDevice;
  330. res.data.list.map(function (li) {
  331. li.createAt = _this5.time(+new Date(li.createAt));
  332. li.alertTime = _this5.time(+new Date(li.alertTime * 1000));
  333. var resultArr = AboutDevice.filter(function (_item) {
  334. return _item.deviceNum == li.deviceNum;
  335. })[0];
  336. if (resultArr) {
  337. li.roomId = resultArr.id;
  338. li.roomName = resultArr.roomName;
  339. }
  340. li['alertTypeDesc'] = '';
  341. var alertTypeDesc = _this5.alertTypeList.filter(function (item) {
  342. return item.code == li.alertType;
  343. })[0];
  344. if (alertTypeDesc) {
  345. li['alertTypeDesc'] = alertTypeDesc.desc;
  346. }
  347. if (typeof li.content == 'undefined') {
  348. li['content'] = '';
  349. }
  350. });
  351. _this5.tableData = res.data.list;
  352. _this5.pageTotal = res.data.total;
  353. });
  354. }
  355. }
  356. });
  357. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-3ef91078","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/trashLog.vue
  358. 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)])}
  359. var staticRenderFns = []
  360. var esExports = { render: render, staticRenderFns: staticRenderFns }
  361. /* harmony default export */ var log_trashLog = (esExports);
  362. // CONCATENATED MODULE: ./src/views/log/trashLog.vue
  363. function injectStyle (ssrContext) {
  364. __webpack_require__("a3/g")
  365. }
  366. var normalizeComponent = __webpack_require__("VU/8")
  367. /* script */
  368. /* template */
  369. /* template functional */
  370. var __vue_template_functional__ = false
  371. /* styles */
  372. var __vue_styles__ = injectStyle
  373. /* scopeId */
  374. var __vue_scopeId__ = "data-v-3ef91078"
  375. /* moduleIdentifier (server only) */
  376. var __vue_module_identifier__ = null
  377. var Component = normalizeComponent(
  378. trashLog,
  379. log_trashLog,
  380. __vue_template_functional__,
  381. __vue_styles__,
  382. __vue_scopeId__,
  383. __vue_module_identifier__
  384. )
  385. /* harmony default export */ var views_log_trashLog = __webpack_exports__["default"] = (Component.exports);
  386. /***/ }),
  387. /***/ "a3/g":
  388. /***/ (function(module, exports) {
  389. // removed by extract-text-webpack-plugin
  390. /***/ })
  391. });