|
|
|
|
@ -59,6 +59,13 @@ |
|
|
|
|
icon="el-icon-setting" |
|
|
|
|
@click="handlePlatform">平台配置 |
|
|
|
|
</el-button> |
|
|
|
|
<el-button type="info" |
|
|
|
|
size="small" |
|
|
|
|
plain |
|
|
|
|
v-if="userInfo.role_name.includes('admin')" |
|
|
|
|
icon="el-icon-coordinate" |
|
|
|
|
@click="handleLock">账号解封 |
|
|
|
|
</el-button> |
|
|
|
|
<el-button type="success" |
|
|
|
|
size="small" |
|
|
|
|
plain |
|
|
|
|
@ -159,7 +166,7 @@ |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import { |
|
|
|
|
import { |
|
|
|
|
getList, |
|
|
|
|
getUser, |
|
|
|
|
getUserPlatform, |
|
|
|
|
@ -168,8 +175,8 @@ |
|
|
|
|
updatePlatform, |
|
|
|
|
add, |
|
|
|
|
grant, |
|
|
|
|
resetPassword |
|
|
|
|
} from "@/api/system/user"; |
|
|
|
|
resetPassword, unlock |
|
|
|
|
} from "@/api/system/user"; |
|
|
|
|
import {getDeptTree, getDeptLazyTree} from "@/api/system/dept"; |
|
|
|
|
import {getRoleTree} from "@/api/system/role"; |
|
|
|
|
import {getPostList} from "@/api/system/post"; |
|
|
|
|
@ -860,6 +867,22 @@ |
|
|
|
|
handlePlatform() { |
|
|
|
|
this.platformBox = true; |
|
|
|
|
}, |
|
|
|
|
handleLock() { |
|
|
|
|
this.$confirm("确定将选择账号解封?", { |
|
|
|
|
confirmButtonText: "确定", |
|
|
|
|
cancelButtonText: "取消", |
|
|
|
|
type: "warning" |
|
|
|
|
}) |
|
|
|
|
.then(() => { |
|
|
|
|
return unlock(this.ids); |
|
|
|
|
}) |
|
|
|
|
.then(() => { |
|
|
|
|
this.$message({ |
|
|
|
|
type: "success", |
|
|
|
|
message: "操作成功!" |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
handleImport() { |
|
|
|
|
this.excelBox = true; |
|
|
|
|
}, |
|
|
|
|
|