Compare commits
2 Commits
ed6a7e85b2
...
04a2f613e8
Author | SHA1 | Date |
---|---|---|
guoyue | 04a2f613e8 | |
guoyue | 43bc0dd992 |
|
@ -26,7 +26,7 @@
|
||||||
<!--起始日期 @keyup.enter.native="getDataList()"-->
|
<!--起始日期 @keyup.enter.native="getDataList()"-->
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<span>日期:</span>
|
<span>日期:</span>
|
||||||
<el-date-picker v-model="value1" type="datetimerange" range-separator="至" start-placeholder="开始日期"
|
<el-date-picker v-model="value1" type="daterange" range-separator="至" start-placeholder="开始日期"
|
||||||
end-placeholder="结束日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd">
|
end-placeholder="结束日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd">
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -909,8 +909,10 @@ export default {
|
||||||
// 点击查询按钮查询数据
|
// 点击查询按钮查询数据
|
||||||
getDataList() {
|
getDataList() {
|
||||||
if (this.value1 && this.value1.length > 0) {
|
if (this.value1 && this.value1.length > 0) {
|
||||||
this.startDate = this.handleTime(this.value1[0], 'yyyy-MM-dd')
|
// this.startDate = this.handleTime(this.value1[0], 'yyyy-MM-dd')
|
||||||
this.endDate = this.handleTime(this.value1[1], 'yyyy-MM-dd')
|
// this.endDate = this.handleTime(this.value1[1], 'yyyy-MM-dd')
|
||||||
|
this.startDate = this.value1[0]
|
||||||
|
this.endDate = this.value1[1]
|
||||||
} else {
|
} else {
|
||||||
this.startDate = ''
|
this.startDate = ''
|
||||||
this.endDate = ''
|
this.endDate = ''
|
||||||
|
|
Loading…
Reference in New Issue