Commit b47e011b by jianshuqin

优化:组件功能

parent 612bb2c6
......@@ -56,7 +56,7 @@
{text: '今周',onClick:function(picker) {var date = new Date();picker.$emit('pick', [new Date(date.setDate(date.getDate()-date.getDay()+1)),new Date(date.setDate(date.getDate()-date.getDay()+7))])}},
{text: '今月',onClick:function(picker) {var date = new Date();picker.$emit('pick', [new Date(date.setDate(1)),new Date(date.setMonth(date.getMonth() + 1) - (24 * 60 * 60 * 1000))])}},
{text: '上周',onClick:function(picker) {var date = new Date();picker.$emit('pick', [new Date(date.setDate(date.getDate()-date.getDay()+1-7)),new Date(date.setDate(date.getDate()-date.getDay()+7))])}},
{text: '上月',onClick:function(picker) {var date = new Date();picker.$emit('pick', [new Date(new Date(date.setMonth(date.getMonth()-1)).setDate(1)),new Date(new Date(date.setMonth(date.getMonth() + 1)).setDate(1) - (24 * 60 * 60 * 1000))])}},
{text: '上月',onClick:function(picker) {var date = new Date();picker.$emit('pick', [new Date(new Date(date.setMonth(new Date(date.setDate(1)).getMonth()-1))),new Date(new Date(date.setMonth(date.getMonth() + 1)).setDate(1) - (24 * 60 * 60 * 1000))])}},
]}">
</el-date-picker>
<el-date-picker v-else-if="item.type == 'date'"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment