修改生成考号时的权限验证
This commit is contained in:
1 parent
3b4ce2a160
commit
d584e2e144
2 files changed
+12
No files matched your search
@@ -63,6 +63,12 @@ layui.use(['form', 'canyuKaoshi', 'createInput'], function() {
|
||||
// 监听学校下拉菜单
|
||||
form.on('select(nj)', function(data) {
|
||||
data = form.val("myform");
|
||||
data.auth = {
|
||||
'guanliyuan' : true
|
||||
,'zhiwu' : true
|
||||
,'zuzhang' : true
|
||||
,'banzhuren' : true
|
||||
}
|
||||
if (data.school_id > 0 && data.ruxuenian > 0) {
|
||||
cInput.banjiSelect('banji_id', data);
|
||||
}
|
||||
|
||||
@@ -74,6 +74,12 @@ layui.use(['form', 'createInput', 'canyuKaoshi'], function() {
|
||||
|
||||
form.on('select()', function(data) {
|
||||
data = form.val("myform");
|
||||
data.auth = {
|
||||
'guanliyuan' : true
|
||||
,'zhiwu' : true
|
||||
,'zuzhang' : true
|
||||
,'banzhuren' : true
|
||||
}
|
||||
if (data.school_id > 0 && data.ruxuenian > 0) {
|
||||
cInput.banjiCheckbox('banji_id', data);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user