beetlsql3-dev
姚丹ab 2 years ago
parent 7cb2648ff0
commit 5b64ec8e57

@ -19,7 +19,10 @@ layui.define([ 'form', 'laydate', 'table','element','upload','competitionApi','t
var getTreeByCourseLabelTypes = []; //编辑对话框的树结构 数据 var getTreeByCourseLabelTypes = []; //编辑对话框的树结构 数据
if (!$.isEmpty($("input[name='competitionId']").val())) { if (!$.isEmpty($("input[name='competitionId']").val())) {
var ret = Common.getAjax("/jlw/competition/view.json",{competitionId:$("input[name='competitionId']").val(),part: 1}); var ret = Common.getAjax("/jlw/competition/view.json", {
competitionId: $("input[name='competitionId']").val(),
part: 1
});
if (ret.code == 0) { if (ret.code == 0) {
$("#competitionGeneralization textarea").val(Lib.repLaceltgt(ret.data.competitionGeneralizationOriginal)); $("#competitionGeneralization textarea").val(Lib.repLaceltgt(ret.data.competitionGeneralizationOriginal));
} else { } else {
@ -29,7 +32,8 @@ layui.define([ 'form', 'laydate', 'table','element','upload','competitionApi','t
var editor1 = Lib.editorMd("competitionGeneralization"),//大赛概况 var editor1 = Lib.editorMd("competitionGeneralization"),//大赛概况
editor2,//获奖名单 editor2,//获奖名单
editor3,//动态内容 editor3,//动态内容
editor4;//常见问题 editor4,//常见问题
editor12;//校园风采
//上传LOGO //上传LOGO
upload.render({ upload.render({
@ -260,6 +264,7 @@ layui.define([ 'form', 'laydate', 'table','element','upload','competitionApi','t
}); });
//上一步下一步 时 加载 //sign = 0:大赛概况 1:竞赛时间 2:参赛学员 3:大赛任务 4:成绩权重 5:大赛评委 //上一步下一步 时 加载 //sign = 0:大赛概况 1:竞赛时间 2:参赛学员 3:大赛任务 4:成绩权重 5:大赛评委
//part 代表部分值 1大赛概况 2竞赛时间 3参赛学员 4大赛任务 5成绩权重 6大赛评委 7获奖名单 8大赛动态 9常见问题
function loadView(sign) { function loadView(sign) {
onSign = sign; onSign = sign;
if (sign == 0) { if (sign == 0) {
@ -267,44 +272,77 @@ layui.define([ 'form', 'laydate', 'table','element','upload','competitionApi','t
$(".xyb").show(); $(".xyb").show();
$(".sbx").show(); $(".sbx").show();
} else if (sign == 1 || sign == 2 || sign == 3 || sign == 4 } else if (sign == 1 || sign == 2 || sign == 3 || sign == 4
|| sign == 5
|| sign == 6 || sign == 6
|| sign == 7 || sign == 7
|| sign == 8 || sign == 9
|| sign == 5 ){ || sign == 10
|| sign == 11) {
$(".syb").show(); $(".syb").show();
$(".xyb").show(); $(".xyb").show();
$(".sbx").show(); $(".sbx").show();
if (sign == 3) { if (sign == 3) {
loadDSRW(); loadDSRW();
} }
if(sign == 8 && $.isEmpty(editor2)){ if (sign == 6 && $.isEmpty(editor4)) {
if (!$.isEmpty($("input[name='competitionId']").val())) { if (!$.isEmpty($("input[name='competitionId']").val())) {
var ret = Common.getAjax("/jlw/competition/view.json",{competitionId:$("input[name='competitionId']").val(),part: 7}); var ret = Common.getAjax("/jlw/competition/view.json", {
competitionId: $("input[name='competitionId']").val(),
part: 9
});
if (ret.code == 0) { if (ret.code == 0) {
$("#competitionAwardList textarea").val(Lib.repLaceltgt(ret.data.competitionAwardListOriginal)); $("#competitionCommonProblem textarea").val(Lib.repLaceltgt(ret.data.competitionCommonProblemOriginal));
} else { } else {
layer.msg(ret.msg, {icon: 2, time: 1500}); layer.msg(ret.msg, {icon: 2, time: 1500});
} }
} }
editor2 = Lib.editorMd("competitionAwardList"); editor4 = Lib.editorMd("competitionCommonProblem");
} }
if(sign == 6 && $.isEmpty(editor4)){ if (sign == 7 && $.isEmpty(editor3)) {
if (!$.isEmpty($("input[name='competitionId']").val())) { if (!$.isEmpty($("input[name='competitionId']").val())) {
var ret = Common.getAjax("/jlw/competition/view.json",{competitionId:$("input[name='competitionId']").val(),part: 9}); var ret = Common.getAjax("/jlw/competition/view.json", {
competitionId: $("input[name='competitionId']").val(),
part: 8
});
if (ret.code == 0) { if (ret.code == 0) {
$("#competitionCommonProblem textarea").val(Lib.repLaceltgt(ret.data.competitionCommonProblemOriginal)); $("#competitionNewsContent textarea").val(Lib.repLaceltgt(ret.data.competitionAwardListOriginal));
} else { } else {
layer.msg(ret.msg, {icon: 2, time: 1500}); layer.msg(ret.msg, {icon: 2, time: 1500});
} }
} }
editor4 = Lib.editorMd("competitionCommonProblem"); editor3 = Lib.editorMd("competitionNewsContent");
} }
}else if(sign == 8){ } else if (sign == 8 || sign == 12) {
$(".syb").show(); $(".syb").show();
$(".xyb").hide(); $(".xyb").hide();
$(".sbx").show(); $(".sbx").show();
if($.isEmpty(editor3)) { if (sign == 8 && $.isEmpty(editor2)) {
editor3 = Lib.editorMd("competitionNewsContent"); if (!$.isEmpty($("input[name='competitionId']").val())) {
var ret = Common.getAjax("/jlw/competition/view.json", {
competitionId: $("input[name='competitionId']").val(),
part: 7
});
if (ret.code == 0) {
$("#competitionAwardList textarea").val(Lib.repLaceltgt(ret.data.competitionAwardListOriginal));
} else {
layer.msg(ret.msg, {icon: 2, time: 1500});
}
}
editor2 = Lib.editorMd("competitionAwardList");
}
if (sign == 12 && $.isEmpty(editor12)) {
if (!$.isEmpty($("input[name='competitionId']").val())) {
var ret = Common.getAjax("/jlw/competition/view.json", {
competitionId: $("input[name='competitionId']").val(),
part: 7
});
if (ret.code == 0) {
$("#competitionXYFC textarea").val(Lib.repLaceltgt(ret.data.competitionAwardListOriginal));
} else {
layer.msg(ret.msg, {icon: 2, time: 1500});
}
}
editor12 = Lib.editorMd("competitionXYFC");
} }
} else { } else {
$(".sbx").hide(); $(".sbx").hide();
@ -327,6 +365,7 @@ layui.define([ 'form', 'laydate', 'table','element','upload','competitionApi','t
$(".bc").hide(); $(".bc").hide();
} }
} }
//保存获奖名单 //保存获奖名单
$("#addCompetitionAwardList").click(function () { $("#addCompetitionAwardList").click(function () {
var competitionAwardList = editor2.getPreviewedHTML();//获奖名单 html var competitionAwardList = editor2.getPreviewedHTML();//获奖名单 html
@ -502,6 +541,7 @@ layui.define([ 'form', 'laydate', 'table','element','upload','competitionApi','t
} }
}); });
} }
function search_dz() { function search_dz() {
var studentTempJson = new Array(); var studentTempJson = new Array();
$.each(studentTempMap, function (i, item) { $.each(studentTempMap, function (i, item) {
@ -663,6 +703,7 @@ layui.define([ 'form', 'laydate', 'table','element','upload','competitionApi','t
//加载已报名参赛的人员名单 list tag = 个人赛0:已选参赛人 1未选参赛人) 团队赛2已选参赛人 3选队长 4未选参赛人团队 //加载已报名参赛的人员名单 list tag = 个人赛0:已选参赛人 1未选参赛人) 团队赛2已选参赛人 3选队长 4未选参赛人团队
var onTag = 0; var onTag = 0;
function loadCompetitionUser(tag, jsons) { function loadCompetitionUser(tag, jsons) {
onTag = tag; onTag = tag;
if (tag_ == 0) { if (tag_ == 0) {
@ -711,8 +752,14 @@ layui.define([ 'form', 'laydate', 'table','element','upload','competitionApi','t
field: 'classIdText', field: 'classIdText',
title: '班级名称', align: "center", hide: tag == 2 ? true : false title: '班级名称', align: "center", hide: tag == 2 ? true : false
}, { }, {
field : 'teamName',edit: 'text', field: 'teamName',
title : '团队名称',align: "center",style:"text-align: left;",hide:tag == 2?false:true,width:220,templet:function(d){ edit: 'text',
title: '团队名称',
align: "center",
style: "text-align: left;",
hide: tag == 2 ? false : true,
width: 220,
templet: function (d) {
if (!$.isEmpty(studentTempMap[d.studentId])) { if (!$.isEmpty(studentTempMap[d.studentId])) {
return (studentTempMap[d.studentId]['teamName'] || '') + "<span style='margin-left: 20px;cursor: pointer;color: #1E9FFF;;float: right;'>编辑</span>"; return (studentTempMap[d.studentId]['teamName'] || '') + "<span style='margin-left: 20px;cursor: pointer;color: #1E9FFF;;float: right;'>编辑</span>";
} else { } else {
@ -1130,6 +1177,7 @@ layui.define([ 'form', 'laydate', 'table','element','upload','competitionApi','t
} }
}); });
} }
//移除团队 //移除团队
function del_td() { function del_td() {
layer.confirm('是否确定移除参赛团队?', function (index) { layer.confirm('是否确定移除参赛团队?', function (index) {
@ -1211,6 +1259,7 @@ layui.define([ 'form', 'laydate', 'table','element','upload','competitionApi','t
} }
}); });
} }
//参赛学员 结束js //参赛学员 结束js
@ -1222,6 +1271,7 @@ layui.define([ 'form', 'laydate', 'table','element','upload','competitionApi','t
dxx_fz: "", dxx_fz: "",
pd_fz: "" pd_fz: ""
}; };
function loadDSRW(tag, input_key) { //tag == 1 抽题 function loadDSRW(tag, input_key) { //tag == 1 抽题
var ct1QuestionIds = $("input[name='ct1QuestionIds']").val(); var ct1QuestionIds = $("input[name='ct1QuestionIds']").val();
var ct2QuestionIds = $("input[name='ct2QuestionIds']").val(); var ct2QuestionIds = $("input[name='ct2QuestionIds']").val();
@ -1399,13 +1449,21 @@ layui.define([ 'form', 'laydate', 'table','element','upload','competitionApi','t
//客观题选择 //客观题选择
function kgt_select() { function kgt_select() {
var ret = Common.getAjax("/jlw/resourcesQuestion/getTreeByCourseLabelTypes.json",{courseLabelTypes:"应用课程类",competitionId:$("input[name='competitionId']").val(),ct1QuestionIds:$("input[name='ct1QuestionIds']").val() || '-1'}); var ret = Common.getAjax("/jlw/resourcesQuestion/getTreeByCourseLabelTypes.json", {
courseLabelTypes: "应用课程类",
competitionId: $("input[name='competitionId']").val(),
ct1QuestionIds: $("input[name='ct1QuestionIds']").val() || '-1'
});
openTiMu(1, ret); openTiMu(1, ret);
} }
//竞赛案例设置 //竞赛案例设置
function jsal_select() { function jsal_select() {
var ret = Common.getAjax("/jlw/resourcesCompetition/getTreeByCourseLabelTypes.json",{courseLabelTypes:"应用课程类",competitionId:$("input[name='competitionId']").val(),ct2QuestionIds:$("input[name='ct2QuestionIds']").val() || '-1'}); var ret = Common.getAjax("/jlw/resourcesCompetition/getTreeByCourseLabelTypes.json", {
courseLabelTypes: "应用课程类",
competitionId: $("input[name='competitionId']").val(),
ct2QuestionIds: $("input[name='ct2QuestionIds']").val() || '-1'
});
openTiMu(2, ret); openTiMu(2, ret);
} }
@ -1520,7 +1578,12 @@ layui.define([ 'form', 'laydate', 'table','element','upload','competitionApi','t
field: 'teacherEmail', title: '邮箱', align: "center" field: 'teacherEmail', title: '邮箱', align: "center"
}, },
{ {
field : 'teacherEmail_', title : '操作',align: "center",hide:tag == 1?false:true,width:100,templet:function (d){ field: 'teacherEmail_',
title: '操作',
align: "center",
hide: tag == 1 ? false : true,
width: 100,
templet: function (d) {
return '<a style="color: #1E9FFF;cursor: pointer;" lay-event="yc_t">移除</a>'; return '<a style="color: #1E9FFF;cursor: pointer;" lay-event="yc_t">移除</a>';
} }
} }
@ -1851,5 +1914,6 @@ layui.define([ 'form', 'laydate', 'table','element','upload','competitionApi','t
} }
submitInfo(param, t); submitInfo(param, t);
} }
exports('add', view); exports('add', view);
}); });

@ -113,7 +113,6 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
}, initTableTool: table.on('tool(competitionTable)', function (obj) { }, initTableTool: table.on('tool(competitionTable)', function (obj) {
var data = obj.data; var data = obj.data;
if (obj.event === 'edit') { if (obj.event === 'edit') {
console.log(data)
var url = "/jlw/competition/add.do?competitionId="+data.competitionId+"&sign="+data.sign; var url = "/jlw/competition/add.do?competitionId="+data.competitionId+"&sign="+data.sign;
if(data.sign === '1'||data.sign === 1){ if(data.sign === '1'||data.sign === 1){
Common.openDlg(url,"大赛管理/编辑金融大数据大赛"); Common.openDlg(url,"大赛管理/编辑金融大数据大赛");

@ -7,9 +7,17 @@
width: 48%; width: 48%;
margin-bottom: 10px; margin-bottom: 10px;
} }
.newC { .newC {
height: 110px;margin-bottom: 30px;overflow-y: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 5;-webkit-box-orient: vertical; height: 110px;
margin-bottom: 30px;
overflow-y: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 5;
-webkit-box-orient: vertical;
} }
.tdOn { .tdOn {
background-color: red !important; background-color: red !important;
} }
@ -27,19 +35,23 @@
user-select: none; user-select: none;
} }
#editCDSFrame tr td, .export_gr, .export_td, .export_pw { #editCDSFrame tr td, .export_gr, .export_td, .export_pw {
cursor: pointer; cursor: pointer;
} }
.dy { .dy {
margin-right: 10px; margin-right: 10px;
float: left; float: left;
} }
.dy i { .dy i {
cursor: pointer; cursor: pointer;
color: red; color: red;
display: none; display: none;
position: absolute; position: absolute;
} }
.dy:hover i { .dy:hover i {
display: inline; display: inline;
} }
@ -55,26 +67,41 @@
.renWuON { .renWuON {
} }
.xm-label { .xm-label {
height: 36px; height: 36px;
overflow-y: auto; overflow-y: auto;
} }
#demo1 .xm-label, #demo4 .xm-label { #demo1 .xm-label, #demo4 .xm-label {
height: 65px; height: 65px;
overflow-y: auto; overflow-y: auto;
} }
.bc_c { .bc_c {
position: absolute;top: 0;left: 930px; position: absolute;
top: 0;
left: 930px;
} }
.bc_r { .bc_r {
position: absolute;top: 0;right: 4%; position: absolute;
top: 0;
right: 4%;
} }
.bc_c_ { .bc_c_ {
position: absolute;top: 0;left: 768px; position: absolute;
top: 0;
left: 768px;
}
.layui-elem-quote {
border-left: 5px solid #1e9fff;
} }
</style> </style>
<form class="layui-form" id="addForm" style="position: relative;"> <form class="layui-form" id="addForm" style="position: relative;">
<layui:submitButtons id="addButton" buttonType="" text="确认发布"/> <layui:submitButtons id="addButton" buttonType="" text="发布"><i class="layui-icon">&#xe609;</i></layui:submitButtons>
<button type="button" class="layui-btn bg_button bc bc_r">保存</button> <button type="button" class="layui-btn bg_button bc bc_r">保存</button>
<input type="hidden" name="competitionId" value="${competition.competitionId}"/> <input type="hidden" name="competitionId" value="${competition.competitionId}"/>
<input type="hidden" name="sign" value="${sign}"/> <input type="hidden" name="sign" value="${sign}"/>
@ -104,14 +131,17 @@
<div class="layui-inline"> <div class="layui-inline">
<label class="layui-form-label"><span class="req">*</span>大赛名称:</label> <label class="layui-form-label"><span class="req">*</span>大赛名称:</label>
<div class="layui-input-block"> <div class="layui-input-block">
<input type="text" name="competitionName" value="${competition.competitionName}" placeholder="请输入大赛名称" autocomplete="off" class="layui-input"> <input type="text" name="competitionName" value="${competition.competitionName}"
placeholder="请输入大赛名称" autocomplete="off" class="layui-input">
</div> </div>
</div> </div>
<div class="layui-inline"> <div class="layui-inline">
<label class="layui-form-label"><span class="req">*</span>大赛模式:</label> <label class="layui-form-label"><span class="req">*</span>大赛模式:</label>
<div class="layui-input-block"> <div class="layui-input-block">
<select name="competitionType" lay-filter="select_competitionType"> <select name="competitionType" lay-filter="select_competitionType">
<option value="1" ${competition.competitionType == null || competition.competitionType ==1?'selected':''} >个人赛</option> <option value="1" ${competition.competitionType== null ||
competition.competitionType==1?'selected':''}>个人赛
</option>
<option value="2" ${competition.competitionType==2?'selected':''}>团队赛</option> <option value="2" ${competition.competitionType==2?'selected':''}>团队赛</option>
</select> </select>
</div> </div>
@ -119,33 +149,42 @@
</div> </div>
<div class="layui-row"> <div class="layui-row">
<div class="layui-inline"> <div class="layui-inline">
<label class="layui-form-label" style="line-height: 55px;"><span class="req">*</span>主办方名称:</label> <label class="layui-form-label" style="line-height: 55px;"><span
class="req">*</span>主办方名称:</label>
<div class="layui-input-block"> <div class="layui-input-block">
<textarea name="competitionSponsorName" style="min-height: 75px;" placeholder="请输入主办方名称" class="layui-textarea">${competition.competitionSponsorName}</textarea> <textarea name="competitionSponsorName" style="min-height: 75px;" placeholder="请输入主办方名称"
class="layui-textarea">${competition.competitionSponsorName}</textarea>
</div> </div>
</div> </div>
<div class="layui-inline competitionTeamLimit" ${competition.competitionType == null || competition.competitionType ==1?'style="display:none"':''}> <div class="layui-inline competitionTeamLimit" ${competition.competitionType== null ||
competition.competitionType==1?'style="display:none"':''}>
<label class="layui-form-label"><span class="req">*</span>团队人数范围:</label> <label class="layui-form-label"><span class="req">*</span>团队人数范围:</label>
<div class="layui-input-block"> <div class="layui-input-block">
<!--# var competitionTeamLimit = splitString(competition.competitionTeamLimit,'-');--> <!--# var competitionTeamLimit = splitString(competition.competitionTeamLimit,'-');-->
<!--# var len = splitLength(competition.competitionTeamLimit,'-');--> <!--# var len = splitLength(competition.competitionTeamLimit,'-');-->
<div class="layui-col-md5"> <div class="layui-col-md5">
<input type="text" name="competitionTeamLimit_1" value="${len >=1?competitionTeamLimit[0]:''}" autocomplete="off" class="layui-input"> <input type="text" name="competitionTeamLimit_1"
value="${len >=1?competitionTeamLimit[0]:''}" autocomplete="off"
class="layui-input">
</div> </div>
<div class="layui-col-md2"> <div class="layui-col-md2">
<hr style="padding-top:10px;"/> <hr style="padding-top:10px;"/>
</div> </div>
<div class="layui-col-md5"> <div class="layui-col-md5">
<input type="text" name="competitionTeamLimit_2" value="${len >=2?competitionTeamLimit[1]:''}" autocomplete="off" class="layui-input"> <input type="text" name="competitionTeamLimit_2"
value="${len >=2?competitionTeamLimit[1]:''}" autocomplete="off"
class="layui-input">
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="layui-row"> <div class="layui-row">
<div class="layui-inline"> <div class="layui-inline">
<label class="layui-form-label" style="line-height: 55px;"><span class="req">*</span>技术支持方:</label> <label class="layui-form-label" style="line-height: 55px;"><span
class="req">*</span>技术支持方:</label>
<div class="layui-input-block"> <div class="layui-input-block">
<textarea name="competitionTechnicalName" style="min-height: 75px;" placeholder="请输入技术支持方" class="layui-textarea">${competition.competitionTechnicalName}</textarea> <textarea name="competitionTechnicalName" style="min-height: 75px;" placeholder="请输入技术支持方"
class="layui-textarea">${competition.competitionTechnicalName}</textarea>
</div> </div>
</div> </div>
<div class="layui-inline" ${sign=='1'?'':'style="display:none"'}> <div class="layui-inline" ${sign=='1'?'':'style="display:none"'}>
@ -153,35 +192,51 @@
<div class="layui-input-block"> <div class="layui-input-block">
<!--# var start1 = simpleDateFormat(competition.competitionEnrollStartTime,'YMDHM');--> <!--# var start1 = simpleDateFormat(competition.competitionEnrollStartTime,'YMDHM');-->
<!--# var end1 = simpleDateFormat(competition.competitionEnrollEndTime,'YMDHM');--> <!--# var end1 = simpleDateFormat(competition.competitionEnrollEndTime,'YMDHM');-->
<input type="text" id="enrollRange" autocomplete="off" value="${start1} ${start1 != null && end1 != null?'至':''} ${end1}" class="layui-input"> <input type="text" id="enrollRange" autocomplete="off"
<input type="hidden" name="competitionEnrollStartTime" value="${competition.competitionEnrollStartTime}" id="competitionEnrollStartTime" autocomplete="off" class="layui-input"> value="${start1} ${start1 != null && end1 != null?'至':''} ${end1}"
<input type="hidden" name="competitionEnrollEndTime" value="${competition.competitionEnrollEndTime}" id="competitionEnrollEndTime" autocomplete="off" class="layui-input"> class="layui-input">
<input type="hidden" name="competitionEnrollStartTime"
value="${competition.competitionEnrollStartTime}" id="competitionEnrollStartTime"
autocomplete="off" class="layui-input">
<input type="hidden" name="competitionEnrollEndTime"
value="${competition.competitionEnrollEndTime}" id="competitionEnrollEndTime"
autocomplete="off" class="layui-input">
</div> </div>
</div> </div>
<div class="layui-inline" ${sign=='2'?'':'style="display:none"'}> <div class="layui-inline" ${sign=='2'?'':'style="display:none"'}>
<label class="layui-form-label">决赛规则:</label> <label class="layui-form-label">决赛规则:</label>
<div class="layui-input-block" style="line-height: 38px;"> <div class="layui-input-block" style="line-height: 38px;">
<span style="float: left;padding: 0 10px;"></span> <span style="float: left;padding: 0 10px;"></span>
<input type="text" style="width: 100px;float: left;margin-right: 10px;" name="competitionFinalsLimit" value="${competition.competitionFinalsLimit}" autocomplete="off" class="layui-input"> <input type="text" style="width: 100px;float: left;margin-right: 10px;"
name="competitionFinalsLimit" value="${competition.competitionFinalsLimit}"
autocomplete="off" class="layui-input">
名进入决赛(允许并列) 名进入决赛(允许并列)
</div> </div>
</div> </div>
</div> </div>
<div class="layui-row"> <div class="layui-row">
<div class="layui-inline"> <div class="layui-inline">
<label class="layui-form-label" style="line-height: 64px;">大赛缩略图:</label> <label class="layui-form-label" style="line-height: 64px;">大赛缩略图:</label>
<div class="layui-input-block"> <div class="layui-input-block">
<input type="hidden" name="competitionLogo" value="${competition.competitionLogo}" class="layui-input" > <input type="hidden" name="competitionLogo" value="${competition.competitionLogo}"
<div class="layui-upload-drag" id="test10" style="width: 180px;height: 80px;padding: 0;float: left;"> class="layui-input">
<span id="logo" ${competition.competitionLogo !=null&&competition.competitionLogo!=''?'style="display:none;"':''}> <div class="layui-upload-drag" id="test10"
style="width: 180px;height: 80px;padding: 0;float: left;">
<span id="logo" ${competition.competitionLogo
!=null&&competition.competitionLogo!=''?'style="display:none;"':''}>
<i class="layui-icon"></i> <i class="layui-icon"></i>
<p>点击上传图片</p> <p>点击上传图片</p>
</span> </span>
<div class="${competition.competitionLogo==null||competition.competitionLogo==''?'layui-hide':''}" id="uploadDemoView"> <div class="${competition.competitionLogo==null||competition.competitionLogo==''?'layui-hide':''}"
<img src="${ctxPath}${competition.competitionLogo}" alt="大赛LOGO" style="width: 180px;height: 80px;"> id="uploadDemoView">
<img src="${ctxPath}${competition.competitionLogo}" alt="大赛LOGO"
style="width: 180px;height: 80px;">
</div>
</div> </div>
<div class="layui-form-mid layui-word-aux"
style="padding-left: 20px !important;margin-top: 20px;">像素大小180*80
</div> </div>
<div class="layui-form-mid layui-word-aux" style="padding-left: 20px !important;margin-top: 20px;">像素大小180*80</div>
</div> </div>
</div> </div>
<div class="layui-inline" ${sign=='1'?'':'style="display:none"'}> <div class="layui-inline" ${sign=='1'?'':'style="display:none"'}>
@ -189,9 +244,14 @@
<div class="layui-input-block"> <div class="layui-input-block">
<!--# var start = simpleDateFormat(competition.competitionFreetrialStartTime,'YMDHM');--> <!--# var start = simpleDateFormat(competition.competitionFreetrialStartTime,'YMDHM');-->
<!--# var end = simpleDateFormat(competition.competitionFreetrialEndTime,'YMDHM');--> <!--# var end = simpleDateFormat(competition.competitionFreetrialEndTime,'YMDHM');-->
<input type="text" id="enrollRange2" autocomplete="off" value="${start} ${start != null && end != null?'至':''} ${end}" class="layui-input"> <input type="text" id="enrollRange2" autocomplete="off"
<input type="hidden" name="competitionFreetrialStartTime" value="${competition.competitionFreetrialStartTime}" id="competitionFreetrialStartTime" autocomplete="off" class="layui-input"> value="${start} ${start != null && end != null?'至':''} ${end}" class="layui-input">
<input type="hidden" name="competitionFreetrialEndTime" value="${competition.competitionFreetrialEndTime}" id="competitionFreetrialEndTime" autocomplete="off" class="layui-input"> <input type="hidden" name="competitionFreetrialStartTime"
value="${competition.competitionFreetrialStartTime}"
id="competitionFreetrialStartTime" autocomplete="off" class="layui-input">
<input type="hidden" name="competitionFreetrialEndTime"
value="${competition.competitionFreetrialEndTime}" id="competitionFreetrialEndTime"
autocomplete="off" class="layui-input">
</div> </div>
</div> </div>
</div> </div>
@ -199,23 +259,32 @@
<div class="layui-inline"> <div class="layui-inline">
<label class="layui-form-label" style="line-height: 64px;">大赛轮播图1</label> <label class="layui-form-label" style="line-height: 64px;">大赛轮播图1</label>
<div class="layui-input-block"> <div class="layui-input-block">
<input type="hidden" name="competitionCarouselImage1" value="${competition.competitionCarouselImage1}" class="layui-input" > <input type="hidden" name="competitionCarouselImage1"
<div class="layui-upload-drag" id="test12" style="width: 180px;height: 80px;padding: 0;float: left;"> value="${competition.competitionCarouselImage1}" class="layui-input">
<span id="competitionCarouselImage1" ${competition.competitionCarouselImage1 !=null&&competition.competitionCarouselImage1!=''?'style="display:none;"':''}> <div class="layui-upload-drag" id="test12"
style="width: 180px;height: 80px;padding: 0;float: left;">
<span id="competitionCarouselImage1" ${competition.competitionCarouselImage1
!=null&&competition.competitionCarouselImage1!=''?'style="display:none;"':''}>
<i class="layui-icon"></i> <i class="layui-icon"></i>
<p>点击上传图片</p> <p>点击上传图片</p>
</span> </span>
<div class="${competition.competitionCarouselImage1==null||competition.competitionCarouselImage1==''?'layui-hide':''}" id="competitionCarouselImage1_1"> <div class="${competition.competitionCarouselImage1==null||competition.competitionCarouselImage1==''?'layui-hide':''}"
<img src="${ctxPath}${competition.competitionCarouselImage1}" alt="大赛LOGO" style="width: 180px;height: 80px;"> id="competitionCarouselImage1_1">
<img src="${ctxPath}${competition.competitionCarouselImage1}" alt="大赛LOGO"
style="width: 180px;height: 80px;">
</div> </div>
</div> </div>
<div class="layui-form-mid layui-word-aux" style="padding-left: 20px !important;margin-top: 20px;">像素大小180*80</div> <div class="layui-form-mid layui-word-aux"
style="padding-left: 20px !important;margin-top: 20px;">像素大小180*80
</div>
</div> </div>
</div> </div>
<div class="layui-inline" ${sign=='1'?'':'style="display:none"'}> <div class="layui-inline" ${sign=='1'?'':'style="display:none"'}>
<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" name="competitionHyperlinkUrl1" value="${competition.competitionHyperlinkUrl1}" placeholder="请输入超链接网址" autocomplete="off" class="layui-input"> <input type="text" name="competitionHyperlinkUrl1"
value="${competition.competitionHyperlinkUrl1}" placeholder="请输入超链接网址"
autocomplete="off" class="layui-input">
</div> </div>
</div> </div>
</div> </div>
@ -224,23 +293,32 @@
<div class="layui-inline"> <div class="layui-inline">
<label class="layui-form-label" style="line-height: 64px;">大赛轮播图2</label> <label class="layui-form-label" style="line-height: 64px;">大赛轮播图2</label>
<div class="layui-input-block"> <div class="layui-input-block">
<input type="hidden" name="competitionCarouselImage2" value="${competition.competitionCarouselImage2}" class="layui-input" > <input type="hidden" name="competitionCarouselImage2"
<div class="layui-upload-drag" id="test13" style="width: 180px;height: 80px;padding: 0;float: left;"> value="${competition.competitionCarouselImage2}" class="layui-input">
<span id="competitionCarouselImage2" ${competition.competitionCarouselImage2 !=null&&competition.competitionCarouselImage2!=''?'style="display:none;"':''}> <div class="layui-upload-drag" id="test13"
style="width: 180px;height: 80px;padding: 0;float: left;">
<span id="competitionCarouselImage2" ${competition.competitionCarouselImage2
!=null&&competition.competitionCarouselImage2!=''?'style="display:none;"':''}>
<i class="layui-icon"></i> <i class="layui-icon"></i>
<p>点击上传图片</p> <p>点击上传图片</p>
</span> </span>
<div class="${competition.competitionCarouselImage2==null||competition.competitionCarouselImage2==''?'layui-hide':''}" id="competitionCarouselImage2_1"> <div class="${competition.competitionCarouselImage2==null||competition.competitionCarouselImage2==''?'layui-hide':''}"
<img src="${ctxPath}${competition.competitionCarouselImage2}" alt="大赛LOGO" style="width: 180px;height: 80px;"> id="competitionCarouselImage2_1">
<img src="${ctxPath}${competition.competitionCarouselImage2}" alt="大赛LOGO"
style="width: 180px;height: 80px;">
</div>
</div> </div>
<div class="layui-form-mid layui-word-aux"
style="padding-left: 20px !important;margin-top: 20px;">像素大小180*80
</div> </div>
<div class="layui-form-mid layui-word-aux" style="padding-left: 20px !important;margin-top: 20px;">像素大小180*80</div>
</div> </div>
</div> </div>
<div class="layui-inline" ${sign=='1'?'':'style="display:none"'}> <div class="layui-inline" ${sign=='1'?'':'style="display:none"'}>
<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" name="competitionHyperlinkUrl2" value="${competition.competitionHyperlinkUrl2}" placeholder="请输入超链接网址" autocomplete="off" class="layui-input"> <input type="text" name="competitionHyperlinkUrl2"
value="${competition.competitionHyperlinkUrl2}" placeholder="请输入超链接网址"
autocomplete="off" class="layui-input">
</div> </div>
</div> </div>
</div> </div>
@ -248,23 +326,32 @@
<div class="layui-inline"> <div class="layui-inline">
<label class="layui-form-label" style="line-height: 64px;">大赛轮播图3</label> <label class="layui-form-label" style="line-height: 64px;">大赛轮播图3</label>
<div class="layui-input-block"> <div class="layui-input-block">
<input type="hidden" name="competitionCarouselImage3" value="${competition.competitionCarouselImage3}" class="layui-input" > <input type="hidden" name="competitionCarouselImage3"
<div class="layui-upload-drag" id="test14" style="width: 180px;height: 80px;padding: 0;float: left;"> value="${competition.competitionCarouselImage3}" class="layui-input">
<span id="competitionCarouselImage3" ${competition.competitionCarouselImage3 !=null&&competition.competitionCarouselImage3!=''?'style="display:none;"':''}> <div class="layui-upload-drag" id="test14"
style="width: 180px;height: 80px;padding: 0;float: left;">
<span id="competitionCarouselImage3" ${competition.competitionCarouselImage3
!=null&&competition.competitionCarouselImage3!=''?'style="display:none;"':''}>
<i class="layui-icon"></i> <i class="layui-icon"></i>
<p>点击上传图片</p> <p>点击上传图片</p>
</span> </span>
<div class="${competition.competitionCarouselImage3==null||competition.competitionCarouselImage3==''?'layui-hide':''}" id="competitionCarouselImage3_1"> <div class="${competition.competitionCarouselImage3==null||competition.competitionCarouselImage3==''?'layui-hide':''}"
<img src="${ctxPath}${competition.competitionCarouselImage3}" alt="大赛LOGO" style="width: 180px;height: 80px;"> id="competitionCarouselImage3_1">
<img src="${ctxPath}${competition.competitionCarouselImage3}" alt="大赛LOGO"
style="width: 180px;height: 80px;">
</div>
</div> </div>
<div class="layui-form-mid layui-word-aux"
style="padding-left: 20px !important;margin-top: 20px;">像素大小180*80
</div> </div>
<div class="layui-form-mid layui-word-aux" style="padding-left: 20px !important;margin-top: 20px;">像素大小180*80</div>
</div> </div>
</div> </div>
<div class="layui-inline" ${sign=='1'?'':'style="display:none"'}> <div class="layui-inline" ${sign=='1'?'':'style="display:none"'}>
<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" name="competitionHyperlinkUrl3" value="${competition.competitionHyperlinkUrl3}" placeholder="请输入超链接网址" autocomplete="off" class="layui-input"> <input type="text" name="competitionHyperlinkUrl3"
value="${competition.competitionHyperlinkUrl3}" placeholder="请输入超链接网址"
autocomplete="off" class="layui-input">
</div> </div>
</div> </div>
</div> </div>
@ -278,23 +365,34 @@
<div class="layui-input-block"> <div class="layui-input-block">
<!--# var startTime = simpleDateFormat(competition.competitionContestStartTime,'YMDHM');--> <!--# var startTime = simpleDateFormat(competition.competitionContestStartTime,'YMDHM');-->
<!--# var endTime = simpleDateFormat(competition.competitionContestEndTime,'YMDHM');--> <!--# var endTime = simpleDateFormat(competition.competitionContestEndTime,'YMDHM');-->
<input type="text" id="contestRange" autocomplete="off" value="${startTime} ${startTime != null && endTime != null?'至':''} ${endTime}" class="layui-input"> <input type="text" id="contestRange" autocomplete="off"
<input type="hidden" name="competitionContestStartTime" value="${startTime}" autocomplete="off" class="layui-input"> value="${startTime} ${startTime != null && endTime != null?'至':''} ${endTime}"
<input type="hidden" name="competitionContestEndTime" value="${endTime}" autocomplete="off" class="layui-input"> class="layui-input">
<input type="hidden" name="competitionContestStartTime" value="${startTime}"
autocomplete="off" class="layui-input">
<input type="hidden" name="competitionContestEndTime" value="${endTime}" autocomplete="off"
class="layui-input">
</div> </div>
</div> </div>
</div> </div>
<div style="display: none" class="layui-row ${competition.competitionContestStartTime==''||competition.competitionContestStartTime==null?'renWu renWuON':'renWu'}"> <div style="display: none"
class="layui-row ${competition.competitionContestStartTime==''||competition.competitionContestStartTime==null?'renWu renWuON':'renWu'}">
<div class="layui-inline"> <div class="layui-inline">
<label class="layui-form-label">任务三:</label> <label class="layui-form-label">任务三:</label>
<div class="layui-input-block"> <div class="layui-input-block">
<!--# var start_3 = simpleDateFormat(competition.competitionTaskThreeStartTime,'YMDHM');--> <!--# var start_3 = simpleDateFormat(competition.competitionTaskThreeStartTime,'YMDHM');-->
<!--# var end_3 = simpleDateFormat(competition.competitionTaskThreeEndTime,'YMDHM');--> <!--# var end_3 = simpleDateFormat(competition.competitionTaskThreeEndTime,'YMDHM');-->
<input type="text" id="renwu3" autocomplete="off" value="${start_3} ${start_3 != null && end_3 != null?'至':''} ${end_3}" class="layui-input"> <input type="text" id="renwu3" autocomplete="off"
<input type="hidden" name="competitionTaskThreeStartTime" value="${competition.competitionTaskThreeStartTime}" autocomplete="off" class="layui-input"> value="${start_3} ${start_3 != null && end_3 != null?'至':''} ${end_3}"
<input type="hidden" name="competitionTaskThreeEndTime" value="${competition.competitionTaskThreeEndTime}" autocomplete="off" class="layui-input"> class="layui-input">
<input type="hidden" name="competitionTaskThreeStartTime"
value="${competition.competitionTaskThreeStartTime}" autocomplete="off"
class="layui-input">
<input type="hidden" name="competitionTaskThreeEndTime"
value="${competition.competitionTaskThreeEndTime}" autocomplete="off"
class="layui-input">
</div> </div>
</div> </div>
</div> </div>
@ -309,26 +407,37 @@
<!--成绩权重4--> <!--成绩权重4-->
<div class="layui-tab-item" ${sign=='1'?'':'style="display:none"'}> <div class="layui-tab-item" ${sign=='1'?'':'style="display:none"'}>
<div style="margin: 0 60px 30px;;border: 1px solid rgba(215, 215, 215, 1);border-radius: 10px;padding: 15px 20px 20px;"> <div style="margin: 0 60px 30px;;border: 1px solid rgba(215, 215, 215, 1);border-radius: 10px;padding: 15px 20px 20px;">
<label class="layui-form-label">成绩权重设置:</label>
<div class="layui-row"> <div class="layui-row">
<label class="layui-form-label"></label> <label class="layui-form-label"></label>
<div class="layui-input-block"> <div class="layui-input-block">
<!--# var competitionWeight = splitString(competition.competitionWeight,',');--> <!--# var competitionWeight = splitString(competition.competitionWeight,',');-->
<!--# var l = splitLength(competition.competitionWeight,',');--> <!--# var l = splitLength(competition.competitionWeight,',');-->
总分 <span style="margin: 0 20px;">=</span> 客观题 总分 <span style="margin: 0 20px;">=</span> <!--客观题-->证券投资
<span style="margin: 0 20px;">x</span> <input value="${l >= 1?competitionWeight[0]:''}" name="competition_weight_1" style="text-align: center;width: 80px;line-height: 30px;" /><span style="padding-left: 10px;">%</span> <span style="margin: 0 20px;">+</span> <input value="${l >= 1?competitionWeight[0]:''}"
<span style="margin: 0 20px;">+</span> 竞赛案例 name="competition_weight_1"
<span style="margin: 0 20px;">x</span> <input value="${l >= 2?competitionWeight[1]:''}" name="competition_weight_2" style="text-align: center;width: 80px;line-height: 30px;" /><span style="padding-left: 10px;">%</span> style="text-align: center;width: 80px;line-height: 30px;"/><span
<span style="margin: 0 20px;">+</span> 汇报答辩 style="padding-left: 10px;">%</span>
<span style="margin: 0 20px;">x</span> <input value="${l >= 3?competitionWeight[2]:''}" name="competition_weight_3" style="text-align: center;width: 80px;line-height: 30px;" /><span style="padding-left: 10px;">%</span> <span style="margin: 0 20px;">+</span> <!--竞赛案例-->金融实操
</div> <span style="margin: 0 20px;">x</span> <input value="${l >= 2?competitionWeight[1]:''}"
</div> name="competition_weight_2"
</div> style="text-align: center;width: 80px;line-height: 30px;"/><span
<div id="editCDSFrame" style="margin: 0 60px;border: 1px solid rgba(215, 215, 215, 1);border-radius: 10px;padding: 15px 20px 20px;"> style="padding-left: 10px;">%</span>
<!--<span style="margin: 0 20px;">+</span> 汇报答辩
<span style="margin: 0 20px;">x</span> <input value="${l >= 3?competitionWeight[2]:''}"
name="competition_weight_3"
style="text-align: center;width: 80px;line-height: 30px;"/><span
style="padding-left: 10px;">%</span>-->
</div>
</div>
</div>
<div id="editCDSFrame"
style="display:none;margin: 0 60px;border: 1px solid rgba(215, 215, 215, 1);border-radius: 10px;padding: 15px 20px 20px;">
<label class="layui-form-label"> <label class="layui-form-label">
汇报答辩评分标准: 汇报答辩评分标准:
</label> </label>
<button type="button" class="layui-btn bg_button layui-btn-sm" id="editCompetitionDefenceScoreStandard">编辑</button> <button type="button" class="layui-btn bg_button layui-btn-sm"
id="editCompetitionDefenceScoreStandard">编辑
</button>
<button type="button" class="layui-btn bg_button layui-btn-sm" id="merge">合并</button> <button type="button" class="layui-btn bg_button layui-btn-sm" id="merge">合并</button>
<button type="button" class="layui-btn bg_button layui-btn-sm" id="againEdit">重新编辑</button> <button type="button" class="layui-btn bg_button layui-btn-sm" id="againEdit">重新编辑</button>
<div class="layui-row"> <div class="layui-row">
@ -417,6 +526,7 @@
<!--大赛动态7 动态内容competitionNewsContent 动态图片competitionNewsPicture--> <!--大赛动态7 动态内容competitionNewsContent 动态图片competitionNewsPicture-->
<div class="layui-tab-item"> <div class="layui-tab-item">
<div style="min-width: 1200px;"> <div style="min-width: 1200px;">
<blockquote class="layui-elem-quote">新增动态</blockquote>
<div class="layui-row"> <div class="layui-row">
<div class="layui-inline" style="width: 96%;"> <div class="layui-inline" style="width: 96%;">
<label class="layui-form-label">动态内容:</label> <label class="layui-form-label">动态内容:</label>
@ -432,21 +542,31 @@
<div class="layui-inline"> <div class="layui-inline">
<label class="layui-form-label">动态图片:</label> <label class="layui-form-label">动态图片:</label>
<div class="layui-input-block"> <div class="layui-input-block">
<input type="hidden" name="competitionNewsPicture" value="${competition.competitionNewsPicture}" class="layui-input" > <input type="hidden" name="competitionNewsPicture"
<div class="layui-upload-drag" id="test11" style="width: 180px;height: 80px;padding: 0;float: left;"> value="${competition.competitionNewsPicture}" class="layui-input">
<span id="newsPicture" ${competition.competitionNewsPicture!=null&&competition.competitionNewsPicture!=""?'style="display:none;"':''}> <div class="layui-upload-drag" id="test11"
style="width: 180px;height: 80px;padding: 0;float: left;">
<span id="newsPicture"
${competition.competitionNewsPicture!=null&&competition.competitionNewsPicture!=""?'style="display:none;"':''}>
<i class="layui-icon"></i> <i class="layui-icon"></i>
<p>点击上传图片</p> <p>点击上传图片</p>
</span> </span>
<div class="${competition.competitionNewsPicture == null||competition.competitionNewsPicture == ''?'layui-hide':''}" id="uploadDemoView_1"> <div class="${competition.competitionNewsPicture == null||competition.competitionNewsPicture == ''?'layui-hide':''}"
<img src="${ctxPath}${competition.competitionNewsPicture}" alt="大赛LOGO" style="width: 180px;height: 80px;"> id="uploadDemoView_1">
<img src="${ctxPath}${competition.competitionNewsPicture}" alt="大赛LOGO"
style="width: 180px;height: 80px;">
</div> </div>
</div> </div>
<div class="layui-form-mid layui-word-aux" style="padding-left: 20px !important;margin-top: 20px;">像素大小180*80</div> <div class="layui-form-mid layui-word-aux"
style="padding-left: 20px !important;margin-top: 20px;">像素大小180*80
</div> </div>
</div> </div>
<button type="button" class="layui-btn bg_button" id="addCompetitionNews" style="float: right;margin-right: 4%;">新增动态</button>
</div> </div>
<button type="button" class="layui-btn bg_button" id="addCompetitionNews"
style="float: right;margin-right: 4%;">完成
</button>
</div>
<blockquote class="layui-elem-quote">动态展示</blockquote>
<div class="layui-row"> <div class="layui-row">
<div class="layui-inline" style="width: 96%;"> <div class="layui-inline" style="width: 96%;">
<label class="layui-form-label"></label> <label class="layui-form-label"></label>
@ -460,12 +580,15 @@
<h3 class="layui-timeline-title">${competitionNewsAddTime}</h3> <h3 class="layui-timeline-title">${competitionNewsAddTime}</h3>
<div> <div>
<!--#if(item.competitionNewsPicture != null){ --> <!--#if(item.competitionNewsPicture != null){ -->
<img src="${ctxPath}${item.competitionNewsPicture}" style="width: 200px;height: 110px;display: block;float: left;margin-right: 20px;" /> <img src="${ctxPath}${item.competitionNewsPicture}"
style="width: 200px;height: 110px;display: block;float: left;margin-right: 20px;"/>
<!--#}else{ --> <!--#}else{ -->
<img src="${ctxPath}/filesystem/temp/label/timg.jpg" style="width: 200px;height: 110px;display: block;float: left;margin-right: 20px;" /> <img src="${ctxPath}/filesystem/temp/label/timg.jpg"
style="width: 200px;height: 110px;display: block;float: left;margin-right: 20px;"/>
<!--#} --> <!--#} -->
<div class="newC"> <div class="newC">
<div class="markdown-body editormd-preview-container" style="width: auto;"> <div class="markdown-body editormd-preview-container"
style="width: auto;">
${item.competitionNewsContent} ${item.competitionNewsContent}
</div> </div>
</div> </div>
@ -506,23 +629,46 @@
<div class="layui-inline" style="width: 96%;"> <div class="layui-inline" style="width: 96%;">
<label class="layui-form-label"></label> <label class="layui-form-label"></label>
<div class="layui-input-block"> <div class="layui-input-block">
<button type="button" class="layui-btn bg_button" id="addCompetitionAwardList">保存</button> <button type="button" class="layui-btn bg_button" id="addCompetitionAwardList">保存
</button>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<!-- 赛制赛程9 --> <!-- 交易规则9 -->
<div class="layui-tab-item" ${sign=='2'?'':'style="display:none"'}> <div class="layui-tab-item" ${sign=='2'?'':'style="display:none"'}>
</div> </div>
<!-- 赛制赛程10 --> <!-- 奖项设置10 -->
<div class="layui-tab-item" ${sign=='2'?'':'style="display:none"'}> <div class="layui-tab-item" ${sign=='2'?'':'style="display:none"'}>
</div> </div>
<!-- 赛制赛程11 --> <!-- 大赛新闻11 -->
<div class="layui-tab-item" ${sign=='2'?'':'style="display:none"'}> <div class="layui-tab-item" ${sign=='2'?'':'style="display:none"'}>
</div> </div>
<!-- 赛制赛程12 --> <!-- 院校风采12 -->
<div class="layui-tab-item" ${sign=='2'?'':'style="display:none"'}> <div class="layui-tab-item" ${sign=='2'?'':'style="display:none"'}>
<div style="min-width: 1200px;">
<div class="layui-row">
<div class="layui-inline" style="width: 96%;">
<label class="layui-form-label">新增风采:</label>
<div class="layui-input-block">
<div id="competitionXYFC">
<!-- competitionAwardList-->
<textarea
style="display:none;"></textarea>
</div>
</div>
</div>
</div>
<div class="layui-row">
<div class="layui-inline" style="width: 96%;">
<label class="layui-form-label"></label>
<div class="layui-input-block">
<button type="button" class="layui-btn bg_button" id="addCompetitionXYFC">保存</button>
</div>
</div>
</div>
</div>
</div> </div>
@ -542,19 +688,28 @@
<label class="layui-form-label">题库选择:</label> <label class="layui-form-label">题库选择:</label>
<div class="layui-input-block"> <div class="layui-input-block">
<button type="button" class="layui-btn bg_button kgt_select">选择</button> <button type="button" class="layui-btn bg_button kgt_select">选择</button>
<div style="margin-bottom: 0 !important;" class="layui-inline ${competition.competitionContestStartTime==''||competition.competitionContestStartTime==null?'renWu renWuON':'renWu'}"> <div style="margin-bottom: 0 !important;"
class="layui-inline ${competition.competitionContestStartTime==''||competition.competitionContestStartTime==null?'renWu renWuON':'renWu'}">
<label class="layui-form-label">竞赛时间:</label> <label class="layui-form-label">竞赛时间:</label>
<div class="layui-input-block"> <div class="layui-input-block">
<!--# var start_1 = simpleDateFormat(competition.competitionTaskOneStartTime,'YMDHM');--> <!--# var start_1 = simpleDateFormat(competition.competitionTaskOneStartTime,'YMDHM');-->
<!--# var end_1 = simpleDateFormat(competition.competitionTaskOneEndTime,'YMDHM');--> <!--# var end_1 = simpleDateFormat(competition.competitionTaskOneEndTime,'YMDHM');-->
{{# if($.isEmpty(d.timeInfo.competitionTaskOneStartTime)){}} {{# if($.isEmpty(d.timeInfo.competitionTaskOneStartTime)){}}
<input type="text" id="renwu1" autocomplete="off" value="${start_1} ${start_1 != null && end_1 != null?'至':''} ${end_1}" class="layui-input"> <input type="text" id="renwu1" autocomplete="off"
<input type="hidden" name="competitionTaskOneStartTime" value="${start_1}" autocomplete="off" class="layui-input"> value="${start_1} ${start_1 != null && end_1 != null?'至':''} ${end_1}"
<input type="hidden" name="competitionTaskOneEndTime" value="${end_1}" autocomplete="off" class="layui-input"> class="layui-input">
<input type="hidden" name="competitionTaskOneStartTime" value="${start_1}" autocomplete="off"
class="layui-input">
<input type="hidden" name="competitionTaskOneEndTime" value="${end_1}" autocomplete="off"
class="layui-input">
{{# }else{}} {{# }else{}}
<input type="text" id="renwu1" autocomplete="off" value="{{d.timeInfo.renwu1}}" class="layui-input"> <input type="text" id="renwu1" autocomplete="off" value="{{d.timeInfo.renwu1}}"
<input type="hidden" name="competitionTaskOneStartTime" value="{{d.timeInfo.competitionTaskOneStartTime}}" autocomplete="off" class="layui-input"> class="layui-input">
<input type="hidden" name="competitionTaskOneEndTime" value="{{d.timeInfo.competitionTaskOneEndTime}}" autocomplete="off" class="layui-input"> <input type="hidden" name="competitionTaskOneStartTime"
value="{{d.timeInfo.competitionTaskOneStartTime}}" autocomplete="off"
class="layui-input">
<input type="hidden" name="competitionTaskOneEndTime"
value="{{d.timeInfo.competitionTaskOneEndTime}}" autocomplete="off" class="layui-input">
{{# }}} {{# }}}
</div> </div>
@ -587,10 +742,14 @@
<td>单选题</td> <td>单选题</td>
<td>{{!$.isEmpty(d.cT1QuestionList[1])?d.cT1QuestionList[1].totalNumber:''}}</td> <td>{{!$.isEmpty(d.cT1QuestionList[1])?d.cT1QuestionList[1].totalNumber:''}}</td>
<td> <td>
<input type="text" name="singleChoiceNum" value="{{$.isEmpty(d.cT1QuestionList[1].choiceNumber) && d.cT1QuestionList[1].choiceNumber != 0?'':d.cT1QuestionList[1].choiceNumber}}" autocomplete="off" class="layui-input sjct" /> <input type="text" name="singleChoiceNum"
value="{{$.isEmpty(d.cT1QuestionList[1].choiceNumber) && d.cT1QuestionList[1].choiceNumber != 0?'':d.cT1QuestionList[1].choiceNumber}}"
autocomplete="off" class="layui-input sjct"/>
</td> </td>
<td> <td>
<input type="text" name="dx_fz" value="{{d.cT1QuestionList[1].questionScore || d.fzMap['dx_fz']}}" autocomplete="off" class="layui-input kgfz"> <input type="text" name="dx_fz"
value="{{d.cT1QuestionList[1].questionScore || d.fzMap['dx_fz']}}" autocomplete="off"
class="layui-input kgfz">
</td> </td>
<td>{{d.cT1QuestionList[1].totalQuestionScore || ''}}</td> <td>{{d.cT1QuestionList[1].totalQuestionScore || ''}}</td>
</tr> </tr>
@ -598,18 +757,26 @@
<td>多选题</td> <td>多选题</td>
<td>{{d.cT1QuestionList[2].totalNumber}}</td> <td>{{d.cT1QuestionList[2].totalNumber}}</td>
<td> <td>
<input type="text" name="multipleChoiceNum" value="{{$.isEmpty(d.cT1QuestionList[2].choiceNumber) && d.cT1QuestionList[2].choiceNumber != 0?'':d.cT1QuestionList[2].choiceNumber}}" autocomplete="off" class="layui-input sjct" /> <input type="text" name="multipleChoiceNum"
value="{{$.isEmpty(d.cT1QuestionList[2].choiceNumber) && d.cT1QuestionList[2].choiceNumber != 0?'':d.cT1QuestionList[2].choiceNumber}}"
autocomplete="off" class="layui-input sjct"/>
</td> </td>
<td><input type="text" name="dxx_fz" value="{{d.cT1QuestionList[2].questionScore || d.fzMap['dxx_fz']}}" autocomplete="off" class="layui-input kgfz"></td> <td><input type="text" name="dxx_fz"
value="{{d.cT1QuestionList[2].questionScore || d.fzMap['dxx_fz']}}"
autocomplete="off" class="layui-input kgfz"></td>
<td>{{d.cT1QuestionList[2].totalQuestionScore || ''}}</td> <td>{{d.cT1QuestionList[2].totalQuestionScore || ''}}</td>
</tr> </tr>
<tr> <tr>
<td>判断题</td> <td>判断题</td>
<td>{{d.cT1QuestionList[3].totalNumber}}</td> <td>{{d.cT1QuestionList[3].totalNumber}}</td>
<td> <td>
<input type="text" name="judgeNum" value="{{$.isEmpty(d.cT1QuestionList[3].choiceNumber) && d.cT1QuestionList[3].choiceNumber != 0?'':d.cT1QuestionList[3].choiceNumber}}" autocomplete="off" class="layui-input sjct" /> <input type="text" name="judgeNum"
value="{{$.isEmpty(d.cT1QuestionList[3].choiceNumber) && d.cT1QuestionList[3].choiceNumber != 0?'':d.cT1QuestionList[3].choiceNumber}}"
autocomplete="off" class="layui-input sjct"/>
</td> </td>
<td><input type="text" name="pd_fz" value="{{d.cT1QuestionList[3].questionScore|| d.fzMap['pd_fz']}}" autocomplete="off" class="layui-input kgfz"></td> <td><input type="text" name="pd_fz"
value="{{d.cT1QuestionList[3].questionScore|| d.fzMap['pd_fz']}}" autocomplete="off"
class="layui-input kgfz"></td>
<td>{{d.cT1QuestionList[3].totalQuestionScore || ''}}</td> <td>{{d.cT1QuestionList[3].totalQuestionScore || ''}}</td>
</tr> </tr>
<tr> <tr>
@ -630,19 +797,29 @@
<label class="layui-form-label">题库选择:</label> <label class="layui-form-label">题库选择:</label>
<div class="layui-input-block"> <div class="layui-input-block">
<button type="button" class="layui-btn bg_button jsal_select">选择</button> <button type="button" class="layui-btn bg_button jsal_select">选择</button>
<div style="margin-bottom: 0px !important;" class="layui-inline ${competition.competitionContestStartTime==''||competition.competitionContestStartTime==null?'renWu renWuON':'renWu'}"> <div style="margin-bottom: 0px !important;"
class="layui-inline ${competition.competitionContestStartTime==''||competition.competitionContestStartTime==null?'renWu renWuON':'renWu'}">
<label class="layui-form-label">竞赛时间:</label> <label class="layui-form-label">竞赛时间:</label>
<div class="layui-input-block"> <div class="layui-input-block">
<!--# var start_2 = simpleDateFormat(competition.competitionTaskSecondStartTime,'YMDHM');--> <!--# var start_2 = simpleDateFormat(competition.competitionTaskSecondStartTime,'YMDHM');-->
<!--# var end_2 = simpleDateFormat(competition.competitionTaskSecondEndTime,'YMDHM');--> <!--# var end_2 = simpleDateFormat(competition.competitionTaskSecondEndTime,'YMDHM');-->
{{# if($.isEmpty(d.timeInfo.competitionTaskSecondStartTime)){}} {{# if($.isEmpty(d.timeInfo.competitionTaskSecondStartTime)){}}
<input type="text" id="renwu2" autocomplete="off" value="${start_2} ${start_2 != null && end_2 != null?'至':''} ${end_2}" class="layui-input"> <input type="text" id="renwu2" autocomplete="off"
<input type="hidden" name="competitionTaskSecondStartTime" value="${start_2}" autocomplete="off" class="layui-input"> value="${start_2} ${start_2 != null && end_2 != null?'至':''} ${end_2}"
<input type="hidden" name="competitionTaskSecondEndTime" value="${end_2}" autocomplete="off" class="layui-input"> class="layui-input">
<input type="hidden" name="competitionTaskSecondStartTime" value="${start_2}" autocomplete="off"
class="layui-input">
<input type="hidden" name="competitionTaskSecondEndTime" value="${end_2}" autocomplete="off"
class="layui-input">
{{# }else{}} {{# }else{}}
<input type="text" id="renwu2" autocomplete="off" value="{{d.timeInfo.renwu2}}" class="layui-input"> <input type="text" id="renwu2" autocomplete="off" value="{{d.timeInfo.renwu2}}"
<input type="hidden" name="competitionTaskSecondStartTime" value="{{d.timeInfo.competitionTaskSecondStartTime}}" autocomplete="off" class="layui-input"> class="layui-input">
<input type="hidden" name="competitionTaskSecondEndTime" value="{{d.timeInfo.competitionTaskSecondEndTime}}" autocomplete="off" class="layui-input"> <input type="hidden" name="competitionTaskSecondStartTime"
value="{{d.timeInfo.competitionTaskSecondStartTime}}" autocomplete="off"
class="layui-input">
<input type="hidden" name="competitionTaskSecondEndTime"
value="{{d.timeInfo.competitionTaskSecondEndTime}}" autocomplete="off"
class="layui-input">
{{# }}} {{# }}}
</div> </div>
</div> </div>
@ -674,13 +851,19 @@
<td>{{item.resourcesCompetitionName}}</td> <td>{{item.resourcesCompetitionName}}</td>
<td>{{item.courseInfoName}}</td> <td>{{item.courseInfoName}}</td>
<td>{{item.stepNumber || ''}}</td> <td>{{item.stepNumber || ''}}</td>
<td><input type="text" ids="{{item.resourcesCompetitionId}}" value="{{item.stepScore || d.fzMap['jsfz_'+item.resourcesCompetitionId] || ''}}" autocomplete="off" class="layui-input jsfz"></td> <td><input type="text" ids="{{item.resourcesCompetitionId}}"
value="{{item.stepScore || d.fzMap['jsfz_'+item.resourcesCompetitionId] || ''}}"
autocomplete="off" class="layui-input jsfz"></td>
<td>{{item.totalStepScore || ''}}</td> <td>{{item.totalStepScore || ''}}</td>
<td><a resourcesCompetitionId="{{item.resourcesCompetitionId}}" courseInfoId="{{item.courseInfoId}}" class="layui-btn bg_button layui-btn-sm jsyl">预览</a></td> <td><a resourcesCompetitionId="{{item.resourcesCompetitionId}}"
courseInfoId="{{item.courseInfoId}}" class="layui-btn bg_button layui-btn-sm jsyl">预览</a>
</td>
</tr> </tr>
{{# }); }} {{# }); }}
{{# if(d.cT2QuestionList.length === 0){ }} {{# if(d.cT2QuestionList.length === 0){ }}
<tr><td colspan="6" class="t_c">暂无竞赛案例...</td></tr> <tr>
<td colspan="6" class="t_c">暂无竞赛案例...</td>
</tr>
{{# } }} {{# } }}
<tr> <tr>
<td colspan="6" style="padding-left: 50px;"> <td colspan="6" style="padding-left: 50px;">
@ -783,7 +966,8 @@ layui.use(['add'], function(){
//textarea高度自适应 //textarea高度自适应
function autoGrow(oField) { function autoGrow(oField) {
oField.style.height = '60px';oField.style.height = oField.scrollHeight + "px"; oField.style.height = '60px';
oField.style.height = oField.scrollHeight + "px";
} }
</script> </script>

Loading…
Cancel
Save