guhongwei hace 4 años
padre
commit
bf476e0c63
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  1. 8 0
      src/views/market/list/achieve.vue

+ 8 - 0
src/views/market/list/achieve.vue

@@ -33,6 +33,8 @@ export default {
       dropList: [],
       total: 0,
       detail: {},
+      // 成果单位
+      company: '',
     };
   },
   created() {
@@ -46,6 +48,7 @@ export default {
     // 查询相关
     async search({ skip = 0, limit = 5, ...info } = {}) {
       // TODO: 查询
+      if (this.company) info.company = this.company;
       let res = await this.query({ skip, limit, status: '2', type: '1', ...info });
       if (this.$checkRes(res)) {
         this.$set(this, `list`, res.data);
@@ -55,13 +58,18 @@ export default {
       }
     },
     change(data) {
+      console.log(data);
       if (data === '中科系') {
+        this.$set(this, `company`, data);
         // TODO:原逻辑:将数据过滤出中科系;我觉得:应该是查有关中科系的信息
       } else if (data === '其他') {
+        this.$set(this, `company`, data);
         // TODO:原逻辑:是过滤某些单位; 应该去查这些单位的数据
       } else {
+        this.$set(this, `company`, data);
         // TODO:原逻辑:过滤含有这些内容的数据;应该去查
       }
+      this.search();
     },
     // 查询详情
     async searchInfo() {