1、删除Inbody组件引用
This commit is contained in:
parent
ebddfec229
commit
2053ebbdc2
@ -67,9 +67,7 @@
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<InBody v-show="total > 0">
|
||||
<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-form ref="form" :model="form" :rules="rules" label-width="108px">
|
||||
|
@ -143,9 +143,7 @@
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<InBody v-show="total > 0">
|
||||
<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>
|
||||
|
@ -2,10 +2,17 @@
|
||||
<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-item label="统计日期" prop="date">
|
||||
<el-date-picker v-model="dateRange" style="width: 240px" value-format="yyyy-MM-dd" type="daterange"
|
||||
:clearable="true" :picker-options='pickerOptions' range-separator="-"
|
||||
<el-date-picker
|
||||
v-model="dateRange"
|
||||
style="width: 240px"
|
||||
value-format="yyyy-MM-dd"
|
||||
type="daterange"
|
||||
:clearable="true"
|
||||
:picker-options="pickerOptions"
|
||||
range-separator="-"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"></el-date-picker>
|
||||
end-placeholder="结束日期"
|
||||
></el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item class="flex_one tr">
|
||||
<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-column label="统计日期" prop="date" width="180">
|
||||
<template slot-scope="scope">
|
||||
<template v-slot="scope">
|
||||
<span>{{ parseTime(scope.row.date, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@ -27,27 +34,15 @@
|
||||
<el-table-column label="下单数" prop="orderCount" />
|
||||
<el-table-column label="成交数" prop="dealCount" />
|
||||
<el-table-column label="成交金额" prop="dealAmount">
|
||||
<template v-slot="scope">
|
||||
¥{{ scope.row.dealAmount.toFixed(2) }}
|
||||
</template>
|
||||
<template v-slot="scope"> ¥{{ scope.row.dealAmount.toFixed(2) }} </template>
|
||||
</el-table-column>
|
||||
<el-table-column label="售后数" prop="aftersaleCount" />
|
||||
<el-table-column label="售后金额" prop="aftersaleAmount">
|
||||
<template v-slot="scope">
|
||||
¥{{ scope.row.aftersaleAmount.toFixed(2) }}
|
||||
</template>
|
||||
<template v-slot="scope"> ¥{{ scope.row.aftersaleAmount.toFixed(2) }} </template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<InBody v-show="total>0">
|
||||
<pagination
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
</InBody>
|
||||
|
||||
<pagination :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -59,11 +54,11 @@ import {
|
||||
getAwsSystemStatistics,
|
||||
listAwsSystemStatistics,
|
||||
updateAwsSystemStatistics
|
||||
} from "@/api/aws/systemStatistics";
|
||||
import dateUtil from "@/utils/DateUtil";
|
||||
} from '@/api/aws/systemStatistics';
|
||||
import dateUtil from '@/utils/DateUtil';
|
||||
|
||||
export default {
|
||||
name: "AwsSystemStatistics",
|
||||
name: 'AwsSystemStatistics',
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
@ -87,7 +82,7 @@ export default {
|
||||
// 系统数据统计表格数据
|
||||
awsSystemStatisticsList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
title: '',
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
@ -99,39 +94,17 @@ export default {
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
date: [
|
||||
{ required: true, message: "统计日期不能为空", trigger: "blur" }
|
||||
],
|
||||
loginMemberCount: [
|
||||
{ required: true, message: "登录用户数不能为空", trigger: "blur" }
|
||||
],
|
||||
registerMemberCount: [
|
||||
{ required: true, message: "注册用户数不能为空", trigger: "blur" }
|
||||
],
|
||||
addCartMemberCount: [
|
||||
{ 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" }
|
||||
]
|
||||
date: [{ required: true, message: '统计日期不能为空', trigger: 'blur' }],
|
||||
loginMemberCount: [{ required: true, message: '登录用户数不能为空', trigger: 'blur' }],
|
||||
registerMemberCount: [{ required: true, message: '注册用户数不能为空', trigger: 'blur' }],
|
||||
addCartMemberCount: [{ 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
|
||||
};
|
||||
@ -147,10 +120,10 @@ export default {
|
||||
let query = { ...this.queryParams, pageNum: undefined, pageSize: undefined };
|
||||
const pageReq = { page: pageNum - 1, size: pageSize };
|
||||
if (this.dateRange && this.dateRange.length > 0) {
|
||||
query = {...this.addDateRange3(query, this.dateRange)}
|
||||
query = { ...this.addDateRange3(query, this.dateRange) };
|
||||
}
|
||||
listAwsSystemStatistics(query, pageReq).then(response => {
|
||||
const { content, totalElements } = response
|
||||
listAwsSystemStatistics(query, pageReq).then((response) => {
|
||||
const { content, totalElements } = response;
|
||||
this.awsSystemStatisticsList = content;
|
||||
this.total = totalElements;
|
||||
this.loading = false;
|
||||
@ -177,7 +150,7 @@ export default {
|
||||
aftersaleCount: null,
|
||||
aftersaleAmount: null
|
||||
};
|
||||
this.resetForm("form");
|
||||
this.resetForm('form');
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
@ -186,44 +159,44 @@ export default {
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
this.resetForm('queryForm');
|
||||
this.handleQuery();
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map(item => item.id)
|
||||
this.single = selection.length!==1
|
||||
this.multiple = !selection.length
|
||||
this.ids = selection.map((item) => item.id);
|
||||
this.single = selection.length !== 1;
|
||||
this.multiple = !selection.length;
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "添加系统数据统计";
|
||||
this.title = '添加系统数据统计';
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const id = row.id || this.ids
|
||||
getAwsSystemStatistics(id).then(response => {
|
||||
const id = row.id || this.ids;
|
||||
getAwsSystemStatistics(id).then((response) => {
|
||||
this.form = response;
|
||||
this.open = true;
|
||||
this.title = "修改系统数据统计";
|
||||
this.title = '修改系统数据统计';
|
||||
});
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs["form"].validate(valid => {
|
||||
this.$refs['form'].validate((valid) => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updateAwsSystemStatistics(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
updateAwsSystemStatistics(this.form).then((response) => {
|
||||
this.$modal.msgSuccess('修改成功');
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
} else {
|
||||
addAwsSystemStatistics(this.form).then(response => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
addAwsSystemStatistics(this.form).then((response) => {
|
||||
this.$modal.msgSuccess('新增成功');
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
@ -234,23 +207,31 @@ export default {
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
this.$modal.confirm('是否确认删除系统数据统计编号为"' + ids + '"的数据项?').then(function() {
|
||||
this.$modal
|
||||
.confirm('是否确认删除系统数据统计编号为"' + ids + '"的数据项?')
|
||||
.then(function () {
|
||||
return delAwsSystemStatistics(ids);
|
||||
}).then(() => {
|
||||
})
|
||||
.then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
this.$modal.msgSuccess('删除成功');
|
||||
})
|
||||
.catch(() => {});
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
const queryParams = this.queryParams;
|
||||
this.$modal.confirm('是否确认导出所有系统数据统计数据项?').then(() => {
|
||||
this.$modal
|
||||
.confirm('是否确认导出所有系统数据统计数据项?')
|
||||
.then(() => {
|
||||
this.exportLoading = true;
|
||||
return exportAwsSystemStatistics(queryParams);
|
||||
}).then(response => {
|
||||
})
|
||||
.then((response) => {
|
||||
this.$download.download(response);
|
||||
this.exportLoading = false;
|
||||
}).catch(() => {});
|
||||
})
|
||||
.catch(() => {});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -109,9 +109,7 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<InBody v-show="total > 0">
|
||||
<pagination :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
|
||||
</InBody>
|
||||
</div>
|
||||
<!-- <SeeAdsComponent ref="seeAdsComponentRef" v-if="!show" @confirmOk="confirmOk"/>-->
|
||||
|
||||
|
@ -156,10 +156,6 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
</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" />
|
||||
<!-- 发货对话框 -->
|
||||
<el-dialog :title="deliveryObj.title" v-model:visible="deliveryObj.open" width="500px" append-to-body>
|
||||
|
@ -41,9 +41,7 @@
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<InBody v-show="total > 0">
|
||||
<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>
|
||||
|
@ -79,9 +79,7 @@
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<InBody v-show="total > 0">
|
||||
<pagination :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
|
||||
</InBody>
|
||||
</div>
|
||||
<!-- <SeeAdsComponent ref="seeAdsComponentRef" v-if="!show" @confirmOk="confirmOk"/>-->
|
||||
</div>
|
||||
|
@ -67,9 +67,7 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<InBody v-show="total > 0">
|
||||
<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-input type="textarea" :rows="3" placeholder="请输入内容" v-model="remarkModal.remark" />
|
||||
<template v-slot:footer>
|
||||
|
@ -85,9 +85,7 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<InBody v-show="total > 0">
|
||||
<pagination :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
|
||||
</InBody>
|
||||
</div>
|
||||
<SeeAdsComponent ref="seeAdsComponentRef" v-if="!show" @confirmOk="confirmOk" />
|
||||
<!-- 统计 -->
|
||||
|
@ -93,14 +93,12 @@
|
||||
<!-- </el-table-column>-->
|
||||
</el-table>
|
||||
|
||||
<InBody v-show="total>0">
|
||||
<pagination
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
</InBody>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
@ -92,14 +92,12 @@
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<InBody v-show="total>0">
|
||||
<pagination
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
</InBody>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user