修改学生资助内容

This commit is contained in:
2025-10-11 22:10:57 +08:00
parent 3c24fb1f79
commit 3a452d6502
5 changed files with 410 additions and 164 deletions

View File

@@ -50,6 +50,23 @@
<GlLook v-if="lookV" :formData="lookForm" />
</el-col>
<el-col :span="12">
<!-- 中职毕业证下载 -->
<el-form label-width="120px" v-if="lookForm.hardFile">
<el-form-item label="中职毕业证">
<el-button type="primary" size="mini" icon="el-icon-download" @click="downloadDiploma">下载毕业证
</el-button>
<el-button type="primary" size="mini" icon="el-icon-view" @click="lookBiye">预览毕业证
</el-button>
<el-dialog :visible.sync="lookBiyeV" :destroy-on-close="true" append-to-body>
<span slot="title">中职毕业证预览</span>
<iframe v-if="lookBiyeUrl" :src="lookBiyeUrl" style="width: 100%; height: 80vh;"
frameborder="0"></iframe>
</el-dialog>
</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">
@@ -179,6 +196,53 @@ export default {
lookForm: {},
lookV: false,
editMode: false,
editForm: {
id: null,
xm: "",
xh: "",
xb: "",
mz: "",
csrq: "",
zzmm: "",
rxsj: "",
jg: "",
lxdh: "",
jtdz: "",
yzbm: "",
jjlxr: "",
jjlxrdh: "",
zy: "",
bj: "",
nj: "",
xy: "",
xz: "",
xjzt: "",
sfzh: "",
yhkh: "",
khh: "",
khxm: "",
zxf: "",
xf: "",
djf: "",
cjf: "",
zcf: "",
zf: "",
pm: "",
pmbl: "",
djpm: "",
djpmbl: "",
cjpm: "",
cjpmbl: "",
zcpm: "",
zcpmbl: "",
zpm: "",
zpmbl: "",
hardFile: "",
softFile: ""
},
editV: false,
auditForm: {
fdySign: "",
@@ -200,6 +264,8 @@ export default {
manyCmt: "",
manyRes: null,
manySign: "",
lookBiyeV: false,
lookBiyeUrl: ''
}
},
created() {
@@ -207,6 +273,31 @@ export default {
this.getOwnSign();
},
methods: {
getFileName(path) {
if (!path) return '';
return path.split('/').pop();
},
downloadDiploma() {
if (!this.lookForm.hardFile) return;
const isAbsoluteUrl = this.lookForm.hardFile.startsWith('http');
const pdfUrl = isAbsoluteUrl
? this.lookForm.hardFile
: `${this.baseurl}${this.lookForm.hardFile}`;
const link = document.createElement('a');
link.href = pdfUrl;
link.download = this.getFileName(this.lookForm.hardFile);
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
},
lookBiye() {
const isAbsoluteUrl = this.lookForm.hardFile.startsWith('http');
const pdfUrl = isAbsoluteUrl
? this.lookForm.hardFile
: `${this.baseurl}${this.lookForm.hardFile}`;
this.lookBiyeUrl = pdfUrl;
this.lookBiyeV = true;
},
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();