diff --git a/src/components/Business/Dept/DeptSelect.vue b/src/components/Business/Dept/DeptSelect.vue index dd85f35..7d90038 100644 --- a/src/components/Business/Dept/DeptSelect.vue +++ b/src/components/Business/Dept/DeptSelect.vue @@ -69,7 +69,6 @@ export default { getOptions() { listDept().then(response => { this.options = this.handleTree(response.data, "deptId", "parentId", "children"); - console.log(this.options); }); }, } diff --git a/src/components/Dashboard/StatCard.vue b/src/components/Dashboard/StatCard.vue index 1163088..97190e8 100644 --- a/src/components/Dashboard/StatCard.vue +++ b/src/components/Dashboard/StatCard.vue @@ -54,7 +54,7 @@ export default { }, mainValue: { type: Number, - required: true + default: null, }, mainLabel: { type: String, diff --git a/src/utils/enums.js b/src/utils/enums.js index 58cbe04..48f6368 100644 --- a/src/utils/enums.js +++ b/src/utils/enums.js @@ -137,3 +137,8 @@ export const BriefKeys = { CUSTOMER_SOON_FOLLOW: "customerSoonFollow", // 即将需要跟进的客户 } +// 角色 +export const Role = { + SYS_ADMIN: "sys_admin", // 系统管理员 + ADMIN: "admin", // 管理员 +} diff --git a/src/views/bst/customer/edit/index.vue b/src/views/bst/customer/edit/index.vue index 4673e15..fec4cf8 100644 --- a/src/views/bst/customer/edit/index.vue +++ b/src/views/bst/customer/edit/index.vue @@ -92,7 +92,7 @@