Commit d36d485970fdcbbc134b15f9ec62dd58897d2396
1 parent
7054cec3
提交bug
Showing
2 changed files
with
12 additions
and
0 deletions
src/views/myevaluate/index.vue
| @@ -25,6 +25,9 @@ | @@ -25,6 +25,9 @@ | ||
| 25 | </div> | 25 | </div> |
| 26 | <el-table | 26 | <el-table |
| 27 | :data="orderData" | 27 | :data="orderData" |
| 28 | + v-loading="loading" | ||
| 29 | + element-loading-text="数据加载中..." | ||
| 30 | + element-loading-spinner="el-icon-loading" | ||
| 28 | style="width: 100%;" | 31 | style="width: 100%;" |
| 29 | :show-overflow-tooltip="true"> | 32 | :show-overflow-tooltip="true"> |
| 30 | <el-table-column | 33 | <el-table-column |
| @@ -87,6 +90,7 @@ | @@ -87,6 +90,7 @@ | ||
| 87 | form: { | 90 | form: { |
| 88 | feedbackId:'' | 91 | feedbackId:'' |
| 89 | }, | 92 | }, |
| 93 | + loading:false, | ||
| 90 | problemTpyeSelectData:[], | 94 | problemTpyeSelectData:[], |
| 91 | problemform: { | 95 | problemform: { |
| 92 | resource: '1', | 96 | resource: '1', |
| @@ -108,6 +112,7 @@ | @@ -108,6 +112,7 @@ | ||
| 108 | methods: { | 112 | methods: { |
| 109 | queryBtn() { | 113 | queryBtn() { |
| 110 | let that =this; | 114 | let that =this; |
| 115 | + that.loading=true; | ||
| 111 | let userInfo = this.$store.state.user.userInfo; | 116 | let userInfo = this.$store.state.user.userInfo; |
| 112 | let req ={ | 117 | let req ={ |
| 113 | baseRequest:{ | 118 | baseRequest:{ |
| @@ -120,6 +125,7 @@ | @@ -120,6 +125,7 @@ | ||
| 120 | }; | 125 | }; |
| 121 | queryFeedbackAndSuggestForPage(req).then(response =>{ | 126 | queryFeedbackAndSuggestForPage(req).then(response =>{ |
| 122 | if(response.code='8888'){ | 127 | if(response.code='8888'){ |
| 128 | + that.loading=false; | ||
| 123 | that.orderData=response.data.rows; | 129 | that.orderData=response.data.rows; |
| 124 | that.total=response.data.total; | 130 | that.total=response.data.total; |
| 125 | } | 131 | } |
src/views/payback/index.vue
| @@ -37,6 +37,9 @@ | @@ -37,6 +37,9 @@ | ||
| 37 | <el-table | 37 | <el-table |
| 38 | :data="orderData" | 38 | :data="orderData" |
| 39 | style="width: 100%;" | 39 | style="width: 100%;" |
| 40 | + v-loading="loading" | ||
| 41 | + element-loading-text="数据加载中..." | ||
| 42 | + element-loading-spinner="el-icon-loading" | ||
| 40 | :show-overflow-tooltip="true" | 43 | :show-overflow-tooltip="true" |
| 41 | @selection-change="handleSelectionChange"> | 44 | @selection-change="handleSelectionChange"> |
| 42 | <el-table-column | 45 | <el-table-column |
| @@ -141,6 +144,7 @@ | @@ -141,6 +144,7 @@ | ||
| 141 | carNum: null, | 144 | carNum: null, |
| 142 | 145 | ||
| 143 | }, | 146 | }, |
| 147 | + loading:false, | ||
| 144 | orgs:[], | 148 | orgs:[], |
| 145 | total: 0, | 149 | total: 0, |
| 146 | currentPage: 1, | 150 | currentPage: 1, |
| @@ -229,6 +233,7 @@ | @@ -229,6 +233,7 @@ | ||
| 229 | if(response.code=='8888'){ | 233 | if(response.code=='8888'){ |
| 230 | this.orderData = response.data.dataList; | 234 | this.orderData = response.data.dataList; |
| 231 | this.total = response.data.pageTotals; | 235 | this.total = response.data.pageTotals; |
| 236 | + this.loading=false; | ||
| 232 | }else{ | 237 | }else{ |
| 233 | console.log(response); | 238 | console.log(response); |
| 234 | } | 239 | } |
| @@ -300,6 +305,7 @@ | @@ -300,6 +305,7 @@ | ||
| 300 | }, | 305 | }, |
| 301 | 306 | ||
| 302 | onSubmit:function() { | 307 | onSubmit:function() { |
| 308 | + this.loading=true; | ||
| 303 | this.pageQueryArrearRecordByCondition(); | 309 | this.pageQueryArrearRecordByCondition(); |
| 304 | }, | 310 | }, |
| 305 | onBack:function() { | 311 | onBack:function() { |