Ver código fonte

完成文档92、93

SanHQin 1 ano atrás
pai
commit
6af11d4b2c
1 arquivos alterados com 18 adições e 8 exclusões
  1. 18 8
      src/components/pages/race/eventCenter/anliDetail.vue

+ 18 - 8
src/components/pages/race/eventCenter/anliDetail.vue

@@ -417,7 +417,7 @@
                   />
                 </div>
               </div>
-              <div style="margin: 5px 0 5px 25px; color: rgb(112, 112, 120)">
+              <div style="margin: 5px 0 5px 25px; color: rgb(112, 112, 120)" ref="previewMode">
                 预览模式:
               </div>
               <div
@@ -2419,7 +2419,7 @@
               <el-input
                 class="number"
 								placeholder="请输入评分"
-                v-model="scoreDetail[0].scoreAll.first"
+                v-model.number="scoreDetail[0].scoreAll.first"
                 @change="setScore"
                 :controls="false"
 								
@@ -3053,7 +3053,7 @@ export default {
         .post(this.$store.state.api + "addScore", params)
         .then((res) => {
 					console.log(showInfo)
-					if(showInfo==="back"?false:showInfo){
+					if(showInfo!="back"?showInfo:false){
 						this.$message({
             	message: "评分成功",
             	type: "success",
@@ -3285,13 +3285,17 @@ export default {
               proVisible: false,
             });
           }
+					this.isShow = 0;
+					this.jumpPreviewMode();
           this.lookFile();
-          this.reTop();
+          // this.reTop();
+					
         })
         .catch((err) => {
           console.error(err);
         });
     },
+
     selectNav(n) {
       this.dialogVisibleBrief = true;
       this.briefNav = n;
@@ -4207,6 +4211,11 @@ export default {
       var b = this.$refs["cenBox"];
       b.scrollTop = a.offsetTop - 70;
     },
+		jumpPreviewMode(){
+			this.$nextTick(()=>{
+				this.$refs["cenBox"].scrollTop = this.$refs.previewMode?this.$refs.previewMode.offsetTop - 120:0
+			})
+		},
     reTop() {
       var a = this.$refs["cenBox"];
       a.scrollTop = 0;
@@ -4245,7 +4254,8 @@ export default {
       }
       this.$forceUpdate();
     },
-    selectPs() {},
+
+
   },
   computed: {
     selectHeight() {
@@ -5314,7 +5324,7 @@ ol {
   cursor: pointer;
   z-index: 2999;
   right: 0;
-  top: 300px;
+  bottom: 600px;
   width: 50px;
   height: 50px;
   background: #fff;
@@ -5329,14 +5339,14 @@ ol {
   right: 0;
 	bottom:0;
 	width: 450px;
-  height: auto;
+  height: 650px;
 	max-height:calc(100% - 250px);
   z-index: 3000;
   background: #fff;
   border-radius: 15px;
   border-top-right-radius: 0px;
+	overflow-x:hidden;
   border-bottom-right-radius: 0px;
-  overflow: auto;
   box-shadow: 0px 3px 6px 5px rgba(0, 0, 0, 0.1);
 }