更新礼物数据列表的bug
This commit is contained in:
@@ -17,10 +17,7 @@ export function useData() {
|
||||
currentPage: 1,
|
||||
background: true
|
||||
});
|
||||
const statisticsList = ref([
|
||||
{ label: "礼物总数量", prop: "gift_num" },
|
||||
{ label: "礼物总价", prop: "total_price" }
|
||||
])
|
||||
const statisticsList = ref()
|
||||
|
||||
const totalData = ref(null)
|
||||
const searchForm = ref({
|
||||
@@ -49,7 +46,8 @@ export function useData() {
|
||||
{ label: "开始时间", prop: "start_time", type: "date" },
|
||||
{ label: "结束时间", prop: "end_time", type: "date" },
|
||||
]);
|
||||
const tableLabel = ref([
|
||||
const tableLabel = ref([])
|
||||
const tableLabelS = ref([
|
||||
{
|
||||
label: "送礼人ID-昵称",
|
||||
prop: "send_user"
|
||||
@@ -128,7 +126,11 @@ export function useData() {
|
||||
prop: "room_owner_earning"
|
||||
}
|
||||
]
|
||||
statisticsList.value = [...statisticsList.value, ...objStatistics]
|
||||
statisticsList.value = [...[
|
||||
{ label: "礼物总数量", prop: "gift_num" },
|
||||
{ label: "礼物总价", prop: "total_price" }
|
||||
], ...objStatistics]
|
||||
tableLabel.value = [...tableLabelS.value]
|
||||
tableLabel.value.splice(7, 0, ...objLabel)
|
||||
console.log(tableLabel.value)
|
||||
tableList.value = data.lists.map(ele => {
|
||||
@@ -143,7 +145,7 @@ export function useData() {
|
||||
|
||||
totalData.value = data.total;
|
||||
pagination.value.total = data.count;
|
||||
pagination.value.currentPage = data.page;
|
||||
pagination.value.currentPage = parseFloat(data.page);
|
||||
}
|
||||
loading.value = false;
|
||||
};
|
||||
@@ -153,7 +155,7 @@ export function useData() {
|
||||
};
|
||||
const handleCurrentChange = (val: number) => {
|
||||
pagination.value.currentPage = val;
|
||||
console.log(searchForm.value, 'yzy')
|
||||
// console.log(searchForm.value, 'yzy')
|
||||
onSearch(searchForm.value);
|
||||
};
|
||||
const exportFormRef = ref(null)
|
||||
|
||||
Reference in New Issue
Block a user