|
|
@@ -252,6 +252,9 @@
|
|
|
@click="handleRecorded(scope.row.id)"
|
|
|
v-hasPermi="['system:eduTask:remove']"
|
|
|
>培训登记</el-button>
|
|
|
+ <el-button type="text" v-if="scope.row.pdfUrl" @click="onDown(scope.row.pdfUrl)"
|
|
|
+ >培训登记簿
|
|
|
+ </el-button>
|
|
|
<!-- <el-button type="text" @click="onEdit(scope.row)">查看</el-button>
|
|
|
<el-button
|
|
|
type="text"
|
|
|
@@ -276,7 +279,7 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<!-- 添加或修改教育任务对话框 -->
|
|
|
- <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
+ <!-- <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
<el-form-item label="教育培训计划Id" prop="planId">
|
|
|
<el-input v-model="form.planId" placeholder="请输入教育培训计划Id" />
|
|
|
@@ -361,7 +364,7 @@
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
</div>
|
|
|
- </el-dialog>
|
|
|
+ </el-dialog> -->
|
|
|
|
|
|
<dialog-info ref="infoDialog" @success="handleQuery(true)"></dialog-info>
|
|
|
<dialog-perform ref="performDialog" @success="handleQuery(true)"></dialog-perform>
|
|
|
@@ -562,6 +565,10 @@ export default {
|
|
|
// 如果不是同一天,则判断当前时间是否早于开始时间或晚于结束时间
|
|
|
return !(currentTime < startDate || currentTime > endDate);
|
|
|
},
|
|
|
+ async onDown(pdfUrl) {
|
|
|
+ // const data = await this.$api.eduTraining.predown(id);
|
|
|
+ window.open(pdfUrl);
|
|
|
+ },
|
|
|
}
|
|
|
};
|
|
|
</script>
|