king
2021-10-14 e41a64966b7832baffe96c21d1ea77ef6adb2905
src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx
@@ -8,35 +8,7 @@
 * @param {object} card       // 图表对象
 */
export function getBaseForm (card) {
  // let appType = sessionStorage.getItem('appType')
  // let menulist = null
  // if (appType === 'pc') {
  //   menulist = sessionStorage.getItem('appMenus')
  //   if (Array.isArray(card.linkmenu)) {
  //     card.linkmenu = ''
  //   }
  // } else {
  //   menulist = sessionStorage.getItem('fstMenuList')
  // }
  // if (menulist) {
  //   try {
  //     menulist = JSON.parse(menulist)
  //     if (appType === 'pc') {
  //       menulist = menulist.map(item => {
  //         item.value = item.MenuID
  //         item.text = item.MenuName
  //         return item
  //       })
  //     }
  //   } catch (e) {
  //     menulist = []
  //   }
  // } else {
  //   menulist = []
  // }
  let appType = sessionStorage.getItem('appType')
  let roleList = sessionStorage.getItem('sysRoles')
  if (roleList) {
    try {
@@ -92,7 +64,8 @@
      initVal: card.blacklist || [],
      multi: true,
      required: false,
      options: roleList
      options: roleList,
      forbid: !!appType
    },
    // {
    //   type: 'cascader',