fix: 修复报告新增页面 下拉 el-input 宽度问题
This commit is contained in:
@@ -242,6 +242,7 @@
|
|||||||
:disabled="!!editObject.id"
|
:disabled="!!editObject.id"
|
||||||
popper-class="right-box-select-dropdown right-box-select-report"
|
popper-class="right-box-select-dropdown right-box-select-report"
|
||||||
size="small"
|
size="small"
|
||||||
|
@change="paramsChange"
|
||||||
>
|
>
|
||||||
<template #prefix>
|
<template #prefix>
|
||||||
{{$t(editObject.categoryParams[0].i18n)}}
|
{{$t(editObject.categoryParams[0].i18n)}}
|
||||||
@@ -413,8 +414,6 @@ export default {
|
|||||||
},
|
},
|
||||||
'editObject.categoryId': {
|
'editObject.categoryId': {
|
||||||
handler (n) {
|
handler (n) {
|
||||||
const dom = document.getElementsByClassName('el-input__inner')
|
|
||||||
console.log(dom)
|
|
||||||
const category = this.categoryList.find(c => c.id === n)
|
const category = this.categoryList.find(c => c.id === n)
|
||||||
if (category && category.config && category.config.queryParam) {
|
if (category && category.config && category.config.queryParam) {
|
||||||
this.editObject.categoryParams = category.config.queryParam
|
this.editObject.categoryParams = category.config.queryParam
|
||||||
@@ -505,7 +504,17 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
typeChange (id) {
|
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 () {
|
cleanScheduleConfig () {
|
||||||
this.editObject.config.schedulerConfig.monthDates = []
|
this.editObject.config.schedulerConfig.monthDates = []
|
||||||
|
|||||||
Reference in New Issue
Block a user