enterprisejb.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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.searchName();
  27. this.searchInfo();
  28. },
  29. computed: {},
  30. methods: {
  31. ...mapSite(['showInfo']),
  32. ...mapRecruit({ columnList: 'query', columnInfo: 'fetch' }),
  33. // 查询站点信息
  34. async searchSite() {
  35. let res = await this.showInfo();
  36. let object = JSON.parse(JSON.stringify(res.data));
  37. if (object) {
  38. this.$set(this, `info`, res.data);
  39. } else {
  40. this.$message.error(res.errmsg ? res.errmsg : 'error');
  41. }
  42. },
  43. // 查询科技政务栏目
  44. async searchColumn({ ...info } = {}) {},
  45. async searchName() {},
  46. async searchInfo() {
  47. let detailId = 13144;
  48. const res = await this.columnInfo(detailId);
  49. this.$set(this, `recruitData`, res.data);
  50. },
  51. },
  52. };
  53. </script>
  54. <style lang="less" scoped></style>