king
2021-05-14 274c4c5bff973a26b6bcf9d0c6708cb0518b1b12
src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx
@@ -11,7 +11,7 @@
  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 = ''
@@ -23,7 +23,7 @@
  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
@@ -109,9 +109,9 @@
      key: 'linkmenu',
      label: '关联菜单',
      initVal: card.linkmenu || '',
      tooltip: '双击饼图,会打开关联的菜单。',
      tooltip: '双击柱状图,会打开关联的菜单。',
      required: false,
      forbid: !(appType === 'pc' || appType === 'mob'),
      forbid: appType !== 'pc',
      options: menulist
    },
    {
@@ -120,7 +120,7 @@
      label: '打开方式',
      initVal: card.open || 'blank',
      required: false,
      forbid: !(appType === 'pc' || appType === 'mob'),
      forbid: appType !== 'pc',
      options: [
        { value: 'blank', text: '新窗口' },
        { value: 'self', text: '当前窗口' }