Compare commits
No commits in common. "76c1caae6a3488b8820d6c8d61a151d64bffb6ff" and "7bc5947a436d0b093681324f3e7ddfa389581174" have entirely different histories.
76c1caae6a
...
7bc5947a43
@ -111,7 +111,6 @@ export default {
|
|||||||
startPlaceholder: '开始时间',
|
startPlaceholder: '开始时间',
|
||||||
endPlaceholder: '结束时间',
|
endPlaceholder: '结束时间',
|
||||||
param: 'searchTime',
|
param: 'searchTime',
|
||||||
defaultSelect: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'button',
|
type: 'button',
|
||||||
@ -133,14 +132,6 @@ export default {
|
|||||||
},
|
},
|
||||||
components: {},
|
components: {},
|
||||||
created() {
|
created() {
|
||||||
const end = new Date();
|
|
||||||
const start = new Date();
|
|
||||||
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
|
|
||||||
this.formConfig[2].defaultSelect = [start, end];
|
|
||||||
this.listQuery.reportTime = [
|
|
||||||
moment(start).startOf('day').format('x'),
|
|
||||||
moment(end).endOf('day').format('x'),
|
|
||||||
];
|
|
||||||
getEnergyTypeListAll().then((response) => {
|
getEnergyTypeListAll().then((response) => {
|
||||||
this.formConfig[1].selectOptions = response.data;
|
this.formConfig[1].selectOptions = response.data;
|
||||||
});
|
});
|
||||||
|
@ -110,7 +110,6 @@ export default {
|
|||||||
startPlaceholder: '开始时间',
|
startPlaceholder: '开始时间',
|
||||||
endPlaceholder: '结束时间',
|
endPlaceholder: '结束时间',
|
||||||
param: 'searchTime',
|
param: 'searchTime',
|
||||||
defaultSelect: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'button',
|
type: 'button',
|
||||||
@ -132,14 +131,6 @@ export default {
|
|||||||
},
|
},
|
||||||
components: {},
|
components: {},
|
||||||
created() {
|
created() {
|
||||||
const end = new Date();
|
|
||||||
const start = new Date();
|
|
||||||
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
|
|
||||||
this.formConfig[2].defaultSelect = [start, end];
|
|
||||||
this.listQuery.times = [
|
|
||||||
moment(start).startOf('day').format('x'),
|
|
||||||
moment(end).endOf('day').format('x'),
|
|
||||||
];
|
|
||||||
getHotMaterialList().then((response) => {
|
getHotMaterialList().then((response) => {
|
||||||
this.formConfig[1].selectOptions = response.data;
|
this.formConfig[1].selectOptions = response.data;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user