| | |
| | | @RequestMapping(value = "/deleteTwo") |
| | | public Object delete2(Integer id) { |
| | | try { |
| | | storeOtherConfigService.removeById(id); |
| | | |
| | | tStoreOtherConfigTrueService.removeById(id); |
| | | return SUCCESS_TIP; |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | |
| | | <select style="width: 300px" class="form-control" id="name" name = "name" onchange="TQuestion.oneChange()"> |
| | | <option value="" style="color: #b6b6b6" disabled selected>请选择</option> |
| | | @for(obj in data){ |
| | | <option value="${obj.id}">${obj.name}</option> |
| | | <option value="${obj.id}" coverDrawing="${obj.coverDrawing}" introduce="${obj.introduce}">${obj.name}</option> |
| | | @} |
| | | </select> |
| | | </div> |
| | |
| | | <label class="col-sm-3 control-label">*视频封面:</label> |
| | | <div class="col-sm-9" style="display: flex;"> |
| | | <img id="img" src="" width="150px" height="150px"> |
| | | <!-- <#avatar id="img" name="" avatarImg=""/>--> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="form-group" > |
| | | <label class="col-sm-3 control-label">*视频简介:</label> |
| | | <div class="col-sm-9" style="display: flex;"> |
| | | <textarea readonly id="introduce" rows="10" COLS="30" placeholder="请输入视频简介"></textarea> |
| | | <textarea readonly id="introduce" rows="10" COLS="50" placeholder="请输入视频简介"></textarea> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | $("#t1").hide() |
| | | $("#t2").hide() |
| | | $("#t3").hide() |
| | | $("#turnId").hide() |
| | | }else { |
| | | $("#t1").show() |
| | | $("#t2").show() |
| | |
| | | $("#t1").hide() |
| | | $("#t2").hide() |
| | | $("#t3").hide() |
| | | $("#turnId").hide() |
| | | } |
| | | } |
| | | </script> |
| | |
| | | {title: '分类名称', field: 'name', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '所在位置', field: 'position', visible: true, align: 'center', valign: 'middle', |
| | | formatter:function (data) { |
| | | return {1:"先上课得积分",2:"看视频得奖励"}[data] |
| | | return {1:"线上课得积分",2:"看视频得奖励"}[data] |
| | | } |
| | | }, |
| | | {title: '视频数', field: 'count', visible: true, align: 'center', valign: 'middle'}, |
| | |
| | | * 选择视频 回显视频封面 |
| | | * @param e |
| | | */ |
| | | TCompetition.oneChange = function (e) { |
| | | var oneId=$(e).val(); |
| | | var ajax = new $ax(Feng.ctxPath + "/tCompetition/onChange", function(data){ |
| | | if(data!=null){ |
| | | var content='<option value="">选择市</option>'; |
| | | $.each(data, function(k,v) { |
| | | content += "<option value='"+v.code+"'>"+v.name+"</option>"; |
| | | }); |
| | | $("#cCode").empty().append(content); |
| | | } |
| | | }); |
| | | ajax.set("oneId",oneId); |
| | | ajax.start(); |
| | | TQuestion.oneChange = function () { |
| | | let op = $('#siteType option:selected'); |
| | | if(op.val() == ""){ |
| | | $('#img').attr('src', "") |
| | | $('#introduce').text("") |
| | | }else{ |
| | | $('#img').attr('src', op.attr('coverDrawing')) |
| | | $('#introduce').text(op.attr('introduce')) |
| | | } |
| | | }; |
| | | /** |
| | | * 点击添加 |