{"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\\Mobile\\Device\\RealDevice.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Mobile\\Device\\RealDevice.vue","mtime":1688109363933},{"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":["//\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 signboardDevice from '@/api/device/signboardDevice.js';\nimport productManage from '@/api/device/productManage.js';\nimport req from '@/request.js';\nimport resourceManage from '@/api/device/resourceManage.js';\nimport equipmentIndex from '@/api/device/equipmentIndex.js';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nexport default {\n name: 'MobileDevice',\n data: function data() {\n return {\n tabActiveName: '1',\n activeIds: [],\n activeChildrenIndex: 0,\n activeIndex: 0,\n policeList: [],\n treeData: [],\n treeChildrenData: [],\n queryParam: {\n pageBean: ''\n },\n interface: signboardDevice.signboaerdQuery,\n classList: [{\n text: '标识牌设备',\n value: '1'\n }, {\n text: '危险源设备',\n value: '3'\n }, {\n text: '积水设备',\n value: '2'\n }, {\n text: '防暴路障',\n value: '4'\n }],\n querys: [{\n group: 'main',\n operation: 'BETWEEN',\n parentGroup: '',\n property: 'warnTime',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'deviceCode',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'handleStatus',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'warn.DEVICE_TYPE_',\n relation: 'AND',\n value: 1\n }],\n page: 1,\n startPicker: false,\n statusData: {\n name: '',\n value: ''\n },\n title: '我的设备',\n currentUser: {},\n params: {\n trainingDate: ''\n },\n previewUrl: window.context.portal + '/file/onlinePreviewController/v1/getFileById_',\n //图标预览\n columns: [],\n //产品列表\n startColumns: [],\n product: {\n name: '',\n id: ''\n },\n handleStatusList: [],\n //处理状态字典\n showPicker: false,\n deviceData: [],\n loading: false,\n finished: true,\n refreshing: false\n };\n },\n created: function created() {\n this.onLoad();\n this.handleStatusList = dictUtils.getDictItemsFromCache('clzt');\n },\n mounted: function mounted() {\n this.currentUser = JSON.parse(sessionStorage.getItem('currentUser'));\n this.deviceStatus = dictUtils.getDictItemsFromCache('sbzt');\n },\n methods: {\n onTabClick: function onTabClick() {\n if (this.tabActiveName == '1') {\n this.interface = signboardDevice.signboaerdQuery;\n }\n\n if (this.tabActiveName == '2') {\n this.interface = signboardDevice.waterQuery;\n }\n\n if (this.tabActiveName == '3') {\n this.interface = signboardDevice.hazardQuery;\n }\n\n if (this.tabActiveName == '4') {\n this.interface = signboardDevice.deviceDataBarricadeStatus;\n }\n\n this.page = 1;\n this.deviceData = [];\n this.getDevice();\n },\n // 跳转设备详情\n handleDetail: function handleDetail(item) {// this.$router.push({name: 'RealtimeData', query: {id: item.id}})\n },\n onCancel: function onCancel() {\n this.showPicker = false;\n },\n onLoad: function onLoad() {\n var _this = this;\n\n setTimeout(function () {\n _this.loading = true;\n\n _this.getDevice();\n\n console.log(999999999);\n }, 500);\n },\n onRefresh: function onRefresh() {\n var _this2 = this;\n\n setTimeout(function () {\n _this2.page = 1;\n _this2.refreshing = true;\n _this2.deviceData = [];\n\n _this2.getDevice();\n }, 500);\n },\n getDevice: function getDevice() {\n var _this3 = this;\n\n this.finished = false;\n this.queryParam.pageBean = {\n pageSize: 10,\n page: this.page\n }; // this.loading = true\n\n this.queryParam.sorter = [{\n direction: 'DESC',\n property: 'createTime'\n }];\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 this.interface(this.queryParam, function (res) {\n _this3.loading = false;\n console.log(res, 'res');\n _this3.deviceData = _this3.deviceData.concat(res.rows);\n console.log(_this3.deviceData);\n _this3.page++; // 如果加载完毕,显示没有更多了\n\n if (res.rows.length === 0) {\n _this3.finished = true;\n }\n\n setTimeout(function () {\n //code\n _this3.refreshing = false;\n }, 1000);\n });\n }\n }\n};",null]}