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

408 lines
13 KiB

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