diff --git a/src/views/volunteer/gxhzs/mygxhzs/index.vue b/src/views/volunteer/gxhzs/mygxhzs/index.vue index 2465340..f11431d 100644 --- a/src/views/volunteer/gxhzs/mygxhzs/index.vue +++ b/src/views/volunteer/gxhzs/mygxhzs/index.vue @@ -31,6 +31,13 @@ }" >{{ item.status == 1 ? "已发放" : "未发放" }} + 申请 + + +
+ + 申请操作 +
+ + 电子证书 + 纸质证书 + + +
@@ -153,6 +174,7 @@ import html2canvas from "html2canvas"; import { dsbrecordsList, dsbrecordsInfo, + issue, } from "@/api/volunteer/gxhzs/hdzsff/index.js"; export default { data() { @@ -161,6 +183,9 @@ export default { height: 0, overflowY: "auto", }, + currentRow: {}, + radio: 1, + applyShow: false, infoShow: false, baseUrl: process.env.VUE_APP_BASE_API, certificatesList: [], @@ -192,6 +217,46 @@ export default { }); }, methods: { + /**电子 */ + submitElectron() { + //status type + //1 1 志愿者电子证书发放 + //2 2 志愿者申请纸质证书 + //1 2 管理发放纸质证书 + let _this = this; + let title = ""; + if (this.radio == 1) { + title = `您确定要申请“${this.currentRow.name}”电子证书吗?`; + } else { + title = `您确定要申请“${this.currentRow.name}”纸质证书吗?`; + } + this.$modal.confirm(title).then(function () { + let data = { + status: _this.radio == 1 ? 1 : 2, //1.发放 2.未 + id: _this.currentRow.id, + type: _this.radio, // 1:电子证书 2:纸制证书 + }; + _this.subIssue(data); + }); + this.applyShow = false; + }, + //电子发放 + subIssue(data) { + issue(data).then((res) => { + this.applyShow = false; + this.getList(); + if (data.type == 1) { + this.$modal.msgSuccess("发放成功"); + } else { + this.$modal.msgSuccess("申请成功"); + } + }); + }, + /**申请操作 */ + handleApplyfor(row) { + this.currentRow = row; + this.applyShow = true; + }, /**下载电子证书 */ downloadContentAsImage() { const content = this.$refs.zs; // 获取目标
的DOM节点 diff --git a/src/views/volunteer/yzczs/myycxhd/index.vue b/src/views/volunteer/yzczs/myycxhd/index.vue index b77a082..aae0a0b 100644 --- a/src/views/volunteer/yzczs/myycxhd/index.vue +++ b/src/views/volunteer/yzczs/myycxhd/index.vue @@ -52,7 +52,7 @@ >查看