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

413 lines
13 KiB

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