Commit 17be2ca6 17be2ca60bfb44c84cf46a80b4c6dd54517bb39b by zhanghao

commit

1 parent a129059a
...@@ -541,6 +541,7 @@ ...@@ -541,6 +541,7 @@
541 <div style="margin: 15px 0;"></div> 541 <div style="margin: 15px 0;"></div>
542 <el-form-item> 542 <el-form-item>
543 <el-button round @click="dongjieSubmit">冻结账号</el-button> 543 <el-button round @click="dongjieSubmit">冻结账号</el-button>
544 <el-button round @click="jiedongSubmit">解冻账号</el-button>
544 </el-form-item> 545 </el-form-item>
545 </div> 546 </div>
546 </el-card> 547 </el-card>
...@@ -1736,6 +1737,46 @@ ...@@ -1736,6 +1737,46 @@
1736 }).catch(error=>{ 1737 }).catch(error=>{
1737 console.log(error); 1738 console.log(error);
1738 }) 1739 })
1740 },
1741 jiedongSubmit() {
1742 let config = {
1743 headers: {
1744 'Content-Type': 'application/x-www-form-urlencoded'
1745 }
1746 }
1747 this.$http.get('/tool/jiedongquanxian?'+this.$qs.stringify({
1748 phone: this.dongjie.phone,
1749 permission: this.dongjie.type.toString()
1750 }),config).then((res)=>{
1751 console.log(res);
1752 if(res.data=='notnull') {
1753 this.$message({
1754 showClose: true,
1755 message: '手机号或解冻类型不能为空',
1756 type: 'error'
1757 });
1758 } else if(res.data=='isnotjobnumber') {
1759 this.$message({
1760 showClose: true,
1761 message: '工号冻结不支持解冻',
1762 type: 'error'
1763 });
1764 } else if(res.data=='success') {
1765 this.$message({
1766 showClose: true,
1767 message: '解冻账号成功',
1768 type: 'success'
1769 });
1770 } else {
1771 this.$message({
1772 showClose: true,
1773 message: '解冻账号失败',
1774 type: 'error'
1775 });
1776 }
1777 }).catch(error=>{
1778 console.log(error);
1779 })
1739 } 1780 }
1740 } 1781 }
1741 } 1782 }
......