| | |
| | | let appType = sessionStorage.getItem('appType') |
| | | let menulist = null |
| | | |
| | | if (appType === 'pc' || appType === 'mob') { |
| | | if (appType === 'pc') { |
| | | menulist = sessionStorage.getItem('appMenus') |
| | | if (Array.isArray(card.linkmenu)) { |
| | | card.linkmenu = '' |
| | |
| | | if (menulist) { |
| | | try { |
| | | menulist = JSON.parse(menulist) |
| | | if (appType === 'pc' || appType === 'mob') { |
| | | if (appType === 'pc') { |
| | | menulist = menulist.map(item => { |
| | | item.value = item.MenuID |
| | | item.text = item.MenuName |
| | |
| | | key: 'linkmenu', |
| | | label: '关联菜单', |
| | | initVal: card.linkmenu || '', |
| | | tooltip: '双击饼图,会打开关联的菜单。', |
| | | tooltip: '双击柱状图,会打开关联的菜单。', |
| | | required: false, |
| | | forbid: !(appType === 'pc' || appType === 'mob'), |
| | | forbid: appType !== 'pc', |
| | | options: menulist |
| | | }, |
| | | { |
| | |
| | | label: '打开方式', |
| | | initVal: card.open || 'blank', |
| | | required: false, |
| | | forbid: !(appType === 'pc' || appType === 'mob'), |
| | | forbid: appType !== 'pc', |
| | | options: [ |
| | | { value: 'blank', text: '新窗口' }, |
| | | { value: 'self', text: '当前窗口' } |