| | |
| | | import {mapGetters} from "vuex"; |
| | | import {startList} from "@/api/work/work"; |
| | | import {flowCategory, flowRoute} from "@/util/flow"; |
| | | import {getDetailByUserId} from "@/api/enterprise/enterprise"; |
| | | |
| | | export default { |
| | | data() { |
| | |
| | | } |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["permission", "flowRoutes"]), |
| | | ...mapGetters(["permission", "flowRoutes","userInfo"]), |
| | | ids() { |
| | | let ids = []; |
| | | this.selectionList.forEach(ele => { |
| | |
| | | }); |
| | | return ids.join(","); |
| | | }, |
| | | permit(){ |
| | | return this.userInfo.role_name == 'admin' || this.userInfo.role_name == 'administrator' ? true:false |
| | | }, |
| | | }, |
| | | created() { |
| | | this.getEnterpriseDetailByUserId() |
| | | }, |
| | | methods: { |
| | | searchReset() { |
| | |
| | | this.loading = false; |
| | | this.selectionClear(); |
| | | }); |
| | | }, |
| | | getEnterpriseDetailByUserId(){ |
| | | getDetailByUserId(this.userInfo.user_id).then(res=>{ |
| | | if (res.data.code == 200){ |
| | | if (res.data.data && !this.permit){ |
| | | this.$alert('请先完善企业信息', '提示', { |
| | | confirmButtonText: '确定', |
| | | callback: ()=>{ |
| | | this.$router.push("/enterprise/enterprise") |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | }; |