From 187a345608e7c7caa9e9b91343971fed17088452 Mon Sep 17 00:00:00 2001
From: kaeery <3491123437@qq.com>
Date: Wed, 5 Mar 2025 00:01:26 +0800
Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=8B=9B=E7=94=9F=E5=B0=8F=E7=A8=8B?=
=?UTF-8?q?=E5=BA=8F=E3=80=91=20=E4=BC=98=E5=8C=96#=20=E4=B8=BB=E8=B4=A6?=
=?UTF-8?q?=E5=8F=B7=EF=BC=9A=E4=B8=AA=E4=BA=BA=E7=95=8C=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../personally/components/position-tabs.vue | 52 +++++-
.../personally/components/telesale-card.vue | 85 ++++++++--
.../widgets/admin/personally/index.vue | 148 ++++++++----------
src/hooks/useCommon.ts | 29 ++++
4 files changed, 216 insertions(+), 98 deletions(-)
diff --git a/src/components/widgets/admin/personally/components/position-tabs.vue b/src/components/widgets/admin/personally/components/position-tabs.vue
index 0766148..abac7b9 100644
--- a/src/components/widgets/admin/personally/components/position-tabs.vue
+++ b/src/components/widgets/admin/personally/components/position-tabs.vue
@@ -1,15 +1,57 @@
-
+
+ {{ item.label }}
+
+
+
+
+
-
+
diff --git a/src/components/widgets/admin/personally/components/telesale-card.vue b/src/components/widgets/admin/personally/components/telesale-card.vue
index f3c57bb..6855995 100644
--- a/src/components/widgets/admin/personally/components/telesale-card.vue
+++ b/src/components/widgets/admin/personally/components/telesale-card.vue
@@ -9,12 +9,12 @@
张三
- 湛江团队-A组 . 电销老师
+ 湛江团队-A组 . {{ parsePostionText }}
-
+
@@ -22,12 +22,34 @@
{{ item.value }}
+
+
+
+ {{ parseText(key) }}数据
+ 查看
+
+
+
+ {{ item.label }}
+ {{ item.value }}
+
+
+
+
diff --git a/src/components/widgets/admin/personally/index.vue b/src/components/widgets/admin/personally/index.vue
index 24dde9e..5859aa9 100644
--- a/src/components/widgets/admin/personally/index.vue
+++ b/src/components/widgets/admin/personally/index.vue
@@ -1,46 +1,36 @@
-
-
-
-
-
- {{ item.label }}
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+ handleReset('organization')"
+ @confirm="value => handleConfirm('organization', value)"
+ />
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ handleReset('date')"
+ @confirm="value => handleConfirm('date', value)"
+ />
-
-
-
+
+
+
-
-
+
-
-
+
diff --git a/src/hooks/useCommon.ts b/src/hooks/useCommon.ts
index ff5fc48..98e05f2 100644
--- a/src/hooks/useCommon.ts
+++ b/src/hooks/useCommon.ts
@@ -114,3 +114,32 @@ export function useRank({ width }: { width: number }) {
handleChangeTab
}
}
+
+// 岗位
+export function usePositions() {
+ const positionList = ref()
+ const postId = ref()
+ const fetchPositions = () => {
+ try {
+ positionList.value = [
+ {
+ label: '电销老师',
+ id: 5,
+ value: 5
+ },
+ {
+ label: '招生老师',
+ id: 6,
+ value: 6
+ }
+ ]
+ if (positionList.value.length > 0) postId.value = positionList.value
+ } catch (error) {}
+ }
+
+ return {
+ positionList,
+ postId,
+ fetchPositions
+ }
+}