1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <template>
- <div id="adviserList">
- <enterprisejb-detail :info="info" :recruitData="recruitData" :liebiaoList="liebiaoList"></enterprisejb-detail>
- <!-- @detailcm="clickDetailcm" -->
- </div>
- </template>
- <script>
- import enterprisejbDetail from '@/components/enterprise/enterprisejb.vue';
- import { createNamespacedHelpers, mapGetters } from 'vuex';
- const { mapActions: mapSite } = createNamespacedHelpers('site');
- const { mapActions: mapRecruit } = createNamespacedHelpers('market');
- export default {
- name: 'adviserList',
- props: {},
- components: {
- enterprisejbDetail,
- },
- data: () => ({
- info: {},
- liebiaoList: [{ name: '基本信息' }, { name: '消息管理' }, { name: '我的发布' }, { name: '我的订购' }, { name: '注销账号' }],
- columnName: '',
- recruitData: [],
- }),
- created() {
- this.searchSite();
- this.searchInfo();
- },
- computed: {},
- methods: {
- ...mapSite(['showInfo']),
- ...mapRecruit(['query', 'fetch']),
- // 查询站点信息
- async searchSite() {
- let res = await this.showInfo();
- let object = JSON.parse(JSON.stringify(res.data));
- if (object) {
- this.$set(this, `info`, res.data);
- } else {
- this.$message.error(res.errmsg ? res.errmsg : 'error');
- }
- },
- async searchInfo() {
- let detailId = '123456789';
- const res = await this.fetch(detailId);
- console.log(res.data);
- },
- },
- };
- </script>
- <style lang="less" scoped></style>
|