diff --git a/config/dev.env.js b/config/dev.env.js index 9f671cf..e4d1bb4 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://192.168.0.212:14537"' - BASE_API: '"http://119.254.103.80:14537"' - // BASE_API: '"http://192.168.0.225:8083"' - // BASE_API: '"http://127.0.0.1:8083"' + BASE_API: '"http://192.168.0.212:8083"' + // BASE_API: '"http://10.9.39.8:8083"' + // BASE_API: '"http://119.254.103.80:14537"' + // BASE_API: '"http://192.168.0.244:8083"' }) diff --git a/config/dev.env.js b/config/dev.env.js index 9f671cf..e4d1bb4 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://192.168.0.212:14537"' - BASE_API: '"http://119.254.103.80:14537"' - // BASE_API: '"http://192.168.0.225:8083"' - // BASE_API: '"http://127.0.0.1:8083"' + BASE_API: '"http://192.168.0.212:8083"' + // BASE_API: '"http://10.9.39.8:8083"' + // BASE_API: '"http://119.254.103.80:14537"' + // BASE_API: '"http://192.168.0.244:8083"' }) diff --git a/config/index.js b/config/index.js index 113c70f..62e96dc 100644 --- a/config/index.js +++ b/config/index.js @@ -14,7 +14,7 @@ proxyTable: {}, // Various Dev Server settings - // host: '0.0.0.0', // can be overwritten by process.env.HOST + host: '0.0.0.0', // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined //是否自动打开浏览器 autoOpenBrowser: true, diff --git a/config/dev.env.js b/config/dev.env.js index 9f671cf..e4d1bb4 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://192.168.0.212:14537"' - BASE_API: '"http://119.254.103.80:14537"' - // BASE_API: '"http://192.168.0.225:8083"' - // BASE_API: '"http://127.0.0.1:8083"' + BASE_API: '"http://192.168.0.212:8083"' + // BASE_API: '"http://10.9.39.8:8083"' + // BASE_API: '"http://119.254.103.80:14537"' + // BASE_API: '"http://192.168.0.244:8083"' }) diff --git a/config/index.js b/config/index.js index 113c70f..62e96dc 100644 --- a/config/index.js +++ b/config/index.js @@ -14,7 +14,7 @@ proxyTable: {}, // Various Dev Server settings - // host: '0.0.0.0', // can be overwritten by process.env.HOST + host: '0.0.0.0', // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined //是否自动打开浏览器 autoOpenBrowser: true, diff --git a/config/prod.env.js b/config/prod.env.js index 488d501..2889ff7 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -2,5 +2,6 @@ module.exports = { NODE_ENV: '"production"', // BASE_API: '"http://119.254.103.80:14537"', + // BASE_API: '"http://192.168.0.212:8083"' BASE_API: '"http://127.0.0.1:8083"' } diff --git a/config/dev.env.js b/config/dev.env.js index 9f671cf..e4d1bb4 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://192.168.0.212:14537"' - BASE_API: '"http://119.254.103.80:14537"' - // BASE_API: '"http://192.168.0.225:8083"' - // BASE_API: '"http://127.0.0.1:8083"' + BASE_API: '"http://192.168.0.212:8083"' + // BASE_API: '"http://10.9.39.8:8083"' + // BASE_API: '"http://119.254.103.80:14537"' + // BASE_API: '"http://192.168.0.244:8083"' }) diff --git a/config/index.js b/config/index.js index 113c70f..62e96dc 100644 --- a/config/index.js +++ b/config/index.js @@ -14,7 +14,7 @@ proxyTable: {}, // Various Dev Server settings - // host: '0.0.0.0', // can be overwritten by process.env.HOST + host: '0.0.0.0', // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined //是否自动打开浏览器 autoOpenBrowser: true, diff --git a/config/prod.env.js b/config/prod.env.js index 488d501..2889ff7 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -2,5 +2,6 @@ module.exports = { NODE_ENV: '"production"', // BASE_API: '"http://119.254.103.80:14537"', + // BASE_API: '"http://192.168.0.212:8083"' BASE_API: '"http://127.0.0.1:8083"' } diff --git a/src/api/alarm.js b/src/api/alarm.js index 9357263..6a8bc10 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -46,6 +46,7 @@ return request({ url: 'alarm/export', method: 'get', + timeout: 60000, params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob }) diff --git a/config/dev.env.js b/config/dev.env.js index 9f671cf..e4d1bb4 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://192.168.0.212:14537"' - BASE_API: '"http://119.254.103.80:14537"' - // BASE_API: '"http://192.168.0.225:8083"' - // BASE_API: '"http://127.0.0.1:8083"' + BASE_API: '"http://192.168.0.212:8083"' + // BASE_API: '"http://10.9.39.8:8083"' + // BASE_API: '"http://119.254.103.80:14537"' + // BASE_API: '"http://192.168.0.244:8083"' }) diff --git a/config/index.js b/config/index.js index 113c70f..62e96dc 100644 --- a/config/index.js +++ b/config/index.js @@ -14,7 +14,7 @@ proxyTable: {}, // Various Dev Server settings - // host: '0.0.0.0', // can be overwritten by process.env.HOST + host: '0.0.0.0', // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined //是否自动打开浏览器 autoOpenBrowser: true, diff --git a/config/prod.env.js b/config/prod.env.js index 488d501..2889ff7 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -2,5 +2,6 @@ module.exports = { NODE_ENV: '"production"', // BASE_API: '"http://119.254.103.80:14537"', + // BASE_API: '"http://192.168.0.212:8083"' BASE_API: '"http://127.0.0.1:8083"' } diff --git a/src/api/alarm.js b/src/api/alarm.js index 9357263..6a8bc10 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -46,6 +46,7 @@ return request({ url: 'alarm/export', method: 'get', + timeout: 60000, params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob }) diff --git a/src/api/data.js b/src/api/data.js index 264dc56..7376ad7 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -25,6 +25,7 @@ return request({ url: 'welldata/export', method: 'get', + timeout: 60000, params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob }) diff --git a/config/dev.env.js b/config/dev.env.js index 9f671cf..e4d1bb4 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://192.168.0.212:14537"' - BASE_API: '"http://119.254.103.80:14537"' - // BASE_API: '"http://192.168.0.225:8083"' - // BASE_API: '"http://127.0.0.1:8083"' + BASE_API: '"http://192.168.0.212:8083"' + // BASE_API: '"http://10.9.39.8:8083"' + // BASE_API: '"http://119.254.103.80:14537"' + // BASE_API: '"http://192.168.0.244:8083"' }) diff --git a/config/index.js b/config/index.js index 113c70f..62e96dc 100644 --- a/config/index.js +++ b/config/index.js @@ -14,7 +14,7 @@ proxyTable: {}, // Various Dev Server settings - // host: '0.0.0.0', // can be overwritten by process.env.HOST + host: '0.0.0.0', // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined //是否自动打开浏览器 autoOpenBrowser: true, diff --git a/config/prod.env.js b/config/prod.env.js index 488d501..2889ff7 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -2,5 +2,6 @@ module.exports = { NODE_ENV: '"production"', // BASE_API: '"http://119.254.103.80:14537"', + // BASE_API: '"http://192.168.0.212:8083"' BASE_API: '"http://127.0.0.1:8083"' } diff --git a/src/api/alarm.js b/src/api/alarm.js index 9357263..6a8bc10 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -46,6 +46,7 @@ return request({ url: 'alarm/export', method: 'get', + timeout: 60000, params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob }) diff --git a/src/api/data.js b/src/api/data.js index 264dc56..7376ad7 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -25,6 +25,7 @@ return request({ url: 'welldata/export', method: 'get', + timeout: 60000, params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob }) diff --git a/src/api/well.js b/src/api/well.js index 5cc656b..8aee60d 100644 --- a/src/api/well.js +++ b/src/api/well.js @@ -32,6 +32,15 @@ }) } +// 备注类别 +export function getNotesType(params) { + return request({ + url: 'dict/code/notesType', + method: 'get', + params + }) +} + // 添加闸井 export function addWell(params) { return request({ diff --git a/config/dev.env.js b/config/dev.env.js index 9f671cf..e4d1bb4 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://192.168.0.212:14537"' - BASE_API: '"http://119.254.103.80:14537"' - // BASE_API: '"http://192.168.0.225:8083"' - // BASE_API: '"http://127.0.0.1:8083"' + BASE_API: '"http://192.168.0.212:8083"' + // BASE_API: '"http://10.9.39.8:8083"' + // BASE_API: '"http://119.254.103.80:14537"' + // BASE_API: '"http://192.168.0.244:8083"' }) diff --git a/config/index.js b/config/index.js index 113c70f..62e96dc 100644 --- a/config/index.js +++ b/config/index.js @@ -14,7 +14,7 @@ proxyTable: {}, // Various Dev Server settings - // host: '0.0.0.0', // can be overwritten by process.env.HOST + host: '0.0.0.0', // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined //是否自动打开浏览器 autoOpenBrowser: true, diff --git a/config/prod.env.js b/config/prod.env.js index 488d501..2889ff7 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -2,5 +2,6 @@ module.exports = { NODE_ENV: '"production"', // BASE_API: '"http://119.254.103.80:14537"', + // BASE_API: '"http://192.168.0.212:8083"' BASE_API: '"http://127.0.0.1:8083"' } diff --git a/src/api/alarm.js b/src/api/alarm.js index 9357263..6a8bc10 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -46,6 +46,7 @@ return request({ url: 'alarm/export', method: 'get', + timeout: 60000, params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob }) diff --git a/src/api/data.js b/src/api/data.js index 264dc56..7376ad7 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -25,6 +25,7 @@ return request({ url: 'welldata/export', method: 'get', + timeout: 60000, params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob }) diff --git a/src/api/well.js b/src/api/well.js index 5cc656b..8aee60d 100644 --- a/src/api/well.js +++ b/src/api/well.js @@ -32,6 +32,15 @@ }) } +// 备注类别 +export function getNotesType(params) { + return request({ + url: 'dict/code/notesType', + method: 'get', + params + }) +} + // 添加闸井 export function addWell(params) { return request({ diff --git a/src/router/index.js b/src/router/index.js index d29b533..5703eaf 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -214,6 +214,12 @@ meta: { title: '历史数据', icon: 'icon-config', permission: ['/datalist'] } }, { + path: '/wellStatocs', + name: 'wellStatics', + component: () => import('@/views/wellStatics/wellStatics'), + meta: { title: '闸井统计', icon: 'icon-config', permission: ['/well/statics'] } + }, + { path: '/alarmStatics', name: 'AlarmStatics', component: () => import('@/views/alarmStatics/alarmStatics'), diff --git a/config/dev.env.js b/config/dev.env.js index 9f671cf..e4d1bb4 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://192.168.0.212:14537"' - BASE_API: '"http://119.254.103.80:14537"' - // BASE_API: '"http://192.168.0.225:8083"' - // BASE_API: '"http://127.0.0.1:8083"' + BASE_API: '"http://192.168.0.212:8083"' + // BASE_API: '"http://10.9.39.8:8083"' + // BASE_API: '"http://119.254.103.80:14537"' + // BASE_API: '"http://192.168.0.244:8083"' }) diff --git a/config/index.js b/config/index.js index 113c70f..62e96dc 100644 --- a/config/index.js +++ b/config/index.js @@ -14,7 +14,7 @@ proxyTable: {}, // Various Dev Server settings - // host: '0.0.0.0', // can be overwritten by process.env.HOST + host: '0.0.0.0', // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined //是否自动打开浏览器 autoOpenBrowser: true, diff --git a/config/prod.env.js b/config/prod.env.js index 488d501..2889ff7 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -2,5 +2,6 @@ module.exports = { NODE_ENV: '"production"', // BASE_API: '"http://119.254.103.80:14537"', + // BASE_API: '"http://192.168.0.212:8083"' BASE_API: '"http://127.0.0.1:8083"' } diff --git a/src/api/alarm.js b/src/api/alarm.js index 9357263..6a8bc10 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -46,6 +46,7 @@ return request({ url: 'alarm/export', method: 'get', + timeout: 60000, params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob }) diff --git a/src/api/data.js b/src/api/data.js index 264dc56..7376ad7 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -25,6 +25,7 @@ return request({ url: 'welldata/export', method: 'get', + timeout: 60000, params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob }) diff --git a/src/api/well.js b/src/api/well.js index 5cc656b..8aee60d 100644 --- a/src/api/well.js +++ b/src/api/well.js @@ -32,6 +32,15 @@ }) } +// 备注类别 +export function getNotesType(params) { + return request({ + url: 'dict/code/notesType', + method: 'get', + params + }) +} + // 添加闸井 export function addWell(params) { return request({ diff --git a/src/router/index.js b/src/router/index.js index d29b533..5703eaf 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -214,6 +214,12 @@ meta: { title: '历史数据', icon: 'icon-config', permission: ['/datalist'] } }, { + path: '/wellStatocs', + name: 'wellStatics', + component: () => import('@/views/wellStatics/wellStatics'), + meta: { title: '闸井统计', icon: 'icon-config', permission: ['/well/statics'] } + }, + { path: '/alarmStatics', name: 'AlarmStatics', component: () => import('@/views/alarmStatics/alarmStatics'), diff --git a/src/views/wellManage/editWell.vue b/src/views/wellManage/editWell.vue index e347e99..80e38c8 100644 --- a/src/views/wellManage/editWell.vue +++ b/src/views/wellManage/editWell.vue @@ -1,11 +1,11 @@