|
@@ -131,6 +131,7 @@ export default {
|
|
},
|
|
},
|
|
// 右键菜单
|
|
// 右键菜单
|
|
onContextmenu (event, chart) {
|
|
onContextmenu (event, chart) {
|
|
|
|
+ const isHidden = !chart?.option?.displayOption?.dataAllocation?.enable
|
|
event.preventDefault()
|
|
event.preventDefault()
|
|
if (this.isPreview) {
|
|
if (this.isPreview) {
|
|
this.$contextmenu({
|
|
this.$contextmenu({
|
|
@@ -138,6 +139,7 @@ export default {
|
|
{
|
|
{
|
|
label: '查看数据',
|
|
label: '查看数据',
|
|
icon: 'el-icon-view',
|
|
icon: 'el-icon-view',
|
|
|
|
+ hidden: isHidden,
|
|
onClick: () => {
|
|
onClick: () => {
|
|
this.dataView(chart)
|
|
this.dataView(chart)
|
|
}
|
|
}
|
|
@@ -228,6 +230,7 @@ export default {
|
|
{
|
|
{
|
|
label: '查看数据',
|
|
label: '查看数据',
|
|
icon: 'el-icon-view',
|
|
icon: 'el-icon-view',
|
|
|
|
+ hidden: isHidden,
|
|
onClick: () => {
|
|
onClick: () => {
|
|
this.dataView(chart)
|
|
this.dataView(chart)
|
|
}
|
|
}
|