enterprisejb.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <template>
  2. <div id="adviserList">
  3. <enterprisejb-detail :info="info" :recruitData="recruitData" :liebiaoList="liebiaoList"></enterprisejb-detail>
  4. <!-- @detailcm="clickDetailcm" -->
  5. </div>
  6. </template>
  7. <script>
  8. import enterprisejbDetail from '@/components/enterprise/enterprisejb.vue';
  9. import { createNamespacedHelpers, mapGetters } from 'vuex';
  10. const { mapActions: mapSite } = createNamespacedHelpers('site');
  11. const { mapActions: mapRecruit } = createNamespacedHelpers('market');
  12. export default {
  13. name: 'adviserList',
  14. props: {},
  15. components: {
  16. enterprisejbDetail,
  17. },
  18. data: () => ({
  19. info: {},
  20. liebiaoList: [{ name: '基本信息' }, { name: '消息管理' }, { name: '我的发布' }, { name: '我的订购' }, { name: '注销账号' }],
  21. columnName: '',
  22. recruitData: [],
  23. }),
  24. created() {
  25. this.searchSite();
  26. this.searchInfo();
  27. },
  28. computed: {},
  29. methods: {
  30. ...mapSite(['showInfo']),
  31. ...mapRecruit(['query', 'fetch']),
  32. // 查询站点信息
  33. async searchSite() {
  34. let res = await this.showInfo();
  35. let object = JSON.parse(JSON.stringify(res.data));
  36. if (object) {
  37. this.$set(this, `info`, res.data);
  38. } else {
  39. this.$message.error(res.errmsg ? res.errmsg : 'error');
  40. }
  41. },
  42. async searchInfo() {
  43. let detailId = '123456789';
  44. const res = await this.fetch(detailId);
  45. console.log(res.data);
  46. },
  47. },
  48. };
  49. </script>
  50. <style lang="less" scoped></style>