|
@@ -27,7 +27,7 @@
|
|
|
|
|
|
<script>
|
|
|
import enterprisefabuDetail from '@/components/enterprise/enterprisefabu.vue';
|
|
|
-import { createNamespacedHelpers, mapGetters } from 'vuex';
|
|
|
+import { createNamespacedHelpers, mapGetters, mapState } from 'vuex';
|
|
|
const { mapActions: mapSite } = createNamespacedHelpers('site');
|
|
|
const { mapActions: mapRecruit } = createNamespacedHelpers('market');
|
|
|
const { mapActions: marketproduct } = createNamespacedHelpers('marketproduct');
|
|
@@ -66,7 +66,9 @@ export default {
|
|
|
this.jiaoyi2();
|
|
|
this.jiaoyi3();
|
|
|
},
|
|
|
- computed: {},
|
|
|
+ computed: {
|
|
|
+ ...mapState(['user']),
|
|
|
+ },
|
|
|
methods: {
|
|
|
...mapSite(['showInfo']),
|
|
|
...mapRecruit({ columnList: 'query', columnInfo: 'fetch' }),
|
|
@@ -87,7 +89,8 @@ export default {
|
|
|
async searchInfo({ skip = 0, limit = 3, ...info } = {}) {
|
|
|
skip = this.skip;
|
|
|
let status = 1;
|
|
|
- const res = await this.productList({ skip, limit, status, ...info });
|
|
|
+ let userid = this.user.id;
|
|
|
+ const res = await this.productList({ skip, limit, status, userid, ...info });
|
|
|
if (this.$checkRes(res)) {
|
|
|
this.$set(this, `recruitData`, res.data);
|
|
|
this.$set(this, `total`, res.total);
|
|
@@ -96,7 +99,8 @@ export default {
|
|
|
async searchstatus1({ skip, limit = 3, ...info } = {}) {
|
|
|
let status = 0;
|
|
|
skip = this.skip;
|
|
|
- const res = await this.productList({ skip, limit, status, ...info });
|
|
|
+ let userid = this.user.id;
|
|
|
+ const res = await this.productList({ skip, limit, status, userid, ...info });
|
|
|
if (this.$checkRes(res)) {
|
|
|
this.$set(this, `shenheList`, res.data);
|
|
|
this.$set(this, `tatalstatus1`, res.total);
|
|
@@ -105,8 +109,9 @@ export default {
|
|
|
async searchstaus2({ skip = 0, limit = 3, ...info } = {}) {
|
|
|
let status = 2;
|
|
|
skip = this.skip;
|
|
|
+ let userid = this.user.id;
|
|
|
console.log();
|
|
|
- const res = await this.productList({ skip, limit, status, ...info });
|
|
|
+ const res = await this.productList({ skip, limit, status, userid, ...info });
|
|
|
console.log(res);
|
|
|
if (this.$checkRes(res)) {
|
|
|
this.$set(this, `successlist`, res.data);
|