This commit is contained in:
zhy
2025-09-19 15:10:54 +08:00
parent 6abe58af0c
commit 025b460f3d
7 changed files with 125 additions and 4 deletions

View File

@@ -66,6 +66,16 @@
<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-button v-print="printContent">打印</el-button>
@@ -182,12 +192,23 @@ export default {
}
},
lookBiyeV: false,
lookBiyeUrl: ''
}
},
created() {
this.getList();
},
methods: {
lookBiye() {
const isAbsoluteUrl = this.lookForm.diplomaCertificate.startsWith('http');
const pdfUrl = isAbsoluteUrl
? this.lookForm.diplomaCertificate
: `${this.baseurl}${this.lookForm.diplomaCertificate}`;
this.lookBiyeUrl = pdfUrl;
this.lookBiyeV = true;
},
getFileName(path) {
if (!path) return '';
return path.split('/').pop();

View File

@@ -66,6 +66,15 @@
<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-button v-print="printContent">打印</el-button>
@@ -181,12 +190,23 @@ export default {
}
},
lookBiyeV: false,
lookBiyeUrl: ''
}
},
created() {
this.getList();
},
methods: {
lookBiye() {
const isAbsoluteUrl = this.lookForm.diplomaCertificate.startsWith('http');
const pdfUrl = isAbsoluteUrl
? this.lookForm.diplomaCertificate
: `${this.baseurl}${this.lookForm.diplomaCertificate}`;
this.lookBiyeUrl = pdfUrl;
this.lookBiyeV = true;
},
getFileName(path) {
if (!path) return '';
return path.split('/').pop();

View File

@@ -64,6 +64,15 @@
<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-button v-print="printContent">打印</el-button>
@@ -179,12 +188,22 @@ export default {
}
},
lookBiyeV: false,
lookBiyeUrl: ''
}
},
created() {
this.getList();
},
methods: {
lookBiye() {
const isAbsoluteUrl = this.lookForm.diplomaCertificate.startsWith('http');
const pdfUrl = isAbsoluteUrl
? this.lookForm.diplomaCertificate
: `${this.baseurl}${this.lookForm.diplomaCertificate}`;
this.lookBiyeUrl = pdfUrl;
this.lookBiyeV = true;
},
getFileName(path) {
if (!path) return '';
return path.split('/').pop();

View File

@@ -61,6 +61,16 @@
<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">
@@ -294,6 +304,9 @@ export default {
editForm: {},
editV: false,
lookBiyeV: false,
lookBiyeUrl: ''
}
},
created() {
@@ -301,6 +314,15 @@ export default {
this.getOwnSign();
},
methods: {
lookBiye() {
const isAbsoluteUrl = this.lookForm.diplomaCertificate.startsWith('http');
const pdfUrl = isAbsoluteUrl
? this.lookForm.diplomaCertificate
: `${this.baseurl}${this.lookForm.diplomaCertificate}`;
this.lookBiyeUrl = pdfUrl;
this.lookBiyeV = true;
},
changeApplyReason(v) {
if (v != "1.监测对象家庭学生(脱贫不稳定家庭学生、边缘易致贫家庭学生、突发严重困难家庭学生):") {
this.editForm.applyReason1 = "";

View File

@@ -53,7 +53,7 @@
<el-button type="primary" size="mini" icon="el-icon-download" @click="downloadDiploma">下载毕业证
</el-button>
<el-button type="primary" size="mini" icon="el-icon-download" @click="lookBiye">预览毕业证
<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>

View File

@@ -70,6 +70,14 @@
<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">
@@ -220,6 +228,9 @@ export default {
manyCmt: "",
manyRes: null,
manySign: "",
lookBiyeV: false,
lookBiyeUrl: ''
}
},
created() {
@@ -227,6 +238,14 @@ export default {
this.getOwnSign();
},
methods: {
lookBiye() {
const isAbsoluteUrl = this.lookForm.diplomaCertificate.startsWith('http');
const pdfUrl = isAbsoluteUrl
? this.lookForm.diplomaCertificate
: `${this.baseurl}${this.lookForm.diplomaCertificate}`;
this.lookBiyeUrl = pdfUrl;
this.lookBiyeV = true;
},
getFileName(path) {
if (!path) return '';
return path.split('/').pop();

View File

@@ -66,6 +66,15 @@
<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">
@@ -216,6 +225,9 @@ export default {
manyCmt: "",
manyRes: null,
manySign: "",
lookBiyeV: false,
lookBiyeUrl: ''
}
},
created() {
@@ -223,6 +235,14 @@ export default {
this.getOwnSign();
},
methods: {
lookBiye() {
const isAbsoluteUrl = this.lookForm.diplomaCertificate.startsWith('http');
const pdfUrl = isAbsoluteUrl
? this.lookForm.diplomaCertificate
: `${this.baseurl}${this.lookForm.diplomaCertificate}`;
this.lookBiyeUrl = pdfUrl;
this.lookBiyeV = true;
},
getFileName(path) {
if (!path) return '';
return path.split('/').pop();