lijinlong
许宏杰 2 years ago
parent 3108898d36
commit e3bf8d5e0c

@ -42,9 +42,15 @@ export function delCertificates(id) {
method: "delete", method: "delete",
}); });
} }
//可兑换的一次性证书
export function zskdh(query) {
return request({
url: "/zhiyuanzhe/pointsRedemption/page",
method: "get",
params: query,
});
}
//发放 //发放
export function exchange(data) { export function exchange(data) {
return request({ return request({
url: "/zhiyuanzhe/pointsRedemption/exchange", url: "/zhiyuanzhe/pointsRedemption/exchange",

@ -38,10 +38,7 @@
</template> </template>
<script> <script>
import { import { zskdh, exchange } from "@/api/volunteer/gxhzs/gxhzsgl/index.js";
listCertificates,
exchange,
} from "@/api/volunteer/gxhzs/gxhzsgl/index.js";
export default { export default {
data() { data() {
return { return {
@ -55,7 +52,6 @@ export default {
tableData: [], tableData: [],
total: 0, total: 0,
queryParams: { queryParams: {
type: 0,
name: undefined, name: undefined,
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
@ -113,7 +109,7 @@ export default {
/** 查询证书管理列表 */ /** 查询证书管理列表 */
getList() { getList() {
this.loading = true; this.loading = true;
listCertificates(this.queryParams).then((response) => { zskdh(this.queryParams).then((response) => {
this.certificatesList = response.rows; this.certificatesList = response.rows;
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;

Loading…
Cancel
Save