Browse Source

结业发证

master
xuesinan 4 years ago
parent
commit
c1331ac55c
  1. 36
      src/views/Checked/Checked.vue

36
src/views/Checked/Checked.vue

@ -12,7 +12,7 @@
<div class="text-center" style="width: 30%">123456789</div> <div class="text-center" style="width: 30%">123456789</div>
<div class="text-center" style="width: 25%">薛思男</div> <div class="text-center" style="width: 25%">薛思男</div>
<div class="text-center flex justify-center items-center" style="width: 40%"> <div class="text-center flex justify-center items-center" style="width: 40%">
<button class="btn mr-2 px-2 border border-blue-500 text-blue-500 rounded-sm" @click="rejectModal">发证</button> <button class="btn mr-2 px-2 border border-blue-500 text-blue-500 rounded-sm" @click="certificate(id)">发证</button>
</div> </div>
</div> </div>
@ -35,27 +35,18 @@
</div> </div>
</div> </div>
</div> </div>
<a-modal title="驳回原因" :visible="visible" @ok="handleOk" @cancel="handleCancel">
<textarea class="reject-con border border-gray-200 w-full rounded-sm p-2" v-model="modalText" placeholder="请输入驳回原因" />
</a-modal>
</div> </div>
</template> </template>
<script> <script>
import { mapState } from 'vuex'; import { mapState } from 'vuex';
import { auditList, auditApply } from '@/config/api'; import { auditList, certificate } from '@/config/api';
export default { export default {
data() { data() {
return { return {
timer: null, timer: null,
lists: [], lists: [],
playerId: '',
remark: '',
visible: false,
modalText: '',
showModal: false,
}; };
}, },
@ -71,21 +62,6 @@ export default {
}, },
methods: { methods: {
//
rejectModal() {
this.visible = true;
},
handleOk(e) {
this.remark = this.modalText;
this.visible = false;
this.auditApply(3);
},
handleCancel(e) {
this.visible = false;
},
/** /**
* 获取待审核结业申请列表 * 获取待审核结业申请列表
*/ */
@ -106,19 +82,19 @@ export default {
}, },
/** /**
* 审核结业申请 * 发证
*/ */
async auditApply(type) { async certificate(playerId) {
try { try {
const params = { const params = {
param: { param: {
projectId: this.projectId, projectId: this.projectId,
playerId: this.playerId, playerId: playerId,
type: type, type: type,
remark: this.remark, remark: this.remark,
}, },
}; };
const res = await auditList(); const res = await certificate();
const { code, msg, data } = res.data; const { code, msg, data } = res.data;
if (code === 200) { if (code === 200) {
this.getAuditList(); this.getAuditList();

Loading…
Cancel
Save