|
|
|
@ -20,6 +20,7 @@ import {
|
|
|
|
|
targetWidgetLinkageLogic,
|
|
|
|
|
} from "@/views/bigscreenDesigner/designer/linkageLogic";
|
|
|
|
|
import miment from 'miment'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "WidgetFormTime",
|
|
|
|
|
props: {
|
|
|
|
@ -79,6 +80,24 @@ export default {
|
|
|
|
|
new Date(start.setHours(0, 0, 0, 0));
|
|
|
|
|
picker.$emit('pick', [start, end]);
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
text: '最近半年',
|
|
|
|
|
onClick(picker) {
|
|
|
|
|
const end = new Date(new Date(new Date().getTime()).setHours(23, 59, 59, 999));
|
|
|
|
|
const start = new Date();
|
|
|
|
|
start.setTime(miment().add(-6, 'MM').stamp());
|
|
|
|
|
new Date(start.setHours(0, 0, 0, 0));
|
|
|
|
|
picker.$emit('pick', [start, end]);
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
text: '最近一年',
|
|
|
|
|
onClick(picker) {
|
|
|
|
|
const end = new Date(new Date(new Date().getTime()).setHours(23, 59, 59, 999));
|
|
|
|
|
const start = new Date();
|
|
|
|
|
start.setTime(miment().add(-1, 'YY').stamp());
|
|
|
|
|
new Date(start.setHours(0, 0, 0, 0));
|
|
|
|
|
picker.$emit('pick', [start, end]);
|
|
|
|
|
}
|
|
|
|
|
}],
|
|
|
|
|
// disabledDate(time){
|
|
|
|
|
// return time.getTime() > Date.now()
|
|
|
|
@ -144,6 +163,7 @@ export default {
|
|
|
|
|
height: 100%;
|
|
|
|
|
background: inherit;
|
|
|
|
|
color: inherit;
|
|
|
|
|
|
|
|
|
|
&::placeholder {
|
|
|
|
|
color: inherit;
|
|
|
|
|
}
|
|
|
|
|