|
@@ -33,17 +33,13 @@ export default {
|
|
|
methods: {
|
|
|
...patentwarning(['query']),
|
|
|
async search({ skip = 0, limit = this.limit, ...info } = {}) {
|
|
|
- if (this.create_number) {
|
|
|
- info.name = this.name;
|
|
|
- // info.create_number = this.create_number;
|
|
|
- info.to_id = this.user._id;
|
|
|
- let res = await this.query({ skip, limit, ...info });
|
|
|
- if (this.$checkRes(res)) {
|
|
|
- this.$set(this, `list`, res.data);
|
|
|
- this.$set(this, `total`, res.total);
|
|
|
- }
|
|
|
- } else {
|
|
|
- this.$toast({ type: `warn`, message: `专利暂无申请号,无法查询数据` });
|
|
|
+ info.name = this.name;
|
|
|
+ if (this.create_number) info.create_number = this.create_number;
|
|
|
+ info.to_id = this.user._id;
|
|
|
+ let res = await this.query({ skip, limit, ...info });
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$set(this, `list`, res.data);
|
|
|
+ this.$set(this, `total`, res.total);
|
|
|
}
|
|
|
},
|
|
|
// 返回
|