| | |
| | | <div class="row row-lg"> |
| | | <div class="col-sm-12" style="text-align: left" > |
| | | |
| | | <input hidden id="num2" value="${num2}"> |
| | | <div class="initialLevel col-sm-12 control-label form-group" > |
| | | <div class="initialLevel col-sm-12 control-label form-group" > |
| | | <label>状态</label> |
| | | <input type="radio" class="control-label" name="content" style="width: 2%" checked>开启 |
| | | <input type="radio" class="control-label" name="content" style="width: 2%">关闭 |
| | | <input type="radio" class="control-label" id="start" name="content" style="width: 2%" |
| | | @if(isNotEmpty(num2)){ |
| | | ${1 == num2 ? 'checked=checked' : ''} |
| | | @} |
| | | /> 开启 |
| | | <input type="radio" class="control-label" id="end" name="content" style="width: 2%" |
| | | @if(isNotEmpty(num2)){ |
| | | ${0 == num2 ? 'checked=checked' : ''} |
| | | @} |
| | | /> 关闭 |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="initialLevel col-sm-12 control-label form-group" > |
| | | <div class="initialLevel col-sm-3 control-label form-group" > |
| | | <span style="color:red">*</span> |
| | | <label class="control-label" >图片:</label> |
| | | <#uploadImg id="img" fileImg=""/> |
| | | <!-- <div class="initialLevel col-sm-12 control-label form-group" >--> |
| | | <!-- <div class="initialLevel col-sm-3 control-label form-group" >--> |
| | | <!-- <span style="color:red">*</span>--> |
| | | <!-- <label class="control-label" >图片:</label>--> |
| | | <!-- <#uploadImg id="img" fileImg=""/>--> |
| | | <!-- </div>--> |
| | | <!-- </div>--> |
| | | |
| | | <div class="row picture"> |
| | | <div class="col-sm-12"> |
| | | <div class="form-group"> |
| | | <label class="col-sm-1 control-label" style="width: 4%">图片</label> |
| | | <div class="col-sm-9"> |
| | | <div id="imgPreIds"> |
| | | <div id="imgs" style="float: left;"> |
| | | @if(isNotEmpty(imgList)){ |
| | | @for(img in imgList){ |
| | | <div style="float: left;margin-right: 20px;"> |
| | | <img name="startImg" src="${img.img}" style="width: 100px"> |
| | | <i class="fa fa-close" onclick="delImg(this)" style="color: red;font-size: 18px;position: absolute;"></i> |
| | | </div> |
| | | @} |
| | | @} |
| | | </div> |
| | | <div style="float: left;" id="imgUpload"> |
| | | <img width="100px" height="100px" |
| | | src="https://guangzhiyu-1311825864.cos.ap-chengdu.myqcloud.com/shangchuanpic.png" |
| | | onclick="TImgInfoDlg.uploadPhoto(this);"> |
| | | </div> |
| | | <input type="file" id="btn_file" name="schoolimg" |
| | | style="display: none" onchange="TImgInfoDlg.schoolprow()"> |
| | | <div id="divHidden"> |
| | | <!--隐藏上传回调后的图片路径--> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | |
| | | <div class="row btn-group-m-t"> |
| | | <div class="col-sm-12" style="text-align: center"> |
| | | <#button btnCss="info" name="保存" id="ensure" icon="fa-check" clickFun="TImgInfoDlg.editSubmit()"/> |
| | | <#button btnCss="info" name="保存" id="ensure" icon="fa-check" clickFun="TImgInfoDlg.updateSubmit()"/> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | </div> |
| | | </div> |
| | | <script src="${ctxPath}/static/modular/system/tImg/tImg.js"></script> |
| | | <script src="${ctxPath}/static/modular/system/tImg/tImg_info.js"></script> |
| | | <script type="text/javascript"> |
| | | $(function () { |
| | | var idCardPositive = new $WebUpload("img"); |
| | | idCardPositive.setUploadBarId("progressBar"); |
| | | idCardPositive.init(); |
| | | }); |
| | | $("#start").change(function(){ |
| | | var ajax = new $ax(Feng.ctxPath + "/tSystemConfig/updateStartState", function (data) { |
| | | Feng.success("修改成功!"); |
| | | location.reload() |
| | | TSystemConfig.table.refresh(); |
| | | }, function (data) { |
| | | Feng.error("修改失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | | console.log($("#num2").val()) |
| | | ajax.set("num2",1); |
| | | ajax.start(); |
| | | }) |
| | | $("#end").change(function(){ |
| | | var ajax = new $ax(Feng.ctxPath + "/tSystemConfig/updateStartState", function (data) { |
| | | Feng.success("修改成功!"); |
| | | location.reload() |
| | | TSystemConfig.table.refresh(); |
| | | }, function (data) { |
| | | Feng.error("修改失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | | console.log($("#num2").val()) |
| | | ajax.set("num2",0); |
| | | ajax.start(); |
| | | }) |
| | | |
| | | </script> |
| | | @} |