diff --git a/modules/core/src/main/resources/templates/modules/gen/include/dataGridScript.html b/modules/core/src/main/resources/templates/modules/gen/include/dataGridScript.html index aead9aac..e8d1deda 100644 --- a/modules/core/src/main/resources/templates/modules/gen/include/dataGridScript.html +++ b/modules/core/src/main/resources/templates/modules/gen/include/dataGridScript.html @@ -18,8 +18,8 @@ $('#dataGrid').dataGrid({ for(c in table.columnList){ if(c.attrName == table.treeViewNameAttrName){ %> - {header:'\${text('${c.columnLabel}')}', name:'${c.attrName}', index:'a.${c.columnName}', width:250, align:"left", frozen:true, formatter: function(val, obj, row, act){ - return '( '+row.${table.treeViewCodeAttrName}+' ) '+''+(val||row.id)+''; + {header:'\${text("${c.columnLabel}")}', name:'${c.attrName}', index:'a.${c.columnName}', width:250, align:"left", frozen:true, formatter: function(val, obj, row, act){ + return '( '+row.${table.treeViewCodeAttrName}+' ) '+''+(val||row.id)+''; }}, <% firstColumn = false; @@ -41,55 +41,55 @@ $('#dataGrid').dataGrid({ else if(firstColumn){ firstColumn = false; %> - {header:'\${text('${c.columnLabel}')}', name:'${c.attrName}', index:'a.${c.columnName}', width:150, align:"left", frozen:true, formatter: function(val, obj, row, act){ - return ''+(val||row.id)+''; + {header:'\${text("${c.columnLabel}")}', name:'${c.attrName}', index:'a.${c.columnName}', width:150, align:"left", frozen:true, formatter: function(val, obj, row, act){ + return ''+(val||row.id)+''; }}, <% }else if(c.showType == 'select' || c.showType == 'select_multiple' || c.showType == 'checkbox' || c.showType == 'radio'){ %> - {header:'\${text('${c.columnLabel}')}', name:'${c.attrName}', index:'a.${c.columnName}', width:150, align:"center", formatter: function(val, obj, row, act){ - return js.getDictLabel(\${@DictUtils.getDictListJson('${c.optionMap['dictType']}')}, val, '\${text('未知')}', true); + {header:'\${text("${c.columnLabel}")}', name:'${c.attrName}', index:'a.${c.columnName}', width:150, align:"center", formatter: function(val, obj, row, act){ + return js.getDictLabel(\${@DictUtils.getDictListJson('${c.optionMap['dictType']}')}, val, '\${text("未知")}', true); }}, <% }else if(c.showType == "userselect" || c.showType == "officeselect" || c.showType == "areaselect"){ %> - {header:'\${text('${c.columnLabel}')}', name:'${c.attrName2}', index:'a.${c.columnName}', width:150, align:"center"}, + {header:'\${text("${c.columnLabel}")}', name:'${c.attrName2}', index:'a.${c.columnName}', width:150, align:"center"}, <% }else{ if (@StringUtils.inString(c.attrType, 'java.util.Date', 'Integer', 'Long')){ %> - {header:'\${text('${c.columnLabel}')}', name:'${c.attrName}', index:'a.${c.columnName}', width:150, align:"center"}, + {header:'\${text("${c.columnLabel}")}', name:'${c.attrName}', index:'a.${c.columnName}', width:150, align:"center"}, <% }else if (@StringUtils.inString(c.attrType, 'Float', 'Double')){ %> - {header:'\${text('${c.columnLabel}')}', name:'${c.attrName}', index:'a.${c.columnName}', width:150, align:"right", formatter: function(val, obj, row, act){ + {header:'\${text("${c.columnLabel}")}', name:'${c.attrName}', index:'a.${c.columnName}', width:150, align:"right", formatter: function(val, obj, row, act){ return js.formatNumber(val, 2, false, ''); // 数值类型格式化 (原始数值, 小数位数, 是否千分位, 默认值,金额情况下设置0.00); }}, <% }else { %> - {header:'\${text('${c.columnLabel}')}', name:'${c.attrName}', index:'a.${c.columnName}', width:150, align:"left"}, + {header:'\${text("${c.columnLabel}")}', name:'${c.attrName}', index:'a.${c.columnName}', width:150, align:"left"}, <% } } } } %> - {header:'\${text('操作')}', name:'actions', width:120, sortable:false, title:false, formatter: function(val, obj, row, act){ + {header:'\${text("操作")}', name:'actions', width:120, sortable:false, title:false, formatter: function(val, obj, row, act){ var actions = []; <% if(isQueryTpl){ %> - actions.push(' '); + actions.push(' '); <% }else{ %> \<% if(hasPermi('${permissionPrefix}:edit')){ %> - actions.push(' '); + actions.push(' '); <% if(@ObjectUtils.toBoolean(table.optionMap['isHaveDisableEnable'])){ %> if (row.status == Global.STATUS_NORMAL){ - actions.push(' '); + actions.push(' '); } if (row.status == Global.STATUS_DISABLE){ - actions.push(' '); + actions.push(' '); } <% } %> <% if(@ObjectUtils.toBoolean(table.optionMap['isHaveDelete'])){ %> - actions.push(' data-deltreenode="'+row.id+'"<% } %>> '); + actions.push('及所有子${functionNameSimple}<% } %>吗?")}"<% if(table.isTreeEntity){ %> data-deltreenode="'+row.id+'"<% } %>> '); <% } %> <% if(table.isTreeEntity){ %> - actions.push(' '); + actions.push(' '); <% } %> \<% } %> <% } %> diff --git a/modules/core/src/main/resources/templates/modules/gen/include/formChildTableScript.html b/modules/core/src/main/resources/templates/modules/gen/include/formChildTableScript.html index 58524b0c..de1f5b32 100644 --- a/modules/core/src/main/resources/templates/modules/gen/include/formChildTableScript.html +++ b/modules/core/src/main/resources/templates/modules/gen/include/formChildTableScript.html @@ -26,7 +26,7 @@ for (c in child.columnList){ // 如果是外键,父级的主键 if(child.parentExists && child.parentTableFkName == c.columnName){ %> - {header:'\${text('${c.columnLabel}')}', name:'${c.attrName}', editable:true, hidden:true}, + {header:'\${text("${c.columnLabel}")}', name:'${c.attrName}', editable:true, hidden:true}, <% continue; } @@ -49,15 +49,15 @@ for (c in child.columnList){ } // 输出列字段 if(c.showType == 'input'){ -%> {header:'\${text('${c.columnLabel}')}', name:'${c.attrName}', width:150, editable:true, edittype:'text', editoptions:{${attrs}'class':'form-control${cssClass}'}}, +%> {header:'\${text("${c.columnLabel}")}', name:'${c.attrName}', width:150, editable:true, edittype:'text', editoptions:{${attrs}'class':'form-control${cssClass}'}}, <% }else if(c.showType == 'textarea'){ %> - {header:'\${text('${c.columnLabel}')}', name:'${c.attrName}', width:150, editable:true, edittype:'textarea', editoptions:{${attrs}'class':'form-control${cssClass}', 'rows':'1'}}, + {header:'\${text("${c.columnLabel}")}', name:'${c.attrName}', width:150, editable:true, edittype:'textarea', editoptions:{${attrs}'class':'form-control${cssClass}', 'rows':'1'}}, <% }else if(c.showType == 'select' || c.showType == 'select_multiple' || c.showType == 'radio' || c.showType == 'checkbox'){ %> - {header:'\${text('${c.columnLabel}')}', name:'${c.attrName}', width:100, + {header:'\${text("${c.columnLabel}")}', name:'${c.attrName}', width:100, editable:true, edittype:'select', editoptions:{<%if (c.showType == 'select_multiple' || c.showType == 'checkbox'){ %>multiple:true, <% } %>'class':'form-control${cssClass}', items: $.merge([<%if (!(c.showType == 'select_multiple' || c.showType == 'checkbox')){ %>{dictLabel:' ',dictValue:''}<% } %>], \${@DictUtils.getDictListJson('${c.optionMap['dictType']}')}), itemLabel: 'dictLabel', itemValue: 'dictValue', dataInit: function(element){ @@ -69,7 +69,7 @@ for (c in child.columnList){ }else if(c.showType == 'date' || c.showType == 'datetime'){ var isTime = (c.showType == 'datetime'); %> - {header:'\${text('${c.columnLabel}')}', name:'${c.attrName}', width:150, + {header:'\${text("${c.columnLabel}")}', name:'${c.attrName}', width:150, formatter:'date', formatoptions:{srcformat:'Y-m-d H:i:s',newformat:'Y-m-d${isTime?' H:i:s':''}'}, editable:true, edittype:'text', editoptions:{'class':'form-control Wdate${cssClass}', 'readonly':'true', dataInit: function(element){ $(element).on('focus', function(){ @@ -80,7 +80,7 @@ for (c in child.columnList){ <% }else if(c.showType == 'userselect'){ treeselectExists = true; %> - {header:'\${text('${c.columnLabel}')}', name:'${c.simpleAttrName}', width:150, + {header:'\${text("${c.columnLabel}")}', name:'${c.simpleAttrName}', width:150, formatter: function(val, obj, row, act){ return js.val(row, '${c.attrName}')+'|'+js.val(row, '${c.attrName2}'); }, editable: true, edittype: "custom", editoptions: { @@ -98,7 +98,7 @@ for (c in child.columnList){ }else if(c.showType == 'officeselect'){ treeselectExists = true; %> - {header:'\${text('${c.columnLabel}')}', name:'${c.simpleAttrName}', width:150, + {header:'\${text("${c.columnLabel}")}', name:'${c.simpleAttrName}', width:150, formatter: function(val, obj, row, act){ return js.val(row, '${c.attrName}')+'|'+js.val(row, '${c.attrName2}'); }, editable: true, edittype: "custom", editoptions: { @@ -116,7 +116,7 @@ for (c in child.columnList){ }else if(c.showType == 'areaselect'){ treeselectExists = true; %> - {header:'\${text('${c.columnLabel}')}', name:'${c.simpleAttrName}', width:150, + {header:'\${text("${c.columnLabel}")}', name:'${c.simpleAttrName}', width:150, formatter: function(val, obj, row, act){ return js.val(row, '${c.attrName}')+'|'+js.val(row, '${c.attrName2}'); }, editable: true, edittype: "custom", editoptions: { @@ -135,17 +135,17 @@ for (c in child.columnList){ } if (table.tplCategory != 'query'){ %> - {header:'\${text('操作')}', name:'actions', width:80, sortable:false, fixed:true, formatter: function(val, obj, row, act){ + {header:'\${text("操作")}', name:'actions', width:80, sortable:false, fixed:true, formatter: function(val, obj, row, act){ var actions = []; if (val == 'new'){ - actions.push(' '); + actions.push(' '); }else{ - actions.push(' '); + actions.push(' '); } return actions.join(''); }, editoptions: {defaultValue: 'new'}} <% }else{ %> - {header:'\${text('操作')}', name:'actions', hidden: true} + {header:'\${text("操作")}', name:'actions', hidden: true} <% } %> ], diff --git a/modules/core/src/main/resources/views/modules/sys/companyList.html b/modules/core/src/main/resources/views/modules/sys/companyList.html index ac0f932d..b53fd8f3 100644 --- a/modules/core/src/main/resources/views/modules/sys/companyList.html +++ b/modules/core/src/main/resources/views/modules/sys/companyList.html @@ -58,29 +58,29 @@ $('#dataGrid').dataGrid({ searchForm: $("#searchForm"), columnModel: [ - {header:'${text('公司名称')}', name:'companyName', index:'a.company_name', width:250, align:"left", frozen:true, formatter: function(val, obj, row, act){ - return '( '+row.viewCode+' ) '+''+(val||row.id)+''; + {header:'${text("公司名称")}', name:'companyName', index:'a.company_name', width:250, align:"left", frozen:true, formatter: function(val, obj, row, act){ + return '( '+row.viewCode+' ) '+''+(val||row.id)+''; }}, - {header:'${text('公司全称')}', name:'fullName', index:'a.full_name', width:200, align:"left"}, - {header:'${text('排序号')}', name:'treeSort', index:'a.tree_sort', width:80, align:"center"}, - {header:'${text('归属区域')}', name:'area.treeNames', index:'a.areaCode', width:200, align:"center"}, - {header:'${text('更新时间')}', name:'updateDate', index:'a.update_date', width:200, align:"center"}, - {header:'${text('备注信息')}', name:'remarks', index:'a.remarks', width:200, align:"left"}, - {header:'${text('状态')}', name:'status', index:'a.status', width:80, align:"center", formatter: function(val, obj, row, act){ + {header:'${text("公司全称")}', name:'fullName', index:'a.full_name', width:200, align:"left"}, + {header:'${text("排序号")}', name:'treeSort', index:'a.tree_sort', width:80, align:"center"}, + {header:'${text("归属区域")}', name:'area.treeNames', index:'a.areaCode', width:200, align:"center"}, + {header:'${text("更新时间")}', name:'updateDate', index:'a.update_date', width:200, align:"center"}, + {header:'${text("备注信息")}', name:'remarks', index:'a.remarks', width:200, align:"left"}, + {header:'${text("状态")}', name:'status', index:'a.status', width:80, align:"center", formatter: function(val, obj, row, act){ return js.getDictLabel(${@DictUtils.getDictListJson('sys_status')}, val, '未知', true); }}, - {header:'${text('操作')}', name:'actions', width:130, sortable:false, title:false, formatter: function(val, obj, row, act){ + {header:'${text("操作")}', name:'actions', width:130, sortable:false, title:false, formatter: function(val, obj, row, act){ var actions = []; <% if(hasPermi('sys:company:edit')){ %> - actions.push(' '); + actions.push(' '); if (row.status == Global.STATUS_NORMAL){ - actions.push(' '); + actions.push(' '); } if (row.status == Global.STATUS_DISABLE){ - actions.push(' '); + actions.push(' '); } - actions.push(' '); - actions.push(' '); + actions.push(' '); + actions.push(' '); <% } %> return actions.join(''); }} diff --git a/modules/core/src/main/resources/views/modules/sys/officeList.html b/modules/core/src/main/resources/views/modules/sys/officeList.html index 79cfd097..8f038bb1 100644 --- a/modules/core/src/main/resources/views/modules/sys/officeList.html +++ b/modules/core/src/main/resources/views/modules/sys/officeList.html @@ -64,31 +64,31 @@ $('#dataGrid').dataGrid({ searchForm: $("#searchForm"), columnModel: [ - {header:'${text('机构名称')}', name:'officeName', index:'a.office_name', width:250, align:"left", frozen:true, formatter: function(val, obj, row, act){ - return '( '+row.viewCode+' ) '+''+(val||row.id)+''; + {header:'${text("机构名称")}', name:'officeName', index:'a.office_name', width:250, align:"left", frozen:true, formatter: function(val, obj, row, act){ + return '( '+row.viewCode+' ) '+''+(val||row.id)+''; }}, - {header:'${text('机构全称')}', name:'fullName', index:'a.full_name', width:200, align:"left"}, - {header:'${text('排序号')}', name:'treeSort', index:'a.tree_sort', width:80, align:"center"}, - {header:'${text('机构类型')}', name:'officeType', index:'a.office_type', width:100, align:"center", formatter: function(val, obj, row, act){ - return js.getDictLabel(${@DictUtils.getDictListJson('sys_office_type')}, val, '${text('未知')}', true); + {header:'${text("机构全称")}', name:'fullName', index:'a.full_name', width:200, align:"left"}, + {header:'${text("排序号")}', name:'treeSort', index:'a.tree_sort', width:80, align:"center"}, + {header:'${text("机构类型")}', name:'officeType', index:'a.office_type', width:100, align:"center", formatter: function(val, obj, row, act){ + return js.getDictLabel(${@DictUtils.getDictListJson('sys_office_type')}, val, '${text("未知")}', true); }}, - {header:'${text('更新时间')}', name:'updateDate', index:'a.update_date', width:150, align:"center"}, - {header:'${text('备注信息')}', name:'remarks', index:'a.remarks', width:200, align:"left"}, - {header:'${text('状态')}', name:'status', index:'a.status', width:80, align:"center", formatter: function(val, obj, row, act){ - return js.getDictLabel(${@DictUtils.getDictListJson('sys_status')}, val, '${text('未知')}', true); + {header:'${text("更新时间")}', name:'updateDate', index:'a.update_date', width:150, align:"center"}, + {header:'${text("备注信息")}', name:'remarks', index:'a.remarks', width:200, align:"left"}, + {header:'${text("状态")}', name:'status', index:'a.status', width:80, align:"center", formatter: function(val, obj, row, act){ + return js.getDictLabel(${@DictUtils.getDictListJson('sys_status')}, val, '${text("未知")}', true); }}, - {header:'${text('操作')}', name:'actions', width:150, sortable:false, title:false, formatter: function(val, obj, row, act){ + {header:'${text("操作")}', name:'actions', width:150, sortable:false, title:false, formatter: function(val, obj, row, act){ var actions = []; <% if(hasPermi('sys:office:edit')){ %> - actions.push(' '); + actions.push(' '); if (row.status == Global.STATUS_NORMAL){ - actions.push(' '); + actions.push(' '); } if (row.status == Global.STATUS_DISABLE){ - actions.push(' '); + actions.push(' '); } - actions.push(' '); - actions.push(' '); + actions.push(' '); + actions.push(' '); <% } %> return actions.join(''); }} diff --git a/modules/core/src/main/resources/views/modules/sys/postList.html b/modules/core/src/main/resources/views/modules/sys/postList.html index a3610d9a..d40929d1 100644 --- a/modules/core/src/main/resources/views/modules/sys/postList.html +++ b/modules/core/src/main/resources/views/modules/sys/postList.html @@ -55,30 +55,30 @@ $('#dataGrid').dataGrid({ searchForm: $("#searchForm"), columnModel: [ - {header:'${text('岗位名称')}', name:'postName', index:'a.post_name', width:200, align:"center", frozen:true, formatter: function(val, obj, row, act){ - return ''+(val||row.id)+''; + {header:'${text("岗位名称")}', name:'postName', index:'a.post_name', width:200, align:"center", frozen:true, formatter: function(val, obj, row, act){ + return ''+(val||row.id)+''; }}, - {header:'${text('岗位编码')}', name:'postCode', index:'a.post_code', width:200, align:"center"}, - {header:'${text('排序号')}', name:'postSort', index:'a.post_sort', width:80, align:"center"}, - {header:'${text('岗位分类')}', name:'postType', index:'a.post_type', width:100, align:"center", formatter: function(val, obj, row, act){ + {header:'${text("岗位编码")}', name:'postCode', index:'a.post_code', width:200, align:"center"}, + {header:'${text("排序号")}', name:'postSort', index:'a.post_sort', width:80, align:"center"}, + {header:'${text("岗位分类")}', name:'postType', index:'a.post_type', width:100, align:"center", formatter: function(val, obj, row, act){ return js.getDictLabel(${@DictUtils.getDictListJson('sys_post_type')}, val, '未知', true); }}, - {header:'${text('更新时间')}', name:'updateDate', index:'a.update_date', width:150, align:"center"}, - {header:'${text('备注信息')}', name:'remarks', index:'a.remarks', width:200, align:"left"}, - {header:'${text('状态')}', name:'status', index:'a.status', width:80, align:"center", formatter: function(val, obj, row, act){ + {header:'${text("更新时间")}', name:'updateDate', index:'a.update_date', width:150, align:"center"}, + {header:'${text("备注信息")}', name:'remarks', index:'a.remarks', width:200, align:"left"}, + {header:'${text("状态")}', name:'status', index:'a.status', width:80, align:"center", formatter: function(val, obj, row, act){ return js.getDictLabel(${@DictUtils.getDictListJson('sys_status')}, val, '未知', true); }}, - {header:'${text('操作')}', name:'actions', width:130, sortable:false, title:false, formatter: function(val, obj, row, act){ + {header:'${text("操作")}', name:'actions', width:130, sortable:false, title:false, formatter: function(val, obj, row, act){ var actions = []; <% if(hasPermi('sys:post:edit')){ %> - actions.push(' '); + actions.push(' '); if (row.status == Global.STATUS_NORMAL){ - actions.push(' '); + actions.push(' '); } if (row.status == Global.STATUS_DISABLE){ - actions.push(' '); + actions.push(' '); } - actions.push(' '); + actions.push(' '); <% } %> return actions.join(''); }} diff --git a/modules/core/src/main/resources/views/modules/sys/user/corpAdminForm.html b/modules/core/src/main/resources/views/modules/sys/user/corpAdminForm.html index e21ea0fc..984a8ad9 100644 --- a/modules/core/src/main/resources/views/modules/sys/user/corpAdminForm.html +++ b/modules/core/src/main/resources/views/modules/sys/user/corpAdminForm.html @@ -180,8 +180,8 @@ var roleGrid = $("#roleGrid").dataGrid({ {name:'isAll',value:'true'} <% // 显示所有角色(与上方两个条件互斥) %> ], columnModel: [ - {header:'${text('角色名称')}', name:'name', sortable:false, width:100, align:"center"}, - {header:'${text('角色编码')}', name:'id', sortable:false, width:100, align:"center"} + {header:'${text("角色名称")}', name:'name', sortable:false, width:100, align:"center"}, + {header:'${text("角色编码")}', name:'id', sortable:false, width:100, align:"center"} ], showCheckbox: true, autoGridHeight: function(){ diff --git a/modules/core/src/main/resources/views/modules/sys/user/empUserForm.html b/modules/core/src/main/resources/views/modules/sys/user/empUserForm.html index 0ea1c413..b4408dcf 100644 --- a/modules/core/src/main/resources/views/modules/sys/user/empUserForm.html +++ b/modules/core/src/main/resources/views/modules/sys/user/empUserForm.html @@ -220,8 +220,8 @@ var roleGrid = $("#roleGrid").dataGrid({ {name:'ctrlPermi',value:'2'} ], columnModel: [ - {header:'${text('角色名称')}', name:'name', sortable:false, width:100, align:"center"}, - {header:'${text('角色编码')}', name:'id', sortable:false, width:100, align:"center"} + {header:'${text("角色名称")}', name:'name', sortable:false, width:100, align:"center"}, + {header:'${text("角色编码")}', name:'id', sortable:false, width:100, align:"center"} ], showCheckbox: true, autoGridHeight: function(){ diff --git a/modules/core/src/main/resources/views/modules/sys/user/empUserList.html b/modules/core/src/main/resources/views/modules/sys/user/empUserList.html index 169b0eb6..65fd380a 100644 --- a/modules/core/src/main/resources/views/modules/sys/user/empUserList.html +++ b/modules/core/src/main/resources/views/modules/sys/user/empUserList.html @@ -107,47 +107,47 @@ $('#dataGrid').dataGrid({ searchForm: $("#searchForm"), columnModel: [ - {header:'${text('登录账号')}', name:'loginCode', index:'a.login_code', width:200, align:"center", frozen:true, formatter: function(val, obj, row, act){ - return ''+(val||row.id)+''; + {header:'${text("登录账号")}', name:'loginCode', index:'a.login_code', width:200, align:"center", frozen:true, formatter: function(val, obj, row, act){ + return ''+(val||row.id)+''; }}, - {header:'${text('用户昵称')}', name:'userName', index:'a.user_name', width:200, align:"center"}, - {header:'${text('员工姓名')}', name:'refName', index:'a.ref_name', width:200, align:"center"}, - {header:'${text('归属机构')}', name:'employee.office.officeName', index:'o.office_name', width:200, align:"center"}, - {header:'${text('归属公司')}', name:'employee.company.companyName', index:'c.company_name', width:200, align:"center"}, - {header:'${text('电子邮箱')}', name:'email', index:'a.email', width:200, align:"center"}, - {header:'${text('手机号码')}', name:'mobile', index:'a.mobile', width:200, align:"center"}, - {header:'${text('办公电话')}', name:'phone', index:'a.phone', width:200, align:"center"}, - {header:'${text('更新时间')}', name:'updateDate', index:'a.update_date', width:200, align:"center"}, - {header:'${text('状态')}', name:'status', index:'a.status', width:140, align:"center", formatter: function(val, obj, row, act){ + {header:'${text("用户昵称")}', name:'userName', index:'a.user_name', width:200, align:"center"}, + {header:'${text("员工姓名")}', name:'refName', index:'a.ref_name', width:200, align:"center"}, + {header:'${text("归属机构")}', name:'employee.office.officeName', index:'o.office_name', width:200, align:"center"}, + {header:'${text("归属公司")}', name:'employee.company.companyName', index:'c.company_name', width:200, align:"center"}, + {header:'${text("电子邮箱")}', name:'email', index:'a.email', width:200, align:"center"}, + {header:'${text("手机号码")}', name:'mobile', index:'a.mobile', width:200, align:"center"}, + {header:'${text("办公电话")}', name:'phone', index:'a.phone', width:200, align:"center"}, + {header:'${text("更新时间")}', name:'updateDate', index:'a.update_date', width:200, align:"center"}, + {header:'${text("状态")}', name:'status', index:'a.status', width:140, align:"center", formatter: function(val, obj, row, act){ return js.getDictLabel(${@DictUtils.getDictListJson('sys_status')}, val, '未知', true); }}, - {header:'${text('操作')}', name:'actions', width:260, sortable:false, title:false, formatter: function(val, obj, row, act){ + {header:'${text("操作")}', name:'actions', width:260, sortable:false, title:false, formatter: function(val, obj, row, act){ var actions = []; <% if(hasPermi('sys:empUser:edit')){ %> - actions.push(' '); + actions.push(' '); <% } %> <% if(hasPermi('sys:empUser:updateStatus')){ %> if (row.status == Global.STATUS_NORMAL){ - actions.push(' '); + actions.push(' '); } if (row.status == Global.STATUS_DISABLE){ - actions.push(' '); + actions.push(' '); } <% } %> <% if(hasPermi('sys:empUser:edit')){ %> - actions.push(' '); + actions.push(' '); <% } %> <% if(hasPermi('sys:empUser:authRole,sys:empUser:authDataScope,sys:empUser:resetpwd', 'or')){ %> - actions.push(' '); + actions.push(' '); actions.push('