{"remainingRequest":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\riotBarricade\\BarricadeEquipment.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\riotBarricade\\BarricadeEquipment.vue","mtime":1686706098958},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/es6.object.keys\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nimport _defineProperty from \"D:/jenkins/workspace/bzzgj-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport { TableMixin } from '@/mixins/tableMixin';\nimport riotBarricade from '@/api/device/riotBarricade.js';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport RealTimeMonitorDialog from '@/components/detailsDialog/RealTimeMonitorDialog.vue';\nexport default {\n name: 'RealTimeMonitor',\n components: {\n RealTimeMonitorDialog: RealTimeMonitorDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n querys: [{\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'name',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'code',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'status',\n relation: 'AND',\n value: ''\n }],\n up: '上升',\n down: '下降',\n lock: '锁定',\n action: '',\n operationName: '',\n actionList: [],\n //动作标识字典\n statusList: [],\n //成功状态字典\n deviceStatus: [],\n // 设备状态字典\n addressTypeList: [],\n //安装地点类型字段列表\n dialogVisible: false,\n dialogTitle: null,\n equipmentType: null,\n rowList: null,\n code: '',\n authCode: null,\n isDisabled: true\n };\n },\n created: function created() {\n this.deviceStatus = dictUtils.getDictItemsFromCache('sbzt');\n this.actionList = dictUtils.getDictItemsFromCache('dzbs');\n this.addressTypeList = dictUtils.getDictItemsFromCache('azddlx');\n },\n mounted: function mounted() {},\n methods: {\n toDialog: function toDialog(name) {\n this.$refs.RealTimeMonitorDialog.add(name);\n },\n // 方法\n randyzm: function randyzm() {\n //生成随机验证码\n var code = '';\n var coden = '';\n var codeLength = 4; //验证码的长度\n\n var random = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'); //随机数\n\n for (var i = 0; i < codeLength; i++) {\n //循环操作\n var index = Math.floor(Math.random() * 62); //取得随机数的索引(0~61)\n\n code += random[index]; //根据索引取得随机数加到code上\n\n coden += random[index]; //根据索引取得随机数加到code上\n }\n\n this.code = coden; //把code值赋给验证码\n },\n handleUpdate: function handleUpdate(row) {\n console.log(row);\n },\n clearQuerys: function clearQuerys() {\n this.querys[0].value = '';\n },\n loadData: function loadData(page) {\n var _this = this;\n\n if (page) {\n this.queryParam.pageBean.page = page;\n }\n\n this.loading = true;\n this.tableData = [];\n this.queryParam.querys = [];\n\n if (this.querys[0].value) {\n this.queryParam.querys.push(this.querys[0]);\n }\n\n if (this.querys[1].value) {\n this.queryParam.querys.push(this.querys[1]);\n }\n\n if (this.querys[2].value) {\n this.queryParam.querys.push(this.querys[2]);\n }\n\n riotBarricade.loadBarricade(this.queryParam, function (res) {\n // console.log(res, 'ppppppp')\n _this.tableData = res.rows.map(function (item) {\n return _objectSpread(_objectSpread({}, item), {}, {\n isState: item.isLock == 1 ? true : false\n });\n });\n _this.total = res.total;\n\n _this.$set(_this.tableData);\n\n _this.loading = false;\n\n _this.tableData.forEach(function (item) {\n _this.deviceStatus.forEach(function (val) {\n if (item.status == val.value) {\n item['statusName'] = val.name;\n }\n });\n\n _this.addressTypeList.forEach(function (val) {\n if (item.addressType == val.value) {\n item['addressTypeName'] = val.name;\n }\n });\n });\n });\n },\n // getVlaue(event) {\n // this.action = event.target.innerText\n // },\n handleClose: function handleClose() {\n this.isDisabled = true;\n this.dialogVisible = false;\n },\n bulrInput: function bulrInput() {\n if (this.code.toLowerCase() == this.authCode.toLowerCase()) {\n this.isDisabled = false;\n } else {\n this.isDisabled = true;\n }\n },\n handleEquipment: function handleEquipment(row) {\n this.authCode = '';\n this.code = '';\n this.rowList = row;\n this.equipmentType = '上升';\n this.dialogTitle = row.name;\n this.dialogVisible = true;\n this.randyzm();\n },\n falling: function falling(command, row) {\n this.authCode = '';\n this.code = '';\n this.rowList = row;\n this.equipmentType = command;\n this.dialogTitle = row.name;\n this.dialogVisible = true;\n this.randyzm();\n },\n unlock: function unlock(row) {\n this.authCode = '';\n this.code = '';\n this.rowList = row;\n this.equipmentType = '解锁';\n this.dialogTitle = row.name;\n this.dialogVisible = true;\n this.randyzm();\n },\n onclickDialog: function onclickDialog() {\n var _this2 = this;\n\n var currentUser = JSON.parse(window.sessionStorage.getItem('currentUser'));\n this.operationName = currentUser.username;\n this.actionList.map(function (item) {\n console.log(item);\n\n if (_this2.up) {\n if (item.name == _this2.up) {\n _this2.action = item.value;\n }\n }\n });\n var data = {\n action: this.action,\n controller_id: this.rowList.code,\n deviceCode: this.rowList.code,\n deviceName: this.rowList.name,\n operator_name: this.operationName\n };\n riotBarricade.operationBarricade(data, function (res) {\n console.log(res);\n _this2.dialogVisible = false;\n });\n },\n //解锁\n changeSwitch: function changeSwitch() {\n var _this3 = this;\n\n var data = {\n action: '21',\n deviceCode: this.rowList.code\n };\n riotBarricade.lockDataLine([data], function (res) {\n _this3.rowList.isState = false;\n _this3.dialogVisible = false;\n });\n },\n //鎖定\n onlockData: function onlockData() {\n var _this4 = this;\n\n var currentUser = JSON.parse(window.sessionStorage.getItem('currentUser'));\n this.operationName = currentUser.username;\n this.actionList.map(function (item) {\n if (_this4.lock) {\n if (item.name == _this4.lock) {\n _this4.action = item.value;\n }\n }\n });\n var data = {\n action: this.action,\n deviceCode: this.rowList.code\n };\n riotBarricade.lockDataLine([data], function (res) {\n _this4.dialogVisible = false;\n _this4.rowList.isState = true;\n });\n },\n toUpDate: function toUpDate() {\n var _this5 = this;\n\n var currentUser = JSON.parse(window.sessionStorage.getItem('currentUser'));\n this.operationName = currentUser.username;\n this.actionList.map(function (item) {\n console.log(item);\n\n if (_this5.down) {\n if (item.name == _this5.down) {\n _this5.action = item.value;\n }\n }\n });\n var data = {\n action: this.action,\n controller_id: this.rowList.code,\n deviceCode: this.rowList.code,\n deviceName: this.rowList.name,\n operator_name: this.operationName\n };\n riotBarricade.operationBarricade(data, function (res) {\n console.log(res);\n _this5.dialogVisible = false;\n });\n }\n }\n};",null]}