fix(仪表板): 堆叠组合图自定义排序拖动异常

This commit is contained in:
dataeaseShu 2024-07-15 18:16:23 +08:00
parent d85cb3a150
commit 7a3f1b5750
2 changed files with 6 additions and 2 deletions

View File

@ -290,7 +290,12 @@ const updateQueryCriteria = () => {
ele.checkedFields = checkedFields
ele.checkedFieldsMap = checkedFieldsMap
} else {
if (!ele.dataset.id || ele.optionValueSource !== 1 || ![0, 2, 5].includes(+ele.displayType))
if (
!ele.dataset.id ||
!!ele.parameters.length ||
ele.optionValueSource !== 1 ||
![0, 2, 5].includes(+ele.displayType)
)
return
const checkedFields = []
datasetFieldList.value.forEach(itx => {

View File

@ -80,7 +80,6 @@ init()
<draggable
v-loading="loading"
:list="state.sortList"
group="drag"
animation="300"
class="drag-list"
item-key="name"