|
@@ -10,7 +10,7 @@
|
|
|
width="800px"
|
|
|
tableHeight="750"
|
|
|
/> -->
|
|
|
- <Tableformbrs :data-id="dataId" upid="8" :textShow="textShow" :isloadings="isloadings" :data-content="dataContent" :rows="12" label-width="140px" :min-height="70" width="800px" tableHeight="750"/>
|
|
|
+ <Tableformbrs :data-id="dataId" upid="8" :textShow="textShow" :isloadings="isloadings" :data-content="dataContent" :rows="12" label-width="140px" :min-height="70" width="800px" tableHeight="750" />
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -18,7 +18,7 @@ import StatisticsHeader from '../../components/statisticsHeader.vue'
|
|
|
// import Tableformcp from "../../components/tableformcp";
|
|
|
import Tableformbrs from '../../components/tableformbrs'
|
|
|
import TableDialog from '../../components/TableDialog.vue'
|
|
|
-import { Format } from '@/utils/validate'
|
|
|
+import { parseTime } from '@/utils/index'
|
|
|
export default {
|
|
|
name: 'ReportStatistics',
|
|
|
data () {
|
|
@@ -30,10 +30,11 @@ export default {
|
|
|
company: '',
|
|
|
timedim: '',
|
|
|
trd: [],
|
|
|
+ di_type: ''
|
|
|
},
|
|
|
isloadings: 1,
|
|
|
dataContent: [],
|
|
|
- dataId: SERVICE_ID.baggageServicePercentage,
|
|
|
+ dataId: SERVICE_ID.precentTableID,
|
|
|
formItems: [
|
|
|
{
|
|
|
prop: 'dateTime',
|
|
@@ -42,6 +43,27 @@ export default {
|
|
|
width: '240px',
|
|
|
options: [],
|
|
|
},
|
|
|
+ {
|
|
|
+ prop: 'di_type',
|
|
|
+ inputType: 'select',
|
|
|
+ placeholder: '国内国际',
|
|
|
+ requiredWarning: '请先选择国内国际',
|
|
|
+ clearable: true,
|
|
|
+ options: [
|
|
|
+ {
|
|
|
+ value: '全部',
|
|
|
+ label: '全部',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: '国内',
|
|
|
+ label: '国内',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: '国际',
|
|
|
+ label: '国际',
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
],
|
|
|
dialogFlag: false,
|
|
|
dialogTitle: '',
|
|
@@ -55,18 +77,25 @@ export default {
|
|
|
TableDialog,
|
|
|
},
|
|
|
mounted () {
|
|
|
- this.dataContent = [
|
|
|
- this.formData.dateTime[0] || Format('yyyy-MM-dd', new Date()),
|
|
|
- this.formData.dateTime[1] || Format('yyyy-MM-dd', new Date()),
|
|
|
- ]
|
|
|
+ const defaultTime = new Date().getTime() - 24 * 60 * 60 * 1000
|
|
|
+ const defaultTimeFormat = parseTime(defaultTime, '{y}-{m}-{d}')
|
|
|
+ this.formData.dateTime[0] = defaultTimeFormat
|
|
|
+ this.formData.dateTime[1] = parseTime(new Date(), '{y}-{m}-{d}')
|
|
|
+ this.formData.di_type = '全部'
|
|
|
+ this.dataContent = {
|
|
|
+ fd1: this.formData.dateTime[0] || defaultTimeFormat,
|
|
|
+ fd2: this.formData.dateTime[1] || parseTime(new Date(), '{y}-{m}-{d}'),
|
|
|
+ di_type: this.formData.di_type || '全部'
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
getFormData (data) {
|
|
|
this.textShow = data.trd
|
|
|
- this.dataContent = [
|
|
|
- data.dateTime[0],
|
|
|
- data.dateTime[1]
|
|
|
- ]
|
|
|
+ this.dataContent = {
|
|
|
+ fd1: data.dateTime[0],
|
|
|
+ fd2: data.dateTime[1],
|
|
|
+ di_type: data.di_type
|
|
|
+ }
|
|
|
},
|
|
|
exportup () {
|
|
|
this.isloadings = this.isloadings += 1
|
|
@@ -79,8 +108,8 @@ export default {
|
|
|
) {
|
|
|
const queryParams = [
|
|
|
this.formData.airport || 'PEK',
|
|
|
- row.fd || Format('yyyy-MM-dd', new Date()),
|
|
|
- row.fd || Format('yyyy-MM-dd', new Date()),
|
|
|
+ row.fd || parseTime(new Date(), '{y}-{m}-{d'),
|
|
|
+ row.fd || parseTime(new Date(), '{y}-{m}-{d'),
|
|
|
...Array(4).fill(this.formData.company?.join(',') || '国航'),
|
|
|
]
|
|
|
const flow = column.property
|