refactor(仪表板、数据大屏): 修复控制台错误等问题
This commit is contained in:
parent
23303f7709
commit
b933661169
@ -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 />
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user