|
@@ -8,8 +8,8 @@
|
|
|
<el-option v-for="item in pastureList" :key="item.pastureid" :label="item.pasturename" :value="item.pastureid" />
|
|
|
</el-select>
|
|
|
<el-date-picker v-model="tab.table.getdataListParm.parammaps.inputDatetime" :clearable="false" class="inputDatetime filter-item" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" style="float: left;width: 250px;margin-bottom:10px;" :picker-options="pickerOptions" />
|
|
|
- <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-button class="el-icon-arrow-left elIconArrowLeft" :disabled="Beforedisabled" @click="handleBefore" />
|
|
|
+ <el-button class="el-icon-arrow-right elIconArrowRight" :disabled="Nextdisabled" @click="handleNext" />
|
|
|
<el-input v-model="tab.table.getdataListParm.parammaps.feedname" class="filter-item" style="float: left;width: 245px;margin-bottom:10px;" placeholder="饲料名称" />
|
|
|
<el-button class="successBorder" style="float: left;margin-left: 10px;margin-bottom:10px;" @click="handleSearch('first')">查询</el-button>
|
|
|
<el-button class="export" style="float: right;margin-right: 10px;margin-bottom:10px;" @click="handleExport(tab1)">导出</el-button>
|
|
@@ -57,8 +57,8 @@
|
|
|
<el-option v-for="item in pastureList" :key="item.pastureid" :label="item.pasturename" :value="item.pastureid" />
|
|
|
</el-select>
|
|
|
<el-date-picker v-model="tab2.table.getdataListParm.parammaps.inputDatetime" :clearable="false" class="inputDatetime filter-item" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" style="width: 250px;" :picker-options="pickerOptions" />
|
|
|
- <el-button class="el-icon-arrow-left elIconArrowLeft" :disabled="Beforedisabled2" @click="handleBefore2" />
|
|
|
- <el-button class="el-icon-arrow-right elIconArrowRight" :disabled="Nextdisabled2" @click="handleNext2" />
|
|
|
+ <el-button class="el-icon-arrow-left elIconArrowLeft" :disabled="Beforedisabled2" @click="handleBefore2" />
|
|
|
+ <el-button class="el-icon-arrow-right elIconArrowRight" :disabled="Nextdisabled2" @click="handleNext2" />
|
|
|
<span style="margin-left: 10px;">统计类型:</span>
|
|
|
<el-radio v-model="tab2.radio" label="1" @change="changeRadio2">牲畜类别</el-radio>
|
|
|
<el-radio v-model="tab2.radio" label="2" @change="changeRadio2">栏舍名称</el-radio>
|
|
@@ -93,9 +93,9 @@
|
|
|
<el-table-column v-for="item2 in item1.children" v-if="item1.children || item1.children.length>0" :label="item2.label" :prop="item2.prop" />
|
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
|
- </el-table>
|
|
|
- <span v-if="tab2.table.listLoading == false && tab2.table.list.length>0" style="margin-right: 30px;margin-top: 10px;font-size: 14px;">共{{ tab2.table.total }}条</span>
|
|
|
- <!-- <div v-if="tab2.table.list.length==0" style="text-align: center;">暂无数据</div> -->
|
|
|
+ </el-table>
|
|
|
+ <span v-if="tab2.table.listLoading == false && tab2.table.list.length>0" style="margin-right: 30px;margin-top: 10px;font-size: 14px;">共{{ tab2.table.total }}条</span>
|
|
|
+ <!-- <div v-if="tab2.table.list.length==0" style="text-align: center;">{{$t('errorAnalysis.zwsj')}}</div> -->
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="价格分析" name="third">
|
|
|
<div class="search">
|
|
@@ -103,8 +103,8 @@
|
|
|
<el-option v-for="item in pastureList" :key="item.pastureid" :label="item.pasturename" :value="item.pastureid" />
|
|
|
</el-select>
|
|
|
<el-date-picker v-model="tab3.table.getdataListParm.parammaps.inputDatetime" class="inputDatetime filter-item" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" style="width: 250px;" :picker-options="pickerOptions" />
|
|
|
- <el-button class="el-icon-arrow-left elIconArrowLeft" :disabled="Beforedisabled3" @click="handleBefore3" />
|
|
|
- <el-button class="el-icon-arrow-right elIconArrowRight" :disabled="Nextdisabled3" @click="handleNext3" />
|
|
|
+ <el-button class="el-icon-arrow-left elIconArrowLeft" :disabled="Beforedisabled3" @click="handleBefore3" />
|
|
|
+ <el-button class="el-icon-arrow-right elIconArrowRight" :disabled="Nextdisabled3" @click="handleNext3" />
|
|
|
<span style="margin-left: 10px;">统计类型:</span>
|
|
|
<el-radio v-model="tab3.radio" label="1" @change="changeRadio3">牲畜类别</el-radio>
|
|
|
<el-radio v-model="tab3.radio" label="2" @change="changeRadio3">栏舍名称</el-radio>
|
|
@@ -135,9 +135,9 @@
|
|
|
<el-table-column v-for="item2 in item1.children" v-if="item1.children || item1.children.length>0" :label="item2.label" :prop="item2.prop" />
|
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
|
- </el-table>
|
|
|
- <span v-if="tab3.table.listLoading == false && tab3.table.list.length>0" style="margin-right: 30px;margin-top: 10px;font-size: 14px;">共{{ tab3.table.total }}条</span>
|
|
|
- <!-- <div v-if="tab3.table.list.length==0" style="text-align: center;">暂无数据</div> -->
|
|
|
+ </el-table>
|
|
|
+ <span v-if="tab3.table.listLoading == false && tab3.table.list.length>0" style="margin-right: 30px;margin-top: 10px;font-size: 14px;">共{{ tab3.table.total }}条</span>
|
|
|
+ <!-- <div v-if="tab3.table.list.length==0" style="text-align: center;">{{$t('errorAnalysis.zwsj')}}</div> -->
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
</div>
|
|
@@ -154,10 +154,10 @@ export default {
|
|
|
name: 'GroupInventoryManagement',
|
|
|
components: { Pagination },
|
|
|
data() {
|
|
|
- return {
|
|
|
- Beforedisabled: false,
|
|
|
- Nextdisabled: false,
|
|
|
- Beforedisabled2: false,
|
|
|
+ return {
|
|
|
+ Beforedisabled: false,
|
|
|
+ Nextdisabled: false,
|
|
|
+ Beforedisabled2: false,
|
|
|
Nextdisabled2: false,
|
|
|
pickerMinDate: '',
|
|
|
pickerOptions: {
|
|
@@ -294,7 +294,7 @@ export default {
|
|
|
const that = this
|
|
|
const end = new Date()
|
|
|
const start = new Date()
|
|
|
- start.setTime(start.getTime() - 3600 * 1000 * 24 * 7)
|
|
|
+ start.setTime(start.getTime() - 3600 * 1000 * 24 * 7)
|
|
|
end.setTime(end.getTime() - 3600 * 1000 * 24 * 1)
|
|
|
that.tab.chartDate[0] = parseTime(start, '{y}-{m}-{d}')
|
|
|
that.tab.chartDate[1] = parseTime(end, '{y}-{m}-{d}')
|
|
@@ -309,31 +309,31 @@ export default {
|
|
|
that.tab3.chartDate[0] = parseTime(start, '{y}-{m}-{d}')
|
|
|
that.tab3.chartDate[1] = parseTime(end, '{y}-{m}-{d}')
|
|
|
that.tab3.table.getdataListParm.parammaps.startTime = parseTime(start, '{y}-{m}-{d}')
|
|
|
- that.tab3.table.getdataListParm.parammaps.stopTime = parseTime(end, '{y}-{m}-{d}')
|
|
|
+ that.tab3.table.getdataListParm.parammaps.stopTime = parseTime(end, '{y}-{m}-{d}')
|
|
|
that.tab3.table.getdataListParm.parammaps.inputDatetime = [start, end]
|
|
|
},
|
|
|
handleTabClick() {
|
|
|
- if (this.activeName == 'first') {
|
|
|
- const start = new Date()
|
|
|
- const end = new Date()
|
|
|
- start.setTime(start.getTime() - 3600 * 1000 * 24 * 1)
|
|
|
- end.setTime(end.getTime() - 3600 * 1000 * 24 * 1)
|
|
|
+ if (this.activeName == 'first') {
|
|
|
+ const start = new Date()
|
|
|
+ const end = new Date()
|
|
|
+ start.setTime(start.getTime() - 3600 * 1000 * 24 * 1)
|
|
|
+ end.setTime(end.getTime() - 3600 * 1000 * 24 * 1)
|
|
|
this.tab.table.getdataListParm.parammaps.inputDatetime = [start, end]
|
|
|
this.getTabList()
|
|
|
} else if (this.activeName == 'second') {
|
|
|
- console.log(this.pastureList)
|
|
|
- const start2 = new Date()
|
|
|
- const end2 = new Date()
|
|
|
- start2.setTime(start2.getTime() - 3600 * 1000 * 24 * 1)
|
|
|
- end2.setTime(end2.getTime() - 3600 * 1000 * 24 * 1)
|
|
|
+ console.log(this.pastureList)
|
|
|
+ const start2 = new Date()
|
|
|
+ const end2 = new Date()
|
|
|
+ start2.setTime(start2.getTime() - 3600 * 1000 * 24 * 1)
|
|
|
+ end2.setTime(end2.getTime() - 3600 * 1000 * 24 * 1)
|
|
|
this.tab2.table.getdataListParm.parammaps.inputDatetime = [start2, end2]
|
|
|
this.tab2.table.getdataListParm.parammaps.pastureid = this.pastureList[0].pastureid
|
|
|
this.getTab2List()
|
|
|
- } else if (this.activeName == 'third') {
|
|
|
- const start3 = new Date()
|
|
|
- const end3 = new Date()
|
|
|
- start3.setTime(start3.getTime() - 3600 * 1000 * 24 * 1)
|
|
|
- end3.setTime(end3.getTime() - 3600 * 1000 * 24 * 1)
|
|
|
+ } else if (this.activeName == 'third') {
|
|
|
+ const start3 = new Date()
|
|
|
+ const end3 = new Date()
|
|
|
+ start3.setTime(start3.getTime() - 3600 * 1000 * 24 * 1)
|
|
|
+ end3.setTime(end3.getTime() - 3600 * 1000 * 24 * 1)
|
|
|
this.tab3.table.getdataListParm.parammaps.inputDatetime = [start3, end3]
|
|
|
this.tab3.table.getdataListParm.parammaps.pastureid = this.pastureList[0].pastureid
|
|
|
this.getTab3List()
|
|
@@ -639,130 +639,130 @@ export default {
|
|
|
this.tab3.table.getdataListParm.offset = 1
|
|
|
this.getTab3List()
|
|
|
}
|
|
|
- },
|
|
|
-
|
|
|
- handleBefore() {
|
|
|
- if (this.tab.table.getdataListParm.parammaps.inputDatetime !== '' && this.tab.table.getdataListParm.parammaps.inputDatetime !== null) {
|
|
|
- var start = new Date(this.tab.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.tab.table.getdataListParm.parammaps.inputDatetime[0].getDate() - 1))
|
|
|
- var stop = new Date(this.tab.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.tab.table.getdataListParm.parammaps.inputDatetime[1].getDate() - 1))
|
|
|
- if (stop > Date.now() - 8.64e7) {
|
|
|
- this.Nextdisabled = true
|
|
|
- this.Beforedisabled = false
|
|
|
- } else {
|
|
|
- this.Nextdisabled = false
|
|
|
- this.Beforedisabled = false
|
|
|
- }
|
|
|
- this.tab.table.getdataListParm.parammaps.inputDatetime.length = 0
|
|
|
- this.tab.table.getdataListParm.parammaps.inputDatetime.push(start, stop)
|
|
|
- this.$forceUpdate()
|
|
|
- }
|
|
|
- this.tab.table.getdataListParm.parammaps.startTime = parseTime(this.tab.table.getdataListParm.parammaps.inputDatetime[0], '{y}-{m}-{d}')
|
|
|
- this.tab.table.getdataListParm.parammaps.stopTime = parseTime(this.tab.table.getdataListParm.parammaps.inputDatetime[1], '{y}-{m}-{d}')
|
|
|
- this.getTabList()
|
|
|
- },
|
|
|
- handleNext() {
|
|
|
- if (this.tab.table.getdataListParm.parammaps.inputDatetime !== '' && this.tab.table.getdataListParm.parammaps.inputDatetime !== null) {
|
|
|
- var start2 = new Date(this.tab.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.tab.table.getdataListParm.parammaps.inputDatetime[0].getDate() + 1))
|
|
|
- var stop2 = new Date(this.tab.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.tab.table.getdataListParm.parammaps.inputDatetime[1].getDate() + 1))
|
|
|
- if (stop2 > Date.now() - 8.64e7) {
|
|
|
- this.Nextdisabled = true
|
|
|
- this.Beforedisabled = false
|
|
|
- } else {
|
|
|
- this.Nextdisabled = false
|
|
|
- this.Beforedisabled = false
|
|
|
- }
|
|
|
- this.tab.table.getdataListParm.parammaps.inputDatetime.length = 0
|
|
|
- this.tab.table.getdataListParm.parammaps.inputDatetime.push(start2, stop2)
|
|
|
- this.$forceUpdate()
|
|
|
- }
|
|
|
- this.tab.table.getdataListParm.parammaps.startTime = parseTime(this.tab.table.getdataListParm.parammaps.inputDatetime[0], '{y}-{m}-{d}')
|
|
|
- this.tab.table.getdataListParm.parammaps.stopTime = parseTime(this.tab.table.getdataListParm.parammaps.inputDatetime[1], '{y}-{m}-{d}')
|
|
|
- this.getTabList()
|
|
|
- },
|
|
|
- handleBefore2() {
|
|
|
- if (this.tab2.table.getdataListParm.parammaps.inputDatetime !== '' && this.tab2.table.getdataListParm.parammaps.inputDatetime !== null) {
|
|
|
- var start3 = new Date(this.tab2.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.tab2.table.getdataListParm.parammaps.inputDatetime[0].getDate() - 1))
|
|
|
- var stop3 = new Date(this.tab2.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.tab2.table.getdataListParm.parammaps.inputDatetime[1].getDate() - 1))
|
|
|
- if (stop3 > Date.now() - 8.64e7) {
|
|
|
- this.Nextdisabled2 = true
|
|
|
- this.Beforedisabled2 = false
|
|
|
- } else {
|
|
|
- this.Nextdisabled2 = false
|
|
|
- this.Beforedisabled2 = false
|
|
|
- }
|
|
|
- this.tab2.table.getdataListParm.parammaps.inputDatetime.length = 0
|
|
|
- this.tab2.table.getdataListParm.parammaps.inputDatetime.push(start3, stop3)
|
|
|
- this.$forceUpdate()
|
|
|
- }
|
|
|
- this.tab2.table.getdataListParm.parammaps.startTime = parseTime(this.tab2.table.getdataListParm.parammaps.inputDatetime[0], '{y}-{m}-{d}')
|
|
|
- this.tab2.table.getdataListParm.parammaps.stopTime = parseTime(this.tab2.table.getdataListParm.parammaps.inputDatetime[1], '{y}-{m}-{d}')
|
|
|
- this.getTab2List()
|
|
|
- },
|
|
|
- handleNext2() {
|
|
|
- if (this.tab2.table.getdataListParm.parammaps.inputDatetime !== '' && this.tab2.table.getdataListParm.parammaps.inputDatetime !== null) {
|
|
|
- var start4 = new Date(this.tab2.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.tab2.table.getdataListParm.parammaps.inputDatetime[0].getDate() + 1))
|
|
|
- var stop4 = new Date(this.tab2.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.tab2.table.getdataListParm.parammaps.inputDatetime[1].getDate() + 1))
|
|
|
- if (stop4 > Date.now() - 8.64e7) {
|
|
|
- this.Nextdisabled2 = true
|
|
|
- this.Beforedisabled2 = false
|
|
|
- } else {
|
|
|
- this.Nextdisabled2 = false
|
|
|
- this.Beforedisabled2 = false
|
|
|
- }
|
|
|
- this.tab2.table.getdataListParm.parammaps.inputDatetime.length = 0
|
|
|
- this.tab2.table.getdataListParm.parammaps.inputDatetime.push(start4, stop4)
|
|
|
- this.$forceUpdate()
|
|
|
- }
|
|
|
- this.tab2.table.getdataListParm.parammaps.startTime = parseTime(this.tab2.table.getdataListParm.parammaps.inputDatetime[0], '{y}-{m}-{d}')
|
|
|
- this.tab2.table.getdataListParm.parammaps.stopTime = parseTime(this.tab2.table.getdataListParm.parammaps.inputDatetime[1], '{y}-{m}-{d}')
|
|
|
- this.getTab2List()
|
|
|
- },
|
|
|
- handleBefore3() {
|
|
|
- if (this.tab3.table.getdataListParm.parammaps.inputDatetime !== '' && this.tab3.table.getdataListParm.parammaps.inputDatetime !== null) {
|
|
|
- var start5 = new Date(this.tab3.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.tab3.table.getdataListParm.parammaps.inputDatetime[0].getDate() - 1))
|
|
|
- var stop5 = new Date(this.tab3.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.tab3.table.getdataListParm.parammaps.inputDatetime[1].getDate() - 1))
|
|
|
- if (stop5 > Date.now() - 8.64e7) {
|
|
|
- this.Nextdisabled3 = true
|
|
|
- this.Beforedisabled3 = false
|
|
|
- } else {
|
|
|
- this.Nextdisabled3 = false
|
|
|
- this.Beforedisabled3 = false
|
|
|
- }
|
|
|
- this.tab3.table.getdataListParm.parammaps.inputDatetime.length = 0
|
|
|
- this.tab3.table.getdataListParm.parammaps.inputDatetime.push(start5, stop5)
|
|
|
- this.$forceUpdate()
|
|
|
- }
|
|
|
- this.tab3.table.getdataListParm.parammaps.startTime = parseTime(this.tab3.table.getdataListParm.parammaps.inputDatetime[0], '{y}-{m}-{d}')
|
|
|
- this.tab3.table.getdataListParm.parammaps.stopTime = parseTime(this.tab3.table.getdataListParm.parammaps.inputDatetime[1], '{y}-{m}-{d}')
|
|
|
- this.getTab3List()
|
|
|
- },
|
|
|
- handleNext3() {
|
|
|
- if (this.tab3.table.getdataListParm.parammaps.inputDatetime !== '' && this.tab2.table.getdataListParm.parammaps.inputDatetime !== null) {
|
|
|
- var start6 = new Date(this.tab3.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.tab3.table.getdataListParm.parammaps.inputDatetime[0].getDate() + 1))
|
|
|
- var stop6 = new Date(this.tab3.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.tab3.table.getdataListParm.parammaps.inputDatetime[1].getDate() + 1))
|
|
|
- if (stop6 > Date.now() - 8.64e7) {
|
|
|
- this.Nextdisabled3 = true
|
|
|
- this.Beforedisabled3 = false
|
|
|
- } else {
|
|
|
- this.Nextdisabled3 = false
|
|
|
- this.Beforedisabled3 = false
|
|
|
- }
|
|
|
- this.tab3.table.getdataListParm.parammaps.inputDatetime.length = 0
|
|
|
- this.tab3.table.getdataListParm.parammaps.inputDatetime.push(start6, stop6)
|
|
|
- this.$forceUpdate()
|
|
|
- }
|
|
|
- this.tab3.table.getdataListParm.parammaps.startTime = parseTime(this.tab3.table.getdataListParm.parammaps.inputDatetime[0], '{y}-{m}-{d}')
|
|
|
- this.tab3.table.getdataListParm.parammaps.stopTime = parseTime(this.tab3.table.getdataListParm.parammaps.inputDatetime[1], '{y}-{m}-{d}')
|
|
|
- this.getTab3List()
|
|
|
+ },
|
|
|
+
|
|
|
+ handleBefore() {
|
|
|
+ if (this.tab.table.getdataListParm.parammaps.inputDatetime !== '' && this.tab.table.getdataListParm.parammaps.inputDatetime !== null) {
|
|
|
+ var start = new Date(this.tab.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.tab.table.getdataListParm.parammaps.inputDatetime[0].getDate() - 1))
|
|
|
+ var stop = new Date(this.tab.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.tab.table.getdataListParm.parammaps.inputDatetime[1].getDate() - 1))
|
|
|
+ if (stop > Date.now() - 8.64e7) {
|
|
|
+ this.Nextdisabled = true
|
|
|
+ this.Beforedisabled = false
|
|
|
+ } else {
|
|
|
+ this.Nextdisabled = false
|
|
|
+ this.Beforedisabled = false
|
|
|
+ }
|
|
|
+ this.tab.table.getdataListParm.parammaps.inputDatetime.length = 0
|
|
|
+ this.tab.table.getdataListParm.parammaps.inputDatetime.push(start, stop)
|
|
|
+ this.$forceUpdate()
|
|
|
+ }
|
|
|
+ this.tab.table.getdataListParm.parammaps.startTime = parseTime(this.tab.table.getdataListParm.parammaps.inputDatetime[0], '{y}-{m}-{d}')
|
|
|
+ this.tab.table.getdataListParm.parammaps.stopTime = parseTime(this.tab.table.getdataListParm.parammaps.inputDatetime[1], '{y}-{m}-{d}')
|
|
|
+ this.getTabList()
|
|
|
+ },
|
|
|
+ handleNext() {
|
|
|
+ if (this.tab.table.getdataListParm.parammaps.inputDatetime !== '' && this.tab.table.getdataListParm.parammaps.inputDatetime !== null) {
|
|
|
+ var start2 = new Date(this.tab.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.tab.table.getdataListParm.parammaps.inputDatetime[0].getDate() + 1))
|
|
|
+ var stop2 = new Date(this.tab.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.tab.table.getdataListParm.parammaps.inputDatetime[1].getDate() + 1))
|
|
|
+ if (stop2 > Date.now() - 8.64e7) {
|
|
|
+ this.Nextdisabled = true
|
|
|
+ this.Beforedisabled = false
|
|
|
+ } else {
|
|
|
+ this.Nextdisabled = false
|
|
|
+ this.Beforedisabled = false
|
|
|
+ }
|
|
|
+ this.tab.table.getdataListParm.parammaps.inputDatetime.length = 0
|
|
|
+ this.tab.table.getdataListParm.parammaps.inputDatetime.push(start2, stop2)
|
|
|
+ this.$forceUpdate()
|
|
|
+ }
|
|
|
+ this.tab.table.getdataListParm.parammaps.startTime = parseTime(this.tab.table.getdataListParm.parammaps.inputDatetime[0], '{y}-{m}-{d}')
|
|
|
+ this.tab.table.getdataListParm.parammaps.stopTime = parseTime(this.tab.table.getdataListParm.parammaps.inputDatetime[1], '{y}-{m}-{d}')
|
|
|
+ this.getTabList()
|
|
|
+ },
|
|
|
+ handleBefore2() {
|
|
|
+ if (this.tab2.table.getdataListParm.parammaps.inputDatetime !== '' && this.tab2.table.getdataListParm.parammaps.inputDatetime !== null) {
|
|
|
+ var start3 = new Date(this.tab2.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.tab2.table.getdataListParm.parammaps.inputDatetime[0].getDate() - 1))
|
|
|
+ var stop3 = new Date(this.tab2.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.tab2.table.getdataListParm.parammaps.inputDatetime[1].getDate() - 1))
|
|
|
+ if (stop3 > Date.now() - 8.64e7) {
|
|
|
+ this.Nextdisabled2 = true
|
|
|
+ this.Beforedisabled2 = false
|
|
|
+ } else {
|
|
|
+ this.Nextdisabled2 = false
|
|
|
+ this.Beforedisabled2 = false
|
|
|
+ }
|
|
|
+ this.tab2.table.getdataListParm.parammaps.inputDatetime.length = 0
|
|
|
+ this.tab2.table.getdataListParm.parammaps.inputDatetime.push(start3, stop3)
|
|
|
+ this.$forceUpdate()
|
|
|
+ }
|
|
|
+ this.tab2.table.getdataListParm.parammaps.startTime = parseTime(this.tab2.table.getdataListParm.parammaps.inputDatetime[0], '{y}-{m}-{d}')
|
|
|
+ this.tab2.table.getdataListParm.parammaps.stopTime = parseTime(this.tab2.table.getdataListParm.parammaps.inputDatetime[1], '{y}-{m}-{d}')
|
|
|
+ this.getTab2List()
|
|
|
+ },
|
|
|
+ handleNext2() {
|
|
|
+ if (this.tab2.table.getdataListParm.parammaps.inputDatetime !== '' && this.tab2.table.getdataListParm.parammaps.inputDatetime !== null) {
|
|
|
+ var start4 = new Date(this.tab2.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.tab2.table.getdataListParm.parammaps.inputDatetime[0].getDate() + 1))
|
|
|
+ var stop4 = new Date(this.tab2.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.tab2.table.getdataListParm.parammaps.inputDatetime[1].getDate() + 1))
|
|
|
+ if (stop4 > Date.now() - 8.64e7) {
|
|
|
+ this.Nextdisabled2 = true
|
|
|
+ this.Beforedisabled2 = false
|
|
|
+ } else {
|
|
|
+ this.Nextdisabled2 = false
|
|
|
+ this.Beforedisabled2 = false
|
|
|
+ }
|
|
|
+ this.tab2.table.getdataListParm.parammaps.inputDatetime.length = 0
|
|
|
+ this.tab2.table.getdataListParm.parammaps.inputDatetime.push(start4, stop4)
|
|
|
+ this.$forceUpdate()
|
|
|
+ }
|
|
|
+ this.tab2.table.getdataListParm.parammaps.startTime = parseTime(this.tab2.table.getdataListParm.parammaps.inputDatetime[0], '{y}-{m}-{d}')
|
|
|
+ this.tab2.table.getdataListParm.parammaps.stopTime = parseTime(this.tab2.table.getdataListParm.parammaps.inputDatetime[1], '{y}-{m}-{d}')
|
|
|
+ this.getTab2List()
|
|
|
+ },
|
|
|
+ handleBefore3() {
|
|
|
+ if (this.tab3.table.getdataListParm.parammaps.inputDatetime !== '' && this.tab3.table.getdataListParm.parammaps.inputDatetime !== null) {
|
|
|
+ var start5 = new Date(this.tab3.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.tab3.table.getdataListParm.parammaps.inputDatetime[0].getDate() - 1))
|
|
|
+ var stop5 = new Date(this.tab3.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.tab3.table.getdataListParm.parammaps.inputDatetime[1].getDate() - 1))
|
|
|
+ if (stop5 > Date.now() - 8.64e7) {
|
|
|
+ this.Nextdisabled3 = true
|
|
|
+ this.Beforedisabled3 = false
|
|
|
+ } else {
|
|
|
+ this.Nextdisabled3 = false
|
|
|
+ this.Beforedisabled3 = false
|
|
|
+ }
|
|
|
+ this.tab3.table.getdataListParm.parammaps.inputDatetime.length = 0
|
|
|
+ this.tab3.table.getdataListParm.parammaps.inputDatetime.push(start5, stop5)
|
|
|
+ this.$forceUpdate()
|
|
|
+ }
|
|
|
+ this.tab3.table.getdataListParm.parammaps.startTime = parseTime(this.tab3.table.getdataListParm.parammaps.inputDatetime[0], '{y}-{m}-{d}')
|
|
|
+ this.tab3.table.getdataListParm.parammaps.stopTime = parseTime(this.tab3.table.getdataListParm.parammaps.inputDatetime[1], '{y}-{m}-{d}')
|
|
|
+ this.getTab3List()
|
|
|
+ },
|
|
|
+ handleNext3() {
|
|
|
+ if (this.tab3.table.getdataListParm.parammaps.inputDatetime !== '' && this.tab2.table.getdataListParm.parammaps.inputDatetime !== null) {
|
|
|
+ var start6 = new Date(this.tab3.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.tab3.table.getdataListParm.parammaps.inputDatetime[0].getDate() + 1))
|
|
|
+ var stop6 = new Date(this.tab3.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.tab3.table.getdataListParm.parammaps.inputDatetime[1].getDate() + 1))
|
|
|
+ if (stop6 > Date.now() - 8.64e7) {
|
|
|
+ this.Nextdisabled3 = true
|
|
|
+ this.Beforedisabled3 = false
|
|
|
+ } else {
|
|
|
+ this.Nextdisabled3 = false
|
|
|
+ this.Beforedisabled3 = false
|
|
|
+ }
|
|
|
+ this.tab3.table.getdataListParm.parammaps.inputDatetime.length = 0
|
|
|
+ this.tab3.table.getdataListParm.parammaps.inputDatetime.push(start6, stop6)
|
|
|
+ this.$forceUpdate()
|
|
|
+ }
|
|
|
+ this.tab3.table.getdataListParm.parammaps.startTime = parseTime(this.tab3.table.getdataListParm.parammaps.inputDatetime[0], '{y}-{m}-{d}')
|
|
|
+ this.tab3.table.getdataListParm.parammaps.stopTime = parseTime(this.tab3.table.getdataListParm.parammaps.inputDatetime[1], '{y}-{m}-{d}')
|
|
|
+ this.getTab3List()
|
|
|
}
|
|
|
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
- .search{
|
|
|
- margin-bottom:10px;
|
|
|
- .el-radio{margin-right: 10px;}
|
|
|
- .filter-item1{margin-top: 10px;}
|
|
|
+ .search{
|
|
|
+ margin-bottom:10px;
|
|
|
+ .el-radio{margin-right: 10px;}
|
|
|
+ .filter-item1{margin-top: 10px;}
|
|
|
}
|
|
|
</style>
|