forked from github/dataease
Merge pull request #5616 from dataease/pr@dev@fix_panel-linkage
fix(仪表板): 优化联动配置界面,防止联动配置卡顿问题
This commit is contained in:
commit
e56ad24941
@ -61,7 +61,7 @@
|
||||
dataset_table_field.origin_name,
|
||||
dataset_table_field.`name`,
|
||||
dataset_table_field.de_type
|
||||
from dataset_table_field where table_id = #{table_id}
|
||||
from dataset_table_field where dataset_table_field.group_type = 'd' and table_id = #{table_id}
|
||||
</select>
|
||||
|
||||
<select id="queryTableFieldWithViewId" resultMap="TableFieldMap">
|
||||
|
@ -171,23 +171,19 @@ export default {
|
||||
return this.targetLinkageInfo[this.curLinkageView.propValue.viewId]
|
||||
},
|
||||
...mapState([
|
||||
'menuTop',
|
||||
'menuLeft',
|
||||
'menuShow',
|
||||
'curComponent',
|
||||
'componentData',
|
||||
'canvasStyleData',
|
||||
'linkageSettingStatus',
|
||||
'targetLinkageInfo',
|
||||
'curLinkageView'
|
||||
])
|
||||
},
|
||||
mounted() {
|
||||
const _this = this
|
||||
// 初始化映射关系 如果当前是相同的数据集且没有关联关系,则自动补充映射关系
|
||||
checkSameDataSet(this.curLinkageView.propValue.viewId, this.element.propValue.viewId).then(res => {
|
||||
if (res.data === 'YES' && this.linkageInfo.linkageFields.length === 0) {
|
||||
this.sourceLinkageInfo.targetViewFields.forEach(item => {
|
||||
this.addLinkageField(item.id, item.id)
|
||||
_this.$nextTick(() => {
|
||||
this.addLinkageField(item.id, item.id)
|
||||
})
|
||||
})
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user