新增game汇总用户明细分页,修改消息管理文本类型

This commit is contained in:
chenruiye
2025-03-14 10:58:55 +08:00
parent 922444d958
commit 068d992c4b
2 changed files with 34 additions and 9 deletions

View File

@@ -85,6 +85,9 @@
</template>
</el-table-column>
</el-table>
<el-pagination style="margin-top: 10px" class="paginationClass" :current-page="dialogPagination.pageNo"
:page-size="dialogPagination.pageSize" :page-sizes="[10, 20, 50, 100, 200]" layout="sizes, prev, pager, next"
:total="dialogPagination.total" @size-change="detailhandleSizeChange" @current-change="detailhandleCurrentChange" />
<!-- 操作 -->
<template #footer>
<span class="dialog-footer">
@@ -132,6 +135,11 @@ export default {
loadingOuter: false,
loadingInner: false
});
const dialogPagination = ref({
pageNo: 1,
pageSize: 10,
total: 0,
})
const detailsDialog = ref(false);
const exportStatDate = ref('');
const changeEvent = () => {
@@ -219,7 +227,7 @@ export default {
try {
console.log(exportStatDate.value, '-----')
const { channel, gameId, partitionId } = formData.value;
// Object.assign(dialogPagination.value, { pageSize: 10000, pageNo: 1 });
const res = await exportUserForMiniGame({
channel,
gameId,
@@ -241,7 +249,7 @@ export default {
document.body.appendChild(alink);
alink.click();
URL.revokeObjectURL(alink.href);
exportStatDate.value = ''
// exportStatDate.value = ''
}
} catch (error) {
@@ -254,20 +262,25 @@ export default {
// 明细
const detailPageFun = async (row) => {
tableData.value.loadingInner = true;
if(row){
exportStatDate.value = row.statDate
}
const { channel, gameId, partitionId } = formData.value;
const { pageNo,pageSize} = dialogPagination.value
const res = await getUserGamedata({
channel,
gameId,
partitionId,
endTime: row.statDate,
startTime: row.statDate,
endTime: exportStatDate.value,
startTime: exportStatDate.value,
pageNo,
pageSize
})
if (res.code == 200) {
tableData.value.dataInner = res.data.rows;
tableData.value.loadingInner = false;
detailsDialog.value = true
dialogPagination.value.total = res.data.total
}
}
const handleSizeChange = (val) => {
@@ -283,6 +296,14 @@ export default {
const item = partitionOptions.value.find(item => item.id === partitionId);
return item?.desc || '空';
}
const detailhandleSizeChange = (val) => {
dialogPagination.value.pageSize = val;
detailPageFun();
};
const detailhandleCurrentChange = (val) => {
dialogPagination.value.pageNo = val;
detailPageFun();
};
onMounted(() => {
listPartitionInfo().then(res => {
partitionOptions.value = res.data;
@@ -307,7 +328,10 @@ export default {
detailsDialog,
getPartitionDesc,
confirmExport2ExcelTwo,
exportStatDate
exportStatDate,
dialogPagination,
detailhandleSizeChange,
detailhandleCurrentChange
};
},
}

View File

@@ -166,12 +166,13 @@
<div class="form-group" id="nnn">
<label for="words" class="col-sm-3 control-label">文本</label>
<div class="col-sm-8">
<input
<div class="col-sm-8" style="padding: 0px 7px 0 22px">
<textarea
class="form-control validate[required]"
name="words"
id="words"
/>
rows="16"
></textarea>
</div>
</div>