|
|
@@ -202,7 +202,14 @@ export default defineComponent({
|
|
|
};
|
|
|
// 修改状态
|
|
|
const changeStatus = async (row: any) => {
|
|
|
- await getAPI(SysUserApi).sysUserSetStatusPost({ id: row.id, status: row.status });
|
|
|
+ await getAPI(SysUserApi).sysUserSetStatusPost({ id: row.id, status: row.status })
|
|
|
+ .catch(()=>{
|
|
|
+ if (row.status==1) {
|
|
|
+ row.status==2
|
|
|
+ }else{
|
|
|
+ row.status=1
|
|
|
+ }
|
|
|
+ });
|
|
|
};
|
|
|
// 重置密码
|
|
|
const resetUserPwd = async (row: any) => {
|