Explorar el Código

手机端招聘信息查看已发布信息

lrf402788946 hace 5 años
padre
commit
7567f8d1b8
Se han modificado 2 ficheros con 3 adiciones y 3 borrados
  1. 1 1
      src/pages/jobinfoList/views/list.vue
  2. 2 2
      src/store/jobinfo.js

+ 1 - 1
src/pages/jobinfoList/views/list.vue

@@ -169,7 +169,7 @@ export default {
       }
       if (!this.hasMore) return false; //判断的是:如果我列表的数据条数大于等于数据库返回给我的总数时=>我就不查了.没数据了
       this.$set(this, `hasMore`, false); //控制无限加载瞬间加载N次的情况
-      let result = await this.jobinfoOperation({ type: 'list', data: { skip: skip, limit: this.$limit, ...this.searchInfo } }); //查询,添加skip和limit参数
+      let result = await this.jobinfoOperation({ type: 'list', data: { skip: skip, limit: this.$limit, ...this.searchInfo, is_publish: 1 } }); //查询,添加skip和limit参数
       if (`${result.errcode}` === '0') {
         //给this=>vue的实例下在中的list属性,赋予result。data的值
         if (type && type === 'nextPage') {

+ 2 - 2
src/store/jobinfo.js

@@ -17,8 +17,8 @@ export const actions = {
     let { skip, limit } = data; //查询列表需要用,不是列表就别用
     let result;
     if (type === 'add') {
-      let { info, corpid, corpname, schid, schname } = data;
-      result = await this.$axios.$post(api.info, info, {}, { schid: schid, corpid: corpid, corpname: corpname, schname: schname });
+      let { info, corpid, corpname, schid, schname, is_publish } = data;
+      result = await this.$axios.$post(api.info, info, {}, { schid: schid, corpid: corpid, corpname: corpname, schname: schname, is_publish: is_publish });
     }
     if (type === 'list') {
       data = this.$toUndefined(data);