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]: ''