diff --git a/config/dev.env.js b/config/dev.env.js index 3b87ed5..928c69b 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -10,8 +10,8 @@ // BASE_API: '"http://106.74.146.218:2031"' // BASE_API: '"http://192.168.0.212:8083"' // BASE_API: '"http://192.168.8.201:8083/smartwell"' - // BASE_API: '"http://111.198.10.15:11707/smartwell"' - BASE_API: '"http://192.168.165.39:8083"' + BASE_API: '"http://111.198.10.15:11645"' + // BASE_API: '"http://10.9.39.8:8083"' // BASE_API: '"http://139.198.16.38:8095/smartcity"' // BASE_API: '"http://10.9.39.8:8083"' diff --git a/config/dev.env.js b/config/dev.env.js index 3b87ed5..928c69b 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -10,8 +10,8 @@ // BASE_API: '"http://106.74.146.218:2031"' // BASE_API: '"http://192.168.0.212:8083"' // BASE_API: '"http://192.168.8.201:8083/smartwell"' - // BASE_API: '"http://111.198.10.15:11707/smartwell"' - BASE_API: '"http://192.168.165.39:8083"' + BASE_API: '"http://111.198.10.15:11645"' + // BASE_API: '"http://10.9.39.8:8083"' // BASE_API: '"http://139.198.16.38:8095/smartcity"' // BASE_API: '"http://10.9.39.8:8083"' diff --git a/config/prod.env.js b/config/prod.env.js index 5b466e4..dc63cf3 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -5,4 +5,5 @@ // BASE_API: '"http://192.168.8.201:8083/smartwell"' // BASE_API: '"http://111.198.10.15:11707/smartwell"' BASE_API: '"http://10.9.39.8:8083"' + // BASE_API: '"http://127.0.0.1:8083"' } diff --git a/config/dev.env.js b/config/dev.env.js index 3b87ed5..928c69b 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -10,8 +10,8 @@ // BASE_API: '"http://106.74.146.218:2031"' // BASE_API: '"http://192.168.0.212:8083"' // BASE_API: '"http://192.168.8.201:8083/smartwell"' - // BASE_API: '"http://111.198.10.15:11707/smartwell"' - BASE_API: '"http://192.168.165.39:8083"' + BASE_API: '"http://111.198.10.15:11645"' + // BASE_API: '"http://10.9.39.8:8083"' // BASE_API: '"http://139.198.16.38:8095/smartcity"' // BASE_API: '"http://10.9.39.8:8083"' diff --git a/config/prod.env.js b/config/prod.env.js index 5b466e4..dc63cf3 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -5,4 +5,5 @@ // BASE_API: '"http://192.168.8.201:8083/smartwell"' // BASE_API: '"http://111.198.10.15:11707/smartwell"' BASE_API: '"http://10.9.39.8:8083"' + // BASE_API: '"http://127.0.0.1:8083"' } diff --git a/src/components/BMap/baiduPointCollection.vue b/src/components/BMap/baiduPointCollection.vue index a448203..2ff1e40 100644 --- a/src/components/BMap/baiduPointCollection.vue +++ b/src/components/BMap/baiduPointCollection.vue @@ -1,82 +1,116 @@ diff --git a/config/dev.env.js b/config/dev.env.js index 3b87ed5..928c69b 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -10,8 +10,8 @@ // BASE_API: '"http://106.74.146.218:2031"' // BASE_API: '"http://192.168.0.212:8083"' // BASE_API: '"http://192.168.8.201:8083/smartwell"' - // BASE_API: '"http://111.198.10.15:11707/smartwell"' - BASE_API: '"http://192.168.165.39:8083"' + BASE_API: '"http://111.198.10.15:11645"' + // BASE_API: '"http://10.9.39.8:8083"' // BASE_API: '"http://139.198.16.38:8095/smartcity"' // BASE_API: '"http://10.9.39.8:8083"' diff --git a/config/prod.env.js b/config/prod.env.js index 5b466e4..dc63cf3 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -5,4 +5,5 @@ // BASE_API: '"http://192.168.8.201:8083/smartwell"' // BASE_API: '"http://111.198.10.15:11707/smartwell"' BASE_API: '"http://10.9.39.8:8083"' + // BASE_API: '"http://127.0.0.1:8083"' } diff --git a/src/components/BMap/baiduPointCollection.vue b/src/components/BMap/baiduPointCollection.vue index a448203..2ff1e40 100644 --- a/src/components/BMap/baiduPointCollection.vue +++ b/src/components/BMap/baiduPointCollection.vue @@ -1,82 +1,116 @@ diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 1f8ee17..a561f3e 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -107,6 +107,7 @@ reject(error) }) getBizPerm().then(response => { + const data = response.data if (data.wellTypes && data.wellTypes.length > 0) { // 验证返回的wellTypes是否是一个非空数组 commit('SET_WELLTYPES', data.wellTypes) diff --git a/config/dev.env.js b/config/dev.env.js index 3b87ed5..928c69b 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -10,8 +10,8 @@ // BASE_API: '"http://106.74.146.218:2031"' // BASE_API: '"http://192.168.0.212:8083"' // BASE_API: '"http://192.168.8.201:8083/smartwell"' - // BASE_API: '"http://111.198.10.15:11707/smartwell"' - BASE_API: '"http://192.168.165.39:8083"' + BASE_API: '"http://111.198.10.15:11645"' + // BASE_API: '"http://10.9.39.8:8083"' // BASE_API: '"http://139.198.16.38:8095/smartcity"' // BASE_API: '"http://10.9.39.8:8083"' diff --git a/config/prod.env.js b/config/prod.env.js index 5b466e4..dc63cf3 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -5,4 +5,5 @@ // BASE_API: '"http://192.168.8.201:8083/smartwell"' // BASE_API: '"http://111.198.10.15:11707/smartwell"' BASE_API: '"http://10.9.39.8:8083"' + // BASE_API: '"http://127.0.0.1:8083"' } diff --git a/src/components/BMap/baiduPointCollection.vue b/src/components/BMap/baiduPointCollection.vue index a448203..2ff1e40 100644 --- a/src/components/BMap/baiduPointCollection.vue +++ b/src/components/BMap/baiduPointCollection.vue @@ -1,82 +1,116 @@ diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 1f8ee17..a561f3e 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -107,6 +107,7 @@ reject(error) }) getBizPerm().then(response => { + const data = response.data if (data.wellTypes && data.wellTypes.length > 0) { // 验证返回的wellTypes是否是一个非空数组 commit('SET_WELLTYPES', data.wellTypes) diff --git a/src/utils/request.js b/src/utils/request.js index c88ea76..de66c15 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -6,7 +6,7 @@ // 创建axios实例 const service = axios.create({ baseURL: process.env.BASE_API, // api 的 base_url - timeout: 50000 // 请求超时时间 + timeout: 1000 * 60 * 5 // 请求超时时间 }) // request拦截器 @@ -15,13 +15,13 @@ if (store.getters.token) { console.log('request.js gettoken') config.headers['token'] = getToken() // 让每个请求携带自定义token 请根据实际情况自行修改 - console.log(config.headers['token']) + // console.log(config.headers['token']) } return config }, error => { // Do something with request error - console.log(error) // for debug + // console.log(error) // for debug Promise.reject(error) } ) @@ -66,6 +66,7 @@ } }, error => { + // console.log(error, 'error') // 如果是下载文件返回的错误 if (error.response.data instanceof Blob) { // 将blob强制转换为JSON diff --git a/config/dev.env.js b/config/dev.env.js index 3b87ed5..928c69b 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -10,8 +10,8 @@ // BASE_API: '"http://106.74.146.218:2031"' // BASE_API: '"http://192.168.0.212:8083"' // BASE_API: '"http://192.168.8.201:8083/smartwell"' - // BASE_API: '"http://111.198.10.15:11707/smartwell"' - BASE_API: '"http://192.168.165.39:8083"' + BASE_API: '"http://111.198.10.15:11645"' + // BASE_API: '"http://10.9.39.8:8083"' // BASE_API: '"http://139.198.16.38:8095/smartcity"' // BASE_API: '"http://10.9.39.8:8083"' diff --git a/config/prod.env.js b/config/prod.env.js index 5b466e4..dc63cf3 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -5,4 +5,5 @@ // BASE_API: '"http://192.168.8.201:8083/smartwell"' // BASE_API: '"http://111.198.10.15:11707/smartwell"' BASE_API: '"http://10.9.39.8:8083"' + // BASE_API: '"http://127.0.0.1:8083"' } diff --git a/src/components/BMap/baiduPointCollection.vue b/src/components/BMap/baiduPointCollection.vue index a448203..2ff1e40 100644 --- a/src/components/BMap/baiduPointCollection.vue +++ b/src/components/BMap/baiduPointCollection.vue @@ -1,82 +1,116 @@ diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 1f8ee17..a561f3e 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -107,6 +107,7 @@ reject(error) }) getBizPerm().then(response => { + const data = response.data if (data.wellTypes && data.wellTypes.length > 0) { // 验证返回的wellTypes是否是一个非空数组 commit('SET_WELLTYPES', data.wellTypes) diff --git a/src/utils/request.js b/src/utils/request.js index c88ea76..de66c15 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -6,7 +6,7 @@ // 创建axios实例 const service = axios.create({ baseURL: process.env.BASE_API, // api 的 base_url - timeout: 50000 // 请求超时时间 + timeout: 1000 * 60 * 5 // 请求超时时间 }) // request拦截器 @@ -15,13 +15,13 @@ if (store.getters.token) { console.log('request.js gettoken') config.headers['token'] = getToken() // 让每个请求携带自定义token 请根据实际情况自行修改 - console.log(config.headers['token']) + // console.log(config.headers['token']) } return config }, error => { // Do something with request error - console.log(error) // for debug + // console.log(error) // for debug Promise.reject(error) } ) @@ -66,6 +66,7 @@ } }, error => { + // console.log(error, 'error') // 如果是下载文件返回的错误 if (error.response.data instanceof Blob) { // 将blob强制转换为JSON diff --git a/src/views/alarmManage/component/HandlePrompt.vue b/src/views/alarmManage/component/HandlePrompt.vue index d5bc9a1..754dda7 100644 --- a/src/views/alarmManage/component/HandlePrompt.vue +++ b/src/views/alarmManage/component/HandlePrompt.vue @@ -7,9 +7,22 @@ @close="closeDialog"> - --> + + + + + + + + + + @@ -37,7 +50,8 @@ endTime: '', // 批量消警查询条件——结束时间 id: '', // 工单id jobStatus: '', // 工单状态 - handleMessage: '' // 原因 + handleMessage: '', // 原因 + handleMessage1: '' // 原因 }, isBatch: false, // 是不是批量删除 dialogVisible: false, @@ -49,8 +63,8 @@ label: '无需处理' // 已取消 }], rules: { - jobStatus: [{ required: true, message: '关闭原因必选', trigger: ['blur', 'change'] }], - handleMessage: [{ min: 1, max: 30, message: '长度不得超过30字', trigger: 'blur' }] + handleMessage: [{ required: true, message: '取消原因必选', trigger: ['blur', 'change'] }], + handleMessage1: [{ min: 1, max: 30, required: true, message: '长度在1-30字之间', trigger: ['blur', 'change'] }] }, value: '' } @@ -94,7 +108,7 @@ // 批量消警接口 if (this.isBatch) { const form = { - handleMessage: this.formData.handleMessage + handleMessage: this.formData.handleMessage === '其他' ? this.formData.handleMessage1 : this.formData.handleMessage, } batchCancel(form).then(response => { this.$message.success('批量消警成功') @@ -103,7 +117,7 @@ } else { // 单个消警接口 const formData = { id: this.formData.id, - handleMessage: this.formData.handleMessage, + handleMessage: this.formData.handleMessage === '其他' ? this.formData.handleMessage1 : this.formData.handleMessage, handlePhotos:'' } overJob(formData).then(response => { @@ -120,6 +134,7 @@ this.$emit('watchChild') this.formData.jobStatus = '' this.formData.handleMessage = '' + this.formData.handleMessage1 = '' // 清除验证 this.$nextTick(() => { this.$refs['form'].clearValidate() diff --git a/config/dev.env.js b/config/dev.env.js index 3b87ed5..928c69b 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -10,8 +10,8 @@ // BASE_API: '"http://106.74.146.218:2031"' // BASE_API: '"http://192.168.0.212:8083"' // BASE_API: '"http://192.168.8.201:8083/smartwell"' - // BASE_API: '"http://111.198.10.15:11707/smartwell"' - BASE_API: '"http://192.168.165.39:8083"' + BASE_API: '"http://111.198.10.15:11645"' + // BASE_API: '"http://10.9.39.8:8083"' // BASE_API: '"http://139.198.16.38:8095/smartcity"' // BASE_API: '"http://10.9.39.8:8083"' diff --git a/config/prod.env.js b/config/prod.env.js index 5b466e4..dc63cf3 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -5,4 +5,5 @@ // BASE_API: '"http://192.168.8.201:8083/smartwell"' // BASE_API: '"http://111.198.10.15:11707/smartwell"' BASE_API: '"http://10.9.39.8:8083"' + // BASE_API: '"http://127.0.0.1:8083"' } diff --git a/src/components/BMap/baiduPointCollection.vue b/src/components/BMap/baiduPointCollection.vue index a448203..2ff1e40 100644 --- a/src/components/BMap/baiduPointCollection.vue +++ b/src/components/BMap/baiduPointCollection.vue @@ -1,82 +1,116 @@ diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 1f8ee17..a561f3e 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -107,6 +107,7 @@ reject(error) }) getBizPerm().then(response => { + const data = response.data if (data.wellTypes && data.wellTypes.length > 0) { // 验证返回的wellTypes是否是一个非空数组 commit('SET_WELLTYPES', data.wellTypes) diff --git a/src/utils/request.js b/src/utils/request.js index c88ea76..de66c15 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -6,7 +6,7 @@ // 创建axios实例 const service = axios.create({ baseURL: process.env.BASE_API, // api 的 base_url - timeout: 50000 // 请求超时时间 + timeout: 1000 * 60 * 5 // 请求超时时间 }) // request拦截器 @@ -15,13 +15,13 @@ if (store.getters.token) { console.log('request.js gettoken') config.headers['token'] = getToken() // 让每个请求携带自定义token 请根据实际情况自行修改 - console.log(config.headers['token']) + // console.log(config.headers['token']) } return config }, error => { // Do something with request error - console.log(error) // for debug + // console.log(error) // for debug Promise.reject(error) } ) @@ -66,6 +66,7 @@ } }, error => { + // console.log(error, 'error') // 如果是下载文件返回的错误 if (error.response.data instanceof Blob) { // 将blob强制转换为JSON diff --git a/src/views/alarmManage/component/HandlePrompt.vue b/src/views/alarmManage/component/HandlePrompt.vue index d5bc9a1..754dda7 100644 --- a/src/views/alarmManage/component/HandlePrompt.vue +++ b/src/views/alarmManage/component/HandlePrompt.vue @@ -7,9 +7,22 @@ @close="closeDialog"> - --> + + + + + + + + + + @@ -37,7 +50,8 @@ endTime: '', // 批量消警查询条件——结束时间 id: '', // 工单id jobStatus: '', // 工单状态 - handleMessage: '' // 原因 + handleMessage: '', // 原因 + handleMessage1: '' // 原因 }, isBatch: false, // 是不是批量删除 dialogVisible: false, @@ -49,8 +63,8 @@ label: '无需处理' // 已取消 }], rules: { - jobStatus: [{ required: true, message: '关闭原因必选', trigger: ['blur', 'change'] }], - handleMessage: [{ min: 1, max: 30, message: '长度不得超过30字', trigger: 'blur' }] + handleMessage: [{ required: true, message: '取消原因必选', trigger: ['blur', 'change'] }], + handleMessage1: [{ min: 1, max: 30, required: true, message: '长度在1-30字之间', trigger: ['blur', 'change'] }] }, value: '' } @@ -94,7 +108,7 @@ // 批量消警接口 if (this.isBatch) { const form = { - handleMessage: this.formData.handleMessage + handleMessage: this.formData.handleMessage === '其他' ? this.formData.handleMessage1 : this.formData.handleMessage, } batchCancel(form).then(response => { this.$message.success('批量消警成功') @@ -103,7 +117,7 @@ } else { // 单个消警接口 const formData = { id: this.formData.id, - handleMessage: this.formData.handleMessage, + handleMessage: this.formData.handleMessage === '其他' ? this.formData.handleMessage1 : this.formData.handleMessage, handlePhotos:'' } overJob(formData).then(response => { @@ -120,6 +134,7 @@ this.$emit('watchChild') this.formData.jobStatus = '' this.formData.handleMessage = '' + this.formData.handleMessage1 = '' // 清除验证 this.$nextTick(() => { this.$refs['form'].clearValidate() diff --git a/src/views/alarmManage/listAlarmRecords.vue b/src/views/alarmManage/listAlarmRecords.vue index 3d22eac..1847a26 100644 --- a/src/views/alarmManage/listAlarmRecords.vue +++ b/src/views/alarmManage/listAlarmRecords.vue @@ -104,7 +104,7 @@ offset: 1, limit: 20, sort: '', - order: '' + order: '', }, // 筛选条件 timeRange: [], // 时间范围 columns: [ @@ -263,7 +263,7 @@ if (listQuery.endTime === '') { listQuery.endTime = getToday('yyyy-MM-dd hh:mm:ss') } - batchExportAlarm(listQuery).then(res => { + batchExportAlarm({...listQuery, status: '1,2'}).then(res => { loading.close() // 关闭加载动画 console.log('download===', res) const blob = new Blob([res.data]) @@ -290,7 +290,7 @@ if (!isNowPage) { // 是否显示当前页,否则跳转第一页 this.listQuery.offset = 1 } - getAlarmList(this.listQuery).then(response => { + getAlarmList({...this.listQuery, status: '1,2' }).then(response => { this.list = response.data.rows this.total = parseInt(response.data.total) this.listLoading = false diff --git a/config/dev.env.js b/config/dev.env.js index 3b87ed5..928c69b 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -10,8 +10,8 @@ // BASE_API: '"http://106.74.146.218:2031"' // BASE_API: '"http://192.168.0.212:8083"' // BASE_API: '"http://192.168.8.201:8083/smartwell"' - // BASE_API: '"http://111.198.10.15:11707/smartwell"' - BASE_API: '"http://192.168.165.39:8083"' + BASE_API: '"http://111.198.10.15:11645"' + // BASE_API: '"http://10.9.39.8:8083"' // BASE_API: '"http://139.198.16.38:8095/smartcity"' // BASE_API: '"http://10.9.39.8:8083"' diff --git a/config/prod.env.js b/config/prod.env.js index 5b466e4..dc63cf3 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -5,4 +5,5 @@ // BASE_API: '"http://192.168.8.201:8083/smartwell"' // BASE_API: '"http://111.198.10.15:11707/smartwell"' BASE_API: '"http://10.9.39.8:8083"' + // BASE_API: '"http://127.0.0.1:8083"' } diff --git a/src/components/BMap/baiduPointCollection.vue b/src/components/BMap/baiduPointCollection.vue index a448203..2ff1e40 100644 --- a/src/components/BMap/baiduPointCollection.vue +++ b/src/components/BMap/baiduPointCollection.vue @@ -1,82 +1,116 @@ diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 1f8ee17..a561f3e 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -107,6 +107,7 @@ reject(error) }) getBizPerm().then(response => { + const data = response.data if (data.wellTypes && data.wellTypes.length > 0) { // 验证返回的wellTypes是否是一个非空数组 commit('SET_WELLTYPES', data.wellTypes) diff --git a/src/utils/request.js b/src/utils/request.js index c88ea76..de66c15 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -6,7 +6,7 @@ // 创建axios实例 const service = axios.create({ baseURL: process.env.BASE_API, // api 的 base_url - timeout: 50000 // 请求超时时间 + timeout: 1000 * 60 * 5 // 请求超时时间 }) // request拦截器 @@ -15,13 +15,13 @@ if (store.getters.token) { console.log('request.js gettoken') config.headers['token'] = getToken() // 让每个请求携带自定义token 请根据实际情况自行修改 - console.log(config.headers['token']) + // console.log(config.headers['token']) } return config }, error => { // Do something with request error - console.log(error) // for debug + // console.log(error) // for debug Promise.reject(error) } ) @@ -66,6 +66,7 @@ } }, error => { + // console.log(error, 'error') // 如果是下载文件返回的错误 if (error.response.data instanceof Blob) { // 将blob强制转换为JSON diff --git a/src/views/alarmManage/component/HandlePrompt.vue b/src/views/alarmManage/component/HandlePrompt.vue index d5bc9a1..754dda7 100644 --- a/src/views/alarmManage/component/HandlePrompt.vue +++ b/src/views/alarmManage/component/HandlePrompt.vue @@ -7,9 +7,22 @@ @close="closeDialog"> - --> + + + + + + + + + + @@ -37,7 +50,8 @@ endTime: '', // 批量消警查询条件——结束时间 id: '', // 工单id jobStatus: '', // 工单状态 - handleMessage: '' // 原因 + handleMessage: '', // 原因 + handleMessage1: '' // 原因 }, isBatch: false, // 是不是批量删除 dialogVisible: false, @@ -49,8 +63,8 @@ label: '无需处理' // 已取消 }], rules: { - jobStatus: [{ required: true, message: '关闭原因必选', trigger: ['blur', 'change'] }], - handleMessage: [{ min: 1, max: 30, message: '长度不得超过30字', trigger: 'blur' }] + handleMessage: [{ required: true, message: '取消原因必选', trigger: ['blur', 'change'] }], + handleMessage1: [{ min: 1, max: 30, required: true, message: '长度在1-30字之间', trigger: ['blur', 'change'] }] }, value: '' } @@ -94,7 +108,7 @@ // 批量消警接口 if (this.isBatch) { const form = { - handleMessage: this.formData.handleMessage + handleMessage: this.formData.handleMessage === '其他' ? this.formData.handleMessage1 : this.formData.handleMessage, } batchCancel(form).then(response => { this.$message.success('批量消警成功') @@ -103,7 +117,7 @@ } else { // 单个消警接口 const formData = { id: this.formData.id, - handleMessage: this.formData.handleMessage, + handleMessage: this.formData.handleMessage === '其他' ? this.formData.handleMessage1 : this.formData.handleMessage, handlePhotos:'' } overJob(formData).then(response => { @@ -120,6 +134,7 @@ this.$emit('watchChild') this.formData.jobStatus = '' this.formData.handleMessage = '' + this.formData.handleMessage1 = '' // 清除验证 this.$nextTick(() => { this.$refs['form'].clearValidate() diff --git a/src/views/alarmManage/listAlarmRecords.vue b/src/views/alarmManage/listAlarmRecords.vue index 3d22eac..1847a26 100644 --- a/src/views/alarmManage/listAlarmRecords.vue +++ b/src/views/alarmManage/listAlarmRecords.vue @@ -104,7 +104,7 @@ offset: 1, limit: 20, sort: '', - order: '' + order: '', }, // 筛选条件 timeRange: [], // 时间范围 columns: [ @@ -263,7 +263,7 @@ if (listQuery.endTime === '') { listQuery.endTime = getToday('yyyy-MM-dd hh:mm:ss') } - batchExportAlarm(listQuery).then(res => { + batchExportAlarm({...listQuery, status: '1,2'}).then(res => { loading.close() // 关闭加载动画 console.log('download===', res) const blob = new Blob([res.data]) @@ -290,7 +290,7 @@ if (!isNowPage) { // 是否显示当前页,否则跳转第一页 this.listQuery.offset = 1 } - getAlarmList(this.listQuery).then(response => { + getAlarmList({...this.listQuery, status: '1,2' }).then(response => { this.list = response.data.rows this.total = parseInt(response.data.total) this.listLoading = false diff --git a/src/views/overview/overviewBdOffline.vue b/src/views/overview/overviewBdOffline.vue index 9573fab..8550272 100644 --- a/src/views/overview/overviewBdOffline.vue +++ b/src/views/overview/overviewBdOffline.vue @@ -261,6 +261,7 @@