Browse Source

关注数

guhongwei 5 years ago
parent
commit
394b9aa5f0
3 changed files with 4 additions and 8 deletions
  1. 2 6
      src/store.js
  2. 1 1
      src/views/home/index.vue
  3. 1 1
      vue.config.js

+ 2 - 6
src/store.js

@@ -386,12 +386,8 @@ export default new Vuex.Store({
         result = await this.$axios.$post(api.stucorp, body, {}, query);
       }
       if (type === 'list') {
-        let { corpid, corpname, studid, studname, studschool } = data;
-        result = await this.$axios.$get(
-          api.stucorplist,
-          {},
-          { corpid: corpid, corpname: corpname, studid: studid, studname: studname, studschool: studschool, skip: skip, limit: limit }
-        );
+        let { corpid } = data;
+        result = await this.$axios.$get(api.stucorplist, {}, { corpid: corpid, skip: skip, limit: limit });
       }
       if (type === 'search') {
         let { id, studid, corpid } = data;

+ 1 - 1
src/views/home/index.vue

@@ -164,7 +164,7 @@ export default {
       } else {
         this.$message.error(result.errmsg ? result.errmsg : 'error');
       }
-      result = await this.stucorpOperation({ type: 'list', data: { corpid: this.user.id } });
+      result = await this.stucorpOperation({ type: 'list', data: { corpid: this.user.corpid } });
       if (`${result.errcode}` === '0') {
         //给this=>vue的实例下在中的list属性,赋予result.data的值
         console.log(result);

+ 1 - 1
vue.config.js

@@ -36,7 +36,7 @@ module.exports = {
         ws: true,
       },
       '/adminapi': {
-        target: 'http://10.16.5.15:8103',
+        target: 'http://10.16.5.15:8101',
         ws: true,
         pathRewrite: { '^/adminapi': '/api' },
       },