wuhongyuq 5 年之前
父节点
当前提交
e89726fe32
共有 3 个文件被更改,包括 17 次插入6 次删除
  1. 5 0
      package-lock.json
  2. 2 1
      src/layout/enterprise/contextfabu.vue
  3. 10 5
      src/views/enterprise/enterprisefabu.vue

+ 5 - 0
package-lock.json

@@ -11081,6 +11081,11 @@
       "resolved": "https://registry.npm.taobao.org/vuex/download/vuex-3.1.2.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fvuex%2Fdownload%2Fvuex-3.1.2.tgz",
       "integrity": "sha1-ooY/QAWqc/JYflXD+t8/AfacfU0="
     },
+    "wangeditor": {
+      "version": "3.1.1",
+      "resolved": "https://registry.npmjs.org/wangeditor/-/wangeditor-3.1.1.tgz",
+      "integrity": "sha1-+9PB1JdpI8nt67hbKdMLNVEq0Dk="
+    },
     "watchpack": {
       "version": "1.6.0",
       "resolved": "https://registry.npm.taobao.org/watchpack/download/watchpack-1.6.0.tgz",

+ 2 - 1
src/layout/enterprise/contextfabu.vue

@@ -197,7 +197,8 @@ export default {
     },
     uploadSuccess({ type, data }) {
       let arr = _.get(this.demandForm, type);
-      if (arr !== undefined) {
+      if (_.isArray(arr)) {
+        let datas = { name: data.name, url: data.uri };
         this.demandForm[type].push({ name: data.name, url: data.uri });
       } else {
         let newArr = [{ name: data.name, url: data.uri }];

+ 10 - 5
src/views/enterprise/enterprisefabu.vue

@@ -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);