...
|
...
|
@@ -27,7 +27,7 @@ |
|
|
</el-table-column>
|
|
|
<el-table-column label="航班日期" width="100px" align="center" sortable>
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.flightDate | parseTime('{y}-{m}-{d}') }}</span>
|
|
|
<span>{{ scope.row.flightDate }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="起始站" width="60px" align="center">
|
...
|
...
|
@@ -63,7 +63,7 @@ |
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column :label="$t('table.actions')" align="center" class-name="small-padding fixed-width">
|
|
|
<el-table-column :label="$t('table.actions')" align="center" class-name="small-padding fixed-width" >
|
|
|
<template slot-scope="scope">
|
|
|
<el-button type="primary" size="small" @click="handleUpdate(scope.row)">快速编辑</el-button>
|
|
|
<el-button type="primary" size="mini" @click="handleUpdate(scope.row)">{{ $t('table.edit') }}</el-button>
|
...
|
...
|
@@ -80,7 +80,7 @@ |
|
|
<pagination v-show="total>0" :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />
|
|
|
|
|
|
<el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible" fullscreen="true">
|
|
|
<el-form ref="" :inline="true" label-position="left" :rules="rules" :model="temp" label-width="100px" style="font-size: 13px">
|
|
|
<el-form ref="" :inline="true" :rules="rules" :model="temp" label-width="100px" style="font-size: 13px">
|
|
|
<div>
|
|
|
<el-tag type="info" effect="plain">
|
|
|
航班信息
|
...
|
...
|
@@ -350,17 +350,16 @@ |
|
|
Auth: Lei.j1ang
|
|
|
Created: 2018/1/19-14:54
|
|
|
*/
|
|
|
import { fetchList } from '@/api/article'
|
|
|
|
|
|
import treeTable from '@/components/TreeTable'
|
|
|
import treeToArray from './customEval'
|
|
|
import treeToArray from '@/utils/customEval'
|
|
|
import Pagination from '@/components/Pagination'
|
|
|
import waves from '@/directive/waves' // Waves directive
|
|
|
import country from '@/utils/country.js'
|
|
|
import companyType from '@/utils/companyType.js'
|
|
|
import dangerGoods from '@/utils/dangerGoods.js'
|
|
|
import goodsPackage from '@/utils/goodsPackage.js'
|
|
|
import excel from '@/vendor/Export2Excel'
|
|
|
import { parseTime } from '@/utils'
|
|
|
|
|
|
const calendarTypeOptions = [
|
|
|
{ key: 'CN', display_name: 'China' },
|
|
|
{ key: 'US', display_name: 'USA' },
|
...
|
...
|
@@ -405,9 +404,9 @@ export default { |
|
|
expandAll: true,
|
|
|
total: 1,
|
|
|
resend: true,
|
|
|
listLoading: false,
|
|
|
downloadLoading: false,
|
|
|
loading: false,
|
|
|
loading:false,
|
|
|
listLoading: true,
|
|
|
downloadLoading:false,
|
|
|
multipleSelection: [],
|
|
|
dialogFormVisible: false,
|
|
|
dialogStatus: '',
|
...
|
...
|
@@ -520,7 +519,7 @@ export default { |
|
|
]
|
|
|
},
|
|
|
{
|
|
|
id: 5,
|
|
|
id: 4,
|
|
|
waybillNo: '580-20728391',
|
|
|
houseWaybillNo: '',
|
|
|
custom: '4604',
|
...
|
...
|
@@ -599,6 +598,15 @@ export default { |
|
|
}
|
|
|
this.handleFilter()
|
|
|
},
|
|
|
handleFilter(){
|
|
|
|
|
|
},
|
|
|
handleSwitch(row){
|
|
|
|
|
|
},
|
|
|
handleDownload(){
|
|
|
this.downloadLoading = true
|
|
|
},
|
|
|
handleUpdate(row) {
|
|
|
this.temp = Object.assign({}, row) // copy obj
|
|
|
this.temp.timestamp = new Date(this.temp.timestamp)
|
...
|
...
|
@@ -608,10 +616,6 @@ export default { |
|
|
this.$refs[''].clearValidate()
|
|
|
})
|
|
|
},
|
|
|
handleFilter() {
|
|
|
this.listQuery.page = 1
|
|
|
this.getList()
|
|
|
},
|
|
|
handleModifyStatus(row, status) {
|
|
|
this.$message({
|
|
|
message: '操作成功',
|
...
|
...
|
@@ -620,16 +624,7 @@ export default { |
|
|
row.status = status
|
|
|
},
|
|
|
getList() {
|
|
|
this.listLoading = true
|
|
|
fetchList(this.listQuery).then(response => {
|
|
|
this.list = response.data.items
|
|
|
this.total = response.data.total
|
|
|
|
|
|
// Just to simulate the time of the request
|
|
|
setTimeout(() => {
|
|
|
this.listLoading = false
|
|
|
}, 1.5 * 1000)
|
|
|
})
|
|
|
},
|
|
|
handleSelectionChange(val) {
|
|
|
this.multipleSelection = val
|
...
|
...
|
@@ -656,18 +651,6 @@ export default { |
|
|
this.$refs[''].clearValidate()
|
|
|
})
|
|
|
},
|
|
|
handleDownload() {
|
|
|
this.downloadLoading = true
|
|
|
const tHeader = ['timestamp', 'title', 'type', 'importance', 'status']
|
|
|
const filterVal = ['timestamp', 'title', 'type', 'importance', 'status']
|
|
|
const data = this.formatJson(filterVal, this.list)
|
|
|
excel.export_json_to_excel({
|
|
|
header: tHeader,
|
|
|
data,
|
|
|
filename: 'table-list'
|
|
|
})
|
|
|
this.downloadLoading = false
|
|
|
},
|
|
|
remoteMethod(query) {
|
|
|
if (query !== '') {
|
|
|
this.loading = true
|
...
|
...
|
|