...
|
...
|
@@ -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() {
|
...
|
...
|
|