From 9e15baf7c055d0a80f5328025ae10ab26dd3a62a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=86=8A=E4=B8=BD=E5=90=9B?= <664953382@qq.com> Date: Tue, 22 Dec 2020 13:20:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9D=83=E9=99=90=E5=89=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/fault/activityWarning/index.vue | 17 ++++++++++------- src/views/workOrderManage/orderList/index.vue | 17 ++++++++++------- vue.config.js | 4 ++-- 3 files changed, 22 insertions(+), 16 deletions(-) diff --git a/src/views/fault/activityWarning/index.vue b/src/views/fault/activityWarning/index.vue index 8a8f13d..20c2c3f 100644 --- a/src/views/fault/activityWarning/index.vue +++ b/src/views/fault/activityWarning/index.vue @@ -25,7 +25,7 @@ - + @@ -44,7 +44,7 @@ - + @@ -52,7 +52,7 @@ - + @@ -62,7 +62,7 @@ - + @@ -140,8 +140,7 @@ export default { signalLevelList: [ { label: '一级', value: '1' }, { label: '二级', value: '2' }, - { label: '三级', value: '3' }, - { label: '四级', value: '4' } + { label: '三级', value: '3' } ], queryParams: { pageNum: 1, @@ -165,7 +164,11 @@ export default { // 获取告警工单列表 getList () { this.loading = true; - list(this.addDateRange(this.queryParams, this.dateRange)).then(res => { + if(null != this.dateRange && '' != this.dateRange) { + this.queryParams.startTime = this.dateRange[0]; + this.queryParams.endTime = this.dateRange[1]; + } + list(this.queryParams).then(res => { this.tableData = res.rows; this.total = res.total; this.loading = false; diff --git a/src/views/workOrderManage/orderList/index.vue b/src/views/workOrderManage/orderList/index.vue index 402cddc..a18f632 100644 --- a/src/views/workOrderManage/orderList/index.vue +++ b/src/views/workOrderManage/orderList/index.vue @@ -12,7 +12,7 @@ - + @@ -25,7 +25,7 @@ - + @@ -44,7 +44,7 @@ - + @@ -62,7 +62,7 @@ - + @@ -174,8 +174,7 @@ export default { signalLevelList: [ { label: '一级', value: '1' }, { label: '二级', value: '2' }, - { label: '三级', value: '3' }, - { label: '四级', value: '4' } + { label: '三级', value: '3' } ], workStatusList: [ { label: '待接单', value: '1' }, @@ -204,7 +203,11 @@ export default { // 获取告警工单列表 getList () { this.loading = true; - list(this.addDateRange(this.queryParams, this.dateRange)).then(res => { + if(null != this.dateRange && '' != this.dateRange) { + this.queryParams.startTime = this.dateRange[0]; + this.queryParams.endTime = this.dateRange[1]; + } + list(this.queryParams).then(res => { this.tableData = res.rows; this.total = res.total; this.loading = false; diff --git a/vue.config.js b/vue.config.js index 1c0f650..6c7acea 100644 --- a/vue.config.js +++ b/vue.config.js @@ -35,8 +35,8 @@ module.exports = { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { // target: `http://47.115.73.110:8080`, - // target: `http://121.37.250.170:8080`, - target: `http://192.168.0.129:8080`, + target: `http://121.37.250.170:8080`, + // target: `http://192.168.0.129:8080`, changeOrigin: true, pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: ''