|
|
|
@ -34,12 +34,12 @@
|
|
|
|
|
prop="id"
|
|
|
|
|
width="55"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column label="证书" align="center" prop="certificateId" />
|
|
|
|
|
<el-table-column label="志愿者" align="center" prop="uid" />
|
|
|
|
|
<el-table-column label="兑换时间" align="center" prop="uid" />
|
|
|
|
|
<el-table-column label="状态" align="center" prop="type">
|
|
|
|
|
<el-table-column label="证书名称" align="center" prop="certificateId" />
|
|
|
|
|
<el-table-column label="志愿者" align="center" prop="userName" />
|
|
|
|
|
<el-table-column label="兑换时间" align="center" prop="createTime" />
|
|
|
|
|
<el-table-column label="状态" align="center" prop="status">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ scope.row.type == 1 ? "已发放" : "未发放" }}
|
|
|
|
|
{{ scope.row.status == 1 ? "已发放" : "未发放" }}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
@ -48,8 +48,13 @@
|
|
|
|
|
class-name="small-padding fixed-width"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button size="mini" type="text" @click="handleFabu(scope.row)"
|
|
|
|
|
>发布</el-button
|
|
|
|
|
<el-button size="mini" type="text">查看</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
@click="handleFabu(scope.row)"
|
|
|
|
|
v-if="scope.row.status != 1"
|
|
|
|
|
>发放</el-button
|
|
|
|
|
>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
@ -70,24 +75,32 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div class="info-box">
|
|
|
|
|
<div>
|
|
|
|
|
<div class="info-form-title">
|
|
|
|
|
<span></span>
|
|
|
|
|
证书信息
|
|
|
|
|
</div>
|
|
|
|
|
<div class="info-item">
|
|
|
|
|
<div class="item-lable">证书:</div>
|
|
|
|
|
<div class="item-lable">证书名称:</div>
|
|
|
|
|
<div class="item-value">{{ form.certificateId }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="info-item">
|
|
|
|
|
<div class="item-lable">志愿者:</div>
|
|
|
|
|
<div class="item-value">{{ form.uid }}</div>
|
|
|
|
|
<div class="item-value">{{ form.userName }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="info-item">
|
|
|
|
|
<div class="item-lable">兑换时间:</div>
|
|
|
|
|
<div class="item-value">{{ form.uid }}</div>
|
|
|
|
|
<div class="item-value">{{ form.createTime }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="info-item">
|
|
|
|
|
<div class="item-lable">状态:</div>
|
|
|
|
|
<div class="item-value">
|
|
|
|
|
{{ form.type == 1 ? "已发放" : "未发放" }}
|
|
|
|
|
{{ form.status == 1 ? "已发放" : "未发放" }}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="info-form-title">
|
|
|
|
|
<span></span>
|
|
|
|
|
收货信息
|
|
|
|
|
</div>
|
|
|
|
|
<div class="info-item">
|
|
|
|
|
<div class="item-lable">姓名:</div>
|
|
|
|
|
<div class="item-value"></div>
|
|
|
|
@ -136,12 +149,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import {
|
|
|
|
|
getSellectall,
|
|
|
|
|
postElectron,
|
|
|
|
|
getInfo,
|
|
|
|
|
editData,
|
|
|
|
|
} from "@/api/volunteer/gxhzs/hdzsff/index.js";
|
|
|
|
|
import { dsbrecordsList } from "@/api/volunteer/gxhzs/hdzsff/index.js";
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
@ -156,7 +164,6 @@ export default {
|
|
|
|
|
tableData: [],
|
|
|
|
|
total: 1,
|
|
|
|
|
queryParams: {
|
|
|
|
|
creType: 2,
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 20,
|
|
|
|
|
},
|
|
|
|
@ -166,7 +173,7 @@ export default {
|
|
|
|
|
// //给表格一个固定值
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.tableHeigth =
|
|
|
|
|
this.$refs.main.offsetHeight - this.$refs.search.offsetHeight - 75;
|
|
|
|
|
this.$refs.main.offsetHeight - this.$refs.search.offsetHeight - 80;
|
|
|
|
|
this.getList();
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
@ -222,39 +229,43 @@ export default {
|
|
|
|
|
/** 查询发放记录列表 */
|
|
|
|
|
getList() {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
getSellectall(this.queryParams).then((response) => {
|
|
|
|
|
this.tableData = response.data.list;
|
|
|
|
|
this.total = response.data.total;
|
|
|
|
|
dsbrecordsList(this.queryParams).then((response) => {
|
|
|
|
|
this.tableData = response.rows;
|
|
|
|
|
this.total = response.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;
|
|
|
|
|
});
|
|
|
|
|
this.title = "发放查看";
|
|
|
|
|
this.open = true;
|
|
|
|
|
// this.reset();
|
|
|
|
|
// let id = row.id;
|
|
|
|
|
// getInfo(id).then((res) => {
|
|
|
|
|
// this.form = res.data;
|
|
|
|
|
// this.title = "发放查看";
|
|
|
|
|
// this.open = true;
|
|
|
|
|
// });
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
@import "@/assets/styles/myTable.scss";
|
|
|
|
|
// ::v-deep .search-container {
|
|
|
|
|
// .el-form-item__content {
|
|
|
|
|
// width: 550px;
|
|
|
|
|
// }
|
|
|
|
|
// .el-input-group__append {
|
|
|
|
|
// padding-left: 15px !important;
|
|
|
|
|
// padding-right: 15px !important;
|
|
|
|
|
// background: #f8414d !important;
|
|
|
|
|
// border-color: #f8414d !important;
|
|
|
|
|
// .search-btn {
|
|
|
|
|
// color: #fff !important;
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
.info-form-title {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
font-size: 17px;
|
|
|
|
|
font-family: "Alibaba-PuHuiTi-Regular";
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
color: #333;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
span {
|
|
|
|
|
width: 5px;
|
|
|
|
|
height: 17px;
|
|
|
|
|
margin-right: 6px;
|
|
|
|
|
background: #f8414d;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|