| | |
| | | <el-form-item> |
| | | <el-button type="primary" size="mini" @click="submit">保存</el-button> |
| | | <el-button type="danger" size="mini" @click="close">关闭</el-button> |
| | | <el-button |
| | | type="danger" |
| | | size="mini" |
| | | v-if="user.nickName == '超级管理员'" |
| | | @click="getdepartment" |
| | | >获取部门信息</el-button |
| | | > |
| | | </el-form-item> |
| | | </el-form> |
| | | </template> |
| | | |
| | | <script> |
| | | import { updateUserProfile } from "@/api/system/user"; |
| | | import { updateUserProfile, getdepartment } from "@/api/system/user"; |
| | | |
| | | export default { |
| | | props: { |
| | |
| | | close() { |
| | | this.$store.dispatch("tagsView/delView", this.$route); |
| | | this.$router.push({ path: "/index" }); |
| | | }, |
| | | getdepartment() { |
| | | getdepartment().then(res => { |
| | | if (res.code == 200) { |
| | | this.$modal.msgSuccess("获取成功"); |
| | | } else { |
| | | this.$modal.msgError(res.msg); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | }; |