|
@@ -48,7 +48,7 @@
|
|
<el-table-column prop="remarks" label="备注" width="450"></el-table-column>
|
|
<el-table-column prop="remarks" label="备注" width="450"></el-table-column>
|
|
<el-table-column label="操作" width="345">
|
|
<el-table-column label="操作" width="345">
|
|
<template slot-scope="{ row }">
|
|
<template slot-scope="{ row }">
|
|
- <button @click="ajax_move_to_approved(row.userid, row.companyNumber)"
|
|
|
|
|
|
+ <button @click="ajax_move_to_approved(row.userid, row.companyNumber,row.orgid,row.phone,row.name,row.submission_time,)"
|
|
style="color: #308fff; background: none; border: none; cursor: pointer; margin-left: 25px;">通过</button>
|
|
style="color: #308fff; background: none; border: none; cursor: pointer; margin-left: 25px;">通过</button>
|
|
<button @click="ajax_move_to_rejected(row.userid, row.companyNumber)"
|
|
<button @click="ajax_move_to_rejected(row.userid, row.companyNumber)"
|
|
style="color: #308fff; background: none; border: none; cursor: pointer; margin-left: 35px;">拒绝</button>
|
|
style="color: #308fff; background: none; border: none; cursor: pointer; margin-left: 35px;">拒绝</button>
|
|
@@ -399,6 +399,7 @@ export default {
|
|
submission_time: user.create_at || '未知', // 提交时间对应 数据库里的create_at
|
|
submission_time: user.create_at || '未知', // 提交时间对应 数据库里的create_at
|
|
remarks: user.remark || '未知', // 备注内容对应 remark
|
|
remarks: user.remark || '未知', // 备注内容对应 remark
|
|
userid: user.id || '未知',
|
|
userid: user.id || '未知',
|
|
|
|
+ orgid: user.org_id,
|
|
})); // 将数据存储到 tableData 中
|
|
})); // 将数据存储到 tableData 中
|
|
// 打印映射后的用户信息
|
|
// 打印映射后的用户信息
|
|
console.log("待审核的数据为:", res.data);
|
|
console.log("待审核的数据为:", res.data);
|
|
@@ -518,7 +519,50 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
// 通过操作,将数据移到已通过
|
|
// 通过操作,将数据移到已通过
|
|
- ajax_move_to_approved(userid) {
|
|
|
|
|
|
+ // ajax_move_to_approved(userid) {
|
|
|
|
+ // const successMessage = API_CONFIG.moveToApproved.successMessage;
|
|
|
|
+
|
|
|
|
+ // // 弹出确认框
|
|
|
|
+ // this.$confirm(`您确定将此数据移至“已通过”状态吗?`, '确认操作', {
|
|
|
|
+ // confirmButtonText: '确定',
|
|
|
|
+ // cancelButtonText: '取消',
|
|
|
|
+ // type: 'warning',
|
|
|
|
+ // }).then(() => {
|
|
|
|
+ // // 确认后发起请求
|
|
|
|
+ // let params = [
|
|
|
|
+ // {
|
|
|
|
+ // functionName: API_CONFIG.moveToApproved.functionName, // 这里是将数据移至已通过状态的操作,使用配置中的存储过程名称
|
|
|
|
+ // u_id: userid, // id
|
|
|
|
+ // },
|
|
|
|
+ // ];
|
|
|
|
+
|
|
|
|
+ // // 发起请求
|
|
|
|
+ // this.$ajax
|
|
|
|
+ // .post(API_CONFIG.moveToApproved.url, params) // 使用配置中的URL
|
|
|
|
+ // .then((res) => {
|
|
|
|
+ // console.log(res);
|
|
|
|
+ // this.$message({
|
|
|
|
+ // type: 'success',
|
|
|
|
+ // message: successMessage,
|
|
|
|
+ // });
|
|
|
|
+ // // 更新数据状态
|
|
|
|
+ // this.refreshTableData(); // 例如刷新表格数据
|
|
|
|
+ // console.log("此条数据处理后的id为:", userid);
|
|
|
|
+ // })
|
|
|
|
+ // .catch((err) => {
|
|
|
|
+ // this.$message.error("操作失败");
|
|
|
|
+ // console.error("请求失败,错误信息:", err);
|
|
|
|
+ // });
|
|
|
|
+ // }).catch(() => {
|
|
|
|
+ // // 取消操作后的提示
|
|
|
|
+ // this.$message({
|
|
|
|
+ // type: 'info',
|
|
|
|
+ // message: '已取消操作',
|
|
|
|
+ // });
|
|
|
|
+ // });
|
|
|
|
+ // },
|
|
|
|
+ // 通过操作,将数据移到已通过
|
|
|
|
+ ajax_move_to_approved(userid,orgid,phone,name,submission_time) {
|
|
const successMessage = API_CONFIG.moveToApproved.successMessage;
|
|
const successMessage = API_CONFIG.moveToApproved.successMessage;
|
|
|
|
|
|
// 弹出确认框
|
|
// 弹出确认框
|
|
@@ -530,8 +574,16 @@ export default {
|
|
// 确认后发起请求
|
|
// 确认后发起请求
|
|
let params = [
|
|
let params = [
|
|
{
|
|
{
|
|
- functionName: API_CONFIG.moveToApproved.functionName, // 这里是将数据移至已通过状态的操作,使用配置中的存储过程名称
|
|
|
|
- u_id: userid, // id
|
|
|
|
|
|
+ functionName: "insert_request_type1", // 这里是将数据移至已通过状态的操作,使用配置中的存储过程名称
|
|
|
|
+ p_userid: userid, // id
|
|
|
|
+ //组织id
|
|
|
|
+ p_schoolName:orgid,
|
|
|
|
+ //账户
|
|
|
|
+ p_u_couent:phone,
|
|
|
|
+ //姓名
|
|
|
|
+ p_u_name:name,
|
|
|
|
+ //时间
|
|
|
|
+ p_u_time:submission_time,
|
|
},
|
|
},
|
|
];
|
|
];
|
|
|
|
|
|
@@ -546,7 +598,8 @@ export default {
|
|
});
|
|
});
|
|
// 更新数据状态
|
|
// 更新数据状态
|
|
this.refreshTableData(); // 例如刷新表格数据
|
|
this.refreshTableData(); // 例如刷新表格数据
|
|
- console.log("此条数据处理后的id为:", userid);
|
|
|
|
|
|
+ // console.log("此条数据处理后的id为:", userid);
|
|
|
|
+ console.log("通过的数据内容为:",res.data);
|
|
})
|
|
})
|
|
.catch((err) => {
|
|
.catch((err) => {
|
|
this.$message.error("操作失败");
|
|
this.$message.error("操作失败");
|