| | |
| | | public void addIcon(PLIconDTO iconDTO) { |
| | | WebUtil.alertNotNull(iconDTO.getName(),"图标名称", iconDTO.getContent(),"图标内容"); |
| | | |
| | | String iconContent = iconDTO.getContent(); |
| | | if(iconContent.contains("<use href")){ |
| | | iconContent = iconContent.replace("svg\"", "svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\""); |
| | | iconContent = iconContent.replace("<use href","<use xlink:href"); |
| | | } |
| | | |
| | | PLIcon plIcon = new PLIcon(); |
| | | plIcon.oid = WebUtil.getPk(); |
| | | plIcon.name = iconDTO.getName().toLowerCase(); |
| | | plIcon.content = iconDTO.getContent(); |
| | | plIcon.content = iconContent; |
| | | plIcon.type = iconDTO.getType(); |
| | | plIcon.groups = iconDTO.getGroups(); |
| | | |
| | |
| | | if(StringUtils.isBlank(plIcon.oid)){ |
| | | throw new VciBaseException("未获取到【"+iconDTO.getName()+"】图标信息!"); |
| | | } |
| | | plIcon.content = iconDTO.getContent(); |
| | | |
| | | String iconContent = iconDTO.getContent(); |
| | | if(iconContent.contains("<use href")){ |
| | | iconContent = iconContent.replace("svg\"", "svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\""); |
| | | iconContent = iconContent.replace("<use href","<use xlink:href"); |
| | | } |
| | | |
| | | plIcon.content = iconContent; |
| | | plIcon.type = iconDTO.getType(); |
| | | plIcon.groups = iconDTO.getGroups(); |
| | | portalServicePrx.updatePLIcon(plIcon); |