|
@@ -72,7 +72,7 @@
|
|
<context :detailInfo="detailInfo" @onSubmit="onSubmit"></context>
|
|
<context :detailInfo="detailInfo" @onSubmit="onSubmit"></context>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="19" v-else-if="display == '3'" class="info">
|
|
<el-col :span="19" v-else-if="display == '3'" class="info">
|
|
- <zhuanjia></zhuanjia>
|
|
|
|
|
|
+ <zhuanjia :zhuanjiainfo="zhuanjiainfo"></zhuanjia>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -82,7 +82,7 @@
|
|
<script>
|
|
<script>
|
|
import _ from 'lodash';
|
|
import _ from 'lodash';
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
-const { mapActions: product } = createNamespacedHelpers('marketproduct');
|
|
|
|
|
|
+const { mapActions: product } = createNamespacedHelpers('enterpriseproject');
|
|
const { mapActions: talentExperts } = createNamespacedHelpers('talentExperts');
|
|
const { mapActions: talentExperts } = createNamespacedHelpers('talentExperts');
|
|
const { mapActions: transaction } = createNamespacedHelpers('transaction');
|
|
const { mapActions: transaction } = createNamespacedHelpers('transaction');
|
|
const { mapActions: tranaudit } = createNamespacedHelpers('tranaudit');
|
|
const { mapActions: tranaudit } = createNamespacedHelpers('tranaudit');
|
|
@@ -112,13 +112,22 @@ export default {
|
|
jiaoyuList: [],
|
|
jiaoyuList: [],
|
|
display: '1',
|
|
display: '1',
|
|
detailInfo: {},
|
|
detailInfo: {},
|
|
|
|
+ zhuanjiainfo: {},
|
|
}),
|
|
}),
|
|
created() {
|
|
created() {
|
|
this.searchList();
|
|
this.searchList();
|
|
this.search();
|
|
this.search();
|
|
|
|
+ console.log(this.$route.query.display);
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
...mapState(['user']),
|
|
...mapState(['user']),
|
|
|
|
+ dispaly() {
|
|
|
|
+ return this.$route.query.display;
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ id() {
|
|
|
|
+ return this.$route.query.id;
|
|
|
|
+ },
|
|
pageTitle() {
|
|
pageTitle() {
|
|
return `${this.$route.meta.title}`;
|
|
return `${this.$route.meta.title}`;
|
|
},
|
|
},
|
|
@@ -210,12 +219,25 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
async search() {
|
|
async search() {
|
|
|
|
+ this.display = this.$route.query.display;
|
|
|
|
+ console.log(this.display);
|
|
|
|
+
|
|
if (this.display == '2') {
|
|
if (this.display == '2') {
|
|
- console.log(id);
|
|
|
|
- const res = await this.newfetch(id);
|
|
|
|
|
|
+ console.log(this.id);
|
|
|
|
+ const res = await this.newfetch(this.id);
|
|
console.log(res.data);
|
|
console.log(res.data);
|
|
this.$set(this, `detailInfo`, res.data);
|
|
this.$set(this, `detailInfo`, res.data);
|
|
}
|
|
}
|
|
|
|
+ // else if (this.dispaly == '1') {
|
|
|
|
+ // const res = await this.newquery(this.id);
|
|
|
|
+ // console.log(res.data);
|
|
|
|
+ // this.$set(this, `detailInfo`, res.data);
|
|
|
|
+ // }
|
|
|
|
+ else if (this.dispaly == '3') {
|
|
|
|
+ const res = await this.fetch(this.id);
|
|
|
|
+ console.log(res.data);
|
|
|
|
+ this.$set(this, `zhuanjiainfo`, res.data);
|
|
|
|
+ }
|
|
},
|
|
},
|
|
|
|
|
|
async clickfuwu(id) {
|
|
async clickfuwu(id) {
|
|
@@ -228,6 +250,9 @@ export default {
|
|
|
|
|
|
async clickzhuanjia(id) {
|
|
async clickzhuanjia(id) {
|
|
this.display = '3';
|
|
this.display = '3';
|
|
|
|
+ const res = await this.fetch(id);
|
|
|
|
+ console.log(res.data);
|
|
|
|
+ this.$set(this, `zhuanjiainfo`, res.data);
|
|
},
|
|
},
|
|
|
|
|
|
async onSubmit() {
|
|
async onSubmit() {
|