diff --git a/src/views/act/couponActivity/index.vue b/src/views/act/couponActivity/index.vue
index 9b56f9c..c4b844a 100644
--- a/src/views/act/couponActivity/index.vue
+++ b/src/views/act/couponActivity/index.vue
@@ -67,9 +67,7 @@
-
-
-
+
diff --git a/src/views/act/memberCoupon/index.vue b/src/views/act/memberCoupon/index.vue
index d47b601..5e6b917 100644
--- a/src/views/act/memberCoupon/index.vue
+++ b/src/views/act/memberCoupon/index.vue
@@ -143,9 +143,7 @@
-
-
-
+
diff --git a/src/views/aws/systemStatistics/index.vue b/src/views/aws/systemStatistics/index.vue
index 98b2d20..78c218b 100644
--- a/src/views/aws/systemStatistics/index.vue
+++ b/src/views/aws/systemStatistics/index.vue
@@ -2,10 +2,17 @@
-
+
搜索
@@ -15,39 +22,27 @@
-
+
{{ parseTime(scope.row.date, '{y}-{m}-{d}') }}
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
- ¥{{ scope.row.dealAmount.toFixed(2) }}
-
+ ¥{{ scope.row.dealAmount.toFixed(2) }}
-
+
-
- ¥{{ scope.row.aftersaleAmount.toFixed(2) }}
-
+ ¥{{ scope.row.aftersaleAmount.toFixed(2) }}
-
-
-
-
+
@@ -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
};
@@ -143,14 +116,14 @@ export default {
/** 查询系统数据统计列表 */
getList() {
this.loading = true;
- const {pageNum, pageSize} = this.queryParams;
- 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)}
+ const { pageNum, pageSize } = this.queryParams;
+ 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) };
}
- 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() {
- return delAwsSystemStatistics(ids);
- }).then(() => {
- this.getList();
- this.$modal.msgSuccess("删除成功");
- }).catch(() => {});
+ this.$modal
+ .confirm('是否确认删除系统数据统计编号为"' + ids + '"的数据项?')
+ .then(function () {
+ return delAwsSystemStatistics(ids);
+ })
+ .then(() => {
+ this.getList();
+ this.$modal.msgSuccess('删除成功');
+ })
+ .catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;
- this.$modal.confirm('是否确认导出所有系统数据统计数据项?').then(() => {
- this.exportLoading = true;
- return exportAwsSystemStatistics(queryParams);
- }).then(response => {
- this.$download.download(response);
- this.exportLoading = false;
- }).catch(() => {});
+ this.$modal
+ .confirm('是否确认导出所有系统数据统计数据项?')
+ .then(() => {
+ this.exportLoading = true;
+ return exportAwsSystemStatistics(queryParams);
+ })
+ .then((response) => {
+ this.$download.download(response);
+ this.exportLoading = false;
+ })
+ .catch(() => {});
}
}
};
diff --git a/src/views/oms/aftersale/index.vue b/src/views/oms/aftersale/index.vue
index 79f2f30..0954ddc 100644
--- a/src/views/oms/aftersale/index.vue
+++ b/src/views/oms/aftersale/index.vue
@@ -109,9 +109,7 @@
-
-
-
+
diff --git a/src/views/oms/order/index.vue b/src/views/oms/order/index.vue
index 0b8f24d..71d9bb0 100644
--- a/src/views/oms/order/index.vue
+++ b/src/views/oms/order/index.vue
@@ -156,10 +156,6 @@
-
-
diff --git a/src/views/pms/brand/index.vue b/src/views/pms/brand/index.vue
index e68e305..9fcc620 100644
--- a/src/views/pms/brand/index.vue
+++ b/src/views/pms/brand/index.vue
@@ -41,9 +41,7 @@
-
-
-
+
diff --git a/src/views/pms/product/index.vue b/src/views/pms/product/index.vue
index 73a822c..6710aab 100644
--- a/src/views/pms/product/index.vue
+++ b/src/views/pms/product/index.vue
@@ -79,9 +79,7 @@
-
-
-
+
diff --git a/src/views/ums/feedback/index.vue b/src/views/ums/feedback/index.vue
index c777c86..3f14242 100644
--- a/src/views/ums/feedback/index.vue
+++ b/src/views/ums/feedback/index.vue
@@ -67,9 +67,7 @@
-
-
-
+
diff --git a/src/views/ums/member/index.vue b/src/views/ums/member/index.vue
index 5343fc1..85a9260 100644
--- a/src/views/ums/member/index.vue
+++ b/src/views/ums/member/index.vue
@@ -85,9 +85,7 @@
-
-
-
+
diff --git a/src/views/ums/memberCart/index.vue b/src/views/ums/memberCart/index.vue
index 17e0644..2807793 100644
--- a/src/views/ums/memberCart/index.vue
+++ b/src/views/ums/memberCart/index.vue
@@ -93,14 +93,12 @@
-
-
-
+
diff --git a/src/views/ums/memberLogininfor/index.vue b/src/views/ums/memberLogininfor/index.vue
index 0540819..4b279a1 100644
--- a/src/views/ums/memberLogininfor/index.vue
+++ b/src/views/ums/memberLogininfor/index.vue
@@ -92,14 +92,12 @@
-
-
-
+