Merge pull request #12757 from dataease/pr@dev-v2_st

fix(查询组件): 查询组件无法编辑
This commit is contained in:
dataeaseShu 2024-10-17 16:14:21 +08:00 committed by GitHub
commit 39a38f68c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1624,15 +1624,51 @@ const handleCondition = item => {
curComponent.value.dataset.fields = res.data
})
}
if (!curComponent.value.checkedFieldsMapStart) {
curComponent.value.checkedFieldsMapStart = {}
}
if (!curComponent.value.checkedFieldsMapStartNum) {
curComponent.value.checkedFieldsMapStartNum = {}
}
if (!curComponent.value.checkedFieldsMapEnd) {
curComponent.value.checkedFieldsMapEnd = {}
}
if (!curComponent.value.checkedFieldsMapEndNum) {
curComponent.value.checkedFieldsMapEndNum = {}
}
if (!curComponent.value.checkedFieldsMapArr) {
curComponent.value.checkedFieldsMapArr = {}
}
if (!curComponent.value.checkedFieldsMapArrNum) {
curComponent.value.checkedFieldsMapArrNum = {}
}
if (!curComponent.value.parametersArr) {
curComponent.value.parametersArr = {}
}
datasetFieldList.value.forEach(ele => {
if (!curComponent.value.checkedFieldsMap[ele.id]) {
curComponent.value.checkedFieldsMap[ele.id] = ''
}
if (!curComponent.value.checkedFieldsMapStart[ele.id]) {
curComponent.value.checkedFieldsMapStart[ele.id] = ''
}
if (!curComponent.value.checkedFieldsMapStartNum[ele.id]) {
curComponent.value.checkedFieldsMapStartNum[ele.id] = ''
}
if (!curComponent.value.checkedFieldsMapEnd[ele.id]) {
curComponent.value.checkedFieldsMapEnd[ele.id] = ''
}
if (!curComponent.value.checkedFieldsMapEndNum[ele.id]) {
curComponent.value.checkedFieldsMapEndNum[ele.id] = ''
}
if (!curComponent.value.checkedFieldsMapArr[ele.id]) {
curComponent.value.checkedFieldsMapArr[ele.id] = []
}
if (!curComponent.value.checkedFieldsMapArrNum[ele.id]) {
curComponent.value.checkedFieldsMapArrNum[ele.id] = []
}
if (!curComponent.value.parametersArr[ele.id]) {
curComponent.value.parametersArr[ele.id] = []
}
})
@ -3179,7 +3215,7 @@ defineExpose({
margin-left: 25px;
}
.ed-select__tags-text {
max-width: 38px !important;
max-width: 30px !important;
}
}