前台模版修改返回值

vehicle-yinyuyang
李永杰 2024-03-28 22:38:44 +08:00
parent 9a4f24544c
commit ff45a6ce22
1 changed files with 4 additions and 4 deletions

View File

@ -170,7 +170,7 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination <pagination
v-show="total>0" v-show="total>0"
:total="total" :total="total"
@ -447,9 +447,9 @@ export default {
} }
#end #end
#end #end
list${BusinessName}(this.queryParams).then(response => { list${BusinessName}(this.queryParams).then(res => {
this.${businessName}List = response.rows; this.${businessName}List = res.data.rows;
this.total = response.total; this.total = res.data.total;
this.loading = false; this.loading = false;
}); });
}, },