类 CmsDictionaryExcludeDirective

所有已实现的接口:
Directive, HttpDirective, freemarker.template.TemplateDirectiveModel, freemarker.template.TemplateModel

@Component public class CmsDictionaryExcludeDirective extends AbstractTemplateDirective
dictionaryExclude 数据字典排除规则查询指令

参数列表

parameter list

パラメータリスト

  • dictionaryId:数据字典id
  • excludeDictionaryId 排除的字典,结果返回objectCmsDictionaryExclude
  • excludeDictionaryIds 多个排除的字典,逗号或空格间隔,当excludeDictionaryId为空时生效,结果返回map(id,object)

使用示例

usage example

使用例

<@cms.dictionaryExclude dictionaryId='data' excludeDictionaryId='data1'>${object.id.excludeDictionaryId}</@cms.dictionaryExclude>

<@cms.dictionaryExclude dictionaryId='data' excludeDictionaryIds='data1,data2'><#list map as k,v>${k}:${v.id.excludeDictionaryId}<#sep>,</#list></@cms.dictionaryExclude>

  <script>
   $.getJSON('${site.dynamicPath}api/directive/cms/dictionaryExclude?dictionaryId=data&value=1', function(data){
     console.log(data.id.excludeDictionaryId);
   });
   </script>
 
  • 字段详细资料

  • 构造器详细资料

    • CmsDictionaryExcludeDirective

      public CmsDictionaryExcludeDirective()
  • 方法详细资料

    • execute

      public void execute(RenderHandler handler) throws IOException, freemarker.template.TemplateException
      参数:
      handler -
      抛出:
      IOException
      freemarker.template.TemplateException