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

424 lines
12 KiB

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