Merge pull request #7769 from dataease/pr@dev-v2@refactor_batch-opt

refactor: 优化指标卡批量操作逻辑
This commit is contained in:
王嘉豪 2024-01-23 15:38:40 +08:00 committed by GitHub
commit db45b7c020
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 1 deletions

View File

@ -276,7 +276,7 @@ watch(
title="大小"
>
<misc-selector
:property-inner="propertyInnerAll['size-selector']"
:property-inner="propertyInnerAll['misc-selector']"
:themes="themes"
class="attr-selector"
:chart="chart"

View File

@ -25,6 +25,8 @@
@onTableCellChange="onTableCellChange"
@onTableTotalChange="onTableTotalChange"
@onChangeMiscStyleForm="onChangeMiscStyleForm"
@onIndicatorChange="onIndicatorChange"
@onIndicatorNameChange="onIndicatorNameChange"
/>
<common-attr
v-else-if="mixProperties && batchOptComponentInfo && batchOptComponentType !== 'UserView'"
@ -77,6 +79,14 @@ const onChangeYAxisForm = (val, prop) => {
batchOptChange('customStyle', 'yAxis', val, prop)
}
const onIndicatorChange = (val, prop) => {
batchOptChange('customAttr', 'indicator', val, prop)
}
const onIndicatorNameChange = (val, prop) => {
batchOptChange('customAttr', 'indicatorName', val, prop)
}
const onChangeMiscStyleForm = (val, prop) => {
batchOptChange('customStyle', 'misc', val, prop)
}