diff --git a/src/assets/styles/myTable.scss b/src/assets/styles/myTable.scss index 0c6162f..7a893b6 100644 --- a/src/assets/styles/myTable.scss +++ b/src/assets/styles/myTable.scss @@ -26,7 +26,7 @@ display: inline-block; width: 5px; height: 18px; - background: #f8414d; + background: $--color-primary; margin-right: 6px; } } diff --git a/src/views/volunteer/gxhzs/gxhzsff/index.vue b/src/views/volunteer/gxhzs/gxhzsff/index.vue index 858217e..8b23abc 100644 --- a/src/views/volunteer/gxhzs/gxhzsff/index.vue +++ b/src/views/volunteer/gxhzs/gxhzsff/index.vue @@ -1,9 +1,250 @@ - 个性化证书发放 + + + + + + + + + + + + + + + + + + + + + {{ scope.row.type == 1 ? "已发放" : "未发放" }} + + + + + + 发布 + + + + + + + + + + {{ title }} + + + + + 参与活动: + {{ form.activityId }} + + + 证书id: + {{ form.certificateId }} + + + 用户: + {{ form.uid }} + + + 状态: + + {{ form.type == 1 ? "已发放" : "未发放" }} + + + + + + + + + + + 邮政信息 + + + + + +import { + getSellectall, + postElectron, + getInfo, + editData, +} from "@/api/volunteer/gxhzs/hdzsff/index.js"; +export default { + data() { + return { + infoOpen: false, + form: {}, + open: false, + title: "", + tableHeigth: 0, + queryParams: {}, + loading: false, + tableData: [], + total: 1, + queryParams: { + creType: 2, + pageNum: 1, + pageSize: 20, + }, + }; + }, + created() { + // //给表格一个固定值 + this.$nextTick(() => { + this.tableHeigth = + this.$refs.main.offsetHeight - this.$refs.search.offsetHeight - 75; + this.getList(); + }); + }, + methods: { + /**纸质提交 */ + submitForm() { + editData(this.form).then((res) => { + this.submitElectron(); + }); + }, + /**纸质 */ + submitPaper() { + this.infoOpen = true; + }, + /**电子 */ + submitElectron() { + let data = { + activityId: this.form.activityId, + uid: this.form.uid, + }; + postElectron(data).then((res) => { + this.infoOpen = false; + this.open = false; + this.$modal.msgSuccess("发放成功"); + this.getList(); + }); + }, + /**关闭 */ + cancel() { + this.open = false; + this.reset(); + }, + /**重置 */ + reset() { + this.form = { + id: null, + activityId: null, + certificateId: null, + uId: null, + content: null, + createId: null, + createBy: null, + createTime: null, + updateId: null, + updateBy: null, + updateTime: null, + remark: null, + userId: null, + deptId: null, + type: null, + }; + }, + /** 查询发放记录列表 */ + getList() { + this.loading = true; + getSellectall(this.queryParams).then((response) => { + this.tableData = response.data.list; + this.total = response.data.total; + this.loading = false; + }); + }, - + handleFabu(row) { + this.reset(); + let id = row.id; + getInfo(id).then((res) => { + this.form = res.data; + this.title = "发放查看"; + this.open = true; + }); + }, + }, +}; + + diff --git a/src/views/volunteer/gxhzs/gxhzsgl/index.vue b/src/views/volunteer/gxhzs/gxhzsgl/index.vue index 9599a55..7402a3a 100644 --- a/src/views/volunteer/gxhzs/gxhzsgl/index.vue +++ b/src/views/volunteer/gxhzs/gxhzsgl/index.vue @@ -183,7 +183,7 @@ export default { total: 0, queryParams: { pageNum: 1, - pageSize: 10, + pageSize: 20, }, form: {}, rules: {}, diff --git a/src/views/volunteer/gxhzs/hdzsff/index.vue b/src/views/volunteer/gxhzs/hdzsff/index.vue index ec165e1..3648a9b 100644 --- a/src/views/volunteer/gxhzs/hdzsff/index.vue +++ b/src/views/volunteer/gxhzs/hdzsff/index.vue @@ -144,11 +144,11 @@ export default { queryParams: {}, loading: false, tableData: [], - total: 1, + total: 0, queryParams: { creType: 1, pageNum: 1, - pageSize: 10, + pageSize: 20, }, }; }, @@ -214,7 +214,7 @@ export default { this.loading = true; getSellectall(this.queryParams).then((response) => { this.tableData = response.data.list; - this.total = response.total; + this.total = response.data.total; this.loading = false; }); },