|
|
@ -26,7 +26,7 @@ import Permissions from '@/module/permissions' |
|
|
|
* @desc tooltip |
|
|
|
* @desc tooltip |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
const toolOper = (dagThis) => { |
|
|
|
const toolOper = (dagThis) => { |
|
|
|
let disabled =!dagThis.$store.state.dag.isDetails// Permissions.getAuth() === false ? false : !dagThis.$store.state.dag.isDetails
|
|
|
|
let disabled =!!dagThis.$store.state.dag.isDetails// Permissions.getAuth() === false ? false : !dagThis.$store.state.dag.isDetails
|
|
|
|
return [ |
|
|
|
return [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
code: 'pointer', |
|
|
|
code: 'pointer', |
|
|
@ -49,13 +49,13 @@ const toolOper = (dagThis) => { |
|
|
|
{ |
|
|
|
{ |
|
|
|
code: 'download', |
|
|
|
code: 'download', |
|
|
|
icon: 'ans-icon-download', |
|
|
|
icon: 'ans-icon-download', |
|
|
|
disable: !!dagThis.type, |
|
|
|
disable: !dagThis.type, |
|
|
|
desc: `${i18n.$t('Download')}` |
|
|
|
desc: `${i18n.$t('Download')}` |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
code: 'screen', |
|
|
|
code: 'screen', |
|
|
|
icon: 'ans-icon-max', |
|
|
|
icon: 'ans-icon-max', |
|
|
|
disable: disabled, |
|
|
|
disable: false, |
|
|
|
desc: `${i18n.$t('Full Screen')}` |
|
|
|
desc: `${i18n.$t('Full Screen')}` |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
|