Commit eef19127 authored by yangshuxing's avatar yangshuxing

修改成绩ui、手册删除bug

parent 0d4f54f2
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
<update id="delete"> <update id="delete">
UPDATE gk_manual SET UPDATE gk_manual SET
del_flag = #{DEL_FLAG_DELETE} del_flag = #{delFlag}
WHERE id = #{id} WHERE id = #{id}
</update> </update>
......
package com.dlbridge.jadp.plugins.cmpt.web; package com.dlbridge.jadp.plugins.cmpt.web;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import com.dlbridge.jadp.common.interceptor.PageView; import com.dlbridge.jadp.common.interceptor.PageView;
import com.google.gson.Gson;
import com.neusoft.www.utils.web.Result;
import lombok.extern.log4j.Log4j2;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;
import com.dlbridge.jadp.plugins.cmpt.dao.model.Cmpt; import com.dlbridge.jadp.plugins.cmpt.dao.model.Cmpt;
import com.dlbridge.jadp.plugins.cmpt.dao.model.CmptSetting;
import com.dlbridge.jadp.plugins.cmpt.dao.model.Manual; import com.dlbridge.jadp.plugins.cmpt.dao.model.Manual;
import com.dlbridge.jadp.plugins.cmpt.service.CmptService; import com.dlbridge.jadp.plugins.cmpt.service.CmptService;
import com.dlbridge.jadp.plugins.cmpt.service.CmptSettingService; import com.dlbridge.jadp.plugins.cmpt.service.CmptSettingService;
import com.dlbridge.jadp.plugins.cmpt.service.ManualService; import com.dlbridge.jadp.plugins.cmpt.service.ManualService;
import com.github.pagehelper.util.StringUtil; import com.github.pagehelper.util.StringUtil;
import com.neusoft.www.utils.web.Result;
import lombok.extern.log4j.Log4j2;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore; import springfox.documentation.annotations.ApiIgnore;
import sun.misc.BASE64Decoder; import sun.misc.BASE64Decoder;
import sun.rmi.runtime.Log;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@Log4j2 @Log4j2
@Controller @Controller
...@@ -88,10 +82,6 @@ public class ManualController { ...@@ -88,10 +82,6 @@ public class ManualController {
} }
model.addAttribute("manuals", manuals); model.addAttribute("manuals", manuals);
for (Manual manual :
manuals) {
log.info("manual id: " + manual.getId() + " CmptId:" + manual.getCmptId() + " name:" + manual.getName() + " seq:" + manual.getSeq());
}
model.addAttribute("cmptId", cmptId); model.addAttribute("cmptId", cmptId);
model.addAttribute("pagecount", manuals.size()); model.addAttribute("pagecount", manuals.size());
...@@ -196,17 +186,19 @@ public class ManualController { ...@@ -196,17 +186,19 @@ public class ManualController {
* *
* @param id * @param id
*/ */
@ResponseBody
@RequestMapping(value = "delManual") @RequestMapping(value = "delManual")
@ResponseBody
public Map<String, Object> delManual(String id) { public Map<String, Object> delManual(String id) {
Map<String, Object> resultMap = new HashMap<>(); Map<String, Object> resultMap = new HashMap<>();
String result = "删除成功"; String result = "删除成功";
String code = "200"; String code = "200";
Manual manual = new Manual(); Manual manual = new Manual();
manual.setId(id); manual.setId(id);
manual.setDelFlag("1");
try { try {
manualService.delete(manual); manualService.delete(manual);
} catch (Exception e) { } catch (Exception e) {
log.info(e.getMessage(),e);
result = "删除失败"; result = "删除失败";
code = "201"; code = "201";
} }
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<link rel="shortcut icon" href="img/favicon.ico"> <link rel="shortcut icon" href="img/favicon.ico">
<link rel="stylesheet" href="${ctxStatic}/newdermon/css/custom.css?v=<%=System.currentTimeMillis()%>"> <link rel="stylesheet" href="${ctxStatic}/newdermon/css/custom.css?v=<%=System.currentTimeMillis()%>">
<link rel="stylesheet" href="${ctxStatic}/newdermon/css/main.css?v=<%=System.currentTimeMillis()%>"> <link rel="stylesheet" href="${ctxStatic}/newdermon/css/main.css?v=<%=System.currentTimeMillis()%>">
<link rel="stylesheet" href="${ctxStatic}/cmpt/setting.css"> <link rel="stylesheet" href="${ctxStatic}/cmpt/setting.css?v=<%=System.currentTimeMillis()%>">
<link rel="stylesheet" href="${ctxStatic}/leaflet/css/leaflet.css?v=<%=System.currentTimeMillis()%>"/> <link rel="stylesheet" href="${ctxStatic}/leaflet/css/leaflet.css?v=<%=System.currentTimeMillis()%>"/>
<link rel="stylesheet" href="${ctxStatic}/leaflet/css/leaflet_label.css"/> <link rel="stylesheet" href="${ctxStatic}/leaflet/css/leaflet_label.css"/>
<link rel="stylesheet" href="${ctxStatic}/cmpt/road.css?v=<%=System.currentTimeMillis()%>"/> <link rel="stylesheet" href="${ctxStatic}/cmpt/road.css?v=<%=System.currentTimeMillis()%>"/>
......
...@@ -189,7 +189,7 @@ ...@@ -189,7 +189,7 @@
<script src="${ctxStatic}/newdermon/vendor/jquery.cookie/jquery.cookie.js"></script> <script src="${ctxStatic}/newdermon/vendor/jquery.cookie/jquery.cookie.js"></script>
<script src="${ctxStatic}/newdermon/vendor/jquery-validation/jquery.validate.min.js"></script> <script src="${ctxStatic}/newdermon/vendor/jquery-validation/jquery.validate.min.js"></script>
<script src="${ctxStatic}/newdermon/js/jquery-ui.js"></script> <script src="${ctxStatic}/newdermon/js/jquery-ui.js"></script>
<script src="${ctxStatic}/js/cmptManual.js"></script> <script src="${ctxStatic}/js/cmptManual.js?v=<%=System.currentTimeMillis()%>"></script>
<script src="${ctxStatic}/js/qikoo.js"></script> <script src="${ctxStatic}/js/qikoo.js"></script>
<!-- Main File--> <!-- Main File-->
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<!-- Google fonts - Poppins --> <!-- Google fonts - Poppins -->
<link rel="stylesheet" href="${ctxStatic}/newdermon/css/font-css.css"> <link rel="stylesheet" href="${ctxStatic}/newdermon/css/font-css.css">
<!-- theme stylesheet--> <!-- theme stylesheet-->
<link rel="stylesheet" href="${ctxStatic}/newdermon/css/style.default.css" id="theme-stylesheet"> <link rel="stylesheet" href="${ctxStatic}/newdermon/css/style.default.css?v=<%=System.currentTimeMillis()%>" id="theme-stylesheet">
<!-- Custom stylesheet - for your changes--> <!-- Custom stylesheet - for your changes-->
<link rel="stylesheet" href="${ctxStatic}/newdermon/css/custom.css"> <link rel="stylesheet" href="${ctxStatic}/newdermon/css/custom.css">
<link rel="stylesheet" href="${ctxStatic}/newdermon/css/juery-ui-1.12.css"> <link rel="stylesheet" href="${ctxStatic}/newdermon/css/juery-ui-1.12.css">
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<link rel="shortcut icon" href="img/favicon.ico"> <link rel="shortcut icon" href="img/favicon.ico">
<link rel="stylesheet" href="${ctxStatic}/newdermon/css/custom.css"> <link rel="stylesheet" href="${ctxStatic}/newdermon/css/custom.css">
<link rel="stylesheet" href="${ctxStatic}/newdermon/css/main.css"> <link rel="stylesheet" href="${ctxStatic}/newdermon/css/main.css">
<link rel="stylesheet" href="${ctxStatic}/cmpt/setting.css"> <link rel="stylesheet" href="${ctxStatic}/cmpt/setting.css?v=<%=System.currentTimeMillis()%>">
<link rel="stylesheet" href="${ctxStatic}/leaflet/css/leaflet.css?v=<%=System.currentTimeMillis()%>"/> <link rel="stylesheet" href="${ctxStatic}/leaflet/css/leaflet.css?v=<%=System.currentTimeMillis()%>"/>
<link rel="stylesheet" href="${ctxStatic}/leaflet/css/leaflet_label.css"/> <link rel="stylesheet" href="${ctxStatic}/leaflet/css/leaflet_label.css"/>
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<link rel="shortcut icon" href="img/favicon.ico"> <link rel="shortcut icon" href="img/favicon.ico">
<link rel="stylesheet" href="${ctxStatic}/newdermon/css/custom.css?v=<%=System.currentTimeMillis()%>"> <link rel="stylesheet" href="${ctxStatic}/newdermon/css/custom.css?v=<%=System.currentTimeMillis()%>">
<link rel="stylesheet" href="${ctxStatic}/newdermon/css/main.css?v=<%=System.currentTimeMillis()%>"> <link rel="stylesheet" href="${ctxStatic}/newdermon/css/main.css?v=<%=System.currentTimeMillis()%>">
<link rel="stylesheet" href="${ctxStatic}/cmpt/setting.css"> <link rel="stylesheet" href="${ctxStatic}/cmpt/setting.css?v=<%=System.currentTimeMillis()%>">
<link rel="stylesheet" href="${ctxStatic}/leaflet/css/leaflet.css?v=<%=System.currentTimeMillis()%>"/> <link rel="stylesheet" href="${ctxStatic}/leaflet/css/leaflet.css?v=<%=System.currentTimeMillis()%>"/>
<link rel="stylesheet" href="${ctxStatic}/leaflet/css/leaflet_label.css"/> <link rel="stylesheet" href="${ctxStatic}/leaflet/css/leaflet_label.css"/>
......
...@@ -179,6 +179,14 @@ ...@@ -179,6 +179,14 @@
} }
}, },
save : function () { save : function () {
if(customerV.$data.letter.nameWeb.length == 0){
layer.msg("功能名称不能为空!",{icon:5,duration:1500});
return ;
}
if(customerV.$data.letter.appId.length == 0){
layer.msg("AppId不能为空!",{icon:5,duration:1500});
return ;
}
$.ajax({ $.ajax({
url : '/gk/sure-letter/updateName', url : '/gk/sure-letter/updateName',
data : customerV.$data.letter, data : customerV.$data.letter,
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<link rel="shortcut icon" href="img/favicon.ico"> <link rel="shortcut icon" href="img/favicon.ico">
<link rel="stylesheet" href="${ctxStatic}/newdermon/css/custom.css"> <link rel="stylesheet" href="${ctxStatic}/newdermon/css/custom.css">
<link rel="stylesheet" href="${ctxStatic}/newdermon/css/main.css"> <link rel="stylesheet" href="${ctxStatic}/newdermon/css/main.css">
<link rel="stylesheet" href="${ctxStatic}/cmpt/setting.css"> <link rel="stylesheet" href="${ctxStatic}/cmpt/setting.css?v=<%=System.currentTimeMillis()%>">
<link rel="stylesheet" href="${ctxStatic}/leaflet/css/leaflet.css?v=<%=System.currentTimeMillis()%>"/> <link rel="stylesheet" href="${ctxStatic}/leaflet/css/leaflet.css?v=<%=System.currentTimeMillis()%>"/>
<link rel="stylesheet" href="${ctxStatic}/leaflet/css/leaflet_label.css"/> <link rel="stylesheet" href="${ctxStatic}/leaflet/css/leaflet_label.css"/>
<link rel="stylesheet" href="${ctxStatic}/cmpt/road.css?v=<%=System.currentTimeMillis()%>"/> <link rel="stylesheet" href="${ctxStatic}/cmpt/road.css?v=<%=System.currentTimeMillis()%>"/>
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<link rel="shortcut icon" href="img/favicon.ico"> <link rel="shortcut icon" href="img/favicon.ico">
<link rel="stylesheet" href="${ctxStatic}/newdermon/css/custom.css?v=<%=System.currentTimeMillis()%>"> <link rel="stylesheet" href="${ctxStatic}/newdermon/css/custom.css?v=<%=System.currentTimeMillis()%>">
<link rel="stylesheet" href="${ctxStatic}/newdermon/css/main.css?v=<%=System.currentTimeMillis()%>"> <link rel="stylesheet" href="${ctxStatic}/newdermon/css/main.css?v=<%=System.currentTimeMillis()%>">
<link rel="stylesheet" href="${ctxStatic}/cmpt/setting.css"> <link rel="stylesheet" href="${ctxStatic}/cmpt/setting.css?v=<%=System.currentTimeMillis()%>">
<link rel="stylesheet" href="${ctxStatic}/leaflet/css/leaflet.css?v=<%=System.currentTimeMillis()%>"/> <link rel="stylesheet" href="${ctxStatic}/leaflet/css/leaflet.css?v=<%=System.currentTimeMillis()%>"/>
<link rel="stylesheet" href="${ctxStatic}/leaflet/css/leaflet_label.css"/> <link rel="stylesheet" href="${ctxStatic}/leaflet/css/leaflet_label.css"/>
<link rel="stylesheet" href="${ctxStatic}/cmpt/road.css?v=<%=System.currentTimeMillis()%>"/> <link rel="stylesheet" href="${ctxStatic}/cmpt/road.css?v=<%=System.currentTimeMillis()%>"/>
......
...@@ -23,12 +23,12 @@ ...@@ -23,12 +23,12 @@
<link rel="shortcut icon" href="img/favicon.ico"> <link rel="shortcut icon" href="img/favicon.ico">
<link rel="stylesheet" href="${ctxStatic}/newdermon/css/custom.css?v=<%=System.currentTimeMillis()%>"> <link rel="stylesheet" href="${ctxStatic}/newdermon/css/custom.css?v=<%=System.currentTimeMillis()%>">
<link rel="stylesheet" href="${ctxStatic}/newdermon/css/main.css?v=<%=System.currentTimeMillis()%>"> <link rel="stylesheet" href="${ctxStatic}/newdermon/css/main.css?v=<%=System.currentTimeMillis()%>">
<link rel="stylesheet" href="${ctxStatic}/cmpt/setting.css"> <link rel="stylesheet" href="${ctxStatic}/cmpt/setting.css?v=<%=System.currentTimeMillis()%>">
<link rel="stylesheet" href="${ctxStatic}/leaflet/css/leaflet.css?v=<%=System.currentTimeMillis()%>"/> <link rel="stylesheet" href="${ctxStatic}/leaflet/css/leaflet.css?v=<%=System.currentTimeMillis()%>"/>
<link rel="stylesheet" href="${ctxStatic}/leaflet/css/leaflet_label.css"/> <link rel="stylesheet" href="${ctxStatic}/leaflet/css/leaflet_label.css"/>
<link rel="stylesheet" href="${ctxStatic}/cmpt/road.css?v=<%=System.currentTimeMillis()%>"/> <link rel="stylesheet" href="${ctxStatic}/cmpt/road.css?v=<%=System.currentTimeMillis()%>"/>
<link rel="stylesheet" href="${ctxStatic}/cmpt/road-new.css?v=<%=System.currentTimeMillis()%>"/> <link rel="stylesheet" href="${ctxStatic}/cmpt/road-new.css?v=<%=System.currentTimeMillis()%>"/>
<link rel="stylesheet" href="${ctxStatic}/cmpt/score_review.css"/> <link rel="stylesheet" href="${ctxStatic}/cmpt/score_review.css?<%=System.currentTimeMillis()%>"/>
<script src="${ctxStatic}/My97DatePicker/WdatePicker.js" type="text/javascript"></script> <script src="${ctxStatic}/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<script src="${ctxStatic}/newdermon/vendor/jquery/jquery.min.js"></script> <script src="${ctxStatic}/newdermon/vendor/jquery/jquery.min.js"></script>
<script type="text/javascript" charset="utf-8" src="${ctxStatic}/layer/layer.js"></script> <script type="text/javascript" charset="utf-8" src="${ctxStatic}/layer/layer.js"></script>
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
<span class="export-btn">导出名单</span> <span class="export-btn">导出名单</span>
</div> </div>
<div class="flex"> <div class="flex" style="margin: 20px 0px 0px 0px">
<div class="flex-vt select-section"> <div class="flex-vt select-section">
<label>项目</label> <label>项目</label>
<div style="position: relative;"> <div style="position: relative;">
...@@ -136,7 +136,7 @@ ...@@ -136,7 +136,7 @@
<span>参赛号码</span> <span>参赛号码</span>
<span>上传时间</span> <span>上传时间</span>
<span>完成时间</span> <span>完成时间</span>
<span>里程(KM)</span> <span>里程(KM)</span>
<span>用时</span> <span>用时</span>
<span>平均配速</span> <span>平均配速</span>
<span>操作</span> <span>操作</span>
...@@ -168,8 +168,8 @@ ...@@ -168,8 +168,8 @@
<span v-text="score.name"></span> <span v-text="score.name"></span>
<span v-text="score.markNo"></span> <span v-text="score.markNo"></span>
<span>{{score.insertTime | substr(10)}}</span> <span>{{score.insertTime | substr(10)}}</span>
<span><input v-on:click.stop="" class="score-input doneTime" type="text" <span><input :scoreId="score.cmptScoreRuleScoreinfoId" v-on:click.stop="" class="score-input doneTime" type="text"
onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})" onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd',onpicked: calculateDate})"
:value="score.subsectionTime | substrDate(10)"></span> :value="score.subsectionTime | substrDate(10)"></span>
<span><input v-on:click.stop="" class="score-input miles" type="text" <span><input v-on:click.stop="" class="score-input miles" type="text"
:value="Number(score.subsectionMileage/1000).toFixed(3)" @input="calculateMile($event,score)"></span> :value="Number(score.subsectionMileage/1000).toFixed(3)" @input="calculateMile($event,score)"></span>
...@@ -188,7 +188,8 @@ ...@@ -188,7 +188,8 @@
<template v-if="score.save"> <template v-if="score.save">
<div class="flex score-img" v-on:click.stop=""> <div class="flex score-img" v-on:click.stop="">
<div class="img-item" v-for="item in score.scoreFieldValueList"> <div class="img-item" v-for="item in score.scoreFieldValueList">
<video v-if="item.fieldType == 2 && (item.scoreFieldValue.indexOf('mp4')> -1 ||item.scoreFieldValue.indexOf('mov') > -1)" <video v-if="item.fieldType == 2 && (item.scoreFieldValue.indexOf('mp4')> -1 ||
item.scoreFieldValue.toLocaleLowerCase().indexOf('mov') > -1)"
v-on:click="preview($event,item)" name="media" :src="item.scoreFieldValue" type="video/mp4"></video> v-on:click="preview($event,item)" name="media" :src="item.scoreFieldValue" type="video/mp4"></video>
<img v-else v-on:click.stop="" <img v-else v-on:click.stop=""
v-on:click="preview($event,item)" class="img" v-on:click="preview($event,item)" class="img"
...@@ -245,10 +246,12 @@ ...@@ -245,10 +246,12 @@
</div> </div>
</div> </div>
<div id="dialog" v-show="dialog" > <div id="dialog" v-show="dialog" style="display: none">
<div style="position: relative;" class="preview"> <div class="dialog-content">
<video v-if="previewItem.fieldType==2" v-bind:src="previewItem.previewImg" controls name="media" preload="none"></video> <div class="preview">
<img v-else width="auto" height="100%" v-bind:src="previewItem.previewImg" alt=""> <video width="100%" v-if="previewItem.fieldType==2" v-bind:src="previewItem.previewImg" controls name="media" preload="none"></video>
<img width="100%" v-else width="auto" width="100%" v-bind:src="previewItem.previewImg" alt="">
</div>
<span v-on:click="closeDialog" class="iconClose"></span> <span v-on:click="closeDialog" class="iconClose"></span>
</div> </div>
</div> </div>
...@@ -258,7 +261,7 @@ ...@@ -258,7 +261,7 @@
<script src="${ctxStatic}/newdermon/vendor/popper.js/umd/popper.min.js"></script> <script src="${ctxStatic}/newdermon/vendor/popper.js/umd/popper.min.js"></script>
<script src="${ctxStatic}/js/qikoo.js"></script> <script src="${ctxStatic}/js/qikoo.js"></script>
<script src="${ctxStatic}/js/score_review.js"></script> <script src="${ctxStatic}/js/score_review.js?<%=System.currentTimeMillis()%>"></script>
</body> </body>
......
...@@ -148,6 +148,10 @@ ...@@ -148,6 +148,10 @@
} }
}, },
save : function () { save : function () {
if(customerV.$data.letter.nameWeb.length == 0){
layer.msg("功能名称不能为空!",{icon:5,duration:1500});
return ;
}
$.ajax({ $.ajax({
url : '/gk/sure-letter/updateName', url : '/gk/sure-letter/updateName',
data : customerV.$data.letter, data : customerV.$data.letter,
......
...@@ -15,12 +15,11 @@ ...@@ -15,12 +15,11 @@
.menu-item.active{ .menu-item.active{
color: #ce3939; color: #ce3939;
opacity: 0.9; opacity: 0.9;
box-shadow: 0px 0px 8px #ffdcdc;
border-radius: 4px;
} }
.menu-sub-item.active { .menu-sub-item.active {
border-left: #ce3939;
border-left-width: 4px;
border-left-style: solid;
background: rgba(206, 57, 57, 0.1);
} }
.active span.menu-txt { .active span.menu-txt {
...@@ -28,21 +27,26 @@ ...@@ -28,21 +27,26 @@
font-weight: bold; font-weight: bold;
} }
.menu-hidden{
display: none;
}
.left-arrow { .left-arrow {
background: url(/static/images/left_arrow.png) no-repeat; background: url(/static/images/left_arrow.png) no-repeat;
width: 8px; width: 30px;
display: none; display: none;
height: 13px; height: 30px;
background-size: contain; background-size: contain;
position: absolute; position: absolute;
left: 62px; left: 26px;
top: 20px; top: 10px;
background-color: #ffffff!Important;
z-index: 99999;
} }
.active .left-arrow{ .active .left-arrow{
display: inline-block; display: inline-block;
background: url(/static/images/left_arrow_select.png) no-repeat; background: url(/static/images/left_arrow_select.png) no-repeat;
background-size: contain; background-size: 25%;
background-position: center;
} }
.flex { .flex {
display: flex; display: flex;
...@@ -62,7 +66,7 @@ ...@@ -62,7 +66,7 @@
background: url(/static/images/manage/iconset_grey.png) no-repeat center; background: url(/static/images/manage/iconset_grey.png) no-repeat center;
background-size: 50%; background-size: 50%;
position: absolute; position: absolute;
left: 45px; left: 25px;
top: 6px; top: 6px;
} }
.active .icon-xingxiang{ .active .icon-xingxiang{
...@@ -73,10 +77,10 @@ ...@@ -73,10 +77,10 @@
width: 32px; width: 32px;
height: 32px; height: 32px;
display: inline-block; display: inline-block;
background: url('/static/images/manage/func_white.png') no-repeat center; background: url(/static/images/manage/func_white.png) no-repeat center;
background-size: 50%; background-size: 50%;
position: absolute; position: absolute;
left: 45px; left: 25px;
top: 6px; top: 6px;
} }
.active .icon-function{ .active .icon-function{
...@@ -90,7 +94,7 @@ ...@@ -90,7 +94,7 @@
background: url('/static/images/manage/base-setting.png') no-repeat center; background: url('/static/images/manage/base-setting.png') no-repeat center;
background-size: 50%; background-size: 50%;
position: absolute; position: absolute;
left: 45px; left: 25px;
top: 6px; top: 6px;
} }
.menu-sub-item{ .menu-sub-item{
...@@ -111,6 +115,33 @@ ...@@ -111,6 +115,33 @@
font-size:16px; font-size:16px;
color: #999; color: #999;
} }
.menu-sub-item:first-child::after{
content: "";
height: 29px;
width: 1px;
background: #ce3939;
position: absolute;
left: 43px;
top: 20px;
}
.menu-sub-item:last-child::after{
content: "";
height: 29px;
width: 1px;
background: #ce3939;
position: absolute;
left: 43px;
top: 0px;
}
.menu-sub-item::after{
content: "";
height: 49px;
width: 1px;
background: #ce3939;
position: absolute;
left: 43px;
top: 0px;
}
</style> </style>
<input type="hidden" value="${cmpt.cmptId}" id="cmpt"> <input type="hidden" value="${cmpt.cmptId}" id="cmpt">
<input type="hidden" value="${uId}" id="uId"> <input type="hidden" value="${uId}" id="uId">
...@@ -125,8 +156,8 @@ ...@@ -125,8 +156,8 @@
<span class="menu-txt">形象管理</span> <span class="menu-txt">形象管理</span>
</a> </a>
</li> </li>
<ul style="padding: 0px"> <ul style="padding: 0px;margin: 15px 0px;">
<li class="cmptSetting menu-item"> <li id="cmptSetting" class="cmptSetting menu-item">
<a href="/gk/cmpt/cmptSetting/${cmpt.cmptId}?uId=${uId}&cId=${cId}&timestamp=${timestamp}&sign=${sign}"> <a href="/gk/cmpt/cmptSetting/${cmpt.cmptId}?uId=${uId}&cId=${cId}&timestamp=${timestamp}&sign=${sign}">
<span class="icon-function"></span> <span class="icon-function"></span>
<span class="menu-txt">功能管理</span> <span class="menu-txt">功能管理</span>
...@@ -141,7 +172,7 @@ ...@@ -141,7 +172,7 @@
</a> </a>
</li> </li>
<li class="news menu-item menu-sub-item "> <li class="news menu-sub-item ">
<a href="/gk/news/index/${cmpt.cmptId}?uId=${uId}&cId=${cId}&timestamp=${timestamp}&sign=${sign}"> <a href="/gk/news/index/${cmpt.cmptId}?uId=${uId}&cId=${cId}&timestamp=${timestamp}&sign=${sign}">
<span class="left-arrow"></span> <span class="left-arrow"></span>
<span class="menu-txt">赛事公告</span> <span class="menu-txt">赛事公告</span>
...@@ -215,9 +246,9 @@ ...@@ -215,9 +246,9 @@
</ul> </ul>
</li> </li>
</ul> </ul>
<ul> <ul style="padding: 0px 0;">
<li class="base menu-item"> <li id="base" class="base menu-item" style="cursor: pointer">
<a href="#"> <a>
<span class="icon-base-setting"></span> <span class="icon-base-setting"></span>
<span class="menu-txt">基础设置</span> <span class="menu-txt">基础设置</span>
<span class="arrow"></span> <span class="arrow"></span>
...@@ -273,15 +304,31 @@ ...@@ -273,15 +304,31 @@
if (url.indexOf(classes[i]) > -1) { if (url.indexOf(classes[i]) > -1) {
document.getElementsByClassName(classes[i])[0].classList.add('active'); document.getElementsByClassName(classes[i])[0].classList.add('active');
if(classes[i] != 'cmptSetting'){ if(classes[i] != 'cmptSetting'){
let classesStr = document.getElementsByClassName(classes[i])[0].parentNode.parentNode.firstElementChild.classList;
document.getElementsByClassName(classes[i])[0].parentNode.parentNode.firstElementChild.classList.add('active'); document.getElementsByClassName(classes[i])[0].parentNode.parentNode.firstElementChild.classList.add('active');
if(classesStr.contains('cmptSetting')){
document.getElementById('base').nextSibling.nextSibling.classList.add('menu-hidden');
}else{
document.getElementById('cmptSetting').nextSibling.nextSibling.classList.add('menu-hidden');
}
}else{
document.getElementById('cmptSetting').nextSibling.nextSibling.classList.remove('menu-hidden');
document.getElementById('base').nextSibling.nextSibling.classList.add('menu-hidden');
} }
done = true; done = true;
break; break;
} }
} }
document.getElementById('base').addEventListener('click',function () {
document.getElementById('base').nextSibling.nextSibling.classList.remove('menu-hidden');
document.getElementById('cmptSetting').nextSibling.nextSibling.classList.add('menu-hidden');
});
if (!done) { if (!done) {
var classList = document.getElementsByClassName('main')[0].classList; var classList = document.getElementsByClassName('main')[0].classList;
classList.add('active'); classList.add('active');
document.getElementById('base').nextSibling.nextSibling.classList.add('menu-hidden');
document.getElementById('cmptSetting').nextSibling.nextSibling.classList.add('menu-hidden');
} }
function getCmptId() { function getCmptId() {
......
...@@ -95,7 +95,7 @@ input[type=checkbox] { ...@@ -95,7 +95,7 @@ input[type=checkbox] {
border-bottom: none; border-bottom: none;
} }
input.score-input{ input.score-input{
width: 100px; width: 110px;
height: 40px; height: 40px;
background: whitesmoke; background: whitesmoke;
} }
...@@ -126,12 +126,13 @@ input.score-input-bigger{ ...@@ -126,12 +126,13 @@ input.score-input-bigger{
border-right: 1px solid rgba(229,229,229,1); border-right: 1px solid rgba(229,229,229,1);
} }
.data-cloumn{ .data-cloumn{
padding: 0px 20px; padding: 0px 0px;
display: flex;
} }
.data-cloumn>span,.score-info>span{ .data-cloumn>span,.score-info>span{
display: inline-block; display: inline-block;
width: 110px; width: 117px;
height: 45px; height: 45px;
line-height: 45px; line-height: 45px;
font-size:16px; font-size:16px;
...@@ -144,7 +145,7 @@ input.score-input-bigger{ ...@@ -144,7 +145,7 @@ input.score-input-bigger{
.score-item{ .score-item{
background:rgba(250,250,250,1); background:rgba(250,250,250,1);
border-radius:4px; border-radius:4px;
padding: 0px 20px; padding: 0px 0px;
margin-bottom: 10px; margin-bottom: 10px;
} }
.score-info{ .score-info{
...@@ -211,13 +212,22 @@ input.score-input-bigger{ ...@@ -211,13 +212,22 @@ input.score-input-bigger{
border:1px solid rgba(229,229,229,1); border:1px solid rgba(229,229,229,1);
} }
.preview{ .preview{
max-width: 80%; max-width: 800px;
height: 80%; height: 100%;
margin: auto; margin: auto;
position: relative; position: relative;
padding: 20px; padding: 20px;
background: white; background: white;
z-index: 9999; z-index: 9999;
overflow: scroll;
overflow-x: hidden;
width: 100%;
text-align: center;
}
.preview::-webkit-scrollbar {
width: 4px;
height: 4px;
background-color: #f1f1f1;
} }
#dialog{ #dialog{
display: none; display: none;
...@@ -227,7 +237,22 @@ input.score-input-bigger{ ...@@ -227,7 +237,22 @@ input.score-input-bigger{
position: fixed; position: fixed;
width: 100%; width: 100%;
height: 100%; height: 100%;
top: 0px;left: 0px;background: rgba(0,0,0,0.4);z-index: 99 top: 0px;
left: 0px;
background: rgba(0,0,0,0.4);
z-index: 99;
}
.dialog-content{
position: relative;
justify-content: center;
align-items: center;
display: flex;
width: 80%;
height: 80%;
top: 0px;
left: 0px;
max-width: 800px;
z-index: 99;
} }
.select{ .select{
text-transform: none; text-transform: none;
...@@ -297,9 +322,9 @@ input.score-input-bigger{ ...@@ -297,9 +322,9 @@ input.score-input-bigger{
background-image: url(/static/images/close-red.png); background-image: url(/static/images/close-red.png);
background-position: center; background-position: center;
background-repeat: no-repeat; background-repeat: no-repeat;
right: -10px; right: -17px;
z-index: 100; z-index: 100000;
top: -10px; top: -15px;
border-radius: 50%; border-radius: 50%;
background-color: white; background-color: white;
cursor: pointer; cursor: pointer;
...@@ -332,7 +357,7 @@ input.score-input-bigger{ ...@@ -332,7 +357,7 @@ input.score-input-bigger{
} }
.search-btn-text{ .search-btn-text{
display: inline-block; display: inline-block;
width: 80px; width: 100px;
text-align: center; text-align: center;
color: #333; color: #333;
cursor: pointer; cursor: pointer;
...@@ -343,7 +368,7 @@ input.score-input-bigger{ ...@@ -343,7 +368,7 @@ input.score-input-bigger{
} }
.search-ipt{ .search-ipt{
border: 0px; border: 0px;
width: 340px; width: 300px;
height: 46px; height: 46px;
} }
.export-btn{ .export-btn{
......
...@@ -63,6 +63,7 @@ input[type=checkbox]::before { ...@@ -63,6 +63,7 @@ input[type=checkbox]::before {
.disabled input[type=checkbox]::before { .disabled input[type=checkbox]::before {
background-color: #d8d8d8 !important; background-color: #d8d8d8 !important;
border: 2px solid #d8d8d8!important;
} }
input[type=checkbox]:checked::before { input[type=checkbox]:checked::before {
...@@ -326,12 +327,13 @@ input[type=checkbox]:checked::before { ...@@ -326,12 +327,13 @@ input[type=checkbox]:checked::before {
.mod-dialog { .mod-dialog {
background-color: #fff; background-color: #fff;
border-top: none; border-top: none;
width: 580px; width: 480px;
height: 256px; height: 226px;
*padding-top: 27px; padding-top: 27px;
position: absolute; position: absolute;
z-index: 1001; z-index: 1001;
margin-top: -20px; margin-top: -20px;
border-radius: 4px;
} }
.mod-inputdialog { .mod-inputdialog {
...@@ -393,7 +395,7 @@ input[type=checkbox]:checked::before { ...@@ -393,7 +395,7 @@ input[type=checkbox]:checked::before {
.mod-dialog .dialog-main { .mod-dialog .dialog-main {
font-size: 14px; font-size: 14px;
padding: 45px; padding: 35px;
/*text-align: center;*/ /*text-align: center;*/
} }
...@@ -495,25 +497,29 @@ input[type=checkbox]:checked::before { ...@@ -495,25 +497,29 @@ input[type=checkbox]:checked::before {
.mod-dialog .dialog-console .console-btn-confirm { .mod-dialog .dialog-console .console-btn-confirm {
background: #ce3939 repeat-x; background: #ce3939 repeat-x;
width: 146px; width: 120px;
height: 42px; height: 42px;
color: #fff; color: #fff;
text-align: center; text-align: center;
font-size: 20px; font-size: 18px;
margin-top: -6px; margin-top: -6px;
line-height: 42px; line-height: 42px;
margin-left: 12px; margin-left: 12px;
border-radius: 4px;
letter-spacing: 4px;
} }
.mod-dialog .dialog-console .console-btn-cancel { .mod-dialog .dialog-console .console-btn-cancel {
background: #949494 repeat-x; background: #949494 repeat-x;
width: 146px; width: 116px;
height: 42px; height: 42px;
color: #fff; color: #fff;
text-align: center; text-align: center;
font-size: 20px; font-size: 18px;
margin-top: -6px; margin-top: -6px;
line-height: 42px; line-height: 42px;
border-radius: 4px;
letter-spacing: 4px;
} }
.mod-pop .pop-close:hover { .mod-pop .pop-close:hover {
......
...@@ -59,9 +59,6 @@ $(function () { ...@@ -59,9 +59,6 @@ $(function () {
//确认 //确认
$.ajax({ $.ajax({
url: '/gk/cmpt/manual/delManual?id=' + id, /*接口域名地址*/ url: '/gk/cmpt/manual/delManual?id=' + id, /*接口域名地址*/
type: 'post',
contentType: 'application/json',
processData: false,
success: function (res) { success: function (res) {
parent.remove(); parent.remove();
console.log(res); console.log(res);
......
...@@ -143,7 +143,7 @@ var score = new Vue({ ...@@ -143,7 +143,7 @@ var score = new Vue({
let miles = parent.find('.miles').val(); let miles = parent.find('.miles').val();
let duration = parent.find('.duration').val(); let duration = parent.find('.duration').val();
let time = Number(duration.split(':')[0]*3600)+Number(duration.split(':')[1]+60)+Number(duration.split(':')[2]); let time = Number(duration.split(':')[0]*3600)+Number(duration.split(':')[1]*60)+Number(duration.split(':')[2]);
let param = {}; let param = {};
param.cmptId = scoreObj.cmptId; param.cmptId = scoreObj.cmptId;
param.roadId= score.$data.selectedRoadId; param.roadId= score.$data.selectedRoadId;
...@@ -225,6 +225,7 @@ var score = new Vue({ ...@@ -225,6 +225,7 @@ var score = new Vue({
layer.msg("请选择行进行删除!",{icon:5}) layer.msg("请选择行进行删除!",{icon:5})
return; return;
} }
qikoo.dialog.confirm('确认要删除?',function () {
$.ajax({ $.ajax({
url : baseURL+'geexekscore/api/v1/cmpt-score-rule-scoreinfo/deleteScoreInfos', url : baseURL+'geexekscore/api/v1/cmpt-score-rule-scoreinfo/deleteScoreInfos',
data:{ids:delIds.join(",")}, data:{ids:delIds.join(",")},
...@@ -236,6 +237,9 @@ var score = new Vue({ ...@@ -236,6 +237,9 @@ var score = new Vue({
} }
} }
}) })
},function () {
});
} }
} }
...@@ -418,3 +422,14 @@ function calculateDuration() { ...@@ -418,3 +422,14 @@ function calculateDuration() {
var sec = duration.split(':')[2]; var sec = duration.split(':')[2];
scoreObj.subsectionscore = Number(hour)+Number(min)+Number(sec); scoreObj.subsectionscore = Number(hour)+Number(min)+Number(sec);
} }
function calculateDate() {
let date = $($dp.el).val();
var scoreId = $($dp.el).attr('scoreId');
var scoreObj = score.getScoreById(scoreId);
var dateStr = date+" 00:00:00";
scoreObj.subsectionTime = dateStr;
}
function del () {
}
\ No newline at end of file
...@@ -470,6 +470,8 @@ nav.side-navbar ul { ...@@ -470,6 +470,8 @@ nav.side-navbar ul {
nav.side-navbar ul li { nav.side-navbar ul li {
height: 49px; height: 49px;
margin: auto;
width: 200px;
list-style: none; list-style: none;
} }
...@@ -489,94 +491,94 @@ nav.side-navbar ul li a { ...@@ -489,94 +491,94 @@ nav.side-navbar ul li a {
} }
nav.side-navbar ul li a:hover { nav.side-navbar ul li a:hover {
background: rgba(196, 196, 196, 0.3); /*background: rgba(196, 196, 196, 0.3);*/
color: #fff; color: #fff;
} }
nav.side-navbar ul li li a { nav.side-navbar ul li li a {
padding-left: 50px; padding-left: 50px;
background: #f6f6f6; background: #f6f6f6;
} }
nav.side-navbar ul li.menu-sub-item.active > a { nav.side-navbar ul li.menu-sub-item.active > a {
color: rgba(206, 57, 57, 1); color: rgba(206, 57, 57, 1);
} }
nav.side-navbar ul li.active > a:hover { nav.side-navbar ul li.active > a:hover {
background: rgba(196, 196, 196, 0.3); /*background: rgba(196, 196, 196, 0.3);*/
} }
nav.side-navbar ul li li.active > a { nav.side-navbar ul li li.active > a {
background: rgba(196, 196, 196, 0.3); background: rgba(196, 196, 196, 0.3);
} }
nav.side-navbar ul li ul { nav.side-navbar ul li ul {
padding: 0; padding: 0;
} }
nav.side-navbar.shrinked { nav.side-navbar.shrinked {
min-width: 90px; min-width: 90px;
max-width: 90px; max-width: 90px;
text-align: center; text-align: center;
} }
nav.side-navbar.shrinked span.heading { nav.side-navbar.shrinked span.heading {
margin: 0; margin: 0;
} }
nav.side-navbar.shrinked ul li a { nav.side-navbar.shrinked ul li a {
padding: 15px 2px; padding: 15px 2px;
border: none; border: none;
font-size: 0.8em; font-size: 0.8em;
color: #aaa; color: #aaa;
-webkit-transition: color 0.3s, background 0.3s; -webkit-transition: color 0.3s, background 0.3s;
transition: color 0.3s, background 0.3s; transition: color 0.3s, background 0.3s;
} }
nav.side-navbar.shrinked ul li a[data-toggle="collapse"]::before { nav.side-navbar.shrinked ul li a[data-toggle="collapse"]::before {
content: '\f107'; content: '\f107';
-webkit-transform: translateX(50%); -webkit-transform: translateX(50%);
transform: translateX(50%); transform: translateX(50%);
position: absolute; position: absolute;
top: auto; top: auto;
right: 50%; right: 50%;
bottom: 0; bottom: 0;
left: auto; left: auto;
} }
nav.side-navbar.shrinked ul li a[data-toggle="collapse"][aria-expanded="true"]::before { nav.side-navbar.shrinked ul li a[data-toggle="collapse"][aria-expanded="true"]::before {
content: '\f106'; content: '\f106';
} }
nav.side-navbar.shrinked ul li a:hover { nav.side-navbar.shrinked ul li a:hover {
color: #fff; color: #fff;
border: none; border: none;
} }
nav.side-navbar.shrinked ul li a:hover i { nav.side-navbar.shrinked ul li a:hover i {
color: #fff; color: #fff;
} }
nav.side-navbar.shrinked ul li a i { nav.side-navbar.shrinked ul li a i {
margin-right: 0; margin-right: 0;
margin-bottom: 2px; margin-bottom: 2px;
display: block; display: block;
font-size: 1rem; font-size: 1rem;
color: #333; color: #333;
-webkit-transition: color 0.3s; -webkit-transition: color 0.3s;
transition: color 0.3s; transition: color 0.3s;
} }
nav.side-navbar.shrinked ul li.active > a { nav.side-navbar.shrinked ul li.active > a {
color: #fff; color: #fff;
} }
nav.side-navbar.shrinked ul li.active > a i { nav.side-navbar.shrinked ul li.active > a i {
color: #fff; color: #fff;
} }
nav.side-navbar.shrinked .sidebar-header .title { nav.side-navbar.shrinked .sidebar-header .title {
display: none; display: none;
} }
/* SIDEBAR MEDIAQUERIES ----------------------------------- */ /* SIDEBAR MEDIAQUERIES ----------------------------------- */
...@@ -2844,7 +2846,6 @@ a { ...@@ -2844,7 +2846,6 @@ a {
a:focus, a:hover { a:focus, a:hover {
color: #3b25e6; color: #3b25e6;
text-decoration: underline;
} }
h1, h1,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment