瀏覽代碼

学习园地 - 在我的学习里,当学习进度为100%时,提供确认签名操作

Wang Zi Wen 1 年之前
父節點
當前提交
8c678b0323
共有 1 個文件被更改,包括 13 次插入0 次删除
  1. 13 0
      ruoyi-ui/src/views/branch/xxyd/mystudy/index.vue

+ 13 - 0
ruoyi-ui/src/views/branch/xxyd/mystudy/index.vue

@@ -34,6 +34,12 @@
             type="text"
             @click="handleStudy(scope.row)"
           >开始学习</el-button>
+          <el-button
+            v-if="scope.row.learningProgress >= 100 && scope.row.isSigned == 0"
+            size="mini"
+            type="text"
+            @click="handleSign(scope.row)"
+          >确认签名</el-button>
         </template>
       </el-table-column>
     </el-table>
@@ -183,6 +189,13 @@ export default {
       window.clearInterval(timer);
       this.getList();
     },
+    handleSign(row) {
+      row.isSigned = "1";
+      updateLearning(row).then(response => {
+        this.$modal.msgSuccess("确认签名成功");
+        this.getList();
+      });
+    },
     handleStudy(row) {
       this.learning = {};
       this.learning.learningTimeRequired = row.learningTimeRequired;