作者 朱兆平

进出港统计分析部分

... ... @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<title>易通快速通关申报管理系统</title>
<title>货运统计分析管理系统</title>
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
</head>
... ...
... ... @@ -81,7 +81,7 @@
},
data() {
return {
sysName:'易通快速通关申报管理系统',
sysName:'货运统计分析管理系统',
collapsed:false,
sysUserName: '',
sysUserAvatar: '',
... ...
... ... @@ -15,8 +15,13 @@
></el-date-picker>
</el-form-item>
<el-form-item>
<el-button :loading="downloadLoading" style="margin:0 0 20px 20px;" type="primary" icon="document" @click="fetchData">查询</el-button>
<el-button :loading="listLoading" style="margin:0 0 20px 20px;" type="primary" icon="document" @click="fetchData">查询</el-button>
</el-form-item>
<el-tag
:key="note.message"
:type="note.type">
{{note.message}}
</el-tag>
</el-form>
</el-col>
<div>
... ... @@ -26,7 +31,7 @@
<el-button :loading="downloadLoading" style="margin:0 0 20px 20px;" type="primary" icon="document" @click="handleDownload">导出 Excel</el-button>
</div>
<el-table v-loading="listLoading" :data="list" element-loading-text="拼命加载中" border fit highlight-current-row>
<el-table v-loading="listLoading" element-loading-text="拼命加载中" border fit highlight-current-row>
<el-table-column align="center" label="Id" width="95">
<template slot-scope="scope">
{{ scope.$index }}
... ... @@ -81,6 +86,10 @@ export default {
searchText: {
startdate: undefined,
enddate: undefined
},
note: {
type: 'info',
message: ''
}
}
... ... @@ -101,6 +110,12 @@ export default {
getAnalysisList(this.searchText).then(response => {
this.list = response.data.data
this.listLoading = false
this.$message({
message: '数据查询成功,可以下载excel',
type: 'success'
});
this.note.message = '数据查询成功,可以下载excel;共'+this.list.length+'条数据';
this.note.type = 'success';
})
},
handleDownload() {
... ...