-
+
diff --git a/frontend/src/components/canvas/components/Editor/LinkageField.vue b/frontend/src/components/canvas/components/Editor/LinkageField.vue
index c5626e4578..6cd2ae19a2 100644
--- a/frontend/src/components/canvas/components/Editor/LinkageField.vue
+++ b/frontend/src/components/canvas/components/Editor/LinkageField.vue
@@ -1,17 +1,18 @@
-
-
+
+ 联动视图
+
+
+ {{ linkageInfo.targetViewName }}
+
- this is test
-
追加联动依赖字段
@@ -74,23 +75,7 @@ export default {
this.$emit('showViewDetails')
},
edit() {
- // 编辑时临时保存 当前修改的画布
- this.$store.dispatch('panel/setComponentDataTemp', JSON.stringify(this.componentData))
- this.$store.dispatch('panel/setCanvasStyleDataTemp', JSON.stringify(this.canvasStyleData))
- if (this.curComponent.type === 'view') {
- this.$store.dispatch('chart/setViewId', null)
- this.$store.dispatch('chart/setViewId', this.curComponent.propValue.viewId)
- bus.$emit('PanelSwitchComponent', { name: 'ChartEdit', param: { 'id': this.curComponent.propValue.viewId, 'optType': 'edit' }})
- }
- if (this.curComponent.type === 'custom') {
- bus.$emit('component-dialog-edit')
- }
- // 编辑样式组件
-
- if (this.curComponent.type === 'v-text' || this.curComponent.type === 'rect-shape') {
- bus.$emit('component-dialog-style')
- }
},
linkageEdit() {
@@ -108,5 +93,17 @@ export default {
text-align: center;
}
+ .ellip{
+ /*width: 100%;*/
+ margin-left: 10px;
+ overflow: hidden;/*超出部分隐藏*/
+ white-space: nowrap;/*不换行*/
+ text-overflow:ellipsis;/*超出部分文字以...显示*/
+ background-color: #f7f8fa;
+ color: #3d4d66;
+ font-size: 12px;
+ line-height: 24px;
+ height: 24px;
+ }
diff --git a/frontend/src/views/panel/list/PanelList.vue b/frontend/src/views/panel/list/PanelList.vue
index 8b42d39483..d7b5c99bda 100644
--- a/frontend/src/views/panel/list/PanelList.vue
+++ b/frontend/src/views/panel/list/PanelList.vue
@@ -463,6 +463,7 @@ export default {
message: this.$t('panel.delete_success'),
showClose: true
})
+ this.clearCanvas()
this.tree(this.groupForm)
this.defaultTree()
})
@@ -470,6 +471,17 @@ export default {
})
},
+ clearCanvas() {
+ // 清空当前缓存,快照
+ this.$store.commit('setComponentData', [])
+ this.$store.commit('setCanvasStyle', DEFAULT_COMMON_CANVAS_STYLE_STRING)
+ this.$store.dispatch('panel/setPanelInfo', {
+ id: null,
+ name: '',
+ preStyle: null
+ })
+ },
+
close() {
this.editGroup = false
this.groupForm = {