添加部分判断
This commit is contained in:
parent
7063991872
commit
80fb17686c
@ -76,7 +76,7 @@
|
|||||||
top.restAjax.get(top.restAjax.path('api/teacher/getorginfo', []), {}, null, function (code, data) {
|
top.restAjax.get(top.restAjax.path('api/teacher/getorginfo', []), {}, null, function (code, data) {
|
||||||
orgInfo = data;
|
orgInfo = data;
|
||||||
initThree();
|
initThree();
|
||||||
$('#listContent').attr('src', top.restAjax.path('route/classplan/list-signup.html?orgId={arg1}&workerCatalog={arg2}',
|
$('#listContent').attr('src', top.restAjax.path('route/classplan/list-merge-org-info.html?orgId={arg1}&workerCatalog={arg2}',
|
||||||
[orgId,'']));
|
[orgId,'']));
|
||||||
}, function (code, data) {
|
}, function (code, data) {
|
||||||
top.dialog.msg(data.msg);
|
top.dialog.msg(data.msg);
|
||||||
@ -109,7 +109,7 @@
|
|||||||
onClick: function (event, treeId, treeNode) {
|
onClick: function (event, treeId, treeNode) {
|
||||||
if(treeNode.pId == '-1'){
|
if(treeNode.pId == '-1'){
|
||||||
$('#treeTitle').text('所有机构');
|
$('#treeTitle').text('所有机构');
|
||||||
$('#listContent').attr('src', top.restAjax.path('route/classplan/list-signup.html?orgId={arg1}&workerCatalog={arg2}',
|
$('#listContent').attr('src', top.restAjax.path('route/classplan/list-merge-org-info.html?orgId={arg1}&workerCatalog={arg2}',
|
||||||
[orgId,'']));
|
[orgId,'']));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -137,7 +137,7 @@
|
|||||||
|
|
||||||
// 初始化IFrame
|
// 初始化IFrame
|
||||||
function initIFrame() {
|
function initIFrame() {
|
||||||
$('#listContent').attr('src', top.restAjax.path('route/classplan/list-signup.html?orgId={arg1}&workerCatalog={arg2}',
|
$('#listContent').attr('src', top.restAjax.path('route/classplan/list-merge-org-info.html?orgId={arg1}&workerCatalog={arg2}',
|
||||||
[orgId,parentId]));
|
[orgId,parentId]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
<div class="layui-card">
|
<div class="layui-card">
|
||||||
<div class="layui-card-header" style="background-color: #d7dee2">
|
<div class="layui-card-header" style="background-color: #d7dee2">
|
||||||
<span id="totalSignUpUser">总计人数</span>
|
<span id="totalSignUpUser">总计人数</span>
|
||||||
<span class="layui-badge layui-bg-cyan layuiadmin-badge">10 人</span>
|
<span id="totalSignUpUserNumber" class="layui-badge layui-bg-cyan layuiadmin-badge">50 人</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -101,9 +101,11 @@
|
|||||||
var workerCatalog = top.restAjax.params(window.location.href).workerCatalog;
|
var workerCatalog = top.restAjax.params(window.location.href).workerCatalog;
|
||||||
if(typeof (workerCatalog) === 'undefined' || workerCatalog == ''){
|
if(typeof (workerCatalog) === 'undefined' || workerCatalog == ''){
|
||||||
$('#totalSignUpUser').text('总计人数');
|
$('#totalSignUpUser').text('总计人数');
|
||||||
|
$('#totalSignUpUserNumber').text('50 人');
|
||||||
$('#class-plan-btn-event').hide();
|
$('#class-plan-btn-event').hide();
|
||||||
} else {
|
} else {
|
||||||
$('#totalSignUpUser').text('预计人数');
|
$('#totalSignUpUser').text('预计人数');
|
||||||
|
$('#totalSignUpUserNumber').text('60 人');
|
||||||
}
|
}
|
||||||
|
|
||||||
function init(){
|
function init(){
|
||||||
|
@ -366,6 +366,20 @@
|
|||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if(layEvent == 'showEvent') {
|
||||||
|
layer.open({
|
||||||
|
type: 2,
|
||||||
|
title: '查看开班申请',
|
||||||
|
closeBtn: 1,
|
||||||
|
area: ['90%', '90%'],
|
||||||
|
shadeClose: false,
|
||||||
|
anim: 2,
|
||||||
|
content: top.restAjax.path('route/classplan/show.html?classPlanId={classPlanId}', [obj.data.classPlanId]),
|
||||||
|
end: function () {
|
||||||
|
reloadTable();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
if(layEvent == 'showExamEvent') {
|
if(layEvent == 'showExamEvent') {
|
||||||
layer.open({
|
layer.open({
|
||||||
type: 2,
|
type: 2,
|
||||||
|
@ -22,21 +22,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="layui-card-body" style="padding: 15px;">
|
<div class="layui-card-body" style="padding: 15px;">
|
||||||
<form class="layui-form layui-form-pane" lay-filter="dataForm">
|
<form class="layui-form layui-form-pane" lay-filter="dataForm">
|
||||||
<div class="layui-row">
|
|
||||||
<div class="layui-col-md12">
|
|
||||||
<div class="layui-form-item">
|
|
||||||
<label class="layui-form-label">培训机构</label>
|
|
||||||
<div class="layui-input-block">
|
|
||||||
<input type="hidden" id="orgId" name="orgId">
|
|
||||||
<input type="text" id="orgName" name="orgName" class="layui-input" value="" readonly="readonly" maxlength="100">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="layui-row">
|
<div class="layui-row">
|
||||||
<div class="layui-col-md6">
|
<div class="layui-col-md6">
|
||||||
<div class="layui-form-item">
|
<div class="layui-form-item">
|
||||||
<label class="layui-form-label">计划编号</label>
|
<label class="layui-form-label">班号</label>
|
||||||
<div class="layui-input-block">
|
<div class="layui-input-block">
|
||||||
<input type="text" id="planNumber" name="planNumber" class="layui-input" value="" readonly="readonly" maxlength="100">
|
<input type="text" id="planNumber" name="planNumber" class="layui-input" value="" readonly="readonly" maxlength="100">
|
||||||
</div>
|
</div>
|
||||||
@ -44,7 +33,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="layui-col-md6">
|
<div class="layui-col-md6">
|
||||||
<div class="layui-form-item">
|
<div class="layui-form-item">
|
||||||
<label class="layui-form-label">计划名称</label>
|
<label class="layui-form-label">班级名称</label>
|
||||||
<div class="layui-input-block">
|
<div class="layui-input-block">
|
||||||
<input type="text" id="planName" name="planName" class="layui-input" value="" readonly="readonly" maxlength="255">
|
<input type="text" id="planName" name="planName" class="layui-input" value="" readonly="readonly" maxlength="255">
|
||||||
</div>
|
</div>
|
||||||
@ -82,14 +71,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-col-md3">
|
|
||||||
<div class="layui-form-item">
|
|
||||||
<label class="layui-form-label">计划人数</label>
|
|
||||||
<div class="layui-input-block">
|
|
||||||
<input type="number" id="planPersonNum" name="planPersonNum" class="layui-input" value="0" readonly="readonly" lay-verify="required">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-row">
|
<div class="layui-row">
|
||||||
<div class="layui-col-md3">
|
<div class="layui-col-md3">
|
||||||
@ -108,22 +89,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-col-md3">
|
|
||||||
<div class="layui-form-item">
|
|
||||||
<label class="layui-form-label">报名时间</label>
|
|
||||||
<div class="layui-input-block">
|
|
||||||
<input type="text" id="signUpStartTime" name="signUpStartTime" class="layui-input" value="" placeholder="请选择报名时间开始" readonly style="cursor: pointer;" lay-verify="required">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="layui-col-md3">
|
|
||||||
<div class="layui-form-item">
|
|
||||||
<label class="layui-form-label">报名截止</label>
|
|
||||||
<div class="layui-input-block">
|
|
||||||
<input type="text" id="signUpEndTime" name="signUpEndTime" class="layui-input" value="" placeholder="请选择报名时间截止" readonly style="cursor: pointer;" lay-verify="required">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-row">
|
<div class="layui-row">
|
||||||
<div class="layui-col-md6">
|
<div class="layui-col-md6">
|
||||||
|
Loading…
Reference in New Issue
Block a user