|
@@ -33,6 +33,8 @@ export default {
|
|
|
dropList: [],
|
|
|
total: 0,
|
|
|
detail: {},
|
|
|
+ // 成果单位
|
|
|
+ company: '',
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -47,6 +49,7 @@ export default {
|
|
|
async search({ skip = 0, limit = 5, ...info } = {}) {
|
|
|
console.log('in function:');
|
|
|
// 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);
|
|
@@ -56,13 +59,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() {
|