2 次代码提交 ce84f20732 ... 6afe800290

作者 SHA1 备注 提交日期
  mjh 6afe800290 fix: 取消注释停止按钮 3 年之前
  chillqi 78af468934 fix:修改课件界面 3 年之前

+ 6 - 7
src/views/CoderPage/ResultPage/CommitPage/components/CommitBoard.vue

@@ -47,11 +47,11 @@
           >详情
           </el-button>
           <el-divider direction="vertical"/>
-<!--          <el-button type="text" class="stop-record-button" -->
-<!--                     :disabled="scope.row.status!==`RUNNING`"-->
-<!--                     @click="handleStopRecordButtonClick(scope.row.id)">-->
-<!--            停止-->
-<!--          </el-button>-->
+          <el-button type="text" class="stop-record-button"
+                     :disabled="scope.row.status!==`RUNNING`"
+                     @click="handleStopRecordButtonClick(scope.row.id)">
+            停止
+          </el-button>
         </template>
       </el-table-column>
     </el-table>
@@ -65,7 +65,6 @@
 
 <script>
 import {formatTimestamp, buildStatusToTagType, buildStatusToTagContent} from "@/utils/coder-utils";
-import PageHeader from "@/views/ProblemPage/components/PageHeader.vue";
 import RecordDetail from "@/views/CoderPage/ResultPage/CommitPage/RecordPage/RecordDetail";
 
 export default {
@@ -133,7 +132,7 @@ export default {
     },
     // 点击"停止"按钮,停止当前提交的运行;
     async handleStopRecordButtonClick(recordId) {
-      const res = (await this.$apis.stopRecordById(recordId)).data;
+      await this.$apis.stopRecordById(recordId);
       this.fetchData();
     },
   }

+ 1 - 1
src/views/CourseDetailPage/tabs/CoursewareTab.vue

@@ -72,7 +72,7 @@
       <el-table :data="fileEntryList" style="width: 100%">
         <el-table-column
             type="index"
-            width="30"
+            width="50"
         >
         </el-table-column>
         <el-table-column

+ 3 - 3
src/views/CourseWarePage/pdf/Pdf.vue

@@ -28,8 +28,8 @@
             this._context = this._canvas.getContext("2d");
 
             // Default size
-            this._canvas.height = 450;
-            this._canvas.width = 700;
+            this._canvas.height = 500;
+            this._canvas.width = 800;
 
             if (this.src) {
                 this.load(this.src);
@@ -67,7 +67,7 @@
             },
             showPage() {
                 this._pdf && this._pdf.getPage(this.currentPage || 1).then(page => {
-                    const scale = 2.5;
+                    const scale = 1;
                     const viewport = page.getViewport({scale: scale});
 
                     this._canvas.height = viewport.height;

+ 5 - 0
yarn.lock

@@ -10625,6 +10625,11 @@ yargs@^16.0.0:
     y18n "^5.0.5"
     yargs-parser "^20.2.2"
 
+yarn@^1.22.19:
+  version "1.22.19"
+  resolved "https://registry.npmmirror.com/yarn/-/yarn-1.22.19.tgz#4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447"
+  integrity sha512-/0V5q0WbslqnwP91tirOvldvYISzaqhClxzyUKXYxs07yUILIs5jx/k6CFe8bvKSkds5w+eiOqta39Wk3WxdcQ==
+
 yocto-queue@^0.1.0:
   version "0.1.0"
   resolved "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz"