|
@@ -47,6 +47,7 @@
|
|
|
:columns="columns"
|
|
|
:dataSource="dataSource"
|
|
|
:pagination="false"
|
|
|
+ :loading="dataLoading"
|
|
|
>
|
|
|
<span slot="action" slot-scope="text, record">
|
|
|
<a @click="handleEdit(record)">推送</a>
|
|
@@ -68,6 +69,7 @@
|
|
|
</span>
|
|
|
</a-table>
|
|
|
<a-pagination
|
|
|
+ v-if="dataSource.length>0"
|
|
|
class="pagin-table-class"
|
|
|
:total="totalAll"
|
|
|
:show-total="total => `共 ${totalAll} 条`"
|
|
@@ -262,6 +264,7 @@ export default {
|
|
|
data() {
|
|
|
let that = this;
|
|
|
return {
|
|
|
+ dataLoading: false,
|
|
|
src: '/kuaishouPopulationPackage/getAccountByProjectId',
|
|
|
unitAccountId: '',
|
|
|
personResourceDisabled: false,
|
|
@@ -509,16 +512,20 @@ export default {
|
|
|
pageNo: this.tablePag.page,
|
|
|
pageSize: this.tablePag.size
|
|
|
};
|
|
|
- this.dataSource = []
|
|
|
+ this.dataSource = [];
|
|
|
+ this.dataLoading = true;
|
|
|
getAction('/kuaishouPopulationPackage/list', paramsData).then(result => {
|
|
|
if (result.code === 200) {
|
|
|
+ this.dataLoading = false;
|
|
|
this.dataSource = result.result.list || [];
|
|
|
this.totalAll = result.result.total || 0;
|
|
|
}
|
|
|
else {
|
|
|
+ this.dataLoading = false;
|
|
|
this.$message.error(result.message);
|
|
|
}
|
|
|
}).catch(error => {
|
|
|
+ this.dataLoading = false;
|
|
|
console.log(error, 'eeee');
|
|
|
});
|
|
|
},
|