|
@@ -15,8 +15,13 @@ |
|
@@ -15,8 +15,13 @@ |
15
|
></el-date-picker>
|
15
|
></el-date-picker>
|
16
|
</el-form-item>
|
16
|
</el-form-item>
|
17
|
<el-form-item>
|
17
|
<el-form-item>
|
18
|
- <el-button :loading="downloadLoading" style="margin:0 0 20px 20px;" type="primary" icon="document" @click="fetchData">查询</el-button>
|
18
|
+ <el-button :loading="listLoading" style="margin:0 0 20px 20px;" type="primary" icon="document" @click="fetchData">查询</el-button>
|
19
|
</el-form-item>
|
19
|
</el-form-item>
|
|
|
20
|
+ <el-tag
|
|
|
21
|
+ :key="note.message"
|
|
|
22
|
+ :type="note.type">
|
|
|
23
|
+ {{note.message}}
|
|
|
24
|
+ </el-tag>
|
20
|
</el-form>
|
25
|
</el-form>
|
21
|
</el-col>
|
26
|
</el-col>
|
22
|
<div>
|
27
|
<div>
|
|
@@ -26,7 +31,7 @@ |
|
@@ -26,7 +31,7 @@ |
26
|
<el-button :loading="downloadLoading" style="margin:0 0 20px 20px;" type="primary" icon="document" @click="handleDownload">导出 Excel</el-button>
|
31
|
<el-button :loading="downloadLoading" style="margin:0 0 20px 20px;" type="primary" icon="document" @click="handleDownload">导出 Excel</el-button>
|
27
|
</div>
|
32
|
</div>
|
28
|
|
33
|
|
29
|
- <el-table v-loading="listLoading" :data="list" element-loading-text="拼命加载中" border fit highlight-current-row>
|
34
|
+ <el-table v-loading="listLoading" element-loading-text="拼命加载中" border fit highlight-current-row>
|
30
|
<el-table-column align="center" label="Id" width="95">
|
35
|
<el-table-column align="center" label="Id" width="95">
|
31
|
<template slot-scope="scope">
|
36
|
<template slot-scope="scope">
|
32
|
{{ scope.$index }}
|
37
|
{{ scope.$index }}
|
|
@@ -81,6 +86,10 @@ export default { |
|
@@ -81,6 +86,10 @@ export default { |
81
|
searchText: {
|
86
|
searchText: {
|
82
|
startdate: undefined,
|
87
|
startdate: undefined,
|
83
|
enddate: undefined
|
88
|
enddate: undefined
|
|
|
89
|
+ },
|
|
|
90
|
+ note: {
|
|
|
91
|
+ type: 'info',
|
|
|
92
|
+ message: ''
|
84
|
}
|
93
|
}
|
85
|
|
94
|
|
86
|
}
|
95
|
}
|
|
@@ -101,6 +110,12 @@ export default { |
|
@@ -101,6 +110,12 @@ export default { |
101
|
getAnalysisList(this.searchText).then(response => {
|
110
|
getAnalysisList(this.searchText).then(response => {
|
102
|
this.list = response.data.data
|
111
|
this.list = response.data.data
|
103
|
this.listLoading = false
|
112
|
this.listLoading = false
|
|
|
113
|
+ this.$message({
|
|
|
114
|
+ message: '数据查询成功,可以下载excel',
|
|
|
115
|
+ type: 'success'
|
|
|
116
|
+ });
|
|
|
117
|
+ this.note.message = '数据查询成功,可以下载excel;共'+this.list.length+'条数据';
|
|
|
118
|
+ this.note.type = 'success';
|
104
|
})
|
119
|
})
|
105
|
},
|
120
|
},
|
106
|
handleDownload() {
|
121
|
handleDownload() {
|