Explorar el Código

自定义表单增加当前角色

大厂分支
liangkun hace 4 años
padre
commit
e35d0fbdde
Se han modificado 1 ficheros con 9 adiciones y 1 borrados
  1. +9
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/plugin/custmerform/lr-formcomponts.js

+ 9
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/plugin/custmerform/lr-formcomponts.js Ver fichero

@@ -1239,7 +1239,7 @@
});
$('#lr_component_isHide').lrselectSet(dfop.isHide);
$('#lr_component_dataType').lrselect({
data: [{ id: 'company', text: '当前公司' }, { id: 'department', text: '当前部门' }, { id: 'user', text: '当前用户' }, { id: 'time', text: '当前时间' }],
data: [{ id: 'company', text: '当前公司' }, { id: 'department', text: '当前部门' }, { id: 'user', text: '当前用户' }, { id: 'time', text: '当前时间' }, { id: 'role', text: '当前角色' }],
value: 'id',
text: 'text',
placeholder: false,
@@ -1284,6 +1284,10 @@
$compont.val(_data.name);
$compont[0].lrvalue = compont._userId;
break;
case 'role':
$compont.val(loginInfo.roleName);
$compont[0].lrvalue = loginInfo.roleName;
break;
case 'time':
$compont[0].lrvalue = learun.formatDate(new Date(), 'yyyy-MM-dd hh:mm:ss');
$compont.val($compont[0].lrvalue);
@@ -1322,6 +1326,10 @@
$compont.val(loginInfo.realName);
$compont[0].lrvalue = loginInfo.userId;
break;
case 'role':
$compont.val(loginInfo.roleName);
$compont[0].lrvalue = loginInfo.roleName;
break;
case 'time':
$compont[0].lrvalue = learun.formatDate(new Date(), 'yyyy-MM-dd hh:mm:ss');
$compont.val($compont[0].lrvalue);


Cargando…
Cancelar
Guardar