|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
<div class="search">
|
|
|
- <el-date-picker v-model="table.getdataListParm.parammaps.inputDatetime" :clearable="false" class="inputDatetime filter-item" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" style="width: 250px;" :picker-options="pickerOptions" @change="change_date"/>
|
|
|
+ <el-date-picker v-model="table.getdataListParm.parammaps.inputDatetime" :clearable="false" class="inputDatetime filter-item" type="datetimerange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" style="width: 450px;" :picker-options="pickerOptions" @change="change_date"/>
|
|
|
<el-button class="el-icon-arrow-left elIconArrowLeft" :disabled="Beforedisabled" @click="handleBefore" />
|
|
|
<el-button class="el-icon-arrow-right elIconArrowRight" :disabled="Nextdisabled" @click="handleNext" />
|
|
|
<el-select v-model="table.getdataListParm.parammaps.lpplantype" placeholder="计划类型" class="filter-item" style="width: 120px;" clearable>
|
|
@@ -583,8 +583,8 @@ export default {
|
|
|
returntype: 'Map',
|
|
|
parammaps: {
|
|
|
pastureid: Cookies.get('pastureid'),
|
|
|
- startTime: parseTime(new Date(), '{y}-{m}-{d}'),
|
|
|
- stopTime: parseTime(new Date(), '{y}-{m}-{d}'),
|
|
|
+ startTime: parseTime(new Date(), '{y}-{m}-{d} {h}:{i}:{s}'),
|
|
|
+ stopTime: parseTime(new Date(), '{y}-{m}-{d} {h}:{i}:{s}'),
|
|
|
inputDatetime: [new Date(), new Date()],
|
|
|
iscompleted: '',
|
|
|
tmrtname: '',
|
|
@@ -699,8 +699,8 @@ export default {
|
|
|
},
|
|
|
|
|
|
getDownList() {
|
|
|
- this.downTMR.parammaps.startdate = parseTime(this.table.getdataListParm.parammaps.inputDatetime[0], '{y}-{m}-{d}')
|
|
|
- this.downTMR.parammaps.enddate = parseTime(this.table.getdataListParm.parammaps.inputDatetime[1], '{y}-{m}-{d}')
|
|
|
+ this.downTMR.parammaps.startdate = parseTime(this.table.getdataListParm.parammaps.inputDatetime[0], '{y}-{m}-{d} {h}:{i}:{s}')
|
|
|
+ this.downTMR.parammaps.enddate = parseTime(this.table.getdataListParm.parammaps.inputDatetime[1], '{y}-{m}-{d} {h}:{i}:{s}')
|
|
|
GetDataByName(this.downTMR).then(response => {
|
|
|
console.log(response.data.list)
|
|
|
this.TMRList = response.data.list
|
|
@@ -875,8 +875,8 @@ export default {
|
|
|
form_search() {
|
|
|
console.log('点击了查询')
|
|
|
if (this.table.getdataListParm.parammaps.inputDatetime !== '' && this.table.getdataListParm.parammaps.inputDatetime !== null) {
|
|
|
- this.table.getdataListParm.parammaps.startTime = parseTime(this.table.getdataListParm.parammaps.inputDatetime[0], '{y}-{m}-{d}')
|
|
|
- this.table.getdataListParm.parammaps.stopTime = parseTime(this.table.getdataListParm.parammaps.inputDatetime[1], '{y}-{m}-{d}')
|
|
|
+ this.table.getdataListParm.parammaps.startTime = parseTime(this.table.getdataListParm.parammaps.inputDatetime[0], '{y}-{m}-{d} {h}:{i}:{s}')
|
|
|
+ this.table.getdataListParm.parammaps.stopTime = parseTime(this.table.getdataListParm.parammaps.inputDatetime[1], '{y}-{m}-{d} {h}:{i}:{s}')
|
|
|
} else {
|
|
|
this.table.getdataListParm.parammaps.inputDatetime = ''
|
|
|
this.table.getdataListParm.parammaps.startTime = ''
|
|
@@ -968,8 +968,8 @@ export default {
|
|
|
this.table.getdataListParm.parammaps.tmrtname = ''
|
|
|
this.table.getdataListParm.parammaps.iscompleted = ''
|
|
|
this.table.getdataListParm.parammaps.lpplantype = ''
|
|
|
- this.table.getdataListParm.parammaps.startTime = parseTime(new Date(), '{y}-{m}-{d}')
|
|
|
- this.table.getdataListParm.parammaps.stopTime = parseTime(new Date(), '{y}-{m}-{d}')
|
|
|
+ this.table.getdataListParm.parammaps.startTime = parseTime(new Date(), '{y}-{m}-{d} {h}:{i}:{s}')
|
|
|
+ this.table.getdataListParm.parammaps.stopTime = parseTime(new Date(), '{y}-{m}-{d} {h}:{i}:{s}')
|
|
|
this.table.getdataListParm.parammaps.inputDatetime = [new Date(), new Date()]
|
|
|
this.table.getdataListParm.offset = 1
|
|
|
this.getList()
|
|
@@ -989,8 +989,8 @@ export default {
|
|
|
this.table.getdataListParm.parammaps.inputDatetime.push(start, stop)
|
|
|
this.$forceUpdate()
|
|
|
}
|
|
|
- this.table.getdataListParm.parammaps.startTime = parseTime(this.table.getdataListParm.parammaps.inputDatetime[0], '{y}-{m}-{d}')
|
|
|
- this.table.getdataListParm.parammaps.stopTime = parseTime(this.table.getdataListParm.parammaps.inputDatetime[1], '{y}-{m}-{d}')
|
|
|
+ this.table.getdataListParm.parammaps.startTime = parseTime(this.table.getdataListParm.parammaps.inputDatetime[0], '{y}-{m}-{d} {h}:{i}:{s}')
|
|
|
+ this.table.getdataListParm.parammaps.stopTime = parseTime(this.table.getdataListParm.parammaps.inputDatetime[1], '{y}-{m}-{d} {h}:{i}:{s}')
|
|
|
this.getDownList()
|
|
|
this.getList()
|
|
|
},
|
|
@@ -1012,8 +1012,8 @@ export default {
|
|
|
this.table.getdataListParm.parammaps.inputDatetime.push(start2, stop2)
|
|
|
this.$forceUpdate()
|
|
|
}
|
|
|
- this.table.getdataListParm.parammaps.startTime = parseTime(this.table.getdataListParm.parammaps.inputDatetime[0], '{y}-{m}-{d}')
|
|
|
- this.table.getdataListParm.parammaps.stopTime = parseTime(this.table.getdataListParm.parammaps.inputDatetime[1], '{y}-{m}-{d}')
|
|
|
+ this.table.getdataListParm.parammaps.startTime = parseTime(this.table.getdataListParm.parammaps.inputDatetime[0], '{y}-{m}-{d} {h}:{i}:{s}')
|
|
|
+ this.table.getdataListParm.parammaps.stopTime = parseTime(this.table.getdataListParm.parammaps.inputDatetime[1], '{y}-{m}-{d} {h}:{i}:{s}')
|
|
|
this.getDownList()
|
|
|
this.getList()
|
|
|
},
|