@@ -612,16 +612,18 @@ export default {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
- }).then(() => {
- this.$api.user.separationReinstatement(data.row.userId).then((res) => {
- if (res.code == 200) {
- this.$message({
- type: 'success',
- message: res.msg
- });
- this.findPage();
- }
- })
+ }).then((res) => {
+ if (res == 'confirm') {
+ this.$api.user.separationReinstatement(data.userId).then((res) => {
+ if (res.code == 200) {
+ this.$message({
+ type: 'success',
+ message: res.msg
+ });
+ this.findPage()
+ }
+ })
}).catch(() => {
this.$message({
type: 'info',