钟日健
2022-02-22 404136b0310181bd10ab488d7dae2b8a6d37d7fd
src/views/trainingRegistration/index.vue
@@ -93,6 +93,14 @@
          :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 +149,8 @@
  update,
  remove,
  cancelTrain,
  addExam
  addExam,
  vipSign
} from "@/api/trainingRegistration/trainingRegistration";
import { mapGetters } from "vuex";
import { getRoleDetail } from "@/api/system/role";
@@ -339,7 +348,7 @@
          }
        },
        labelWidth: "120",
        menuWidth: 200,
        menuWidth: 280,
        align: "center",
        reserveSelection: true,
        selection: true,
@@ -565,6 +574,28 @@
          });
        });
    },
    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: "操作成功!"
          });
        });
    },
    selectionChange(list) {
      // this.selectionList = list;
      this.choiceName = [];