File tree Expand file tree Collapse file tree 6 files changed +12
-10
lines changed Expand file tree Collapse file tree 6 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 1111 </el-radio-group >
1212 <el-button style =' margin :0 0 20px 20px ;' type =" primary" icon =" document" @click =" handleDownload" :loading =" downloadLoading" >{{$t('excel.export')}} excel</el-button >
1313
14- <el-table :data =" list" v-loading.body =" listLoading" element-loading-text =" 拼命加载中" border fit highlight-current-row >
14+ <el-table :data =" list" v-loading =" listLoading" element-loading-text =" 拼命加载中" border fit highlight-current-row >
1515 <el-table-column align =" center" label =' Id' width =" 95" >
1616 <template slot-scope="scope">
1717 {{scope.$index}}
Original file line number Diff line number Diff line change 33 <!-- $t is vue-i18n global function to translate lang -->
44 <el-input style =' width :340px ;' :placeholder =" $t('excel.placeholder')" prefix-icon =" el-icon-document" v-model =" filename" ></el-input >
55 <el-button style =' margin-bottom :20px ' type =" primary" icon =" document" @click =" handleDownload" :loading =" downloadLoading" >{{$t('excel.selectedExport')}}</el-button >
6- <el-table :data =" list" v-loading.body =" listLoading" element-loading-text =" 拼命加载中" border fit highlight-current-row @selection-change =" handleSelectionChange"
6+ <el-table :data =" list" v-loading =" listLoading" element-loading-text =" 拼命加载中" border fit highlight-current-row @selection-change =" handleSelectionChange"
77 ref =" multipleTable" >
88 <el-table-column type =" selection" align =" center" ></el-table-column >
99 <el-table-column align =" center" label =' Id' width =" 95" >
Original file line number Diff line number Diff line change 2121 <el-checkbox class =" filter-item" style =' margin-left :15px ;' @change =' tableKey=tableKey+1' v-model =" showReviewer" >{{$t('table.reviewer')}}</el-checkbox >
2222 </div >
2323
24- <el-table :key =' tableKey' :data =" list" v-loading =" listLoading" element-loading-text = " 给我一点时间 " border fit highlight-current-row
25- style =" width : 100% " >
24+ <el-table :key =' tableKey' :data =" list" v-loading =" listLoading" border fit highlight-current-row
25+ style =" width : 100% ; min-height : 1000 px ; " >
2626 <el-table-column align =" center" :label =" $t('table.id')" width =" 65" >
2727 <template slot-scope="scope">
2828 <span >{{scope.row.id}}</span >
@@ -221,7 +221,11 @@ export default {
221221 fetchList (this .listQuery ).then (response => {
222222 this .list = response .data .items
223223 this .total = response .data .total
224- this .listLoading = false
224+
225+ // Just to simulate the time of the request
226+ setTimeout (() => {
227+ this .listLoading = false
228+ }, 1.5 * 1000 )
225229 })
226230 },
227231 handleFilter () {
Original file line number Diff line number Diff line change 11<template >
22 <div class =" app-container" >
33 <!-- Note that row-key is necessary to get a correct row order. -->
4- <el-table :data =" list" row-key =" id" v-loading.body =" listLoading" border fit highlight-current-row style =" width : 100% " >
4+ <el-table :data =" list" row-key =" id" v-loading =" listLoading" border fit highlight-current-row style =" width : 100% " >
55
66 <el-table-column align =" center" label =" ID" width =" 65" >
77 <template slot-scope="scope">
Original file line number Diff line number Diff line change 11<template >
22 <div class =" app-container" >
33
4- <el-table :data =" list" v-loading.body =" listLoading" border fit highlight-current-row style =" width : 100% " >
4+ <el-table :data =" list" v-loading =" listLoading" border fit highlight-current-row style =" width : 100% " >
55
66 <el-table-column align =" center" label =" ID" width =" 80" >
77 <template slot-scope="scope">
@@ -89,9 +89,7 @@ export default {
8989 const items = response .data .items
9090 this .list = items .map (v => {
9191 this .$set (v, ' edit' , false ) // https://vuejs.org/v2/guide/reactivity.html
92-
9392 v .originalTitle = v .title // will be used when user click the cancel botton
94-
9593 return v
9694 })
9795 this .listLoading = false
Original file line number Diff line number Diff line change 33 <!-- $t is vue-i18n global function to translate lang -->
44 <el-input style =' width :300px ;' :placeholder =" $t('zip.placeholder')" prefix-icon =" el-icon-document" v-model =" filename" ></el-input >
55 <el-button style =' margin-bottom :20px ;' type =" primary" icon =" document" @click =" handleDownload" :loading =" downloadLoading" >{{$t('zip.export')}} zip</el-button >
6- <el-table :data =" list" v-loading.body =" listLoading" element-loading-text =" 拼命加载中" border fit highlight-current-row >
6+ <el-table :data =" list" v-loading =" listLoading" element-loading-text =" 拼命加载中" border fit highlight-current-row >
77 <el-table-column align =" center" label =' ID' width =" 95" >
88 <template slot-scope="scope">
99 {{scope.$index}}
You can’t perform that action at this time.
0 commit comments