import BaseFunc from '../base/func' import BaseDefine from '../base/define' import OperatePage from '../operate/page' import { TitemShowType } from '../aim/face' import { TformActionType } from '../aim/form' export default class { static upItemShowType(pShow: string, sFormType?: TformActionType): TitemShowType { let sReturn: TitemShowType = ''; //如果是展示页面 则返回book 并且该操作优先级最高 if (sFormType != undefined) { if (sFormType === "book") { sReturn = sFormType; } } if (pShow != undefined) { let sBaseShow = OperatePage.upUrlInfo().baseShow; //如果baseShow为空 则取baseType来进行标记 if (BaseFunc.stringIsEmpty(sBaseShow)) { sBaseShow = OperatePage.upUrlInfo().baseType; } if (!BaseFunc.stringIsEmpty(sBaseShow)) { let mapShow = BaseFunc.stringToMap(pShow); if (mapShow.has(sBaseShow)) { let sVal: any = mapShow.get(sBaseShow); sReturn = sVal; } } } return sReturn; } }