{"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\\performanceAnalysis\\DurationAnalysis.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\performanceAnalysis\\DurationAnalysis.vue","mtime":1686706098943},{"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/es6.function.name\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 productType from '@/api/device/productType.js';\nimport { dragControllerDiv } from '@/mixins/dragControllerDiv';\nimport performanceAnalysis from '@/api/device/performanceAnalysis.js';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport moment from 'moment';\nexport default {\n name: 'DurationAnalysis',\n mixins: [TableMixin],\n data: function data() {\n return {\n url: {\n delete: '/device/appraiseInfo/'\n },\n assessTypeList: [],\n //考核方式字典\n treeData: [{\n code: '',\n id: '0',\n name: '设备分类',\n type: 0,\n children: []\n }],\n defaultProps: {\n children: 'children',\n label: 'name'\n },\n treeNode: {\n code: '',\n id: '0',\n name: '设备分类',\n type: 0,\n children: []\n },\n searchTime: [new Date().setTime(new Date().getTime() - 3600 * 1000 * 24 * 7), new Date()],\n params: {\n name: '',\n code: '',\n deviceType: '',\n endTime: '',\n startTime: ''\n },\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: 'deviceType',\n relation: 'AND',\n value: ''\n }]\n };\n },\n created: function created() {\n this.assessTypeList = dictUtils.getDictItemsFromCache('jxkh-khfs');\n this.getTreen();\n this.params.endTime = moment().format('YYYY-MM-DDTHH:mm:ss');\n this.params.startTime = moment().subtract(7, 'days').format('YYYY-MM-DDTHH:mm:ss');\n },\n mounted: function mounted() {\n dragControllerDiv();\n },\n methods: {\n // 打开搜索更多\n openMore: function openMore() {\n this.showMore = !this.showMore;\n },\n changeTime: function changeTime(val) {\n this.params.startTime = moment(val[0]).format('YYYY-MM-DDTHH:mm:ss');\n this.params.endTime = moment(val[1]).format('YYYY-MM-DDTHH:mm:ss');\n },\n // 设备组织树查询\n getTreen: function getTreen() {\n var _this = this;\n\n productType.AllproductType({\n id: '0'\n }).then(function (res) {\n _this.treeData[0].children = res.value;\n\n _this.$set(_this.treeData);\n });\n },\n // 重置\n clearQuerys: function clearQuerys() {\n this.params.name = '';\n this.params.code = '';\n this.params.deviceType = '';\n this.loadData();\n },\n handleUpdate: function handleUpdate(row) {},\n // 获取list\n loadData: function loadData(page) {\n var _this2 = this;\n\n if (page) {\n this.queryParam.pageBean.page = page;\n }\n\n this.loading = true;\n this.tableData = [];\n this.queryParam.params = this.params;\n performanceAnalysis.loadTime(this.queryParam, function (res) {\n _this2.total = res.value.total;\n _this2.tableData = res.value.rows;\n\n _this2.$set(_this2.tableData);\n\n _this2.loading = false;\n });\n },\n handleNodeClick: function handleNodeClick(data) {\n this.treeNode = data;\n console.log(this.treeNode);\n\n if (data.id == '0') {\n this.queryParam.params.deviceType = this.treeNode.code;\n this.loadData(1);\n } else {\n this.queryParam.params.deviceType = this.treeNode.code;\n console.log(this.treeNode.name);\n this.loadData(1);\n }\n }\n }\n};",null]}