refactor(仪表板、数据大屏): 修复控制台错误等问题

This commit is contained in:
wangjiahao 2024-11-27 09:56:59 +08:00
parent 23303f7709
commit b933661169
2 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@
}"
>
<div class="bar-first">
<el-tooltip :content="state.barActive ? '收起' : '展开'">
<el-tooltip :content="state.barActive ? t('visualization.fold') : t('visualization.expand')">
<el-icon style="width: 16px; height: 16px" @click="firstBarClick">
<Icon name="icon_down_right_outlined" v-if="state.barActive">
<icon_down_right_outlined />

View File

@ -772,7 +772,7 @@ const init = viewItem => {
// 1. 2.
state.linkJumpCurFilterFieldArray = []
componentData.value.forEach(componentItem => {
if (componentItem.component === 'VQuery') {
if (componentItem.component === 'VQuery' && componentItem.propValue instanceof Array) {
componentItem.propValue.forEach(filterItem => {
if (filterItem.checkedFields.includes(state.viewId)) {
state.linkJumpCurFilterFieldArray.push({
@ -818,7 +818,7 @@ const init = viewItem => {
const firstNode = state.linkJumpInfoArray[0]
state.initState = true
nextTick(() => {
linkJumpInfoTree.value.setCurrentKey(firstNode.sourceFieldId)
linkJumpInfoTree.value.setCurrentKey(firstNode?.sourceFieldId)
nodeClick(firstNode)
})
})
@ -923,7 +923,7 @@ const getPanelViewList = dvId => {
}
//
JSON.parse(rsp.data.bashComponentData).forEach(componentItem => {
if (componentItem.component === 'VQuery') {
if (componentItem.component === 'VQuery' && componentItem.propValue instanceof Array) {
componentItem.propValue.forEach(filterItem => {
state.currentLinkPanelViewArray.push({
id: filterItem.id,