1、删除Inbody组件引用

This commit is contained in:
cuiyouliang 2025-06-05 09:47:28 +08:00
parent ebddfec229
commit 2053ebbdc2
11 changed files with 99 additions and 140 deletions

View File

@ -67,9 +67,7 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<InBody v-show="total > 0">
<pagination :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" /> <pagination :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
</InBody>
<!-- 添加或修改优惠券活动表对话框 --> <!-- 添加或修改优惠券活动表对话框 -->
<el-dialog :title="title" v-model:visible="open" width="50%" append-to-body> <el-dialog :title="title" v-model:visible="open" width="50%" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="108px"> <el-form ref="form" :model="form" :rules="rules" label-width="108px">

View File

@ -143,9 +143,7 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<InBody v-show="total > 0">
<pagination :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" /> <pagination :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
</InBody>
<!-- 添加或修改用户领券记录对话框 --> <!-- 添加或修改用户领券记录对话框 -->
<el-dialog :title="title" v-model:visible="open" width="50%" append-to-body> <el-dialog :title="title" v-model:visible="open" width="50%" append-to-body>

View File

@ -2,10 +2,17 @@
<div class="app-container"> <div class="app-container">
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="100px" size="medium" class="ry_form"> <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="100px" size="medium" class="ry_form">
<el-form-item label="统计日期" prop="date"> <el-form-item label="统计日期" prop="date">
<el-date-picker v-model="dateRange" style="width: 240px" value-format="yyyy-MM-dd" type="daterange" <el-date-picker
:clearable="true" :picker-options='pickerOptions' range-separator="-" v-model="dateRange"
style="width: 240px"
value-format="yyyy-MM-dd"
type="daterange"
:clearable="true"
:picker-options="pickerOptions"
range-separator="-"
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期"></el-date-picker> end-placeholder="结束日期"
></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item class="flex_one tr"> <el-form-item class="flex_one tr">
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
@ -15,7 +22,7 @@
<el-table v-loading="loading" :data="awsSystemStatisticsList" @selection-change="handleSelectionChange" border> <el-table v-loading="loading" :data="awsSystemStatisticsList" @selection-change="handleSelectionChange" border>
<el-table-column label="统计日期" prop="date" width="180"> <el-table-column label="统计日期" prop="date" width="180">
<template slot-scope="scope"> <template v-slot="scope">
<span>{{ parseTime(scope.row.date, '{y}-{m}-{d}') }}</span> <span>{{ parseTime(scope.row.date, '{y}-{m}-{d}') }}</span>
</template> </template>
</el-table-column> </el-table-column>
@ -27,27 +34,15 @@
<el-table-column label="下单数" prop="orderCount" /> <el-table-column label="下单数" prop="orderCount" />
<el-table-column label="成交数" prop="dealCount" /> <el-table-column label="成交数" prop="dealCount" />
<el-table-column label="成交金额" prop="dealAmount"> <el-table-column label="成交金额" prop="dealAmount">
<template v-slot="scope"> <template v-slot="scope"> {{ scope.row.dealAmount.toFixed(2) }} </template>
{{ scope.row.dealAmount.toFixed(2) }}
</template>
</el-table-column> </el-table-column>
<el-table-column label="售后数" prop="aftersaleCount" /> <el-table-column label="售后数" prop="aftersaleCount" />
<el-table-column label="售后金额" prop="aftersaleAmount"> <el-table-column label="售后金额" prop="aftersaleAmount">
<template v-slot="scope"> <template v-slot="scope"> {{ scope.row.aftersaleAmount.toFixed(2) }} </template>
{{ scope.row.aftersaleAmount.toFixed(2) }}
</template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<InBody v-show="total>0"> <pagination :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
<pagination
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
</InBody>
</div> </div>
</template> </template>
@ -59,11 +54,11 @@ import {
getAwsSystemStatistics, getAwsSystemStatistics,
listAwsSystemStatistics, listAwsSystemStatistics,
updateAwsSystemStatistics updateAwsSystemStatistics
} from "@/api/aws/systemStatistics"; } from '@/api/aws/systemStatistics';
import dateUtil from "@/utils/DateUtil"; import dateUtil from '@/utils/DateUtil';
export default { export default {
name: "AwsSystemStatistics", name: 'AwsSystemStatistics',
data() { data() {
return { return {
// //
@ -87,7 +82,7 @@ export default {
// //
awsSystemStatisticsList: [], awsSystemStatisticsList: [],
// //
title: "", title: '',
// //
open: false, open: false,
// //
@ -99,39 +94,17 @@ export default {
form: {}, form: {},
// //
rules: { rules: {
date: [ date: [{ required: true, message: '统计日期不能为空', trigger: 'blur' }],
{ required: true, message: "统计日期不能为空", trigger: "blur" } loginMemberCount: [{ required: true, message: '登录用户数不能为空', trigger: 'blur' }],
], registerMemberCount: [{ required: true, message: '注册用户数不能为空', trigger: 'blur' }],
loginMemberCount: [ addCartMemberCount: [{ required: true, message: '加购用户数不能为空', trigger: 'blur' }],
{ required: true, message: "登录用户数不能为空", trigger: "blur" } createOrderMemberCount: [{ required: true, message: '下单用户数不能为空', trigger: 'blur' }],
], dealMemberCount: [{ required: true, message: '成交用户数不能为空', trigger: 'blur' }],
registerMemberCount: [ orderCount: [{ required: true, message: '下单数不能为空', trigger: 'blur' }],
{ required: true, message: "注册用户数不能为空", trigger: "blur" } dealCount: [{ required: true, message: '成交数不能为空', trigger: 'blur' }],
], dealAmount: [{ required: true, message: '成交金额不能为空', trigger: 'blur' }],
addCartMemberCount: [ aftersaleCount: [{ required: true, message: '售后数不能为空', trigger: 'blur' }],
{ required: true, message: "加购用户数不能为空", trigger: "blur" } aftersaleAmount: [{ required: true, message: '售后金额不能为空', trigger: 'blur' }]
],
createOrderMemberCount: [
{ required: true, message: "下单用户数不能为空", trigger: "blur" }
],
dealMemberCount: [
{ required: true, message: "成交用户数不能为空", trigger: "blur" }
],
orderCount: [
{ required: true, message: "下单数不能为空", trigger: "blur" }
],
dealCount: [
{ required: true, message: "成交数不能为空", trigger: "blur" }
],
dealAmount: [
{ required: true, message: "成交金额不能为空", trigger: "blur" }
],
aftersaleCount: [
{ required: true, message: "售后数不能为空", trigger: "blur" }
],
aftersaleAmount: [
{ required: true, message: "售后金额不能为空", trigger: "blur" }
]
}, },
showMoreCondition: false showMoreCondition: false
}; };
@ -147,10 +120,10 @@ export default {
let query = { ...this.queryParams, pageNum: undefined, pageSize: undefined }; let query = { ...this.queryParams, pageNum: undefined, pageSize: undefined };
const pageReq = { page: pageNum - 1, size: pageSize }; const pageReq = { page: pageNum - 1, size: pageSize };
if (this.dateRange && this.dateRange.length > 0) { if (this.dateRange && this.dateRange.length > 0) {
query = {...this.addDateRange3(query, this.dateRange)} query = { ...this.addDateRange3(query, this.dateRange) };
} }
listAwsSystemStatistics(query, pageReq).then(response => { listAwsSystemStatistics(query, pageReq).then((response) => {
const { content, totalElements } = response const { content, totalElements } = response;
this.awsSystemStatisticsList = content; this.awsSystemStatisticsList = content;
this.total = totalElements; this.total = totalElements;
this.loading = false; this.loading = false;
@ -177,7 +150,7 @@ export default {
aftersaleCount: null, aftersaleCount: null,
aftersaleAmount: null aftersaleAmount: null
}; };
this.resetForm("form"); this.resetForm('form');
}, },
/** 搜索按钮操作 */ /** 搜索按钮操作 */
handleQuery() { handleQuery() {
@ -186,44 +159,44 @@ export default {
}, },
/** 重置按钮操作 */ /** 重置按钮操作 */
resetQuery() { resetQuery() {
this.resetForm("queryForm"); this.resetForm('queryForm');
this.handleQuery(); this.handleQuery();
}, },
// //
handleSelectionChange(selection) { handleSelectionChange(selection) {
this.ids = selection.map(item => item.id) this.ids = selection.map((item) => item.id);
this.single = selection.length!==1 this.single = selection.length !== 1;
this.multiple = !selection.length this.multiple = !selection.length;
}, },
/** 新增按钮操作 */ /** 新增按钮操作 */
handleAdd() { handleAdd() {
this.reset(); this.reset();
this.open = true; this.open = true;
this.title = "添加系统数据统计"; this.title = '添加系统数据统计';
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
this.reset(); this.reset();
const id = row.id || this.ids const id = row.id || this.ids;
getAwsSystemStatistics(id).then(response => { getAwsSystemStatistics(id).then((response) => {
this.form = response; this.form = response;
this.open = true; this.open = true;
this.title = "修改系统数据统计"; this.title = '修改系统数据统计';
}); });
}, },
/** 提交按钮 */ /** 提交按钮 */
submitForm() { submitForm() {
this.$refs["form"].validate(valid => { this.$refs['form'].validate((valid) => {
if (valid) { if (valid) {
if (this.form.id != null) { if (this.form.id != null) {
updateAwsSystemStatistics(this.form).then(response => { updateAwsSystemStatistics(this.form).then((response) => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess('修改成功');
this.open = false; this.open = false;
this.getList(); this.getList();
}); });
} else { } else {
addAwsSystemStatistics(this.form).then(response => { addAwsSystemStatistics(this.form).then((response) => {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess('新增成功');
this.open = false; this.open = false;
this.getList(); this.getList();
}); });
@ -234,23 +207,31 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const ids = row.id || this.ids; const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除系统数据统计编号为"' + ids + '"的数据项?').then(function() { this.$modal
.confirm('是否确认删除系统数据统计编号为"' + ids + '"的数据项?')
.then(function () {
return delAwsSystemStatistics(ids); return delAwsSystemStatistics(ids);
}).then(() => { })
.then(() => {
this.getList(); this.getList();
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess('删除成功');
}).catch(() => {}); })
.catch(() => {});
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
const queryParams = this.queryParams; const queryParams = this.queryParams;
this.$modal.confirm('是否确认导出所有系统数据统计数据项?').then(() => { this.$modal
.confirm('是否确认导出所有系统数据统计数据项?')
.then(() => {
this.exportLoading = true; this.exportLoading = true;
return exportAwsSystemStatistics(queryParams); return exportAwsSystemStatistics(queryParams);
}).then(response => { })
.then((response) => {
this.$download.download(response); this.$download.download(response);
this.exportLoading = false; this.exportLoading = false;
}).catch(() => {}); })
.catch(() => {});
} }
} }
}; };

View File

@ -109,9 +109,7 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<InBody v-show="total > 0">
<pagination :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" /> <pagination :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
</InBody>
</div> </div>
<!-- <SeeAdsComponent ref="seeAdsComponentRef" v-if="!show" @confirmOk="confirmOk"/>--> <!-- <SeeAdsComponent ref="seeAdsComponentRef" v-if="!show" @confirmOk="confirmOk"/>-->

View File

@ -156,10 +156,6 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<!-- <InBody v-show="total > 0">
<pagination :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
</InBody>-->
<pagination :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" /> <pagination :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
<!-- 发货对话框 --> <!-- 发货对话框 -->
<el-dialog :title="deliveryObj.title" v-model:visible="deliveryObj.open" width="500px" append-to-body> <el-dialog :title="deliveryObj.title" v-model:visible="deliveryObj.open" width="500px" append-to-body>

View File

@ -41,9 +41,7 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<InBody v-show="total > 0">
<pagination :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" /> <pagination :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
</InBody>
<!-- 添加或修改品牌管理对话框 --> <!-- 添加或修改品牌管理对话框 -->
<el-dialog :title="title" v-model:visible="open" width="50%" append-to-body> <el-dialog :title="title" v-model:visible="open" width="50%" append-to-body>

View File

@ -79,9 +79,7 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<InBody v-show="total > 0">
<pagination :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" /> <pagination :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
</InBody>
</div> </div>
<!-- <SeeAdsComponent ref="seeAdsComponentRef" v-if="!show" @confirmOk="confirmOk"/>--> <!-- <SeeAdsComponent ref="seeAdsComponentRef" v-if="!show" @confirmOk="confirmOk"/>-->
</div> </div>

View File

@ -67,9 +67,7 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<InBody v-show="total > 0">
<pagination :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" /> <pagination :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
</InBody>
<el-dialog title="修改备注" v-model:visible="remarkModal.visible" width="30%" append-to-body> <el-dialog title="修改备注" v-model:visible="remarkModal.visible" width="30%" append-to-body>
<el-input type="textarea" :rows="3" placeholder="请输入内容" v-model="remarkModal.remark" /> <el-input type="textarea" :rows="3" placeholder="请输入内容" v-model="remarkModal.remark" />
<template v-slot:footer> <template v-slot:footer>

View File

@ -85,9 +85,7 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<InBody v-show="total > 0">
<pagination :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" /> <pagination :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
</InBody>
</div> </div>
<SeeAdsComponent ref="seeAdsComponentRef" v-if="!show" @confirmOk="confirmOk" /> <SeeAdsComponent ref="seeAdsComponentRef" v-if="!show" @confirmOk="confirmOk" />
<!-- 统计 --> <!-- 统计 -->

View File

@ -93,14 +93,12 @@
<!-- </el-table-column>--> <!-- </el-table-column>-->
</el-table> </el-table>
<InBody v-show="total>0">
<pagination <pagination
:total="total" :total="total"
:page.sync="queryParams.pageNum" :page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize" :limit.sync="queryParams.pageSize"
@pagination="getList" @pagination="getList"
/> />
</InBody>
</div> </div>
</template> </template>

View File

@ -92,14 +92,12 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<InBody v-show="total>0">
<pagination <pagination
:total="total" :total="total"
:page.sync="queryParams.pageNum" :page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize" :limit.sync="queryParams.pageSize"
@pagination="getList" @pagination="getList"
/> />
</InBody>
</div> </div>
</template> </template>