فهرست منبع

调整按钮样式

minitiger 8 سال پیش
والد
کامیت
df07ac0ad0
3فایلهای تغییر یافته به همراه76 افزوده شده و 20 حذف شده
  1. 50 0
      VisualInspection/css/main.css
  2. 1 1
      VisualInspection/js/config.js
  3. 25 19
      VisualInspection/view/mytask/check.html

+ 50 - 0
VisualInspection/css/main.css

@@ -62,4 +62,54 @@ footer p {
 
 #main_panel {
     overflow: auto;
+}
+.btn-info1{
+    padding: 5px 5px;
+    color:#03b8cf;
+    background-color: #fff;
+    border-radius: 10px;
+    border-color: #03b8cf;
+    text-shadow: none;
+}
+.btn-info1:hover {
+    color:#fff;
+    background-color: #03b8cf;
+    border-color: #03b8cf;
+}
+.btn-info1:focus {
+    color:#fff;
+    background-color: #03b8cf;
+}
+
+.btn-info2{
+    color:#fff;
+    background-color: #03b8cf;
+    border-radius: 4px;
+    border-color: #03b8cf;
+    text-shadow: none;
+}
+.btn-info2:hover {
+    color:#03b8cf;
+    background-color: #fff;
+    border-color: #03b8cf;
+}
+.btn-info2:focus {
+    color:#03b8cf;
+    background-color: #fff;
+}
+.btn-info3{
+    color:#fff;
+    background-color: #38b03f;
+    border-radius: 4px;
+    border-color: #38b03f;
+    text-shadow: none;
+}
+.btn-info3:hover {
+    color:#38b03f;
+    background-color: #fff;
+    border-color: #38b03f;
+}
+.btn-info3:focus {
+    color:#38b03f;
+    background-color: #fff;
 }

+ 1 - 1
VisualInspection/js/config.js

@@ -29,7 +29,7 @@ function getserveraddr() {
 
 function getImageaddr() {
     if (base_ui_url.indexOf("file_yanhai.jsxt.jsjtyxt.com") != -1) {
-        return "http://file_yanhai.jsxt.jsjtyxt.com/";
+        return "http://file_release_yanhai.jsxt.jsjtyxt.com/";
     } else if (base_ui_url.indexOf("file_release_yanhai") != -1) {
         return "http://file_release_yanhai.jsxt.jsjtyxt.com/";
     } else if (base_ui_url.indexOf("localhost") != -1) {

+ 25 - 19
VisualInspection/view/mytask/check.html

@@ -33,7 +33,7 @@
                     </div>
                 </div>
                 <div class="col-sm-1">
-                    <button class="btn btn-primary " type="button" onclick="showChangeUser()">更改考核人员</button>
+                    <button class="btn btn-info2 " type="button" onclick="showChangeUser()">更改考核人员</button>
                 </div>
 
             </div>
@@ -76,14 +76,14 @@
                                              </span>
                                             </div>
                                         </div>
-                                        <div class="btn-group" style="float:right;">
-                                            <button type="button" class="btn btn-info" style="width:51px;height:42px" onclick="doAction('start')"><i class="icon icon-play-circle icon-2x"></i></button>
-                                            <button type="button" class="btn btn-info" style="width:51px;height:42px" onclick="doAction('stop')"><i class="icon icon-pause icon-2x"></i></button>
-                                            <button type="button" class="btn btn-info" style="width:51px;height:42px" onclick="doAction('fast')"><i class="icon icon-forward icon-2x"></i><span id="fast_info"></span></button>
-                                            <button type="button" class="btn btn-info" style="width:51px;height:42px" onclick="doAction('slow')"><span id="slow_info"></span><i class="icon icon-backward icon-2x"></i></button>
-                                            <button type="button" class="btn btn-danger " style="width:51px;height:42px" id="video_btn_start" onclick="doAction('video_start')"><img style="width:30px" src="/images/movie.png"></img></i></button>
-                                            <button type="button" class="btn btn-danger hidden" style="width:51px;height:42px" id="video_btn_stop" onclick="doAction('video_stop')"><i class="icon icon-stop icon-2x"></i></button>
-                                            <button type="button" class="btn btn-success" style="width:51px;height:42px" onclick="doAction('screenshot')"><i class="icon icon-camera icon-2x"></i></button>
+                                        <div class="btn-group1" style="float:right;">
+                                            <button type="button" class="btn btn-info1" style="width:41px;height:41px" onclick="doAction('start')"><i class="icon icon-play-circle icon-2x"></i></button>
+                                            <button type="button" class="btn btn-info1" style="width:41px;height:41px" onclick="doAction('stop')"><i class="icon icon-pause icon-2x"></i></button>
+                                            <button type="button" class="btn btn-info1" style="width:41px;height:41px" onclick="doAction('fast')"><i class="icon icon-forward icon-2x"></i><span id="fast_info"></span></button>
+                                            <button type="button" class="btn btn-info1" style="width:41px;height:41px" onclick="doAction('slow')"><span id="slow_info"></span><i class="icon icon-backward icon-2x"></i></button>
+                                            <button type="button" class="btn btn-info1 " style="width:41px;height:41px" id="video_btn_start" onclick="doAction('video_start')"><img id="video_btn_start_img" style="width:30px" src="/images/video.png"></img></button>
+                                            <button type="button" class="btn btn-info1 hidden" style="width:41px;height:41px" id="video_btn_stop" onclick="doAction('video_stop')"><i class="icon icon-stop icon-2x"></i></button>
+                                            <button type="button" class="btn btn-info1" style="width:41px;height:41px" onclick="doAction('screenshot')"><i class="icon icon-camera icon-2x"></i></button>
 
 
                                         </div>
@@ -107,19 +107,19 @@
                 <div id="dashboard" class="dashboard dashboard-draggable" data-height="300">
 
                     <div class="row" class="col-sm-11" style="margin:5px;">
-                        <button class="btn btn-primary" type="button" onclick="clearAllImg()" style="margin-right:10px;">清空</button>
-                        <button class="btn btn-danger" type="button" onclick="showScore()" style="margin-right:10px;">评分</button>
+                        <button class="btn btn-info2" type="button" onclick="clearAllImg()" style="margin-right:10px;">清空</button>
+                        <button class="btn btn-info3" type="button" onclick="showScore()" style="margin-right:10px;">评分</button>
                         <button id="saveEditBtn" class="btn btn-warning" type="button" onclick="saveEdit()" style="margin-right:10px;display:none;">保存修改</button>
                         <form id="form1" runat="server" method="post" enctype="multipart/form-data" style="float:left;margin-right:10px;">
                             <div>
-                                <button id="box" class="btn btn-primary" type="button">上传</button>
+                                <button id="box" class="btn btn-info2" type="button">上传</button>
                                 <div style="display:none;">
                                     <input type="file" name="_f" id="_f" />
                                 </div>
                             </div>
                         </form>
                     </div>
-                    <div class="panel">
+                    <div class="panel" style="margin-bottom:10px;">
                         <div class="panel-body" style="padding:5px;" class="col-sm-12">
                             <div id="img_container" class="cards cards-borderless col-sm-12" style="height:100px;overflow:auto;">
                             </div>
@@ -128,17 +128,17 @@
                 </div>
 
             </div>
-            <div class="row" style="margin-top:5px;">
+            <div class="row" style="margin-top:0px;">
                 <div class="col-sm-10" id="btn_task">
-                    <button class="btn btn-primary" type="button" onclick="submitCheck()">直接提交</button>
-                    <button class="btn btn-primary" type="button" onclick="showPre()">预览提交</button>
-                    <button class="btn btn-danger" type="button" onclick="showInvalid()">申请无效</button>
+                    <button class="btn btn-info2" type="button" onclick="submitCheck()">直接提交</button>
+                    <button class="btn btn-info2" type="button" onclick="showPre()">预览提交</button>
+                    <button class="btn btn-info3" type="button" onclick="showInvalid()">申请无效</button>
                     <!--<button class="btn btn-primary" type="button" data-toggle="modal" data-target="#refuseApplyWin">拒绝申请</button>
                     <button class="btn btn-primary" type="button" onclick="agreeApply()">同意申请</button>-->
                 </div>
                 <div class="col-sm-10" id="btn_appeal_task">
-                    <button class="btn btn-primary" type="button" onclick="submitCheck4Appeal()">直接提交</button>
-                    <button class="btn btn-primary" type="button" onclick="showPre4Appeal()">预览提交</button>
+                    <button class="btn btn-info2" type="button" onclick="submitCheck4Appeal()">直接提交</button>
+                    <button class="btn btn-info2" type="button" onclick="showPre4Appeal()">预览提交</button>
                     <!--<button class="btn btn-primary" type="button" data-toggle="modal" data-target="#refuseApplyWin">拒绝申请</button>
                     <button class="btn btn-primary" type="button" onclick="agreeApply()">同意申请</button>-->
                 </div>
@@ -207,6 +207,12 @@
 <script>
     var curVideo;
     $(document).ready(function() {
+        $("#video_btn_start").mouseover(function(){
+            $("#video_btn_start_img").attr("src","/images/movie.png");
+        });
+        $("#video_btn_start").mouseout(function(){
+            $("#video_btn_start_img").attr("src","/images/video.png");
+        });
         if ($.checkTask.checked_location_type == 1) {
             $("li.tab_lane").hide();
             $("li.tab_not_lane").show();