فهرست منبع

阅卷评卷界面样式优化

nikang 6 سال پیش
والد
کامیت
65cac541f9
2فایلهای تغییر یافته به همراه82 افزوده شده و 10 حذف شده
  1. 44 6
      src/modules/marking/views/Marking.vue
  2. 38 4
      src/modules/marking/views/TpScoreBoard.vue

+ 44 - 6
src/modules/marking/views/Marking.vue

@@ -3,7 +3,14 @@
   width: 160px;
 }
 .content {
+  min-height: 600px;
+  padding: 15px;
+  margin-right: auto;
+  margin-left: auto;
   margin-top: 10px;
+  padding-left: 15px;
+  padding-right: 15px;
+  padding-top: 60px;
 }
 small {
   font-size: 18px;
@@ -21,6 +28,11 @@ section {
 .box-body {
   height: 100%;
   width: 100%;
+  border-top-left-radius: 0;
+  border-top-right-radius: 0;
+  border-bottom-right-radius: 3px;
+  border-bottom-left-radius: 3px;
+  padding: 10px;
 }
 .backcolor {
   background-color: #ecf0f5;
@@ -31,6 +43,8 @@ li {
 .marktitle {
   margin-right: 10px;
   margin-bottom: 10px;
+  font-size: 18px;
+  font-weight: 700;
 }
 .titlefont {
   font-size: 15px;
@@ -48,16 +62,39 @@ li {
 .markcount {
   margin-right: 10px;
 }
-.scroll {
-  overflow: auto;
-  height: 450px;
-}
 .reject {
   color: red;
 }
 .marksign {
   margin-left: 20px;
 }
+.label-danger {
+  background-color: #d9534f;
+  color: #fff;
+}
+.box.box-info {
+  border-top-color: #20a0ff;
+}
+.box {
+  position: relative;
+  border-radius: 3px;
+  border-top: 3px solid #d2d6de;
+  margin-bottom: 20px;
+  width: 100%;
+  height: 700px;
+  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
+}
+.scoreboard {
+  width: 25%;
+  border-left: 3px solid #20a0ff;
+  min-height: 600px;
+}
+.pull-right {
+  float: right !important;
+}
+.pull-left {
+  float: left !important;
+}
 </style>
 <template>
   <div v-loading="loading" element-loading-text="拼命加载中">
@@ -122,7 +159,8 @@ li {
           <small class="marktitle">
             <el-button-group>
               <el-button size="small"
-                ><span class="titlefont"><i class="fa fa-user"></i></span
+                ><span class="titlefont"
+                  ><v-icon name="user" style="height:12"/></span
               ></el-button>
               <el-button size="small"
                 ><span class="titlefont">{{
@@ -133,7 +171,7 @@ li {
           </small>
           <small class="marktitle titlefont marksign">
             <el-button type="success" @click="backIndex" size="small">
-              <i class="fa fa-sign-out"></i>
+              <v-icon name="sign-out-alt" />
               <span class="titlefont">退回 </span>
             </el-button>
           </small>

+ 38 - 4
src/modules/marking/views/TpScoreBoard.vue

@@ -79,6 +79,40 @@ li {
   transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
   outline: none;
 }
+.el-switch__label {
+  position: absolute;
+  left: 0;
+  top: 0;
+  z-index: 2;
+}
+.button-border.button-small {
+  line-height: 26px;
+}
+.button-border.button-primary {
+  color: #1b9af7;
+}
+.button-small {
+  font-size: 12px;
+}
+.button-border {
+  background: 0;
+  border-width: 2px;
+  border-style: solid;
+}
+.button-box {
+  padding: 0 !important;
+  border-radius: 10px;
+}
+.button-primary {
+  border-color: #1b9af7;
+}
+.button {
+  font-weight: 300;
+  text-decoration: none;
+  text-align: center;
+  margin: 0;
+  display: inline-block;
+}
 </style>
 <template>
   <div class="scoreboard pull-right">
@@ -86,10 +120,10 @@ li {
       <div class="pull-right">
         <el-switch
           v-model="isMouseMode"
-          on-text="鼠标"
-          off-text="键盘"
-          on-color="#4cb0f9"
-          off-color="#13ce66"
+          active-text="鼠标"
+          inactive-text="键盘"
+          active-color="#4cb0f9"
+          inactive-color="#13ce66"
         ></el-switch>
       </div>
       <h3 class="totalScore">总分:{{ this.totalScore }}分</h3>