|
@@ -47,9 +47,6 @@ export default {
|
|
|
...code({ codeQuery: 'query' }),
|
|
|
// 查询相关
|
|
|
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);
|
|
@@ -58,20 +55,19 @@ export default {
|
|
|
this.$set(this, 'list', this.translate(this.list));
|
|
|
}
|
|
|
},
|
|
|
- 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();
|
|
|
- },
|
|
|
+ // change(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() {
|
|
|
let res = await this.fetch(this.id);
|