|
@@ -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;
|