|
@@ -1,326 +1,525 @@
|
|
<%@ page contentType="text/html;charset=UTF-8" %>
|
|
<%@ page contentType="text/html;charset=UTF-8" %>
|
|
-<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
|
|
|
|
|
|
+<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
|
|
<html>
|
|
<html>
|
|
<head>
|
|
<head>
|
|
- <title>主子表管理</title>
|
|
|
|
- <meta name="decorator" content="default"/>
|
|
|
|
- <script type="text/javascript">
|
|
|
|
- $(document).ready(function() {
|
|
|
|
- //$("#name").focus();
|
|
|
|
- $("#inputForm").validate({
|
|
|
|
- submitHandler: function(form){
|
|
|
|
- loading('正在提交,请稍等...');
|
|
|
|
- form.submit();
|
|
|
|
- },
|
|
|
|
- errorContainer: "#messageBox",
|
|
|
|
- errorPlacement: function(error, element) {
|
|
|
|
- $("#messageBox").text("输入有误,请先更正。");
|
|
|
|
- if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
|
|
|
|
- error.appendTo(element.parent().parent());
|
|
|
|
- } else {
|
|
|
|
- error.insertAfter(element);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- });
|
|
|
|
- function addRow(list, idx, tpl, row){
|
|
|
|
- $(list).append(Mustache.render(tpl, {
|
|
|
|
- idx: idx, delBtn: true, row: row, rowNo: idx+1
|
|
|
|
- }));
|
|
|
|
- $(list+idx).find("select").each(function(){
|
|
|
|
- $(this).val($(this).attr("data-value"));
|
|
|
|
- $(this).select2();
|
|
|
|
- });
|
|
|
|
- $(list+idx).find("input[type='checkbox'], input[type='radio']").each(function(){
|
|
|
|
- var ss = $(this).attr("data-value").split(',');
|
|
|
|
- for (var i=0; i<ss.length; i++){
|
|
|
|
- if($(this).val() == ss[i]){
|
|
|
|
- $(this).attr("checked","checked");
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
- //为职位列表初始化
|
|
|
|
- if(row && $("#fairType").val()== '2'){
|
|
|
|
- if (row.jobList.length > 0) {
|
|
|
|
- var jobSelectObj = $(list+idx+"_jobId");
|
|
|
|
- var jobSelect = jobSelectObj[0];
|
|
|
|
- jobSelect.options.length = 0;
|
|
|
|
- jobSelect.add(new Option("请选择职位",""));
|
|
|
|
- for (var i = 0; i < row.jobList.length; i++){
|
|
|
|
- var opt = new Option(row.jobList[i].jobName,row.jobList[i].jobId);
|
|
|
|
- if(row.jobId == row.jobList[i].jobId)
|
|
|
|
- {
|
|
|
|
- opt.selected = true;
|
|
|
|
- }
|
|
|
|
- jobSelect.add(opt);
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
- jobSelectObj.select2().val(row.jobId);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ <title>主子表管理</title>
|
|
|
|
+ <meta name="decorator" content="default"/>
|
|
|
|
+ <script type="text/javascript">
|
|
|
|
+ $(document).ready(function () {
|
|
|
|
+ //$("#name").focus();
|
|
|
|
+ $("#inputForm").validate({
|
|
|
|
+ submitHandler: function (form) {
|
|
|
|
+ loading('正在提交,请稍等...');
|
|
|
|
+ form.submit();
|
|
|
|
+ },
|
|
|
|
+ errorContainer: "#messageBox",
|
|
|
|
+ errorPlacement: function (error, element) {
|
|
|
|
+ $("#messageBox").text("输入有误,请先更正。");
|
|
|
|
+ if (element.is(":checkbox") || element.is(":radio") || element.parent().is(".input-append")) {
|
|
|
|
+ error.appendTo(element.parent().parent());
|
|
|
|
+ } else {
|
|
|
|
+ error.insertAfter(element);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ // 是否全部授权
|
|
|
|
+ $('#allAuthorize').change(function (val) {
|
|
|
|
+ $('#mdeFairDtlList').children('tr').each(function () {
|
|
|
|
+ $(this).find('.checkbox input').attr('checked', val.target.checked).val(val.target.checked ? '1' : '0')
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- function delDtlRow(obj, prefix){
|
|
|
|
- var id = $(prefix+"_dtlId");
|
|
|
|
- if (id.val() == ""){
|
|
|
|
- $(obj).parent().parent().remove();
|
|
|
|
- } else {
|
|
|
|
- top.$.jBox.confirm("确定要删除该条信息吗?", '系统提示', function(v, h, f) {
|
|
|
|
- if (v == 'ok')
|
|
|
|
- {
|
|
|
|
- $(obj).parent().parent().remove();
|
|
|
|
- }
|
|
|
|
- }, {
|
|
|
|
- buttonsFocus : 1,
|
|
|
|
- closed : function() {
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- top.$('.jbox-body .jbox-icon').css('top', '55px');
|
|
|
|
- return false;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- function saveSubmit(){
|
|
|
|
- $("#inputForm").attr("action","${ctx}/recruitment/mdeJobFair/save");
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- function hotelChange(hotelId, baseId,index) {
|
|
|
|
- if($("#fairType").val()== '2') {
|
|
|
|
- //职位为单位时才去进行职位联动
|
|
|
|
- var jobObj = $("#"+baseId+"_jobId");
|
|
|
|
- jobObj.select2("val","");
|
|
|
|
- $.get("${ctx}/recruitment/mdeJobFair/getJobList?userCode="+hotelId,
|
|
|
|
- function(data){
|
|
|
|
- var jobSelect = document.getElementById(baseId+"_jobId");
|
|
|
|
- jobSelect.options.length = 0;
|
|
|
|
- if (data) {
|
|
|
|
- for (var i = 0; i < data.length; i++){
|
|
|
|
- jobSelect.add(new Option(data[i].jobName,data[i].jobId));
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- );
|
|
|
|
- } else {
|
|
|
|
- var objArr = $("select[name$='.hotelId']");
|
|
|
|
- //查重
|
|
|
|
- if (!unique(objArr,hotelId,index)){
|
|
|
|
- //清空现有选项
|
|
|
|
- alert("酒店信息不允许重复");
|
|
|
|
- $("#"+baseId+"_hotelId").select2("val","");
|
|
|
|
- return false;
|
|
|
|
- } else {
|
|
|
|
- //为dtlId 赋值
|
|
|
|
- $("#"+baseId+"_dtlId").val(hotelId);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- function jobChange(jobId, baseId,index) {
|
|
|
|
- debugger
|
|
|
|
- var objArr = $("select[name$='.jobId']");
|
|
|
|
- //查重
|
|
|
|
- if (!unique(objArr,jobId,index)){
|
|
|
|
- //清空现有选项
|
|
|
|
- alert("职位信息不允许重复");
|
|
|
|
- $("#"+baseId+"_jobId").select2("val","");
|
|
|
|
- return false;
|
|
|
|
- } else {
|
|
|
|
- //为dtlId 赋值
|
|
|
|
- $("#"+baseId+"_dtlId").val(jobId);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ });
|
|
|
|
|
|
-
|
|
|
|
- function fairTypeChange(v) {
|
|
|
|
- var id = document.getElementById("id").value;
|
|
|
|
- window.location.href="${ctx}/recruitment/mdeJobFair/form?id="+id+"&fairType="+v;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- //验重
|
|
|
|
- function unique(objArr, v,index){
|
|
|
|
- debugger
|
|
|
|
- var length = objArr.length;
|
|
|
|
- for(var i = 0; i < length; i++){
|
|
|
|
- if(objArr[i].value == v && index != i)
|
|
|
|
- {
|
|
|
|
- return false;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- return true;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- </script>
|
|
|
|
|
|
+ function addRow(list, idx, tpl, row) {
|
|
|
|
+
|
|
|
|
+ $(list).append(Mustache.render(tpl, {
|
|
|
|
+ idx: idx, delBtn: true, row: row, rowNo: idx + 1
|
|
|
|
+ }));
|
|
|
|
+
|
|
|
|
+ debugger
|
|
|
|
+ $(list + idx).find("select").each(function () {
|
|
|
|
+ debugger
|
|
|
|
+ $(this).val($(this).attr("data-value"));
|
|
|
|
+ $(this).select2();
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ // $(list + idx).find("input[type='checkbox'], input[type='radio']").each(function () {
|
|
|
|
+ // var ss = $(this).attr("data-value").split(',');
|
|
|
|
+ // for (var i = 0; i < ss.length; i++) {
|
|
|
|
+ // if ($(this).val() == ss[i]) {
|
|
|
|
+ // $(this).attr("checked", "checked");
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // });
|
|
|
|
+
|
|
|
|
+ //为职位列表初始化
|
|
|
|
+ if (row && $("#fairType").val() == '2') {
|
|
|
|
+ if (row.jobList.length > 0) {
|
|
|
|
+ var jobSelectObj = $(list + idx + "_jobId");
|
|
|
|
+ var jobSelect = jobSelectObj[0];
|
|
|
|
+ jobSelect.options.length = 0;
|
|
|
|
+ jobSelect.add(new Option("请选择职位", ""));
|
|
|
|
+ for (var i = 0; i < row.jobList.length; i++) {
|
|
|
|
+ var opt = new Option(row.jobList[i].jobName, row.jobList[i].jobId);
|
|
|
|
+ if (row.jobId == row.jobList[i].jobId) {
|
|
|
|
+ opt.selected = true;
|
|
|
|
+ }
|
|
|
|
+ jobSelect.add(opt);
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ jobSelectObj.select2().val(row.jobId);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function delDtlRow(obj, prefix) {
|
|
|
|
+ var id = $(prefix + "_dtlId");
|
|
|
|
+ if (id.val() == "") {
|
|
|
|
+ $(obj).parent().parent().remove();
|
|
|
|
+ } else {
|
|
|
|
+ top.$.jBox.confirm("确定要删除该条信息吗?", '系统提示', function (v, h, f) {
|
|
|
|
+ if (v == 'ok') {
|
|
|
|
+ $(obj).parent().parent().remove();
|
|
|
|
+ }
|
|
|
|
+ }, {
|
|
|
|
+ buttonsFocus: 1,
|
|
|
|
+ closed: function () {
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ top.$('.jbox-body .jbox-icon').css('top', '55px');
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function saveSubmit() {
|
|
|
|
+ $("#inputForm").attr("action", "${ctx}/recruitment/mdeJobFair/save");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function hotelChange(hotelId, baseId, index) {
|
|
|
|
+ if ($("#fairType").val() == '2') {
|
|
|
|
+ //职位为单位时才去进行职位联动
|
|
|
|
+ var jobObj = $("#" + baseId + "_jobId");
|
|
|
|
+ jobObj.select2("val", "");
|
|
|
|
+ $.get("${ctx}/recruitment/mdeJobFair/getJobList?userCode=" + hotelId,
|
|
|
|
+ function (data) {
|
|
|
|
+ var jobSelect = document.getElementById(baseId + "_jobId");
|
|
|
|
+ jobSelect.options.length = 0;
|
|
|
|
+ if (data) {
|
|
|
|
+ for (var i = 0; i < data.length; i++) {
|
|
|
|
+ jobSelect.add(new Option(data[i].jobName, data[i].jobId));
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ );
|
|
|
|
+ } else {
|
|
|
|
+ var objArr = $("select[name$='.hotelId']");
|
|
|
|
+ //查重
|
|
|
|
+ if (!unique(objArr, hotelId, index)) {
|
|
|
|
+ //清空现有选项
|
|
|
|
+ alert("酒店信息不允许重复");
|
|
|
|
+ debugger
|
|
|
|
+ $("#" + baseId + "_hotelId").select2("val", "");
|
|
|
|
+ $("#" + baseId + "_hotelId").attr("value", "");
|
|
|
|
+ return false;
|
|
|
|
+ } else {
|
|
|
|
+ //为dtlId 赋值
|
|
|
|
+ $("#" + baseId + "_dtlId").val(hotelId);
|
|
|
|
+
|
|
|
|
+ let vipFlag = null
|
|
|
|
+ $("#mdeFairDtlList" + index + "_hotelId").children().each(function (index, item) {
|
|
|
|
+ debugger
|
|
|
|
+ if ($(this).attr('value') === hotelId) {
|
|
|
|
+ const id = $(this).attr('id')
|
|
|
|
+ vipFlag = $('#' + id).attr('data-vip')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ $("#mdeFairDtlList" + index + "_hotelId").parent().prev().text(vipFlag === '0' ? '否' : '是');
|
|
|
|
+ $("#mdeFairDtlList" + index + "_hotelId").parent().find('.checkbox input').removeAttr('checked')
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function jobChange(jobId, baseId, index) {
|
|
|
|
+ debugger
|
|
|
|
+ var objArr = $("select[name$='.jobId']");
|
|
|
|
+ //查重
|
|
|
|
+ if (!unique(objArr, jobId, index)) {
|
|
|
|
+ //清空现有选项
|
|
|
|
+ debugger
|
|
|
|
+ alert("职位信息不允许重复");
|
|
|
|
+ $("#" + baseId + "_jobId").select2("val", "");
|
|
|
|
+ return false;
|
|
|
|
+ } else {
|
|
|
|
+ //为dtlId 赋值
|
|
|
|
+ $("#" + baseId + "_dtlId").val(jobId);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ function fairTypeChange(v) {
|
|
|
|
+ var id = document.getElementById("id").value;
|
|
|
|
+ window.location.href = "${ctx}/recruitment/mdeJobFair/form?id=" + id + "&fairType=" + v;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ //验重
|
|
|
|
+ function unique(objArr, v, index) {
|
|
|
|
+ return objArr.filter((index, e) => e.value === v).length < 2
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function vipPkgChange(v) {
|
|
|
|
+ $("#priceId").select2("val", "");
|
|
|
|
+ $("#price").select2("val", "");
|
|
|
|
+ $.get("${ctx}/recruitment/mdeOrders/getPkgPriceList?pkgId=" + v,
|
|
|
|
+ function (data) {
|
|
|
|
+ var select = document.getElementById("priceId");
|
|
|
|
+ select.options.length = 0;
|
|
|
|
+ select.add(new Option("请选择套餐价格", ""));
|
|
|
|
+ if (data) {
|
|
|
|
+ for (var i = 0; i < data.length; i++) {
|
|
|
|
+ select.add(new Option(data[i].skuCn + " " + data[i].price, data[i].priceId));
|
|
|
|
+ if (i == data.length - 1) {
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ );
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ </script>
|
|
</head>
|
|
</head>
|
|
<body>
|
|
<body>
|
|
- <ul class="nav nav-tabs">
|
|
|
|
- <li><a href="${ctx}/recruitment/mdeJobFair/">主子表列表</a></li>
|
|
|
|
- <li class="active"><a href="${ctx}/recruitment/mdeJobFair/form?id=${mdeJobFair.id}">主子表<shiro:hasPermission name="recruitment:mdeJobFair:edit">${not empty mdeJobFair.id?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission name="recruitment:mdeJobFair:edit">查看</shiro:lacksPermission></a></li>
|
|
|
|
- </ul><br/>
|
|
|
|
- <form:form id="inputForm" modelAttribute="mdeJobFair" action="${ctx}/recruitment/mdeJobFair/save" method="post" class="form-horizontal">
|
|
|
|
- <form:hidden path="id"/>
|
|
|
|
- <sys:message content="${message}"/>
|
|
|
|
- <div class="control-group">
|
|
|
|
- <label class="control-label">招聘会类型:</label>
|
|
|
|
- <div class="controls">
|
|
|
|
- <form:select path="fairType" class="input-xlarge required" onchange="fairTypeChange(this.value);">
|
|
|
|
- <form:option value="" label=""/>
|
|
|
|
- <form:options items="${fns:getDictList('FAIR_TYPE')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
|
|
|
|
- </form:select>
|
|
|
|
- <span class="help-inline"><font color="red">*</font> </span>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="control-group">
|
|
|
|
- <label class="control-label">标题(内部使用):</label>
|
|
|
|
- <div class="controls">
|
|
|
|
- <form:input path="fairTitle" htmlEscape="false" maxlength="40" class="input-xlarge required"/>
|
|
|
|
- <span class="help-inline"><font color="red">*</font> </span>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="control-group">
|
|
|
|
- <label class="control-label">口号(用户展示):</label>
|
|
|
|
- <div class="controls">
|
|
|
|
- <form:input path="fairSlogan" htmlEscape="false" maxlength="40" class="input-xlarge required"/>
|
|
|
|
- <span class="help-inline"><font color="red">*</font> </span>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="control-group">
|
|
|
|
- <label class="control-label">头图:</label>
|
|
|
|
- <div class="controls">
|
|
|
|
- <form:hidden path="headImg" htmlEscape="false" maxlength="255" class="input-xlarge required"/>
|
|
|
|
- <sys:ckfinder input="headImg" type="images" uploadPath="/backgroundImg" selectMultiple="false"/>
|
|
|
|
- <span class="help-inline"><font color="red">*</font> </span>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="control-group">
|
|
|
|
- <label class="control-label">背景图:</label>
|
|
|
|
- <div class="controls">
|
|
|
|
- <form:hidden path="backgroundImg" htmlEscape="false" maxlength="255" class="input-xlarge required"/>
|
|
|
|
- <sys:ckfinder input="backgroundImg" type="images" uploadPath="/backgroundImg" selectMultiple="false"/>
|
|
|
|
- <span class="help-inline"><font color="red">*</font> </span>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="control-group">
|
|
|
|
- <label class="control-label">底图:</label>
|
|
|
|
- <div class="controls">
|
|
|
|
- <form:hidden path="bottomImg" htmlEscape="false" maxlength="255" class="input-xlarge required"/>
|
|
|
|
- <sys:ckfinder input="bottomImg" type="images" uploadPath="/backgroundImg" selectMultiple="false"/>
|
|
|
|
- <span class="help-inline"><font color="red">*</font> </span>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
|
|
+<ul class="nav nav-tabs">
|
|
|
|
+ <li><a href="${ctx}/recruitment/mdeJobFair/">主子表列表</a></li>
|
|
|
|
+ <li class="active"><a href="${ctx}/recruitment/mdeJobFair/form?id=${mdeJobFair.id}">主子表<shiro:hasPermission
|
|
|
|
+ name="recruitment:mdeJobFair:edit">${not empty mdeJobFair.id?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission
|
|
|
|
+ name="recruitment:mdeJobFair:edit">查看</shiro:lacksPermission></a></li>
|
|
|
|
+</ul>
|
|
|
|
+<br/>
|
|
|
|
+<form:form id="inputForm" modelAttribute="mdeJobFair" action="${ctx}/recruitment/mdeJobFair/save" method="post"
|
|
|
|
+ class="form-horizontal">
|
|
|
|
+ <form:hidden path="id"/>
|
|
|
|
+ <sys:message content="${message}"/>
|
|
|
|
+ <div class="control-group">
|
|
|
|
+ <label class="control-label">招聘会类型:</label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <form:select path="fairType" class="input-xlarge required" onchange="fairTypeChange(this.value);">
|
|
|
|
+ <form:option value="" label=""/>
|
|
|
|
+ <form:options items="${fns:getDictList('FAIR_TYPE')}" itemLabel="label" itemValue="value"
|
|
|
|
+ htmlEscape="false"/>
|
|
|
|
+ </form:select>
|
|
|
|
+ <span class="help-inline"><font color="red">*</font> </span>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="control-group">
|
|
|
|
+ <label class="control-label">标题(内部使用):</label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <form:input path="fairTitle" htmlEscape="false" maxlength="40" class="input-xlarge required"/>
|
|
|
|
+ <span class="help-inline"><font color="red">*</font> </span>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="control-group">
|
|
|
|
+ <label class="control-label">口号(用户展示):</label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <form:input path="fairSlogan" htmlEscape="false" maxlength="40" class="input-xlarge required"/>
|
|
|
|
+ <span class="help-inline"><font color="red">*</font> </span>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="control-group">
|
|
|
|
+ <label class="control-label">头图:</label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <form:hidden path="headImg" htmlEscape="false" maxlength="255" class="input-xlarge required"/>
|
|
|
|
+ <sys:ckfinder input="headImg" type="images" uploadPath="/backgroundImg" selectMultiple="false"/>
|
|
|
|
+ <span class="help-inline"><font color="red">*</font> </span>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="control-group">
|
|
|
|
+ <label class="control-label">背景图:</label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <form:hidden path="backgroundImg" htmlEscape="false" maxlength="255" class="input-xlarge required"/>
|
|
|
|
+ <sys:ckfinder input="backgroundImg" type="images" uploadPath="/backgroundImg" selectMultiple="false"/>
|
|
|
|
+ <span class="help-inline"><font color="red">*</font> </span>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="control-group">
|
|
|
|
+ <label class="control-label">底图:</label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <form:hidden path="bottomImg" htmlEscape="false" maxlength="255" class="input-xlarge required"/>
|
|
|
|
+ <sys:ckfinder input="bottomImg" type="images" uploadPath="/backgroundImg" selectMultiple="false"/>
|
|
|
|
+ <span class="help-inline"><font color="red">*</font> </span>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
|
|
- <div class="control-group">
|
|
|
|
- <label class="control-label">头图PC:</label>
|
|
|
|
- <div class="controls">
|
|
|
|
- <form:hidden path="pcHeadImg" htmlEscape="false" maxlength="255" class="input-xlarge required"/>
|
|
|
|
- <sys:ckfinder input="pcHeadImg" type="images" uploadPath="/backgroundImg" selectMultiple="false"/>
|
|
|
|
- <span class="help-inline"><font color="red">*</font> </span>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="control-group">
|
|
|
|
- <label class="control-label">背景图PC:</label>
|
|
|
|
- <div class="controls">
|
|
|
|
- <form:hidden path="pcBackgroundImg" htmlEscape="false" maxlength="255" class="input-xlarge required"/>
|
|
|
|
- <sys:ckfinder input="pcBackgroundImg" type="images" uploadPath="/backgroundImg" selectMultiple="false"/>
|
|
|
|
- <span class="help-inline"><font color="red">*</font> </span>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="control-group">
|
|
|
|
- <label class="control-label">底图PC:</label>
|
|
|
|
- <div class="controls">
|
|
|
|
- <form:hidden path="pcBottomImg" htmlEscape="false" maxlength="255" class="input-xlarge required"/>
|
|
|
|
- <sys:ckfinder input="pcBottomImg" type="images" uploadPath="/backgroundImg" selectMultiple="false"/>
|
|
|
|
- <span class="help-inline"><font color="red">*</font> </span>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="control-group">
|
|
|
|
- <label class="control-label">小区块色号:</label>
|
|
|
|
- <div class="controls">
|
|
|
|
- <form:input path="insideColour" htmlEscape="false" maxlength="50" class="input-xlarge"/>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="control-group">
|
|
|
|
- <label class="control-label">职位背景色:</label>
|
|
|
|
- <div class="controls">
|
|
|
|
- <form:input path="jobColour" htmlEscape="false" maxlength="50" class="input-xlarge"/>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="control-group">
|
|
|
|
- <label class="control-label">背景色色号:</label>
|
|
|
|
- <div class="controls">
|
|
|
|
- <form:input path="backgroundColour" htmlEscape="false" maxlength="10" class="input-xlarge"/>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="control-group">
|
|
|
|
- <label class="control-label">分享用图:</label>
|
|
|
|
- <div class="controls">
|
|
|
|
- <form:hidden path="shareImg" htmlEscape="false" maxlength="255" class="input-xlarge required"/>
|
|
|
|
- <sys:ckfinder input="shareImg" type="images" uploadPath="/backgroundImg" selectMultiple="false"/>
|
|
|
|
- <span class="help-inline"><font color="red">*</font> </span>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="control-group">
|
|
|
|
- <label class="control-label">开始时间:</label>
|
|
|
|
- <div class="controls">
|
|
|
|
- <input name="startDate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate required"
|
|
|
|
- value="<fmt:formatDate value="${mdeJobFair.startDate}" pattern="yyyy-MM-dd"/>"
|
|
|
|
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
|
|
|
|
- <span class="help-inline"><font color="red">*</font> </span>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="control-group">
|
|
|
|
- <label class="control-label">结束时间:</label>
|
|
|
|
- <div class="controls">
|
|
|
|
- <input name="stopDate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate required"
|
|
|
|
- value="<fmt:formatDate value="${mdeJobFair.stopDate}" pattern="yyyy-MM-dd"/>"
|
|
|
|
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
|
|
|
|
- <span class="help-inline"><font color="red">*</font> </span>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="control-group">
|
|
|
|
- <label class="control-label">底部文案:</label>
|
|
|
|
- <div class="controls">
|
|
|
|
- <form:textarea path="remarks" htmlEscape="false" rows="5" maxlength="2255" class="input-xxlarge " style="width:1200px"/>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="control-group">
|
|
|
|
- <label class="control-label">参会企业/职位:</label>
|
|
|
|
- <div class="controls">
|
|
|
|
- <table id="contentTable" class="table table-striped table-bordered table-condensed" style="width:80%">
|
|
|
|
- <thead>
|
|
|
|
- <tr>
|
|
|
|
- <th class="hide"></th>
|
|
|
|
- <th>序号</th>
|
|
|
|
- <th>酒店名称 ${mdeJobFair.fairType}</th>
|
|
|
|
- <c:if test="${mdeJobFair.fairType eq '2'}">
|
|
|
|
- <th>职位名称</th>
|
|
|
|
- </c:if>
|
|
|
|
- <th>排序</th>
|
|
|
|
- <shiro:hasPermission name="recruitment:mdeJobFair:edit"><th width="10"> </th></shiro:hasPermission>
|
|
|
|
- </tr>
|
|
|
|
- </thead>
|
|
|
|
- <tbody id="mdeFairDtlList">
|
|
|
|
- </tbody>
|
|
|
|
- <shiro:hasPermission name="recruitment:mdeJobFair:edit"><tfoot>
|
|
|
|
- <tr><td colspan="5"><a href="javascript:" onclick="addRow('#mdeFairDtlList', mdeFairDtlRowIdx, mdeFairDtlTpl);mdeFairDtlRowIdx = mdeFairDtlRowIdx + 1;" class="btn">新增</a></td></tr>
|
|
|
|
- </tfoot></shiro:hasPermission>
|
|
|
|
- </table>
|
|
|
|
- <script type="text/template" id="mdeFairDtlTpl">
|
|
|
|
- //<!--
|
|
|
|
|
|
+ <div class="control-group">
|
|
|
|
+ <label class="control-label">头图PC:</label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <form:hidden path="pcHeadImg" htmlEscape="false" maxlength="255" class="input-xlarge required"/>
|
|
|
|
+ <sys:ckfinder input="pcHeadImg" type="images" uploadPath="/backgroundImg" selectMultiple="false"/>
|
|
|
|
+ <span class="help-inline"><font color="red">*</font> </span>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="control-group">
|
|
|
|
+ <label class="control-label">背景图PC:</label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <form:hidden path="pcBackgroundImg" htmlEscape="false" maxlength="255" class="input-xlarge required"/>
|
|
|
|
+ <sys:ckfinder input="pcBackgroundImg" type="images" uploadPath="/backgroundImg" selectMultiple="false"/>
|
|
|
|
+ <span class="help-inline"><font color="red">*</font> </span>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="control-group">
|
|
|
|
+ <label class="control-label">底图PC:</label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <form:hidden path="pcBottomImg" htmlEscape="false" maxlength="255" class="input-xlarge required"/>
|
|
|
|
+ <sys:ckfinder input="pcBottomImg" type="images" uploadPath="/backgroundImg" selectMultiple="false"/>
|
|
|
|
+ <span class="help-inline"><font color="red">*</font> </span>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="control-group">
|
|
|
|
+ <label class="control-label">小区块色号:</label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <form:input path="insideColour" htmlEscape="false" maxlength="50" class="input-xlarge"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="control-group">
|
|
|
|
+ <label class="control-label">职位背景色:</label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <form:input path="jobColour" htmlEscape="false" maxlength="50" class="input-xlarge"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="control-group">
|
|
|
|
+ <label class="control-label">背景色色号:</label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <form:input path="backgroundColour" htmlEscape="false" maxlength="10" class="input-xlarge"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="control-group">
|
|
|
|
+ <label class="control-label">分享用图:</label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <form:hidden path="shareImg" htmlEscape="false" maxlength="255" class="input-xlarge required"/>
|
|
|
|
+ <sys:ckfinder input="shareImg" type="images" uploadPath="/backgroundImg" selectMultiple="false"/>
|
|
|
|
+ <span class="help-inline"><font color="red">*</font> </span>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="control-group">
|
|
|
|
+ <label class="control-label">开始时间:</label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <input name="startDate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate required"
|
|
|
|
+ value="<fmt:formatDate value="${mdeJobFair.startDate}" pattern="yyyy-MM-dd"/>"
|
|
|
|
+ onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
|
|
|
|
+ <span class="help-inline"><font color="red">*</font> </span>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="control-group">
|
|
|
|
+ <label class="control-label">结束时间:</label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <input name="stopDate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate required"
|
|
|
|
+ value="<fmt:formatDate value="${mdeJobFair.stopDate}" pattern="yyyy-MM-dd"/>"
|
|
|
|
+ onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
|
|
|
|
+ <span class="help-inline"><font color="red">*</font> </span>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="control-group">
|
|
|
|
+ <label class="control-label">底部文案:</label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <form:textarea path="remarks" htmlEscape="false" rows="5" maxlength="2255" class="input-xxlarge "
|
|
|
|
+ style="width:1200px"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <c:if test="${mdeJobFair.fairType eq '1'}">
|
|
|
|
+ <div class="control-group">
|
|
|
|
+ <div class="left">
|
|
|
|
+ <label class="control-label">所购套餐:</label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <form:select path="pkgId" data-value="${mdeJobFair.pkgId}" class="input-xlarge required"
|
|
|
|
+ onchange="vipPkgChange(this.value);">
|
|
|
|
+ <form:option value="" label="请选择套餐"></form:option>
|
|
|
|
+ <form:options items="${vipPkgsList}" itemLabel="label" itemValue="value" htmlEscape="false"/>
|
|
|
|
+ </form:select>
|
|
|
|
+ <span class="help-inline"><font color="red">*</font> </span>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="control-group">
|
|
|
|
+ <div class="right" style="width: 780px;">
|
|
|
|
+ <label class="control-label">套餐售价:</label>
|
|
|
|
+ <div class="controls" style="width: 560px; ">
|
|
|
|
+ <form:select path="priceId" data-value="${mdeJobFair.priceId}" class="input-xxlarge required">
|
|
|
|
+ <form:option value="" label="请选择套餐售价"></form:option>
|
|
|
|
+ <form:options items="${vipPkgPriceList}" itemLabel="pkgTitle" itemValue="priceId"
|
|
|
|
+ htmlEscape="false"/>
|
|
|
|
+ </form:select>
|
|
|
|
+ <span class="help-inline"><font color="red">*</font> </span>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </c:if>
|
|
|
|
+ <div class="control-group">
|
|
|
|
+ <label class="control-label">参会企业/职位:</label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <table id="contentTable" class="table table-striped table-bordered table-condensed" style="width:80%">
|
|
|
|
+ <thead>
|
|
|
|
+ <tr>
|
|
|
|
+ <th class="hide"></th>
|
|
|
|
+ <c:if test="${mdeJobFair.fairType eq '1'}">
|
|
|
|
+ <th style="display: flex">
|
|
|
|
+ <input id="allAuthorize" type="checkbox">
|
|
|
|
+ 是否授权
|
|
|
|
+ </th>
|
|
|
|
+ </c:if>
|
|
|
|
+ <th>序号</th>
|
|
|
|
+ <c:if test="${mdeJobFair.fairType eq '1'}">
|
|
|
|
+ <th>是否会员</th>
|
|
|
|
+ </c:if>
|
|
|
|
+ <th>酒店名称 ${mdeJobFair.fairType}</th>
|
|
|
|
+ <c:if test="${mdeJobFair.fairType eq '2'}">
|
|
|
|
+ <th>职位名称</th>
|
|
|
|
+ </c:if>
|
|
|
|
+ <th>排序</th>
|
|
|
|
+ <shiro:hasPermission name="recruitment:mdeJobFair:edit">
|
|
|
|
+ <th width="10"> </th>
|
|
|
|
+ </shiro:hasPermission>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+<%-- <tbody id="mdeFairDtlList">--%>
|
|
|
|
+<%-- </tbody>--%>
|
|
|
|
+ <tbody id="mdeFairDtlList">
|
|
|
|
+ <c:forEach items="${mdeJobFair.mdeFairDtlList}" var="fairDtl" varStatus="status">
|
|
|
|
+ <tr id="mdeFairDtlList${status.index}">
|
|
|
|
+ <td class="hide">
|
|
|
|
+ <input id="mdeFairDtlList${status.index}_id" name="mdeFairDtlList[${status.index}].id"
|
|
|
|
+ type="hidden" value="${fairDtl.id}"/>
|
|
|
|
+ <input id="mdeFairDtlList${status.index}_dtlId" name="mdeFairDtlList[${status.index}].dtlId"
|
|
|
|
+ type="hidden" value="${fairDtl.dtlId}"/>
|
|
|
|
+ <input id="mdeFairDtlList${status.index}_fairType"
|
|
|
|
+ name="mdeFairDtlList[${status.index}].fairType"
|
|
|
|
+ type="hidden" value="${fairDtl.fairType}"/>
|
|
|
|
+ <input id="mdeFairDtlList${status.index}_vipFlag"
|
|
|
|
+ name="mdeFairDtlList[${status.index}].vipFlag"
|
|
|
|
+ type="hidden" value="${fairDtl.vipFlag}"/>
|
|
|
|
+ </td>
|
|
|
|
+ <c:if test="${mdeJobFair.fairType eq '1'}">
|
|
|
|
+ <td class="checkbox">
|
|
|
|
+ <input name="mdeFairDtlList[${status.index}].authorizeFlag" style="margin: -2px 3px"
|
|
|
|
+ type="checkbox"
|
|
|
|
+ <c:if test="${'1' == fairDtl.authorizeFlag}">checked</c:if>
|
|
|
|
+ value="1"/>
|
|
|
|
+ </td>
|
|
|
|
+ </c:if>
|
|
|
|
+ <td>
|
|
|
|
+ ${status.index+1}
|
|
|
|
+ </td>
|
|
|
|
+ <c:if test="${mdeJobFair.fairType eq '1'}">
|
|
|
|
+ <td>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fairDtl.vipFlag ne '0'}">
|
|
|
|
+ 是
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ 否
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </td>
|
|
|
|
+ </c:if>
|
|
|
|
+ <td>
|
|
|
|
+ <select id="mdeFairDtlList${status.index}_hotelId"
|
|
|
|
+ name="mdeFairDtlList[${status.index}].hotelId" data-value="${fairDtl.hotelId}"
|
|
|
|
+ onchange="hotelChange(this.value, 'mdeFairDtlList${status.index}',${status.index});"
|
|
|
|
+ class="input-xxlarge required">
|
|
|
|
+ <option value=""></option>
|
|
|
|
+ <c:forEach items="${userList}" var="dict" varStatus="dictIndex">
|
|
|
|
+ <option id="mdeFairDtlListOption${status.index}_${dictIndex.index}"
|
|
|
|
+ data-vip="${dict.vipFlag}"
|
|
|
|
+ value="${dict.userCode}"
|
|
|
|
+ <c:if test="${fairDtl.hotelId == dict.userCode}">selected="selected"</c:if>>${dict.name}</option>
|
|
|
|
+ </c:forEach>
|
|
|
|
+ </select>
|
|
|
|
+ </td>
|
|
|
|
+ <c:if test="${mdeJobFair.fairType eq '2'}">
|
|
|
|
+ <td>
|
|
|
|
+ <select id="mdeFairDtlList${status.index}_jobId"
|
|
|
|
+ name="mdeFairDtlList[${status.index}].jobId" value="${fairDtl.jobId}"
|
|
|
|
+ data-value="${fairDtl.jobId}"
|
|
|
|
+ onchange="jobChange(this.value, 'mdeFairDtlList${status.index}',${status.index});"
|
|
|
|
+ class="input-xxlarge required">
|
|
|
|
+ <option value=""></option>
|
|
|
|
+ <c:forEach items="${fairDtl.jobList}" var="dict">
|
|
|
|
+ <option value="${dict.jobId}">${dict.jobName}</option>
|
|
|
|
+ </c:forEach>
|
|
|
|
+ </select>
|
|
|
|
+ </td>
|
|
|
|
+ </c:if>
|
|
|
|
+ <td>
|
|
|
|
+ <input id="mdeFairDtlList${status.index}_sort" name="mdeFairDtlList[${status.index}].sort"
|
|
|
|
+ type="text" value="${fairDtl.sort}" maxlength="11" class="input-small required"/>
|
|
|
|
+ </td>
|
|
|
|
+ <shiro:hasPermission name="recruitment:mdeJobFair:edit">
|
|
|
|
+ <td class="text-center" width="10">
|
|
|
|
+ <span class="close" onclick="delDtlRow(this, '#mdeFairDtlList${status.index}')"
|
|
|
|
+ title="删除">×</span>
|
|
|
|
+ </td>
|
|
|
|
+ </shiro:hasPermission>
|
|
|
|
+ </tr>
|
|
|
|
+ </c:forEach>
|
|
|
|
+ </tbody>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ </table>
|
|
|
|
+
|
|
|
|
+ </tbody>
|
|
|
|
+ <shiro:hasPermission name="recruitment:mdeJobFair:edit">
|
|
|
|
+ <tfoot>
|
|
|
|
+ <tr>
|
|
|
|
+ <td colspan="5"><a href="javascript:"
|
|
|
|
+ onclick="addRow('#mdeFairDtlList', mdeFairDtlRowIdx, mdeFairDtlTpl);mdeFairDtlRowIdx = mdeFairDtlRowIdx + 1;"
|
|
|
|
+ class="btn">新增</a></td>
|
|
|
|
+ </tr>
|
|
|
|
+ </tfoot>
|
|
|
|
+ </shiro:hasPermission>
|
|
|
|
+ </table>
|
|
|
|
+ <script type="text/template" id="mdeFairDtlTpl">
|
|
|
|
+ //<!--
|
|
<tr id="mdeFairDtlList{{idx}}">
|
|
<tr id="mdeFairDtlList{{idx}}">
|
|
<td class="hide">
|
|
<td class="hide">
|
|
<input id="mdeFairDtlList{{idx}}_id" name="mdeFairDtlList[{{idx}}].id" type="hidden" value="{{row.id}}"/>
|
|
<input id="mdeFairDtlList{{idx}}_id" name="mdeFairDtlList[{{idx}}].id" type="hidden" value="{{row.id}}"/>
|
|
<input id="mdeFairDtlList{{idx}}_dtlId" name="mdeFairDtlList[{{idx}}].dtlId" type="hidden" value="{{row.dtlId}}" />
|
|
<input id="mdeFairDtlList{{idx}}_dtlId" name="mdeFairDtlList[{{idx}}].dtlId" type="hidden" value="{{row.dtlId}}" />
|
|
|
|
+ <input id="mdeFairDtlList{{idx}}_fairType" name="mdeFairDtlList[{{idx}}].fairType" type="hidden" value="{{row.fairType}}"/>
|
|
|
|
+ <input id="mdeFairDtlList{{idx}}_vipFlag" name="mdeFairDtlList[{{idx}}].vipFlag" type="hidden" value="{{row.vipFlag}}"/>
|
|
</td>
|
|
</td>
|
|
|
|
+ <c:if test="${mdeJobFair.fairType eq '1'}">
|
|
|
|
+ <td class="checkbox">
|
|
|
|
+ <input name="mdeFairDtlList[{{idx}}].authorizeFlag" style="margin: -2px 3px" type="checkbox"
|
|
|
|
+ <c:if test="${'1' == fairDtl.authorizeFlag}">checked</c:if>
|
|
|
|
+ value="1" />
|
|
|
|
+ </td>
|
|
|
|
+ </c:if>
|
|
<td>
|
|
<td>
|
|
{{rowNo}}
|
|
{{rowNo}}
|
|
</td>
|
|
</td>
|
|
|
|
+ <c:if test="${mdeJobFair.fairType eq '1'}">
|
|
|
|
+ <td>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${row.vipFlag ne '0'}">
|
|
|
|
+ 是
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ 否
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </td>
|
|
|
|
+ </c:if>
|
|
<td>
|
|
<td>
|
|
- <select id="mdeFairDtlList{{idx}}_hotelId" name="mdeFairDtlList[{{idx}}].hotelId" data-value="{{row.hotelId}}" onchange="hotelChange(this.value, 'mdeFairDtlList{{idx}}',{{idx}});" class="input-xxlarge required">
|
|
|
|
|
|
+ <select id="mdeFairDtlList{{idx}}_hotelId"
|
|
|
|
+ name="mdeFairDtlList[{{idx}}].hotelId" data-value="{{row.hotelId}}"
|
|
|
|
+ onchange="hotelChange(this.value, 'mdeFairDtlList{{idx}}',{{idx}});"
|
|
|
|
+ class="input-xxlarge required">
|
|
<option value=""></option>
|
|
<option value=""></option>
|
|
- <c:forEach items="${userList}" var="dict">
|
|
|
|
- <option value="${dict.userCode}">${dict.name}</option>
|
|
|
|
|
|
+ <c:forEach items="${userList}" var="dict" varStatus="dictIndex">
|
|
|
|
+ <option id="mdeFairDtlListOption{{idx}}_${dictIndex.index}" data-vip="${dict.vipFlag}"
|
|
|
|
+ value="${dict.userCode}">${dict.name}</option>
|
|
</c:forEach>
|
|
</c:forEach>
|
|
</select>
|
|
</select>
|
|
</td>
|
|
</td>
|
|
@@ -341,27 +540,32 @@
|
|
{{#delBtn}}<span class="close" onclick="delDtlRow(this, '#mdeFairDtlList{{idx}}')" title="删除">×</span>{{/delBtn}}
|
|
{{#delBtn}}<span class="close" onclick="delDtlRow(this, '#mdeFairDtlList{{idx}}')" title="删除">×</span>{{/delBtn}}
|
|
</td></shiro:hasPermission>
|
|
</td></shiro:hasPermission>
|
|
</tr>//-->
|
|
</tr>//-->
|
|
- </script>
|
|
|
|
- <script type="text/javascript">
|
|
|
|
- var mdeFairDtlRowIdx = 0, mdeFairDtlTpl = $("#mdeFairDtlTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g,"");
|
|
|
|
- $(document).ready(function() {
|
|
|
|
- var data = ${fns:toJson(mdeJobFair.mdeFairDtlList)};
|
|
|
|
- for (var i=0; i<data.length; i++){
|
|
|
|
- addRow('#mdeFairDtlList', mdeFairDtlRowIdx, mdeFairDtlTpl, data[i]);
|
|
|
|
- mdeFairDtlRowIdx = mdeFairDtlRowIdx + 1;
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- </script>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="form-actions">
|
|
|
|
- <c:if test="${editFlag ne 'false' }">
|
|
|
|
- <shiro:hasPermission name="recruitment:mdeVipPackage:edit">
|
|
|
|
- <input id="btnSubmit" class="btn btn-primary" type="submit" onclick="return saveSubmit();" value="保 存"/>
|
|
|
|
- </shiro:hasPermission>
|
|
|
|
- </c:if>
|
|
|
|
- <input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
|
|
|
|
- </div>
|
|
|
|
- </form:form>
|
|
|
|
|
|
+ </script>
|
|
|
|
+ <script type="text/javascript">
|
|
|
|
+ var mdeFairDtlRowIdx = 0,
|
|
|
|
+ mdeFairDtlTpl = $("#mdeFairDtlTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g, "");
|
|
|
|
+ $(document).ready(function () {
|
|
|
|
+ var data = ${fns:toJson(mdeJobFair.mdeFairDtlList)};
|
|
|
|
+ console.log(data)
|
|
|
|
+ for (var i = 0; i < data.length; i++) {
|
|
|
|
+ console.log(data[i]);
|
|
|
|
+ addRow('', mdeFairDtlRowIdx, mdeFairDtlTpl, data[i],true);
|
|
|
|
+ mdeFairDtlRowIdx = mdeFairDtlRowIdx + 1;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ });
|
|
|
|
+ </script>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="form-actions">
|
|
|
|
+ <c:if test="${editFlag ne 'false' }">
|
|
|
|
+ <shiro:hasPermission name="recruitment:mdeVipPackage:edit">
|
|
|
|
+ <input id="btnSubmit" class="btn btn-primary" type="submit" onclick="return saveSubmit();"
|
|
|
|
+ value="保 存"/>
|
|
|
|
+ </shiro:hasPermission>
|
|
|
|
+ </c:if>
|
|
|
|
+ <input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
|
|
|
|
+ </div>
|
|
|
|
+</form:form>
|
|
</body>
|
|
</body>
|
|
</html>
|
|
</html>
|