|
@@ -1,13 +1,14 @@
|
|
<template>
|
|
<template>
|
|
<div id="adviserList">
|
|
<div id="adviserList">
|
|
- <enterprisejb-detail :info="info" :liebiaoList="liebiaoList" @onsave="onsaveClick"></enterprisejb-detail>
|
|
|
|
|
|
+ <enterprisejb-detail :info="info" :liebiaoList="liebiaoList" @onsave="onsaveClick" :userinfo="userinfo"></enterprisejb-detail>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import enterprisejbDetail from '@/components/enterprise/enterprisejb.vue';
|
|
import enterprisejbDetail from '@/components/enterprise/enterprisejb.vue';
|
|
-import { createNamespacedHelpers, mapGetters } from 'vuex';
|
|
|
|
|
|
+import { createNamespacedHelpers, mapGetters, mapState } from 'vuex';
|
|
const { mapActions: mapSite } = createNamespacedHelpers('site');
|
|
const { mapActions: mapSite } = createNamespacedHelpers('site');
|
|
|
|
+const { mapActions: market } = createNamespacedHelpers('market');
|
|
export default {
|
|
export default {
|
|
name: 'adviserList',
|
|
name: 'adviserList',
|
|
props: {},
|
|
props: {},
|
|
@@ -17,13 +18,18 @@ export default {
|
|
data: () => ({
|
|
data: () => ({
|
|
info: {},
|
|
info: {},
|
|
liebiaoList: [{ name: '基本信息' }, { name: '消息管理' }, { name: '我的发布' }, { name: '我的订购' }, { name: '注销账号' }],
|
|
liebiaoList: [{ name: '基本信息' }, { name: '消息管理' }, { name: '我的发布' }, { name: '我的订购' }, { name: '注销账号' }],
|
|
|
|
+ userinfo: {},
|
|
}),
|
|
}),
|
|
created() {
|
|
created() {
|
|
this.searchSite();
|
|
this.searchSite();
|
|
|
|
+ this.searchInfo();
|
|
|
|
+ },
|
|
|
|
+ computed: {
|
|
|
|
+ ...mapState(['user']),
|
|
},
|
|
},
|
|
- computed: {},
|
|
|
|
methods: {
|
|
methods: {
|
|
...mapSite(['showInfo']),
|
|
...mapSite(['showInfo']),
|
|
|
|
+ ...market(['fetch']),
|
|
// 查询站点信息
|
|
// 查询站点信息
|
|
async searchSite() {
|
|
async searchSite() {
|
|
let res = await this.showInfo();
|
|
let res = await this.showInfo();
|
|
@@ -34,6 +40,13 @@ export default {
|
|
this.$message.error(res.errmsg ? res.errmsg : 'error');
|
|
this.$message.error(res.errmsg ? res.errmsg : 'error');
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ // 查询基本信息
|
|
|
|
+ async searchInfo() {
|
|
|
|
+ let res = await this.fetch(this.user.userid);
|
|
|
|
+ if (res.errcode === 0) {
|
|
|
|
+ this.$set(this, `userinfo`, res.data);
|
|
|
|
+ }
|
|
|
|
+ },
|
|
async onsaveClick({ id }) {
|
|
async onsaveClick({ id }) {
|
|
console.log(id);
|
|
console.log(id);
|
|
if (id === '基本信息') {
|
|
if (id === '基本信息') {
|