|
@@ -1,10 +1,5 @@
|
|
|
<template>
|
|
|
- <CommonBarStatisticsCharts
|
|
|
- charts-title="工作量"
|
|
|
- :query-settings="querySettings"
|
|
|
- :form-data="formData"
|
|
|
- :form-items="formItems"
|
|
|
- />
|
|
|
+ <CommonBarStatisticsCharts charts-title="工作量" :query-settings="querySettings" :form-data="formData" :form-items="formItems" />
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
@@ -15,7 +10,7 @@ import { parseTime } from '@/utils'
|
|
|
export default {
|
|
|
name: 'WorkloadStatisticsCharts',
|
|
|
components: { CommonBarStatisticsCharts },
|
|
|
- data() {
|
|
|
+ data () {
|
|
|
const that = this
|
|
|
return {
|
|
|
querySettings: {
|
|
@@ -49,7 +44,7 @@ export default {
|
|
|
label: '按年统计',
|
|
|
},
|
|
|
],
|
|
|
- changeHandler(value, oldValue) {
|
|
|
+ changeHandler (value, oldValue) {
|
|
|
const typeMap = {
|
|
|
日: 'datePicker',
|
|
|
月: 'monthPicker',
|
|
@@ -69,12 +64,10 @@ export default {
|
|
|
}
|
|
|
if (value === '月') {
|
|
|
if (oldValue === '年') {
|
|
|
- this.formData.dateTime[0] = `${
|
|
|
- dateTime[0].split('-')[0]
|
|
|
- }-01`
|
|
|
- this.formData.dateTime[1] = `${
|
|
|
- dateTime[1].split('-')[0]
|
|
|
- }-12`
|
|
|
+ this.formData.dateTime[0] = `${dateTime[0].split('-')[0]
|
|
|
+ }-01`
|
|
|
+ this.formData.dateTime[1] = `${dateTime[1].split('-')[0]
|
|
|
+ }-12`
|
|
|
}
|
|
|
if (oldValue === '日') {
|
|
|
this.formData.dateTime[0] = dateTime[0]
|
|
@@ -89,12 +82,10 @@ export default {
|
|
|
}
|
|
|
if (value === '日') {
|
|
|
if (oldValue === '年') {
|
|
|
- this.formData.dateTime[0] = `${
|
|
|
- dateTime[0].split('-')[0]
|
|
|
- }-01-01`
|
|
|
- this.formData.dateTime[1] = `${
|
|
|
- dateTime[1].split('-')[0]
|
|
|
- }-12-31`
|
|
|
+ this.formData.dateTime[0] = `${dateTime[0].split('-')[0]
|
|
|
+ }-01-01`
|
|
|
+ this.formData.dateTime[1] = `${dateTime[1].split('-')[0]
|
|
|
+ }-12-31`
|
|
|
}
|
|
|
if (oldValue === '月') {
|
|
|
this.formData.dateTime[0] = `${dateTime[0]
|
|
@@ -128,7 +119,7 @@ export default {
|
|
|
setKey: 'code3',
|
|
|
requiredWarning: '请先选择航站',
|
|
|
options: [],
|
|
|
- changeHandler(value) {
|
|
|
+ changeHandler (value) {
|
|
|
that.agent_number = ''
|
|
|
that.getAgentOptions(value)
|
|
|
},
|
|
@@ -138,6 +129,7 @@ export default {
|
|
|
inputType: 'select',
|
|
|
placeholder: '操作人',
|
|
|
requiredWarning: '请先选择操作人',
|
|
|
+ filterable: true,
|
|
|
options: [],
|
|
|
},
|
|
|
{
|
|
@@ -150,7 +142,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- async getAgentOptions(airport) {
|
|
|
+ async getAgentOptions (airport) {
|
|
|
try {
|
|
|
const { code, returnData, message } = await Query({
|
|
|
serviceId: SERVICE_ID.agentCode,
|