|
|
@ -16,7 +16,7 @@ |
|
|
|
@change="onChange" |
|
|
|
/> |
|
|
|
<span class="ml-3">平车:</span> |
|
|
|
<a-select style="width: 120px" :default-value="1" @change="handleChangeCar" placeholder="全部"> |
|
|
|
<a-select style="width: 120px" :default-value="2" @change="handleChangeCar" placeholder="全部"> |
|
|
|
<a-select-option v-for="item in carList" :value="item.carId" :key="item.carId"> {{ item.name }} </a-select-option> |
|
|
|
</a-select> |
|
|
|
<span class="ml-3">类型:</span> |
|
|
@ -35,7 +35,7 @@ export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
timeObj: { |
|
|
|
carId: 1, |
|
|
|
carId: 2, |
|
|
|
startTime: this.$moment(Date.parse(new Date()) - 3600 * 24 * 1000).format('YYYY-MM-DD'), |
|
|
|
types: [1, 2], |
|
|
|
endTime: this.$moment(Date.parse(new Date())).format('YYYY-MM-DD'), |
|
|
@ -59,11 +59,11 @@ export default { |
|
|
|
carList: [ |
|
|
|
{ |
|
|
|
carId: 1, |
|
|
|
name: '91', |
|
|
|
name: 'V1.0', |
|
|
|
}, |
|
|
|
{ |
|
|
|
carId: 2, |
|
|
|
name: '92', |
|
|
|
name: 'V2.0', |
|
|
|
}, |
|
|
|
], |
|
|
|
btnObj: null, |
|
|
@ -129,9 +129,10 @@ export default { |
|
|
|
// startTime=${this.btnObj.startTime}&&endTime=${this.btnObj.endTime} |
|
|
|
// &&types=${this.btnObj.types[0]}&&types=${this.btnObj.types[1]}`); |
|
|
|
window.open( |
|
|
|
`https://www.tall.wiki/gateway/wisdomcar/record/weightExport?startTime=` + |
|
|
|
`https://www.tall.wiki/gateway/qcp/v3.0/record/weightExport?startTime=` + |
|
|
|
`${this.btnObj.startTime}&&endTime=${this.btnObj.endTime}&&types=` + |
|
|
|
`${this.btnObj.types[0]}&&types=${this.btnObj.types[1]}`, |
|
|
|
`${this.btnObj.types[0]}&&types=${this.btnObj.types[1]}&&carId=` + |
|
|
|
`${this.btnObj.carId}`, |
|
|
|
); |
|
|
|
// window.open( |
|
|
|
// `http://www.tall.wiki/gateway/wisdomcar/record/weightExport?startTime=161 |
|
|
@ -139,8 +140,8 @@ export default { |
|
|
|
// ); |
|
|
|
} else { |
|
|
|
window.open( |
|
|
|
`https://www.tall.wiki/gateway/wisdomcar/record/weightExport?startTime` + |
|
|
|
`=${this.btnObj.startTime}&&endTime=${this.btnObj.endTime}&&types=${this.btnObj.types[0]}`, |
|
|
|
`https://www.tall.wiki/gateway/qcp/v3.0/record/weightExport?startTime` + |
|
|
|
`=${this.btnObj.startTime}&&endTime=${this.btnObj.endTime}&&types=${this.btnObj.types[0]}]}&&carId=${this.btnObj.carId}`, |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|