From 79d9fc857559982b00b68b2d709807bdc4cd286f Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Mon, 11 Apr 2022 10:58:17 +0800
Subject: [PATCH] minio 地址修改
---
src/views/trainingRegistration/index.vue | 71 ++++++++++++++++++++++++++++++++++-
1 files changed, 69 insertions(+), 2 deletions(-)
diff --git a/src/views/trainingRegistration/index.vue b/src/views/trainingRegistration/index.vue
index 9c7c4f8..6940595 100644
--- a/src/views/trainingRegistration/index.vue
+++ b/src/views/trainingRegistration/index.vue
@@ -65,6 +65,15 @@
@click="handleApplyInfoExport"
>报名信息导出
</el-button>
+ <el-button
+ type="primary"
+ size="small"
+ plain
+ icon="el-icon-checked"
+ v-if="permission.batch_vip"
+ @click="usesVipConfirmBatch"
+ >批量缴费
+ </el-button>
</template>
<template slot-scope="{ type, size, row }" slot="menu">
<el-button
@@ -92,6 +101,14 @@
:size="size"
:type="type"
>确认报名</el-button
+ >
+ <el-button
+ v-if="row.vipStatus!=1 && permission.trainingRegistration_vip"
+ icon="el-icon-folder-checked"
+ @click="usesVipConfirm(row)"
+ :size="size"
+ :type="type"
+ >缴费确认</el-button
>
</template>
</avue-crud>
@@ -141,7 +158,9 @@
update,
remove,
cancelTrain,
- addExam
+ addExam,
+ vipSign,
+ vipSignBatch
} from "@/api/trainingRegistration/trainingRegistration";
import { mapGetters } from "vuex";
import { getRoleDetail } from "@/api/system/role";
@@ -339,7 +358,7 @@
}
},
labelWidth: "120",
- menuWidth: 200,
+ menuWidth: 280,
align: "center",
reserveSelection: true,
selection: true,
@@ -565,6 +584,50 @@
});
});
},
+ usesVipConfirm(row){
+ this.$confirm("确定将选择当前人员确认已缴费?", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning"
+ })
+ .then(() => {
+ var data = {
+ id : row.id,
+ userId:row.userId,
+ vipStatus :1
+ }
+ return vipSign(data);
+ })
+ .then(() => {
+ this.onLoad(this.page);
+ this.$message({
+ type: "success",
+ message: "操作成功!"
+ });
+ });
+ },
+ usesVipConfirmBatch(){
+ this.$confirm("确定已缴费?", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning"
+ })
+ .then(() => {
+ var data = {
+ cancel : 1,
+ isExam: 1,
+ vipStatus :2
+ }
+ return vipSignBatch(data);
+ })
+ .then(() => {
+ this.onLoad(this.page);
+ this.$message({
+ type: "success",
+ message: "操作成功!"
+ });
+ });
+ },
selectionChange(list) {
// this.selectionList = list;
this.choiceName = [];
@@ -626,6 +689,10 @@
//如果是培训公司管理员
params["trainingUnitId"] = that.userInfo.dept_id;
}
+ if (roleAlias == "公安管理员" || roleAlias == "民警") {
+ //如果公安
+ params["jurisdiction"] = that.userInfo.jurisdiction;
+ }
// params["isExam"] = 1;
getdata(
page.currentPage,
--
Gitblit v1.9.3