|
@@ -38,7 +38,7 @@
|
|
|
<div class="manageTitle">{{ title2 }}</div>
|
|
|
<div class="upload-header-right">
|
|
|
<el-date-picker v-model="flightDate" size="small" type="daterange" value-format="yyyy-MM-dd" start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="dateRangePickerOptions" :clearable="false" />
|
|
|
- <el-button class="btn-refresh" type="primary" icon="el-icon-refresh" @click="getTableData" />
|
|
|
+ <el-button class="btn-refresh" type="primary" icon="el-icon-refresh" @click="getStateData" />
|
|
|
</div>
|
|
|
</header>
|
|
|
<main class="upload-main">
|
|
@@ -101,7 +101,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { parseTime } from '@/utils'
|
|
|
-import { UploadFile, WhatQuery, stateQuery } from '@/api/temp'
|
|
|
+import { UploadFile, WhatQuery } from '@/api/temp'
|
|
|
import NoData from '@/components/nodata/index.vue'
|
|
|
|
|
|
const acceptTypes = ['xlsx', 'xls']
|
|
@@ -202,15 +202,15 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- watch: {
|
|
|
- flightDate: {
|
|
|
- handler () {
|
|
|
- this.getTableData()
|
|
|
- },
|
|
|
- deep: true,
|
|
|
- immediate: true,
|
|
|
- },
|
|
|
- },
|
|
|
+ // watch: {
|
|
|
+ // flightDate: {
|
|
|
+ // handler () {
|
|
|
+ // this.getTableData()
|
|
|
+ // },
|
|
|
+ // deep: true,
|
|
|
+ // immediate: true,
|
|
|
+ // },
|
|
|
+ // },
|
|
|
created () {
|
|
|
this.getStateData()
|
|
|
},
|
|
@@ -297,6 +297,7 @@ export default {
|
|
|
}
|
|
|
this.$message.success(`${file.name} 上传成功`)
|
|
|
this.setState(file, 1)
|
|
|
+ this.getStateData()
|
|
|
} catch (error) {
|
|
|
this.$message.error(`${file.name} 上传失败`)
|
|
|
this.setState(file, 2)
|
|
@@ -341,7 +342,7 @@ export default {
|
|
|
const {
|
|
|
code,
|
|
|
returnData: { listValues },
|
|
|
- } = await stateQuery({
|
|
|
+ } = await WhatQuery({
|
|
|
id: SERVICE_ID.expressTransportation,
|
|
|
dataContent: cid ? [cid] : dataContent,
|
|
|
})
|
|
@@ -360,7 +361,7 @@ export default {
|
|
|
const {
|
|
|
code,
|
|
|
returnData: { listValues },
|
|
|
- } = await stateQuery({
|
|
|
+ } = await WhatQuery({
|
|
|
id: SERVICE_ID.expressTransportationNum,
|
|
|
dataContent: [],
|
|
|
})
|