diff --git a/src/api/noiseconfig.js b/src/api/noiseconfig.js new file mode 100644 index 0000000..53328bf --- /dev/null +++ b/src/api/noiseconfig.js @@ -0,0 +1,42 @@ +/** + * 噪声配置接口 + */ +import request from '@/utils/request' +// 噪声配置查询 +export function getNoiseConfigList(params) { + return request({ + url: 'busConfig/digConfig/list', + method: 'get', + params + }) +} + +// 修改噪声配置 +export function editNoiseConfig(params) { + return request({ + url: 'busConfig/digConfig/config', + method: 'post', + params + }) +} + +// 批量导入 +export function batchImportNoiseConfig(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'busConfig/digConfig/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} +// 批量导出 +export function batchExportNoiseConfig(params) { + return request({ + url: 'busConfig/digConfig/batchExport', + method: 'get', + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/noiseconfig.js b/src/api/noiseconfig.js new file mode 100644 index 0000000..53328bf --- /dev/null +++ b/src/api/noiseconfig.js @@ -0,0 +1,42 @@ +/** + * 噪声配置接口 + */ +import request from '@/utils/request' +// 噪声配置查询 +export function getNoiseConfigList(params) { + return request({ + url: 'busConfig/digConfig/list', + method: 'get', + params + }) +} + +// 修改噪声配置 +export function editNoiseConfig(params) { + return request({ + url: 'busConfig/digConfig/config', + method: 'post', + params + }) +} + +// 批量导入 +export function batchImportNoiseConfig(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'busConfig/digConfig/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} +// 批量导出 +export function batchExportNoiseConfig(params) { + return request({ + url: 'busConfig/digConfig/batchExport', + method: 'get', + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/views/dataManage/dataManage.vue b/src/views/dataManage/dataManage.vue index 8cc5f60..a46b904 100644 --- a/src/views/dataManage/dataManage.vue +++ b/src/views/dataManage/dataManage.vue @@ -13,6 +13,9 @@ + + + @@ -36,10 +39,11 @@ import ListWellLocaData from './deviceData/listWellLocaData' import { parseUrl } from '@/utils/parseutils' import { hasPermission } from '@/utils/permission' +import ListNoiseData from './deviceData/listNoiseData' export default { name: 'DataManage', - components: { ListWellLocaData, ListTempData, ListHarmfulData, ListDigData, ListGasData, ListLiquidData, ListWellCoverData }, + components: { ListNoiseData, ListWellLocaData, ListTempData, ListHarmfulData, ListDigData, ListGasData, ListLiquidData, ListWellCoverData }, data() { return { activeName: 'wellcover' @@ -74,6 +78,8 @@ this.$refs.harmfuldatacomp.fetchData() } else if (tab.name === 'gas') { this.$refs.gasdatacomp.fetchData() + } else if (tab.name === 'noise') { + this.$refs.noisedatacomp.fetchData() } else if (tab.name === 'temp') { this.$refs.tempdatacomp.fetchData() } else if (tab.name === 'dig') { @@ -97,6 +103,8 @@ this.activeName = 'dig' } else if (deviceType === '7') { this.activeName = 'wellloca' + } else if (deviceType === '8') { + this.activeName = 'noise' } }, // 计算那个是当前第一个tab @@ -115,6 +123,8 @@ this.activeName = 'temp' } else if (hasPermission('/welllocadata/list')) { this.activeName = 'wellloca' + } else if (hasPermission('/noisedata/list')) { + this.activeName = 'noise' } } } diff --git a/src/api/noiseconfig.js b/src/api/noiseconfig.js new file mode 100644 index 0000000..53328bf --- /dev/null +++ b/src/api/noiseconfig.js @@ -0,0 +1,42 @@ +/** + * 噪声配置接口 + */ +import request from '@/utils/request' +// 噪声配置查询 +export function getNoiseConfigList(params) { + return request({ + url: 'busConfig/digConfig/list', + method: 'get', + params + }) +} + +// 修改噪声配置 +export function editNoiseConfig(params) { + return request({ + url: 'busConfig/digConfig/config', + method: 'post', + params + }) +} + +// 批量导入 +export function batchImportNoiseConfig(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'busConfig/digConfig/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} +// 批量导出 +export function batchExportNoiseConfig(params) { + return request({ + url: 'busConfig/digConfig/batchExport', + method: 'get', + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/views/dataManage/dataManage.vue b/src/views/dataManage/dataManage.vue index 8cc5f60..a46b904 100644 --- a/src/views/dataManage/dataManage.vue +++ b/src/views/dataManage/dataManage.vue @@ -13,6 +13,9 @@ + + + @@ -36,10 +39,11 @@ import ListWellLocaData from './deviceData/listWellLocaData' import { parseUrl } from '@/utils/parseutils' import { hasPermission } from '@/utils/permission' +import ListNoiseData from './deviceData/listNoiseData' export default { name: 'DataManage', - components: { ListWellLocaData, ListTempData, ListHarmfulData, ListDigData, ListGasData, ListLiquidData, ListWellCoverData }, + components: { ListNoiseData, ListWellLocaData, ListTempData, ListHarmfulData, ListDigData, ListGasData, ListLiquidData, ListWellCoverData }, data() { return { activeName: 'wellcover' @@ -74,6 +78,8 @@ this.$refs.harmfuldatacomp.fetchData() } else if (tab.name === 'gas') { this.$refs.gasdatacomp.fetchData() + } else if (tab.name === 'noise') { + this.$refs.noisedatacomp.fetchData() } else if (tab.name === 'temp') { this.$refs.tempdatacomp.fetchData() } else if (tab.name === 'dig') { @@ -97,6 +103,8 @@ this.activeName = 'dig' } else if (deviceType === '7') { this.activeName = 'wellloca' + } else if (deviceType === '8') { + this.activeName = 'noise' } }, // 计算那个是当前第一个tab @@ -115,6 +123,8 @@ this.activeName = 'temp' } else if (hasPermission('/welllocadata/list')) { this.activeName = 'wellloca' + } else if (hasPermission('/noisedata/list')) { + this.activeName = 'noise' } } } diff --git a/src/views/dataManage/deviceData/listNoiseData.vue b/src/views/dataManage/deviceData/listNoiseData.vue new file mode 100644 index 0000000..c1d02a9 --- /dev/null +++ b/src/views/dataManage/deviceData/listNoiseData.vue @@ -0,0 +1,281 @@ + + + + + + + + + + + + + + + + 搜索 + + + + + + + 数据列表 + + 导出记录 + + + + + + + + {{ scope.row[column.value] }} + {{ scope.row[column.value] }} + + + + + + + + + + + + + + diff --git a/src/api/noiseconfig.js b/src/api/noiseconfig.js new file mode 100644 index 0000000..53328bf --- /dev/null +++ b/src/api/noiseconfig.js @@ -0,0 +1,42 @@ +/** + * 噪声配置接口 + */ +import request from '@/utils/request' +// 噪声配置查询 +export function getNoiseConfigList(params) { + return request({ + url: 'busConfig/digConfig/list', + method: 'get', + params + }) +} + +// 修改噪声配置 +export function editNoiseConfig(params) { + return request({ + url: 'busConfig/digConfig/config', + method: 'post', + params + }) +} + +// 批量导入 +export function batchImportNoiseConfig(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'busConfig/digConfig/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} +// 批量导出 +export function batchExportNoiseConfig(params) { + return request({ + url: 'busConfig/digConfig/batchExport', + method: 'get', + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/views/dataManage/dataManage.vue b/src/views/dataManage/dataManage.vue index 8cc5f60..a46b904 100644 --- a/src/views/dataManage/dataManage.vue +++ b/src/views/dataManage/dataManage.vue @@ -13,6 +13,9 @@ + + + @@ -36,10 +39,11 @@ import ListWellLocaData from './deviceData/listWellLocaData' import { parseUrl } from '@/utils/parseutils' import { hasPermission } from '@/utils/permission' +import ListNoiseData from './deviceData/listNoiseData' export default { name: 'DataManage', - components: { ListWellLocaData, ListTempData, ListHarmfulData, ListDigData, ListGasData, ListLiquidData, ListWellCoverData }, + components: { ListNoiseData, ListWellLocaData, ListTempData, ListHarmfulData, ListDigData, ListGasData, ListLiquidData, ListWellCoverData }, data() { return { activeName: 'wellcover' @@ -74,6 +78,8 @@ this.$refs.harmfuldatacomp.fetchData() } else if (tab.name === 'gas') { this.$refs.gasdatacomp.fetchData() + } else if (tab.name === 'noise') { + this.$refs.noisedatacomp.fetchData() } else if (tab.name === 'temp') { this.$refs.tempdatacomp.fetchData() } else if (tab.name === 'dig') { @@ -97,6 +103,8 @@ this.activeName = 'dig' } else if (deviceType === '7') { this.activeName = 'wellloca' + } else if (deviceType === '8') { + this.activeName = 'noise' } }, // 计算那个是当前第一个tab @@ -115,6 +123,8 @@ this.activeName = 'temp' } else if (hasPermission('/welllocadata/list')) { this.activeName = 'wellloca' + } else if (hasPermission('/noisedata/list')) { + this.activeName = 'noise' } } } diff --git a/src/views/dataManage/deviceData/listNoiseData.vue b/src/views/dataManage/deviceData/listNoiseData.vue new file mode 100644 index 0000000..c1d02a9 --- /dev/null +++ b/src/views/dataManage/deviceData/listNoiseData.vue @@ -0,0 +1,281 @@ + + + + + + + + + + + + + + + + 搜索 + + + + + + + 数据列表 + + 导出记录 + + + + + + + + {{ scope.row[column.value] }} + {{ scope.row[column.value] }} + + + + + + + + + + + + + + diff --git a/src/views/deviceConfig/components/editNoiseConfig.vue b/src/views/deviceConfig/components/editNoiseConfig.vue new file mode 100644 index 0000000..298a752 --- /dev/null +++ b/src/views/deviceConfig/components/editNoiseConfig.vue @@ -0,0 +1,312 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/api/noiseconfig.js b/src/api/noiseconfig.js new file mode 100644 index 0000000..53328bf --- /dev/null +++ b/src/api/noiseconfig.js @@ -0,0 +1,42 @@ +/** + * 噪声配置接口 + */ +import request from '@/utils/request' +// 噪声配置查询 +export function getNoiseConfigList(params) { + return request({ + url: 'busConfig/digConfig/list', + method: 'get', + params + }) +} + +// 修改噪声配置 +export function editNoiseConfig(params) { + return request({ + url: 'busConfig/digConfig/config', + method: 'post', + params + }) +} + +// 批量导入 +export function batchImportNoiseConfig(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'busConfig/digConfig/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} +// 批量导出 +export function batchExportNoiseConfig(params) { + return request({ + url: 'busConfig/digConfig/batchExport', + method: 'get', + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/views/dataManage/dataManage.vue b/src/views/dataManage/dataManage.vue index 8cc5f60..a46b904 100644 --- a/src/views/dataManage/dataManage.vue +++ b/src/views/dataManage/dataManage.vue @@ -13,6 +13,9 @@ + + + @@ -36,10 +39,11 @@ import ListWellLocaData from './deviceData/listWellLocaData' import { parseUrl } from '@/utils/parseutils' import { hasPermission } from '@/utils/permission' +import ListNoiseData from './deviceData/listNoiseData' export default { name: 'DataManage', - components: { ListWellLocaData, ListTempData, ListHarmfulData, ListDigData, ListGasData, ListLiquidData, ListWellCoverData }, + components: { ListNoiseData, ListWellLocaData, ListTempData, ListHarmfulData, ListDigData, ListGasData, ListLiquidData, ListWellCoverData }, data() { return { activeName: 'wellcover' @@ -74,6 +78,8 @@ this.$refs.harmfuldatacomp.fetchData() } else if (tab.name === 'gas') { this.$refs.gasdatacomp.fetchData() + } else if (tab.name === 'noise') { + this.$refs.noisedatacomp.fetchData() } else if (tab.name === 'temp') { this.$refs.tempdatacomp.fetchData() } else if (tab.name === 'dig') { @@ -97,6 +103,8 @@ this.activeName = 'dig' } else if (deviceType === '7') { this.activeName = 'wellloca' + } else if (deviceType === '8') { + this.activeName = 'noise' } }, // 计算那个是当前第一个tab @@ -115,6 +123,8 @@ this.activeName = 'temp' } else if (hasPermission('/welllocadata/list')) { this.activeName = 'wellloca' + } else if (hasPermission('/noisedata/list')) { + this.activeName = 'noise' } } } diff --git a/src/views/dataManage/deviceData/listNoiseData.vue b/src/views/dataManage/deviceData/listNoiseData.vue new file mode 100644 index 0000000..c1d02a9 --- /dev/null +++ b/src/views/dataManage/deviceData/listNoiseData.vue @@ -0,0 +1,281 @@ + + + + + + + + + + + + + + + + 搜索 + + + + + + + 数据列表 + + 导出记录 + + + + + + + + {{ scope.row[column.value] }} + {{ scope.row[column.value] }} + + + + + + + + + + + + + + diff --git a/src/views/deviceConfig/components/editNoiseConfig.vue b/src/views/deviceConfig/components/editNoiseConfig.vue new file mode 100644 index 0000000..298a752 --- /dev/null +++ b/src/views/deviceConfig/components/editNoiseConfig.vue @@ -0,0 +1,312 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/deviceConfig/components/listNoiseConfig.vue b/src/views/deviceConfig/components/listNoiseConfig.vue new file mode 100644 index 0000000..269a16f --- /dev/null +++ b/src/views/deviceConfig/components/listNoiseConfig.vue @@ -0,0 +1,336 @@ + + + + + + + + + + + + + 搜索 + + + + + + + 数据列表 + + 导出记录 + + + 批量导入 + + 新增 + + + + + + + + {{ scope.row[column.value] }} + + + + + 编辑 + + + + + + + + + + + + + + + diff --git a/src/api/noiseconfig.js b/src/api/noiseconfig.js new file mode 100644 index 0000000..53328bf --- /dev/null +++ b/src/api/noiseconfig.js @@ -0,0 +1,42 @@ +/** + * 噪声配置接口 + */ +import request from '@/utils/request' +// 噪声配置查询 +export function getNoiseConfigList(params) { + return request({ + url: 'busConfig/digConfig/list', + method: 'get', + params + }) +} + +// 修改噪声配置 +export function editNoiseConfig(params) { + return request({ + url: 'busConfig/digConfig/config', + method: 'post', + params + }) +} + +// 批量导入 +export function batchImportNoiseConfig(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'busConfig/digConfig/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} +// 批量导出 +export function batchExportNoiseConfig(params) { + return request({ + url: 'busConfig/digConfig/batchExport', + method: 'get', + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/views/dataManage/dataManage.vue b/src/views/dataManage/dataManage.vue index 8cc5f60..a46b904 100644 --- a/src/views/dataManage/dataManage.vue +++ b/src/views/dataManage/dataManage.vue @@ -13,6 +13,9 @@ + + + @@ -36,10 +39,11 @@ import ListWellLocaData from './deviceData/listWellLocaData' import { parseUrl } from '@/utils/parseutils' import { hasPermission } from '@/utils/permission' +import ListNoiseData from './deviceData/listNoiseData' export default { name: 'DataManage', - components: { ListWellLocaData, ListTempData, ListHarmfulData, ListDigData, ListGasData, ListLiquidData, ListWellCoverData }, + components: { ListNoiseData, ListWellLocaData, ListTempData, ListHarmfulData, ListDigData, ListGasData, ListLiquidData, ListWellCoverData }, data() { return { activeName: 'wellcover' @@ -74,6 +78,8 @@ this.$refs.harmfuldatacomp.fetchData() } else if (tab.name === 'gas') { this.$refs.gasdatacomp.fetchData() + } else if (tab.name === 'noise') { + this.$refs.noisedatacomp.fetchData() } else if (tab.name === 'temp') { this.$refs.tempdatacomp.fetchData() } else if (tab.name === 'dig') { @@ -97,6 +103,8 @@ this.activeName = 'dig' } else if (deviceType === '7') { this.activeName = 'wellloca' + } else if (deviceType === '8') { + this.activeName = 'noise' } }, // 计算那个是当前第一个tab @@ -115,6 +123,8 @@ this.activeName = 'temp' } else if (hasPermission('/welllocadata/list')) { this.activeName = 'wellloca' + } else if (hasPermission('/noisedata/list')) { + this.activeName = 'noise' } } } diff --git a/src/views/dataManage/deviceData/listNoiseData.vue b/src/views/dataManage/deviceData/listNoiseData.vue new file mode 100644 index 0000000..c1d02a9 --- /dev/null +++ b/src/views/dataManage/deviceData/listNoiseData.vue @@ -0,0 +1,281 @@ + + + + + + + + + + + + + + + + 搜索 + + + + + + + 数据列表 + + 导出记录 + + + + + + + + {{ scope.row[column.value] }} + {{ scope.row[column.value] }} + + + + + + + + + + + + + + diff --git a/src/views/deviceConfig/components/editNoiseConfig.vue b/src/views/deviceConfig/components/editNoiseConfig.vue new file mode 100644 index 0000000..298a752 --- /dev/null +++ b/src/views/deviceConfig/components/editNoiseConfig.vue @@ -0,0 +1,312 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/deviceConfig/components/listNoiseConfig.vue b/src/views/deviceConfig/components/listNoiseConfig.vue new file mode 100644 index 0000000..269a16f --- /dev/null +++ b/src/views/deviceConfig/components/listNoiseConfig.vue @@ -0,0 +1,336 @@ + + + + + + + + + + + + + 搜索 + + + + + + + 数据列表 + + 导出记录 + + + 批量导入 + + 新增 + + + + + + + + {{ scope.row[column.value] }} + + + + + 编辑 + + + + + + + + + + + + + + + diff --git a/src/views/deviceConfig/deviceConfig.vue b/src/views/deviceConfig/deviceConfig.vue index fc8847a..e97efdf 100644 --- a/src/views/deviceConfig/deviceConfig.vue +++ b/src/views/deviceConfig/deviceConfig.vue @@ -16,6 +16,9 @@ + + + @@ -26,10 +29,11 @@ import ListHarmfulConfig from './components/listHarmfulConfig' import ListTempConfig from './components/listTempConfig' import ListDigConfig from './components/listDigConfig' +import ListNoiseConfig from './components/listNoiseConfig' import { hasPermission } from '@/utils/permission' export default { name: 'DeviceConfig', - components: { ListDigConfig, ListTempConfig, ListHarmfulConfig, ListGasConfig, ListLiquidConfig }, + components: { ListNoiseConfig, ListDigConfig, ListTempConfig, ListHarmfulConfig, ListGasConfig, ListLiquidConfig }, data() { return { activeName: 'liquid' @@ -50,6 +54,8 @@ this.$refs.tempConfig.fetchData() } else if (tab.name === 'dig') { this.$refs.digConfig.fetchData() + } else if (tab.name === 'noise') { + this.$refs.noiseConfig.fetchData() } }, // 计算那个是当前第一个tab @@ -64,6 +70,8 @@ this.activeName = 'temp' } else if (hasPermission('/busConfig/digConfig/list')) { this.activeName = 'dig' + } else if (hasPermission('/busConfig/noiseConfig/list')) { + this.activeName = 'noise' } } }