forked from github/dataease
fix(视图): 修复指标/维度多选拖拽未正确删除不符合的项
This commit is contained in:
parent
47ea8c0784
commit
79523e343e
@ -1586,7 +1586,7 @@ export default {
|
|||||||
gauge_axis_label: 'Axis Label',
|
gauge_axis_label: 'Axis Label',
|
||||||
word_size_range: 'Word Size Range',
|
word_size_range: 'Word Size Range',
|
||||||
word_spacing: 'Word Spacing',
|
word_spacing: 'Word Spacing',
|
||||||
axis_multi_select_tip: 'Hold down the Ctrl or Shift key and click to select more than one'
|
axis_multi_select_tip: 'Hold down the Ctrl/Cmd or Shift key and click to select more than one'
|
||||||
},
|
},
|
||||||
dataset: {
|
dataset: {
|
||||||
scope_edit: 'Effective only when editing',
|
scope_edit: 'Effective only when editing',
|
||||||
|
@ -1578,7 +1578,7 @@ export default {
|
|||||||
gauge_axis_label: '刻度標籤',
|
gauge_axis_label: '刻度標籤',
|
||||||
word_size_range: '字號區間',
|
word_size_range: '字號區間',
|
||||||
word_spacing: '文字間隔',
|
word_spacing: '文字間隔',
|
||||||
axis_multi_select_tip: '按住 Ctrl 鍵或者 Shift 鍵再點擊可多選'
|
axis_multi_select_tip: '按住 Ctrl/Cmd 鍵或者 Shift 鍵再點擊可多選'
|
||||||
},
|
},
|
||||||
dataset: {
|
dataset: {
|
||||||
scope_edit: '僅編輯時生效',
|
scope_edit: '僅編輯時生效',
|
||||||
|
@ -1578,7 +1578,7 @@ export default {
|
|||||||
gauge_axis_label: '刻度标签',
|
gauge_axis_label: '刻度标签',
|
||||||
word_size_range: '字号区间',
|
word_size_range: '字号区间',
|
||||||
word_spacing: '文字间隔',
|
word_spacing: '文字间隔',
|
||||||
axis_multi_select_tip: '按住 Ctrl 键或者 Shift 键再点击可多选'
|
axis_multi_select_tip: '按住 Ctrl/Cmd 键或者 Shift 键再点击可多选'
|
||||||
},
|
},
|
||||||
dataset: {
|
dataset: {
|
||||||
scope_edit: '仅编辑时生效',
|
scope_edit: '仅编辑时生效',
|
||||||
|
@ -183,6 +183,7 @@
|
|||||||
class="item-dimension father group-dimension"
|
class="item-dimension father group-dimension"
|
||||||
@click.exact="singleSelect(index, dimensionData, selectedDimension, 'lastDimensionIndex')"
|
@click.exact="singleSelect(index, dimensionData, selectedDimension, 'lastDimensionIndex')"
|
||||||
@click.ctrl="multiSelect(index, dimensionData, selectedDimension, 'lastDimensionIndex')"
|
@click.ctrl="multiSelect(index, dimensionData, selectedDimension, 'lastDimensionIndex')"
|
||||||
|
@click.meta="multiSelect(index, dimensionData, selectedDimension, 'lastDimensionIndex')"
|
||||||
@click.shift="rangeSelect(index, dimensionData, selectedDimension, 'lastDimensionIndex')"
|
@click.shift="rangeSelect(index, dimensionData, selectedDimension, 'lastDimensionIndex')"
|
||||||
>
|
>
|
||||||
<svg-icon
|
<svg-icon
|
||||||
@ -265,6 +266,7 @@
|
|||||||
class="item-quota father group-quota"
|
class="item-quota father group-quota"
|
||||||
@click.exact="singleSelect(index, quotaData, selectedQuota, 'lastQuotaIndex')"
|
@click.exact="singleSelect(index, quotaData, selectedQuota, 'lastQuotaIndex')"
|
||||||
@click.ctrl="multiSelect(index, quotaData, selectedQuota, 'lastQuotaIndex')"
|
@click.ctrl="multiSelect(index, quotaData, selectedQuota, 'lastQuotaIndex')"
|
||||||
|
@click.meta="multiSelect(index, quotaData, selectedQuota, 'lastQuotaIndex')"
|
||||||
@click.shift="rangeSelect(index, quotaData, selectedQuota, 'lastQuotaIndex')"
|
@click.shift="rangeSelect(index, quotaData, selectedQuota, 'lastQuotaIndex')"
|
||||||
>
|
>
|
||||||
<svg-icon
|
<svg-icon
|
||||||
@ -3240,7 +3242,7 @@ export default {
|
|||||||
// drag
|
// drag
|
||||||
dragCheckType(list, type) {
|
dragCheckType(list, type) {
|
||||||
if (list && list.length > 0) {
|
if (list && list.length > 0) {
|
||||||
for (let i = 0; i < list.length; i++) {
|
for (let i = list.length - 1; i >= 0; i--) {
|
||||||
if (list[i].groupType !== type) {
|
if (list[i].groupType !== type) {
|
||||||
list.splice(i, 1)
|
list.splice(i, 1)
|
||||||
}
|
}
|
||||||
|
@ -289,7 +289,7 @@ export default {
|
|||||||
},
|
},
|
||||||
dragCheckType(list, type) {
|
dragCheckType(list, type) {
|
||||||
if (list && list.length > 0) {
|
if (list && list.length > 0) {
|
||||||
for (let i = 0; i < list.length; i++) {
|
for (let i = list.length - 1; i >= 0; i--) {
|
||||||
if (list[i].groupType !== type) {
|
if (list[i].groupType !== type) {
|
||||||
list.splice(i, 1)
|
list.splice(i, 1)
|
||||||
}
|
}
|
||||||
|
@ -353,7 +353,7 @@ export default {
|
|||||||
},
|
},
|
||||||
dragCheckType(list, type) {
|
dragCheckType(list, type) {
|
||||||
if (list && list.length > 0) {
|
if (list && list.length > 0) {
|
||||||
for (let i = 0; i < list.length; i++) {
|
for (let i = list.length - 1; i >= 0; i--) {
|
||||||
if (list[i].groupType !== type) {
|
if (list[i].groupType !== type) {
|
||||||
list.splice(i, 1)
|
list.splice(i, 1)
|
||||||
}
|
}
|
||||||
|
@ -363,7 +363,7 @@ export default {
|
|||||||
},
|
},
|
||||||
dragCheckType(list, type) {
|
dragCheckType(list, type) {
|
||||||
if (list && list.length > 0) {
|
if (list && list.length > 0) {
|
||||||
for (let i = 0; i < list.length; i++) {
|
for (let i = list.length - 1; i >= 0; i--) {
|
||||||
if (list[i].groupType !== type) {
|
if (list[i].groupType !== type) {
|
||||||
list.splice(i, 1)
|
list.splice(i, 1)
|
||||||
}
|
}
|
||||||
|
@ -390,7 +390,7 @@ export default {
|
|||||||
},
|
},
|
||||||
dragCheckType(list, type) {
|
dragCheckType(list, type) {
|
||||||
if (list && list.length > 0) {
|
if (list && list.length > 0) {
|
||||||
for (let i = 0; i < list.length; i++) {
|
for (let i = list.length - 1; i >= 0; i--) {
|
||||||
if (list[i].groupType !== type) {
|
if (list[i].groupType !== type) {
|
||||||
list.splice(i, 1)
|
list.splice(i, 1)
|
||||||
}
|
}
|
||||||
|
@ -362,7 +362,7 @@ export default {
|
|||||||
},
|
},
|
||||||
dragCheckType(list, type) {
|
dragCheckType(list, type) {
|
||||||
if (list && list.length > 0) {
|
if (list && list.length > 0) {
|
||||||
for (let i = 0; i < list.length; i++) {
|
for (let i = list.length - 1; i >= 0; i--) {
|
||||||
if (list[i].groupType !== type) {
|
if (list[i].groupType !== type) {
|
||||||
list.splice(i, 1)
|
list.splice(i, 1)
|
||||||
}
|
}
|
||||||
|
@ -333,7 +333,7 @@ export default {
|
|||||||
},
|
},
|
||||||
dragCheckType(list, type) {
|
dragCheckType(list, type) {
|
||||||
if (list && list.length > 0) {
|
if (list && list.length > 0) {
|
||||||
for (let i = 0; i < list.length; i++) {
|
for (let i = list.length - 1; i >= 0; i--) {
|
||||||
if (list[i].groupType !== type) {
|
if (list[i].groupType !== type) {
|
||||||
list.splice(i, 1)
|
list.splice(i, 1)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user