mixin dicSelect(dicList, name, value, attr, style)
    -
        attr.style = style;
        var id = name.replace('.', '_')
    input(type="hidden", name=name + ".text", id=id + "_text")
    select(id=id, name=name, onChange="$('#" + id + "_text').val($(this).find('option:selected').text())")&attributes(attr)
        option(value="") 请选择...
        if dicList
            for dic in dicList
                option(value=(dic.discode ? dic.code : dic.id), selected=dic.id == value || dic.code == value)= dic.name

//- 系统词典Select
mixin sysDicSelect(code, name, value, attr, style)
    +dicSelect(uKeFuDic[code],name,value,attr,style)

mixin subSelect(macroSysDicList, name, value, attr, style)
    -
        style = style ? style : '';
        var id = name.replace('.', '_')
    input(type="hidden", name=name + ".text", id=id + "_text")
    select(id=id, name=name, onChange="$('#" + id + "_text').val($(this).find('option:selected').text())", style=style)&attributes(attr)
        option(value="") 请选择...
        if macroSysDicList
            for dic in macroSysDicList
                option(value=(dic.discode ? dic.code : dic.id), selected=dic.id == value || dic.code == value)= dic.name

