From e68b6444b1b1b0be390d84da03d44ab0179d0608 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A3=B7=E5=8F=B6?= <14103883+leaf-phos@user.noreply.gitee.com> Date: Fri, 28 Feb 2025 10:35:35 +0800 Subject: [PATCH] =?UTF-8?q?0.5.4=20=E9=9D=9E=E7=AE=A1=E7=90=86=E5=91=98?= =?UTF-8?q?=E5=8F=AF=E5=88=9B=E5=BB=BA=E5=B1=9E=E4=BA=8E=E8=87=AA=E5=B7=B1?= =?UTF-8?q?=E7=9A=84=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Business/Dept/DeptSelect.vue | 1 - src/components/Dashboard/StatCard.vue | 2 +- src/utils/enums.js | 5 ++ src/views/bst/customer/edit/index.vue | 4 +- .../bst/task/components/TaskEditDialog.vue | 46 ++++++++++++++----- src/views/bst/task/index.vue | 4 +- src/views/bst/task/mixins.js | 28 +++++++++-- 7 files changed, 69 insertions(+), 21 deletions(-) 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 @@