|
@@ -23,6 +23,7 @@ import list1 from '../../../../../company/parts/list_2.vue';
|
|
|
import adminFrame from '@frame/src/components/mobile-frame/mobile-main.vue';
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
const { mapActions: patentinfo } = createNamespacedHelpers('patentinfo');
|
|
|
+const moment = require('moment');
|
|
|
export default {
|
|
|
name: 'index',
|
|
|
props: {},
|
|
@@ -69,8 +70,11 @@ export default {
|
|
|
info.user_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);
|
|
|
+ let onDate = moment(new Date()).format('YYYY-MM-DD');
|
|
|
+ let data = res.data.filter((i) => i.lose_data <= onDate);
|
|
|
+ console.log(data);
|
|
|
+ // this.$set(this, `list`, res.data);
|
|
|
+ // this.$set(this, `total`, res.total);
|
|
|
}
|
|
|
}
|
|
|
},
|