| | |
| | | |
| | | <script> |
| | | import { getPage, getDetail, add, update, remove } from "@/api/security/security"; |
| | | import { getUserInfos } from "@/api/system/user"; |
| | | // import AvueMap from 'avue-plugin-map'; |
| | | import { mapGetters } from "vuex"; |
| | | import securityManage from "@/views/securityManage/securityManage" |
| | |
| | | //取“=”之后的token |
| | | let z = window.location.href.substring(tokenLength + 1) |
| | | this.$store.commit('SET_TOKEN', z); |
| | | this.$store.commit('DEL_ALL_TAG'); |
| | | this.$store.commit('CLEAR_LOCK'); |
| | | this.getUserInfo() |
| | | } |
| | | }, |
| | | methods: { |
| | | getUserInfo(){ |
| | | getUserInfos().then(res=>{ |
| | | this.$store.commit('SET_USER_INFO', res.data.data); |
| | | }) |
| | | }, |
| | | rowSave(row, done, loading) { |
| | | add(row).then(() => { |
| | | this.onLoad(this.page); |