下载中职证书按钮更新
This commit is contained in:
@@ -21,9 +21,10 @@
|
||||
<el-col :span="1.5">
|
||||
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="manyVClick">批量通过</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport">导出execl</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button type="warning" plain icon="el-icon-download" size="mini"
|
||||
@click="handleExport">导出execl</el-button>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-table v-loading="loading" :data="tableData" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
@@ -53,6 +54,13 @@
|
||||
<TufaLook v-if="lookV" :formData="lookForm" />
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<!-- 中职毕业证下载 -->
|
||||
<el-form label-width="120px" v-if="lookForm.diplomaCertificate">
|
||||
<el-form-item label="中职毕业证">
|
||||
<el-button type="primary" size="mini" icon="el-icon-download" @click="downloadDiploma">下载毕业证
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-form label-width="200px" size="mini" class="lookForm">
|
||||
<el-form-item label="是否通过">
|
||||
<el-select @change="changeAuditRes" v-model="auditRes">
|
||||
@@ -228,11 +236,11 @@ export default {
|
||||
switch (v) {
|
||||
case '通过':
|
||||
this.manyStatus = 2;
|
||||
this.manyCmt = '经班级评审小组评议,同意推荐该同学申请广西中等职业学校毕业生升入高等学校就读的家庭经济困难学生学费补助。';
|
||||
this.manyCmt = '经班级评审小组评议,同意推荐该同学申请广西中等职业学校毕业生升入高等学校就读的家庭经济困难学生学费补助.';
|
||||
break;
|
||||
case '驳回':
|
||||
this.manyStatus = 10;
|
||||
this.manyCmt = '驳回,驳回原因:';
|
||||
this.manyCmt = '驳回,驳回原因:';
|
||||
break;
|
||||
default:
|
||||
this.manyStatus = null;
|
||||
@@ -285,6 +293,23 @@ export default {
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map(item => item.id)
|
||||
},
|
||||
getFileName(path) {
|
||||
if (!path) return '';
|
||||
return path.split('/').pop();
|
||||
},
|
||||
downloadDiploma() {
|
||||
if (!this.lookForm.diplomaCertificate) return;
|
||||
const isAbsoluteUrl = this.lookForm.diplomaCertificate.startsWith('http');
|
||||
const pdfUrl = isAbsoluteUrl
|
||||
? this.lookForm.diplomaCertificate
|
||||
: `${this.baseurl}${this.lookForm.diplomaCertificate}`;
|
||||
const link = document.createElement('a');
|
||||
link.href = pdfUrl;
|
||||
link.download = this.getFileName(this.lookForm.diplomaCertificate);
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
document.body.removeChild(link);
|
||||
},
|
||||
async doNext() {
|
||||
this.loading = true;
|
||||
let res = await listView(this.queryParams);
|
||||
@@ -375,11 +400,11 @@ export default {
|
||||
switch (v) {
|
||||
case '通过':
|
||||
this.auditForm.applyStatus = 2;
|
||||
this.auditForm.fdyCmt = '经班级评审小组评议,同意推荐该同学申请广西中等职业学校毕业生升入高等学校就读的家庭经济困难学生学费补助。';
|
||||
this.auditForm.fdyCmt = '经班级评审小组评议,同意推荐该同学申请广西中等职业学校毕业生升入高等学校就读的家庭经济困难学生学费补助.';
|
||||
break;
|
||||
case '驳回':
|
||||
this.auditForm.applyStatus = 10;
|
||||
this.auditForm.fdyCmt = '驳回,驳回原因:';
|
||||
this.auditForm.fdyCmt = '驳回,驳回原因:';
|
||||
break;
|
||||
default:
|
||||
this.auditForm.applyStatus = null;
|
||||
@@ -387,12 +412,12 @@ export default {
|
||||
break;
|
||||
}
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('/comprehensive/knzzZsgApply/export', {
|
||||
...this.queryParams
|
||||
}, `apply_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('/comprehensive/knzzZsgApply/export', {
|
||||
...this.queryParams
|
||||
}, `apply_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user