| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { mapGetters, mapState, mapActions } from 'vuex' |
| | | import departmentApi from '@/api/department' |
| | | export default { |
| | | name: 'App' |
| | | name: 'App', |
| | | data(){ |
| | | return{ |
| | | depart:[] |
| | | } |
| | | }, |
| | | created () { |
| | | console.log(this.Islogin) |
| | | }, |
| | | computed:{ |
| | | ...mapState('enumItem',{Islogin:state => state.user.levelEnum}) |
| | | }, |
| | | mounted () { |
| | | |
| | | console.log(this.Islogin) |
| | | this.seachPageDepartMentList() |
| | | }, |
| | | methods:{ |
| | | seachPageDepartMentList(){ |
| | | let that = this |
| | | departmentApi.pageList(this.queryParam).then(res=>{ |
| | | console.log(res) |
| | | if (res.code == 1){ |
| | | that.depart = res.response.list |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | |
| | | </script> |