diff --git a/src/components/rightBox/report/ReportBox.vue b/src/components/rightBox/report/ReportBox.vue index f767cddc..48675e2f 100644 --- a/src/components/rightBox/report/ReportBox.vue +++ b/src/components/rightBox/report/ReportBox.vue @@ -235,23 +235,25 @@ - + @@ -416,11 +418,14 @@ export default { handler (n) { const category = this.categoryList.find(c => c.id === n) if (category && category.config && category.config.queryParam) { - this.editObject.categoryParams = category.config.queryParam - if (!this.editObject.id) { - this.editObject.categoryParams.forEach(t => { t.value = '' }) - } - this.loadParamOptions() + this.editObject.categoryParams = [] + this.$nextTick(() => { + this.editObject.categoryParams = category.config.queryParam + if (!this.editObject.id) { + this.editObject.categoryParams.forEach(t => { t.value = '' }) + } + this.loadParamOptions() + }) } else { this.editObject.categoryParams = [] } @@ -504,17 +509,7 @@ export default { } }, typeChange (id) { - if (id === 3 || id === 7) { - const dom = document.querySelector('.right-box__select--param .el-input__inner') - if (dom) { - dom.style = 'padding-left: 107px' - } - } else if (id === 1) { - const dom = document.querySelector('.right-box__select--param .el-input__inner') - if (dom) { - dom.style = 'padding-left: 81px' - } - } + }, cleanScheduleConfig () { this.editObject.config.schedulerConfig.monthDates = []