Compare commits

..

No commits in common. "60864e71104b692f2a3fcc5f9b9f08c581c8bef9" and "efdf1f5b54c78980a0686e17ac677edf37bd5d6f" have entirely different histories.

2 changed files with 3 additions and 22 deletions

View File

@ -49,21 +49,12 @@
import basicPageMixin from '@/mixins/lb/basicPageMixin';
import { parseTime } from '../../core/mixins/code-filter';
import RecordDetail from './Record-detail.vue';
import moment from 'moment';
export default {
name: 'SpecialEquipmentCheckRecord',
components: { RecordDetail },
mixins: [basicPageMixin],
data() {
const today = new Date();
const twoDaysAgo = new Date(today.getTime() - 2 * 24 * 60 * 60 * 1000);
twoDaysAgo.setHours(0, 0, 0, 0);
const t = [
moment(twoDaysAgo).format('yyyy-MM-DD HH:mm:ss'),
moment(today).format('yyyy-MM-DD HH:mm:ss'),
];
return {
detailOpen: false,
addOrUpdateVisible: false,
@ -160,7 +151,6 @@ export default {
endPlaceholder: '结束日期',
defaultTime: ['00:00:00', '23:59:59'],
param: 'actualCheckTime',
defaultSelect: t,
// width: 350,
},
{
@ -199,7 +189,6 @@ export default {
pageSize: 10,
special: true,
status: 2,
actualCheckTime: t,
},
//
form: {},
@ -215,7 +204,7 @@ export default {
getList() {
this.loading = true;
//
this.recv({ ...this.queryParams }).then((response) => {
this.recv(this.queryParams).then((response) => {
this.list = response.data.list;
this.total = response.data.total;
this.loading = false;

View File

@ -108,14 +108,6 @@ export default {
components: { DialogForm, RecordDetail },
mixins: [basicPageMixin],
data() {
const today = new Date();
const twoDaysAgo = new Date(today.getTime() - 2 * 24 * 60 * 60 * 1000);
twoDaysAgo.setHours(0, 0, 0, 0);
const t = [
moment(twoDaysAgo).format('yyyy-MM-DD HH:mm:ss'),
moment(today).format('yyyy-MM-DD HH:mm:ss'),
];
return {
recordDetailVisible: false,
searchBarKeys: [
@ -309,7 +301,7 @@ export default {
endPlaceholder: '结束日期',
defaultTime: ['00:00:00', '23:59:59'],
param: 'startTime',
defaultSelect: t,
defaultSelect: null,
// width: 350,
},
// {
@ -508,7 +500,7 @@ export default {
pageNo: 1,
pageSize: 10,
maintainPlanId: null,
startTime: t,
startTime: null,
// relatePlan: null,
// equipmentId: null,
special: true,