feat: 仪表板处于公共链接模式,跳转的目标仪表板也以公共链接跳转,同时支持传参数
This commit is contained in:
parent
fc5bbd3689
commit
2ea9678dd8
@ -409,7 +409,7 @@ export default {
|
||||
} else {
|
||||
this.$message({
|
||||
type: 'warn',
|
||||
message: '当前是公共链接模式,目标仪表板未设置公共链接,无法跳转',
|
||||
message: this.$t('panel.public_link_tips'),
|
||||
showClose: true
|
||||
})
|
||||
}
|
||||
|
||||
@ -1460,7 +1460,8 @@ export default {
|
||||
panel_view_result_tips: 'Chose "Panel" Will Overwrite View`s Result,Range 1~10000',
|
||||
timeout_refresh: 'Timeout,Will Refresh...',
|
||||
mobile_layout: 'Mobile Layout',
|
||||
component_hidden: 'Component Hidden'
|
||||
component_hidden: 'Component Hidden',
|
||||
public_link_tips: 'New Is Public Link,The Target Panel Have Not Set Public Link,Can Not Jump'
|
||||
},
|
||||
plugin: {
|
||||
local_install: 'Local installation',
|
||||
|
||||
@ -1462,7 +1462,8 @@ export default {
|
||||
panel_view_result_tips: '選擇儀表板會覆蓋視圖的結果展示數量,取值範圍1~10000',
|
||||
timeout_refresh: '请求超时,稍后刷新...',
|
||||
mobile_layout: '移动端布局',
|
||||
component_hidden: '隐藏的组件'
|
||||
component_hidden: '隐藏的组件',
|
||||
public_link_tips: '当前是公共链接模式,目标仪表板未设置公共链接,无法跳转'
|
||||
},
|
||||
plugin: {
|
||||
local_install: '本地安裝',
|
||||
|
||||
@ -1471,7 +1471,8 @@ export default {
|
||||
panel_view_result_tips: '选择仪表板会覆盖视图的结果展示数量,取值范围1~10000',
|
||||
timeout_refresh: '请求超时,稍后刷新...',
|
||||
mobile_layout: '移动端布局',
|
||||
component_hidden: '隐藏的组件'
|
||||
component_hidden: '隐藏的组件',
|
||||
public_link_tips: '当前是公共链接模式,目标仪表板未设置公共链接,无法跳转'
|
||||
},
|
||||
plugin: {
|
||||
local_install: '本地安装',
|
||||
|
||||
@ -32,6 +32,10 @@ export default {
|
||||
methods: {
|
||||
setPanelInfo() {
|
||||
loadResource(this.resourceId).then(res => {
|
||||
this.$store.dispatch('panel/setPanelInfo', {
|
||||
id: res.data.id,
|
||||
name: res.data.name
|
||||
})
|
||||
// 刷新联动信息
|
||||
getPanelAllLinkageInfo(this.resourceId).then(rsp => {
|
||||
this.$store.commit('setNowPanelTrackInfo', rsp.data)
|
||||
@ -52,7 +56,7 @@ export default {
|
||||
sourcePanelId: jumpParam.sourcePanelId,
|
||||
sourceViewId: jumpParam.sourceViewId,
|
||||
sourceFieldId: jumpParam.sourceFieldId,
|
||||
targetPanelId: this.panelId
|
||||
targetPanelId: this.resourceId
|
||||
}
|
||||
this.show = false
|
||||
// 刷新跳转目标仪表板联动信息
|
||||
|
||||
@ -82,7 +82,7 @@
|
||||
<el-row v-for="(targetViewInfo,index) in linkJumpInfo.targetViewInfoList" :key="index">
|
||||
<el-col :span="11">
|
||||
<div class="select-filed">
|
||||
<el-select v-model="targetViewInfo.targetViewId" style="width: 100%" size="mini" :placeholder="$t('panel.please_select')" @change="viewInfoOnChange(targetViewInfo)">
|
||||
<el-select v-model="targetViewInfo.targetViewId" style="width: 100%" size="mini" :placeholder="$t('fu.search_bar.please_select')" @change="viewInfoOnChange(targetViewInfo)">
|
||||
<el-option
|
||||
v-for="item in currentLinkPanelViewArray"
|
||||
:key="item.id"
|
||||
@ -99,7 +99,7 @@
|
||||
</el-col>
|
||||
<el-col :span="11">
|
||||
<div class="select-filed">
|
||||
<el-select v-model="targetViewInfo.targetFieldId" style="width: 100%" size="mini" :placeholder="$t('panel.please_select')">
|
||||
<el-select v-model="targetViewInfo.targetFieldId" style="width: 100%" size="mini" :placeholder="$t('fu.search_bar.please_select')">
|
||||
<el-option
|
||||
v-for="viewField in viewIdFieldArrayMap[targetViewInfo.targetViewId]"
|
||||
:key="viewField.id"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user