diff --git a/src/utils/constants.js b/src/utils/constants.js
index 61a8ad2..ac2d582 100644
--- a/src/utils/constants.js
+++ b/src/utils/constants.js
@@ -84,7 +84,16 @@ export const SuitFeeType = {
TIMING: "1", // 计时收费
COUNT: "2", // 按量收费
TIME_COUNT: "3", // 分时段按量收费
- TIME_TIMING: "4" // 分时段按时收费
+ TIME_TIMING: "4", // 分时段按时收费
+
+ // 时长列表
+ timeList() {
+ return [this.TIMING, this.TIME_TIMING];
+ },
+ // 电量列表
+ eleList() {
+ return [this.COUNT, this.TIME_COUNT];
+ }
}
/**
@@ -165,3 +174,18 @@ export const DeviceServiceMode = {
DIRECT: "1", // 直营模式
AGENT: "2" // 代理模式
}
+
+// 分成方类型
+export const BonusArrivalType = {
+ PLATFORM: "1", // 平台
+ AGENT: "2", // 代理商
+ MCH: "3", // 商户
+ // 用户表
+ userList() {
+ return [this.AGENT, this.MCH]
+ },
+ // 部门表
+ deptList() {
+ return [this.PLATFORM]
+ }
+}
diff --git a/src/views/dashboard/Brief.vue b/src/views/dashboard/Brief.vue
index a54b872..7522d89 100644
--- a/src/views/dashboard/Brief.vue
+++ b/src/views/dashboard/Brief.vue
@@ -152,6 +152,7 @@ export default {
modelCount: 0,
userCount: 0,
tenantCount: 0,
+ agentCount: 0,
history: [],
},
queryParams: {},
@@ -197,7 +198,8 @@ export default {
}
return [
{value: this.briefData.userCount, name: "商户"},
- {value: this.briefData.tenantCount, name: "用户"}
+ {value: this.briefData.tenantCount, name: "用户"},
+ {value: this.briefData.agentCount, name: "代理商"},
]
},
// 用户差值
@@ -206,9 +208,9 @@ export default {
return 0;
}
if (this.yesterdayData == null) {
- return this.briefData.userCount + this.briefData.tenantCount;
+ return this.briefData.userCount + this.briefData.tenantCount + this.briefData.agentCount;
}
- return this.briefData.userCount + this.briefData.tenantCount - this.yesterdayData.totalUser;
+ return this.briefData.userCount + this.briefData.tenantCount + this.briefData.agentCount - this.yesterdayData.totalUser;
},
// 余额差值
compareBalance() {
diff --git a/src/views/dashboard/component/UserRoundPieChart.vue b/src/views/dashboard/component/UserRoundPieChart.vue
index 375cc3a..746a06d 100644
--- a/src/views/dashboard/component/UserRoundPieChart.vue
+++ b/src/views/dashboard/component/UserRoundPieChart.vue
@@ -76,7 +76,8 @@ export default {
type: 'pie',
color: [
'#8D4EDA',
- '#00B2FF'
+ '#00B2FF',
+ '#fa6247'
],
radius: ['30%', '50%'],
avoidLabelOverlap: false,
diff --git a/src/views/ss/bonus/index.vue b/src/views/ss/bonus/index.vue
index 5b6a5a0..32f1631 100644
--- a/src/views/ss/bonus/index.vue
+++ b/src/views/ss/bonus/index.vue
@@ -96,6 +96,10 @@
{{d.row.refundAmount | money | defaultValue}} 元
+
+
+ {{d.row.arrivalName | defaultValue}}
+
{{d.row[column.key] | defaultValue}}
@@ -193,7 +197,8 @@