|
@@ -111,9 +111,13 @@ export default {
|
|
|
async search({ skip = 0, limit = 10 } = {}) {
|
|
|
let duplicate = _.cloneDeep(this.sform);
|
|
|
let { date, ...info } = duplicate;
|
|
|
- let query = { skip, limit, ...info };
|
|
|
- if (this.user.role !== '0') query.principal = this.user.id;
|
|
|
- const res = await this.query({ skip, limit, ...info });
|
|
|
+ let querys = { skip, limit, ...info };
|
|
|
+ if (date && date.length === 2) {
|
|
|
+ querys[`rq_send_time@start`] = date[0];
|
|
|
+ querys[`rq_send_time@end`] = date[1];
|
|
|
+ }
|
|
|
+ if (this.user.role !== '0') querys.principal = this.user.id;
|
|
|
+ const res = await this.query(querys);
|
|
|
if (this.$checkRes(res)) {
|
|
|
const { data, total } = res;
|
|
|
this.$set(this, `list`, data);
|