Merge pull request #3257 from dataease/pr@dev@refactor_view-field-copy

fix(视图): 修复视图计算字段跟随视图复制后出现告警提示的问题
This commit is contained in:
xuwei-fit2cloud 2022-09-29 14:46:59 +08:00 committed by GitHub
commit 4ed736ae2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ export function getItemType(dimensionData, quotaData, item) {
if (status === 'd') {
for (let i = 0; i < dimensionData.length; i++) {
const ele = dimensionData[i]
if (ele.id === item.id && ele.deType === item.deType && ele.groupType === item.groupType) {
if (((item.chartId && item.extField === 2 && item.tableId === ele.tableId) || ele.id === item.id) && ele.deType === item.deType && ele.groupType === item.groupType) {
checked = true
break
}
@ -19,7 +19,7 @@ export function getItemType(dimensionData, quotaData, item) {
if (status === 'q') {
for (let i = 0; i < quotaData.length; i++) {
const ele = quotaData[i]
if (ele.id === item.id && ele.deType === item.deType && ele.groupType === item.groupType) {
if (((item.chartId && item.extField === 2 && item.tableId === ele.tableId) || ele.id === item.id) && ele.deType === item.deType && ele.groupType === item.groupType) {
checked = true
break
}