提交 da0d8960 编写于 作者: W weizhiqiang

枚举类支持条件过滤

上级 02831d37
......@@ -627,7 +627,10 @@ var systemCommonUtil = {
var params = {
className: encodeURIComponent(skyeyeClassEnum[code]["className"])
};
AjaxPostUtil.request({url: reqBasePath + "getEnumDataByClassName", params: params, type: 'json', method: "GET", callback: function(json) {
if (!isNull(skyeyeClassEnum[code]["filterKey"])) {
params["filterKey"] = skyeyeClassEnum[code]["filterKey"];
}
AjaxPostUtil.request({url: reqBasePath + "getEnumDataByClassName", params: params, type: 'json', method: "POST", callback: function(json) {
if (showType == 'select') {
$("#" + showBoxId).html(getDataUseHandlebars(getFileContent('tpl/template/select-option.tpl'), json));
if (!isNull(defaultId)) {
......
{
"commonEnable": {"name": "启用/禁用", "className": "skyeye-pro#com.skyeye.common.enumeration.EnableEnum"}
"commonEnable": {"name": "启用/禁用", "className": "skyeye-pro#com.skyeye.common.enumeration.EnableEnum"},
"bossInterviewArrangementState": {"name": "面试安排状态枚举类", "className": "skyeye-flowable#com.skyeye.service.enumclass.BossInterviewArrangementState"},
"bossInterviewArrangementState1": {"name": "面试安排状态枚举类-获取我录入的人员需求关联的面试者信息列表", "className": "skyeye-flowable#com.skyeye.service.enumclass.BossInterviewArrangementState", "filterKey": "2,3,4,5,6,7"},
"bossInterviewArrangementState2": {"name": "面试安排状态枚举类-获取面试官为当前登录用户的面试者信息列表", "className": "skyeye-flowable#com.skyeye.service.enumclass.BossInterviewArrangementState", "filterKey": "3,4,5"}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册