diff --git a/src/api/data.js b/src/api/data.js index afeee10..055dbba 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -26,6 +26,14 @@ params }) } +// 管盯数据查询 +export function getTubeData(params) { + return request({ + url: 'tubedata/list', + method: 'get', + params + }) +} // 开挖数据查询 export function getDigData(params) { return request({ @@ -100,6 +108,17 @@ }) } +// 批量导出管盯数据 +export function batchExportTubeData(params) { + return request({ + url: 'tubedata/export', + method: 'get', + timeout: 120000, // 120s,2分钟 + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + // 批量导出开挖数据 export function batchExportDigData(params) { return request({ diff --git a/src/api/data.js b/src/api/data.js index afeee10..055dbba 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -26,6 +26,14 @@ params }) } +// 管盯数据查询 +export function getTubeData(params) { + return request({ + url: 'tubedata/list', + method: 'get', + params + }) +} // 开挖数据查询 export function getDigData(params) { return request({ @@ -100,6 +108,17 @@ }) } +// 批量导出管盯数据 +export function batchExportTubeData(params) { + return request({ + url: 'tubedata/export', + method: 'get', + timeout: 120000, // 120s,2分钟 + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + // 批量导出开挖数据 export function batchExportDigData(params) { return request({ diff --git a/src/api/tubeconfig.js b/src/api/tubeconfig.js new file mode 100644 index 0000000..bda2d74 --- /dev/null +++ b/src/api/tubeconfig.js @@ -0,0 +1,42 @@ +/** + * 燃气配置接口 + */ +import request from '@/utils/request' +// 燃气配置查询 +export function getTubeConfigList(params) { + return request({ + url: 'busConfig/tubeConfig/list', + method: 'get', + params + }) +} + +// 修改燃气配置 +export function editTubeConfig(params) { + return request({ + url: 'busConfig/tubeConfig/config', + method: 'post', + params + }) +} + +// 批量导入 +export function batchImportTubeConfig(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'busConfig/tubeConfig/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} +// 批量导出 +export function batchExportTubeConfig(params) { + return request({ + url: 'busConfig/tubeConfig/batchExport', + method: 'get', + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/data.js b/src/api/data.js index afeee10..055dbba 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -26,6 +26,14 @@ params }) } +// 管盯数据查询 +export function getTubeData(params) { + return request({ + url: 'tubedata/list', + method: 'get', + params + }) +} // 开挖数据查询 export function getDigData(params) { return request({ @@ -100,6 +108,17 @@ }) } +// 批量导出管盯数据 +export function batchExportTubeData(params) { + return request({ + url: 'tubedata/export', + method: 'get', + timeout: 120000, // 120s,2分钟 + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + // 批量导出开挖数据 export function batchExportDigData(params) { return request({ diff --git a/src/api/tubeconfig.js b/src/api/tubeconfig.js new file mode 100644 index 0000000..bda2d74 --- /dev/null +++ b/src/api/tubeconfig.js @@ -0,0 +1,42 @@ +/** + * 燃气配置接口 + */ +import request from '@/utils/request' +// 燃气配置查询 +export function getTubeConfigList(params) { + return request({ + url: 'busConfig/tubeConfig/list', + method: 'get', + params + }) +} + +// 修改燃气配置 +export function editTubeConfig(params) { + return request({ + url: 'busConfig/tubeConfig/config', + method: 'post', + params + }) +} + +// 批量导入 +export function batchImportTubeConfig(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'busConfig/tubeConfig/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} +// 批量导出 +export function batchExportTubeConfig(params) { + return request({ + url: 'busConfig/tubeConfig/batchExport', + method: 'get', + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/views/dataManage/dataManage.vue b/src/views/dataManage/dataManage.vue index a46b904..3d46e8a 100644 --- a/src/views/dataManage/dataManage.vue +++ b/src/views/dataManage/dataManage.vue @@ -25,6 +25,9 @@ + + + @@ -40,10 +43,11 @@ import { parseUrl } from '@/utils/parseutils' import { hasPermission } from '@/utils/permission' import ListNoiseData from './deviceData/listNoiseData' +import ListTubeData from './deviceData/listTubeData' export default { name: 'DataManage', - components: { ListNoiseData, ListWellLocaData, ListTempData, ListHarmfulData, ListDigData, ListGasData, ListLiquidData, ListWellCoverData }, + components: { ListTubeData, ListNoiseData, ListWellLocaData, ListTempData, ListHarmfulData, ListDigData, ListGasData, ListLiquidData, ListWellCoverData }, data() { return { activeName: 'wellcover' @@ -86,6 +90,8 @@ this.$refs.digdatacomp.fetchData() } else if (tab.name === 'wellloca') { this.$refs.welllocadatacomp.fetchData() + } else if (tab.name === 'tube') { + this.$refs.tubedatacomp.fetchData() } }, changeTab(deviceType) { @@ -105,6 +111,8 @@ this.activeName = 'wellloca' } else if (deviceType === '8') { this.activeName = 'noise' + } else if (deviceType === '9') { + this.activeName = 'tube' } }, // 计算那个是当前第一个tab @@ -125,6 +133,8 @@ this.activeName = 'wellloca' } else if (hasPermission('/noisedata/list')) { this.activeName = 'noise' + } else if (hasPermission('/tubedata/list')) { + this.activeName = 'tube' } } } diff --git a/src/api/data.js b/src/api/data.js index afeee10..055dbba 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -26,6 +26,14 @@ params }) } +// 管盯数据查询 +export function getTubeData(params) { + return request({ + url: 'tubedata/list', + method: 'get', + params + }) +} // 开挖数据查询 export function getDigData(params) { return request({ @@ -100,6 +108,17 @@ }) } +// 批量导出管盯数据 +export function batchExportTubeData(params) { + return request({ + url: 'tubedata/export', + method: 'get', + timeout: 120000, // 120s,2分钟 + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + // 批量导出开挖数据 export function batchExportDigData(params) { return request({ diff --git a/src/api/tubeconfig.js b/src/api/tubeconfig.js new file mode 100644 index 0000000..bda2d74 --- /dev/null +++ b/src/api/tubeconfig.js @@ -0,0 +1,42 @@ +/** + * 燃气配置接口 + */ +import request from '@/utils/request' +// 燃气配置查询 +export function getTubeConfigList(params) { + return request({ + url: 'busConfig/tubeConfig/list', + method: 'get', + params + }) +} + +// 修改燃气配置 +export function editTubeConfig(params) { + return request({ + url: 'busConfig/tubeConfig/config', + method: 'post', + params + }) +} + +// 批量导入 +export function batchImportTubeConfig(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'busConfig/tubeConfig/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} +// 批量导出 +export function batchExportTubeConfig(params) { + return request({ + url: 'busConfig/tubeConfig/batchExport', + method: 'get', + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/views/dataManage/dataManage.vue b/src/views/dataManage/dataManage.vue index a46b904..3d46e8a 100644 --- a/src/views/dataManage/dataManage.vue +++ b/src/views/dataManage/dataManage.vue @@ -25,6 +25,9 @@ + + + @@ -40,10 +43,11 @@ import { parseUrl } from '@/utils/parseutils' import { hasPermission } from '@/utils/permission' import ListNoiseData from './deviceData/listNoiseData' +import ListTubeData from './deviceData/listTubeData' export default { name: 'DataManage', - components: { ListNoiseData, ListWellLocaData, ListTempData, ListHarmfulData, ListDigData, ListGasData, ListLiquidData, ListWellCoverData }, + components: { ListTubeData, ListNoiseData, ListWellLocaData, ListTempData, ListHarmfulData, ListDigData, ListGasData, ListLiquidData, ListWellCoverData }, data() { return { activeName: 'wellcover' @@ -86,6 +90,8 @@ this.$refs.digdatacomp.fetchData() } else if (tab.name === 'wellloca') { this.$refs.welllocadatacomp.fetchData() + } else if (tab.name === 'tube') { + this.$refs.tubedatacomp.fetchData() } }, changeTab(deviceType) { @@ -105,6 +111,8 @@ this.activeName = 'wellloca' } else if (deviceType === '8') { this.activeName = 'noise' + } else if (deviceType === '9') { + this.activeName = 'tube' } }, // 计算那个是当前第一个tab @@ -125,6 +133,8 @@ this.activeName = 'wellloca' } else if (hasPermission('/noisedata/list')) { this.activeName = 'noise' + } else if (hasPermission('/tubedata/list')) { + this.activeName = 'tube' } } } diff --git a/src/views/dataManage/deviceData/listTubeData.vue b/src/views/dataManage/deviceData/listTubeData.vue new file mode 100644 index 0000000..f4a0477 --- /dev/null +++ b/src/views/dataManage/deviceData/listTubeData.vue @@ -0,0 +1,279 @@ + + + + + + + + + + + + + + + + 搜索 + + + + + + + 数据列表 + + 导出记录 + + + + + + + + {{ scope.row[column.value] }} + {{ scope.row[column.value] }} + + + + + + + + + + + + + + diff --git a/src/api/data.js b/src/api/data.js index afeee10..055dbba 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -26,6 +26,14 @@ params }) } +// 管盯数据查询 +export function getTubeData(params) { + return request({ + url: 'tubedata/list', + method: 'get', + params + }) +} // 开挖数据查询 export function getDigData(params) { return request({ @@ -100,6 +108,17 @@ }) } +// 批量导出管盯数据 +export function batchExportTubeData(params) { + return request({ + url: 'tubedata/export', + method: 'get', + timeout: 120000, // 120s,2分钟 + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + // 批量导出开挖数据 export function batchExportDigData(params) { return request({ diff --git a/src/api/tubeconfig.js b/src/api/tubeconfig.js new file mode 100644 index 0000000..bda2d74 --- /dev/null +++ b/src/api/tubeconfig.js @@ -0,0 +1,42 @@ +/** + * 燃气配置接口 + */ +import request from '@/utils/request' +// 燃气配置查询 +export function getTubeConfigList(params) { + return request({ + url: 'busConfig/tubeConfig/list', + method: 'get', + params + }) +} + +// 修改燃气配置 +export function editTubeConfig(params) { + return request({ + url: 'busConfig/tubeConfig/config', + method: 'post', + params + }) +} + +// 批量导入 +export function batchImportTubeConfig(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'busConfig/tubeConfig/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} +// 批量导出 +export function batchExportTubeConfig(params) { + return request({ + url: 'busConfig/tubeConfig/batchExport', + method: 'get', + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/views/dataManage/dataManage.vue b/src/views/dataManage/dataManage.vue index a46b904..3d46e8a 100644 --- a/src/views/dataManage/dataManage.vue +++ b/src/views/dataManage/dataManage.vue @@ -25,6 +25,9 @@ + + + @@ -40,10 +43,11 @@ import { parseUrl } from '@/utils/parseutils' import { hasPermission } from '@/utils/permission' import ListNoiseData from './deviceData/listNoiseData' +import ListTubeData from './deviceData/listTubeData' export default { name: 'DataManage', - components: { ListNoiseData, ListWellLocaData, ListTempData, ListHarmfulData, ListDigData, ListGasData, ListLiquidData, ListWellCoverData }, + components: { ListTubeData, ListNoiseData, ListWellLocaData, ListTempData, ListHarmfulData, ListDigData, ListGasData, ListLiquidData, ListWellCoverData }, data() { return { activeName: 'wellcover' @@ -86,6 +90,8 @@ this.$refs.digdatacomp.fetchData() } else if (tab.name === 'wellloca') { this.$refs.welllocadatacomp.fetchData() + } else if (tab.name === 'tube') { + this.$refs.tubedatacomp.fetchData() } }, changeTab(deviceType) { @@ -105,6 +111,8 @@ this.activeName = 'wellloca' } else if (deviceType === '8') { this.activeName = 'noise' + } else if (deviceType === '9') { + this.activeName = 'tube' } }, // 计算那个是当前第一个tab @@ -125,6 +133,8 @@ this.activeName = 'wellloca' } else if (hasPermission('/noisedata/list')) { this.activeName = 'noise' + } else if (hasPermission('/tubedata/list')) { + this.activeName = 'tube' } } } diff --git a/src/views/dataManage/deviceData/listTubeData.vue b/src/views/dataManage/deviceData/listTubeData.vue new file mode 100644 index 0000000..f4a0477 --- /dev/null +++ b/src/views/dataManage/deviceData/listTubeData.vue @@ -0,0 +1,279 @@ + + + + + + + + + + + + + + + + 搜索 + + + + + + + 数据列表 + + 导出记录 + + + + + + + + {{ scope.row[column.value] }} + {{ scope.row[column.value] }} + + + + + + + + + + + + + + diff --git a/src/views/deviceConfig/components/editTubeConfig.vue b/src/views/deviceConfig/components/editTubeConfig.vue new file mode 100644 index 0000000..0651c53 --- /dev/null +++ b/src/views/deviceConfig/components/editTubeConfig.vue @@ -0,0 +1,285 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/api/data.js b/src/api/data.js index afeee10..055dbba 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -26,6 +26,14 @@ params }) } +// 管盯数据查询 +export function getTubeData(params) { + return request({ + url: 'tubedata/list', + method: 'get', + params + }) +} // 开挖数据查询 export function getDigData(params) { return request({ @@ -100,6 +108,17 @@ }) } +// 批量导出管盯数据 +export function batchExportTubeData(params) { + return request({ + url: 'tubedata/export', + method: 'get', + timeout: 120000, // 120s,2分钟 + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + // 批量导出开挖数据 export function batchExportDigData(params) { return request({ diff --git a/src/api/tubeconfig.js b/src/api/tubeconfig.js new file mode 100644 index 0000000..bda2d74 --- /dev/null +++ b/src/api/tubeconfig.js @@ -0,0 +1,42 @@ +/** + * 燃气配置接口 + */ +import request from '@/utils/request' +// 燃气配置查询 +export function getTubeConfigList(params) { + return request({ + url: 'busConfig/tubeConfig/list', + method: 'get', + params + }) +} + +// 修改燃气配置 +export function editTubeConfig(params) { + return request({ + url: 'busConfig/tubeConfig/config', + method: 'post', + params + }) +} + +// 批量导入 +export function batchImportTubeConfig(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'busConfig/tubeConfig/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} +// 批量导出 +export function batchExportTubeConfig(params) { + return request({ + url: 'busConfig/tubeConfig/batchExport', + method: 'get', + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/views/dataManage/dataManage.vue b/src/views/dataManage/dataManage.vue index a46b904..3d46e8a 100644 --- a/src/views/dataManage/dataManage.vue +++ b/src/views/dataManage/dataManage.vue @@ -25,6 +25,9 @@ + + + @@ -40,10 +43,11 @@ import { parseUrl } from '@/utils/parseutils' import { hasPermission } from '@/utils/permission' import ListNoiseData from './deviceData/listNoiseData' +import ListTubeData from './deviceData/listTubeData' export default { name: 'DataManage', - components: { ListNoiseData, ListWellLocaData, ListTempData, ListHarmfulData, ListDigData, ListGasData, ListLiquidData, ListWellCoverData }, + components: { ListTubeData, ListNoiseData, ListWellLocaData, ListTempData, ListHarmfulData, ListDigData, ListGasData, ListLiquidData, ListWellCoverData }, data() { return { activeName: 'wellcover' @@ -86,6 +90,8 @@ this.$refs.digdatacomp.fetchData() } else if (tab.name === 'wellloca') { this.$refs.welllocadatacomp.fetchData() + } else if (tab.name === 'tube') { + this.$refs.tubedatacomp.fetchData() } }, changeTab(deviceType) { @@ -105,6 +111,8 @@ this.activeName = 'wellloca' } else if (deviceType === '8') { this.activeName = 'noise' + } else if (deviceType === '9') { + this.activeName = 'tube' } }, // 计算那个是当前第一个tab @@ -125,6 +133,8 @@ this.activeName = 'wellloca' } else if (hasPermission('/noisedata/list')) { this.activeName = 'noise' + } else if (hasPermission('/tubedata/list')) { + this.activeName = 'tube' } } } diff --git a/src/views/dataManage/deviceData/listTubeData.vue b/src/views/dataManage/deviceData/listTubeData.vue new file mode 100644 index 0000000..f4a0477 --- /dev/null +++ b/src/views/dataManage/deviceData/listTubeData.vue @@ -0,0 +1,279 @@ + + + + + + + + + + + + + + + + 搜索 + + + + + + + 数据列表 + + 导出记录 + + + + + + + + {{ scope.row[column.value] }} + {{ scope.row[column.value] }} + + + + + + + + + + + + + + diff --git a/src/views/deviceConfig/components/editTubeConfig.vue b/src/views/deviceConfig/components/editTubeConfig.vue new file mode 100644 index 0000000..0651c53 --- /dev/null +++ b/src/views/deviceConfig/components/editTubeConfig.vue @@ -0,0 +1,285 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/deviceConfig/components/listTubeConfig.vue b/src/views/deviceConfig/components/listTubeConfig.vue new file mode 100644 index 0000000..8f760f5 --- /dev/null +++ b/src/views/deviceConfig/components/listTubeConfig.vue @@ -0,0 +1,329 @@ + + + + + + + + + + + + + 搜索 + + + + + + + 数据列表 + + 导出记录 + + + 批量导入 + + 新增 + + + + + + + + {{ scope.row[column.value] }} + + + + + 编辑 + + + + + + + + + + + + + + + diff --git a/src/api/data.js b/src/api/data.js index afeee10..055dbba 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -26,6 +26,14 @@ params }) } +// 管盯数据查询 +export function getTubeData(params) { + return request({ + url: 'tubedata/list', + method: 'get', + params + }) +} // 开挖数据查询 export function getDigData(params) { return request({ @@ -100,6 +108,17 @@ }) } +// 批量导出管盯数据 +export function batchExportTubeData(params) { + return request({ + url: 'tubedata/export', + method: 'get', + timeout: 120000, // 120s,2分钟 + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + // 批量导出开挖数据 export function batchExportDigData(params) { return request({ diff --git a/src/api/tubeconfig.js b/src/api/tubeconfig.js new file mode 100644 index 0000000..bda2d74 --- /dev/null +++ b/src/api/tubeconfig.js @@ -0,0 +1,42 @@ +/** + * 燃气配置接口 + */ +import request from '@/utils/request' +// 燃气配置查询 +export function getTubeConfigList(params) { + return request({ + url: 'busConfig/tubeConfig/list', + method: 'get', + params + }) +} + +// 修改燃气配置 +export function editTubeConfig(params) { + return request({ + url: 'busConfig/tubeConfig/config', + method: 'post', + params + }) +} + +// 批量导入 +export function batchImportTubeConfig(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'busConfig/tubeConfig/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} +// 批量导出 +export function batchExportTubeConfig(params) { + return request({ + url: 'busConfig/tubeConfig/batchExport', + method: 'get', + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/views/dataManage/dataManage.vue b/src/views/dataManage/dataManage.vue index a46b904..3d46e8a 100644 --- a/src/views/dataManage/dataManage.vue +++ b/src/views/dataManage/dataManage.vue @@ -25,6 +25,9 @@ + + + @@ -40,10 +43,11 @@ import { parseUrl } from '@/utils/parseutils' import { hasPermission } from '@/utils/permission' import ListNoiseData from './deviceData/listNoiseData' +import ListTubeData from './deviceData/listTubeData' export default { name: 'DataManage', - components: { ListNoiseData, ListWellLocaData, ListTempData, ListHarmfulData, ListDigData, ListGasData, ListLiquidData, ListWellCoverData }, + components: { ListTubeData, ListNoiseData, ListWellLocaData, ListTempData, ListHarmfulData, ListDigData, ListGasData, ListLiquidData, ListWellCoverData }, data() { return { activeName: 'wellcover' @@ -86,6 +90,8 @@ this.$refs.digdatacomp.fetchData() } else if (tab.name === 'wellloca') { this.$refs.welllocadatacomp.fetchData() + } else if (tab.name === 'tube') { + this.$refs.tubedatacomp.fetchData() } }, changeTab(deviceType) { @@ -105,6 +111,8 @@ this.activeName = 'wellloca' } else if (deviceType === '8') { this.activeName = 'noise' + } else if (deviceType === '9') { + this.activeName = 'tube' } }, // 计算那个是当前第一个tab @@ -125,6 +133,8 @@ this.activeName = 'wellloca' } else if (hasPermission('/noisedata/list')) { this.activeName = 'noise' + } else if (hasPermission('/tubedata/list')) { + this.activeName = 'tube' } } } diff --git a/src/views/dataManage/deviceData/listTubeData.vue b/src/views/dataManage/deviceData/listTubeData.vue new file mode 100644 index 0000000..f4a0477 --- /dev/null +++ b/src/views/dataManage/deviceData/listTubeData.vue @@ -0,0 +1,279 @@ + + + + + + + + + + + + + + + + 搜索 + + + + + + + 数据列表 + + 导出记录 + + + + + + + + {{ scope.row[column.value] }} + {{ scope.row[column.value] }} + + + + + + + + + + + + + + diff --git a/src/views/deviceConfig/components/editTubeConfig.vue b/src/views/deviceConfig/components/editTubeConfig.vue new file mode 100644 index 0000000..0651c53 --- /dev/null +++ b/src/views/deviceConfig/components/editTubeConfig.vue @@ -0,0 +1,285 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/deviceConfig/components/listTubeConfig.vue b/src/views/deviceConfig/components/listTubeConfig.vue new file mode 100644 index 0000000..8f760f5 --- /dev/null +++ b/src/views/deviceConfig/components/listTubeConfig.vue @@ -0,0 +1,329 @@ + + + + + + + + + + + + + 搜索 + + + + + + + 数据列表 + + 导出记录 + + + 批量导入 + + 新增 + + + + + + + + {{ scope.row[column.value] }} + + + + + 编辑 + + + + + + + + + + + + + + + diff --git a/src/views/deviceConfig/deviceConfig.vue b/src/views/deviceConfig/deviceConfig.vue index f521b1c..b4158e5 100644 --- a/src/views/deviceConfig/deviceConfig.vue +++ b/src/views/deviceConfig/deviceConfig.vue @@ -16,9 +16,12 @@ - + + + + @@ -31,9 +34,10 @@ import ListDigConfig from './components/listDigConfig' import ListNoiseConfig from './components/listNoiseConfig' import { hasPermission } from '@/utils/permission' +import ListTubeConfig from './components/listTubeConfig' export default { name: 'DeviceConfig', - components: { ListNoiseConfig, ListDigConfig, ListTempConfig, ListHarmfulConfig, ListGasConfig, ListLiquidConfig }, + components: { ListTubeConfig, ListNoiseConfig, ListDigConfig, ListTempConfig, ListHarmfulConfig, ListGasConfig, ListLiquidConfig }, data() { return { activeName: 'liquid' @@ -56,6 +60,8 @@ this.$refs.digConfig.fetchData() } else if (tab.name === 'noise') { this.$refs.noiseConfig.fetchData() + } else if (tab.name === 'tube') { + this.$refs.tubeConfig.fetchData() } }, // 计算那个是当前第一个tab @@ -72,6 +78,8 @@ this.activeName = 'dig' } else if (hasPermission('/busConfig/noiseConfig/list')) { this.activeName = 'noise' + } else if (hasPermission('/busConfig/tubeConfig/list')) { + this.activeName = 'tube' } } }