Commit 17be2ca6 17be2ca60bfb44c84cf46a80b4c6dd54517bb39b by zhanghao

commit

1 parent a129059a
......@@ -541,6 +541,7 @@
<div style="margin: 15px 0;"></div>
<el-form-item>
<el-button round @click="dongjieSubmit">冻结账号</el-button>
<el-button round @click="jiedongSubmit">解冻账号</el-button>
</el-form-item>
</div>
</el-card>
......@@ -1736,6 +1737,46 @@
}).catch(error=>{
console.log(error);
})
},
jiedongSubmit() {
let config = {
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
}
this.$http.get('/tool/jiedongquanxian?'+this.$qs.stringify({
phone: this.dongjie.phone,
permission: this.dongjie.type.toString()
}),config).then((res)=>{
console.log(res);
if(res.data=='notnull') {
this.$message({
showClose: true,
message: '手机号或解冻类型不能为空',
type: 'error'
});
} else if(res.data=='isnotjobnumber') {
this.$message({
showClose: true,
message: '工号冻结不支持解冻',
type: 'error'
});
} else if(res.data=='success') {
this.$message({
showClose: true,
message: '解冻账号成功',
type: 'success'
});
} else {
this.$message({
showClose: true,
message: '解冻账号失败',
type: 'error'
});
}
}).catch(error=>{
console.log(error);
})
}
}
}
......