diff --git a/src/api/device.js b/src/api/device.js index 00804fe..edcc1a4 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -100,4 +100,11 @@ params }) } +export function totalDataGasFlow(params) { + return request({ + url: 'gasflow/listByDevice', + method: 'post', + params + }) +} diff --git a/src/api/device.js b/src/api/device.js index 00804fe..edcc1a4 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -100,4 +100,11 @@ params }) } +export function totalDataGasFlow(params) { + return request({ + url: 'gasflow/listByDevice', + method: 'post', + params + }) +} diff --git a/src/views/dataManage/deviceData/gasFlowHistory.vue b/src/views/dataManage/deviceData/gasFlowHistory.vue new file mode 100644 index 0000000..6bbc40e --- /dev/null +++ b/src/views/dataManage/deviceData/gasFlowHistory.vue @@ -0,0 +1,117 @@ + + + + diff --git a/src/api/device.js b/src/api/device.js index 00804fe..edcc1a4 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -100,4 +100,11 @@ params }) } +export function totalDataGasFlow(params) { + return request({ + url: 'gasflow/listByDevice', + method: 'post', + params + }) +} diff --git a/src/views/dataManage/deviceData/gasFlowHistory.vue b/src/views/dataManage/deviceData/gasFlowHistory.vue new file mode 100644 index 0000000..6bbc40e --- /dev/null +++ b/src/views/dataManage/deviceData/gasFlowHistory.vue @@ -0,0 +1,117 @@ + + + + diff --git a/src/views/dataManage/deviceData/listCorrodeData.vue b/src/views/dataManage/deviceData/listCorrodeData.vue index 13fdc18..3cdb1f1 100644 --- a/src/views/dataManage/deviceData/listCorrodeData.vue +++ b/src/views/dataManage/deviceData/listCorrodeData.vue @@ -115,11 +115,6 @@ text: '采集时间', value: 'uptime', align: 'center' - }, - { - text: '上传时间', - value: 'logtime', - align: 'center' } ], // 显示列 multipleSelection: [], // 多选选中项 diff --git a/src/api/device.js b/src/api/device.js index 00804fe..edcc1a4 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -100,4 +100,11 @@ params }) } +export function totalDataGasFlow(params) { + return request({ + url: 'gasflow/listByDevice', + method: 'post', + params + }) +} diff --git a/src/views/dataManage/deviceData/gasFlowHistory.vue b/src/views/dataManage/deviceData/gasFlowHistory.vue new file mode 100644 index 0000000..6bbc40e --- /dev/null +++ b/src/views/dataManage/deviceData/gasFlowHistory.vue @@ -0,0 +1,117 @@ + + + + diff --git a/src/views/dataManage/deviceData/listCorrodeData.vue b/src/views/dataManage/deviceData/listCorrodeData.vue index 13fdc18..3cdb1f1 100644 --- a/src/views/dataManage/deviceData/listCorrodeData.vue +++ b/src/views/dataManage/deviceData/listCorrodeData.vue @@ -115,11 +115,6 @@ text: '采集时间', value: 'uptime', align: 'center' - }, - { - text: '上传时间', - value: 'logtime', - align: 'center' } ], // 显示列 multipleSelection: [], // 多选选中项 diff --git a/src/views/dataManage/deviceData/listGasflowData.vue b/src/views/dataManage/deviceData/listGasflowData.vue index 9911132..7c7350f 100644 --- a/src/views/dataManage/deviceData/listGasflowData.vue +++ b/src/views/dataManage/deviceData/listGasflowData.vue @@ -34,15 +34,33 @@ 导出记录 - + + + + @@ -58,6 +76,7 @@ @size-change="handleSizeChange" @current-change="handleCurrentChange"/> + @@ -66,10 +85,11 @@ import { getGasflowData, batchExportGasflowData } from '@/api/data' import DeptSelect from '../../../components/DeptSelect/index' import { parseUrl } from '@/utils/parseutils' +import gasFlowHistory from './gasFlowHistory' export default { name: 'ListGasflowData', - components: { DeptSelect, AreaSelectTree }, + components: { DeptSelect, AreaSelectTree, gasFlowHistory }, data() { return { listQuery: { @@ -102,37 +122,22 @@ }, { - text: '地址', + text: '设备位置', value: 'position', align: 'center' }, { - text: '瞬时流量', - value: 'instantFlow', - align: 'center' - }, - { - text: '瞬时流速', - value: 'instantVelocity', - align: 'center' - }, - { - text: '介质温度', - value: 'ambocetorTemperture', - align: 'center' - }, - { - text: '今日用气量', + text: '今日用气量(立方米)', value: 'dayCount', align: 'center' }, { - text: '本月用气量', + text: '本月用气量(立方米)', value: 'monthCount', align: 'center' }, { - text: '总用气量', + text: '总用气量(立方米)', value: 'totalCount', align: 'center' }, @@ -221,6 +226,9 @@ search() { this.fetchData(false) }, + openData(row) { + this.$refs.waterHistory.initDialog(true, row) + }, // 获取开挖配置数据 fetchData(isNowPage = true) { this.listLoading = true diff --git a/src/api/device.js b/src/api/device.js index 00804fe..edcc1a4 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -100,4 +100,11 @@ params }) } +export function totalDataGasFlow(params) { + return request({ + url: 'gasflow/listByDevice', + method: 'post', + params + }) +} diff --git a/src/views/dataManage/deviceData/gasFlowHistory.vue b/src/views/dataManage/deviceData/gasFlowHistory.vue new file mode 100644 index 0000000..6bbc40e --- /dev/null +++ b/src/views/dataManage/deviceData/gasFlowHistory.vue @@ -0,0 +1,117 @@ + + + + diff --git a/src/views/dataManage/deviceData/listCorrodeData.vue b/src/views/dataManage/deviceData/listCorrodeData.vue index 13fdc18..3cdb1f1 100644 --- a/src/views/dataManage/deviceData/listCorrodeData.vue +++ b/src/views/dataManage/deviceData/listCorrodeData.vue @@ -115,11 +115,6 @@ text: '采集时间', value: 'uptime', align: 'center' - }, - { - text: '上传时间', - value: 'logtime', - align: 'center' } ], // 显示列 multipleSelection: [], // 多选选中项 diff --git a/src/views/dataManage/deviceData/listGasflowData.vue b/src/views/dataManage/deviceData/listGasflowData.vue index 9911132..7c7350f 100644 --- a/src/views/dataManage/deviceData/listGasflowData.vue +++ b/src/views/dataManage/deviceData/listGasflowData.vue @@ -34,15 +34,33 @@ 导出记录 - + + + + @@ -58,6 +76,7 @@ @size-change="handleSizeChange" @current-change="handleCurrentChange"/> + @@ -66,10 +85,11 @@ import { getGasflowData, batchExportGasflowData } from '@/api/data' import DeptSelect from '../../../components/DeptSelect/index' import { parseUrl } from '@/utils/parseutils' +import gasFlowHistory from './gasFlowHistory' export default { name: 'ListGasflowData', - components: { DeptSelect, AreaSelectTree }, + components: { DeptSelect, AreaSelectTree, gasFlowHistory }, data() { return { listQuery: { @@ -102,37 +122,22 @@ }, { - text: '地址', + text: '设备位置', value: 'position', align: 'center' }, { - text: '瞬时流量', - value: 'instantFlow', - align: 'center' - }, - { - text: '瞬时流速', - value: 'instantVelocity', - align: 'center' - }, - { - text: '介质温度', - value: 'ambocetorTemperture', - align: 'center' - }, - { - text: '今日用气量', + text: '今日用气量(立方米)', value: 'dayCount', align: 'center' }, { - text: '本月用气量', + text: '本月用气量(立方米)', value: 'monthCount', align: 'center' }, { - text: '总用气量', + text: '总用气量(立方米)', value: 'totalCount', align: 'center' }, @@ -221,6 +226,9 @@ search() { this.fetchData(false) }, + openData(row) { + this.$refs.waterHistory.initDialog(true, row) + }, // 获取开挖配置数据 fetchData(isNowPage = true) { this.listLoading = true diff --git a/src/views/gasOverview/gasOverviewSimple.vue b/src/views/gasOverview/gasOverviewSimple.vue index 22eb8dc..31440bc 100644 --- a/src/views/gasOverview/gasOverviewSimple.vue +++ b/src/views/gasOverview/gasOverviewSimple.vue @@ -658,6 +658,7 @@ qtModel() { const params = '15' getMapping(params, this.listQuery.keywords).then(response => { + console.log(response) // 过滤掉该单位不支持的设备(通过部门id) const deptIds = this.$store.getters.deptId const responses = []