Kaynağa Gözat

自定义表单增加当前角色

大厂分支
liangkun 4 yıl önce
ebeveyn
işleme
e35d0fbdde
1 değiştirilmiş dosya ile 9 ekleme ve 1 silme
  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 Dosyayı Görüntüle

@@ -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);


Yükleniyor…
İptal
Kaydet