From 483554e3617e1ec977ac91064faa732ec458ad3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=99=E8=BF=90=E6=A8=A1?= <1724894114@qq.com> Date: Sun, 10 Nov 2024 22:30:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=85=A5=E5=AE=A2=E6=9C=8D=E6=B6=88?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/scCustomer/index.vue | 98 +++++++++++++++------ src/views/login/components/passwordForm.vue | 3 + src/views/maintenance/index.vue | 3 +- 3 files changed, 78 insertions(+), 26 deletions(-) diff --git a/src/components/scCustomer/index.vue b/src/components/scCustomer/index.vue index 7d02dd1..52de5f2 100644 --- a/src/components/scCustomer/index.vue +++ b/src/components/scCustomer/index.vue @@ -10,20 +10,20 @@
-
{{item.name}}
+
{{item.label}}
-
-
- +
+
+
-
{{item.title}}
-
{{item.msg}}
+
{{item.from_user && item.from_user.name?item.from_user.name:'匿名'}}
+
{{item.to_message}}
-
+
@@ -33,8 +33,8 @@
@@ -42,40 +42,88 @@ @@ -91,8 +139,8 @@ export default { height: 56px; } .customerView{ - width: 300px; - height: 430px; + width: 380px; + height: 580px; position: absolute; right: 0; bottom: 70px; diff --git a/src/views/login/components/passwordForm.vue b/src/views/login/components/passwordForm.vue index 9abefd8..a09388b 100644 --- a/src/views/login/components/passwordForm.vue +++ b/src/views/login/components/passwordForm.vue @@ -75,6 +75,9 @@ return false } if(user.data.user.company_id === 0){ + // 登录成功连接ws + let global_callback = function () {}; + this.$socketApi.createWebSocket(global_callback); this.$router.replace({ path: '/maintenance' }) diff --git a/src/views/maintenance/index.vue b/src/views/maintenance/index.vue index 217da06..8c22dec 100644 --- a/src/views/maintenance/index.vue +++ b/src/views/maintenance/index.vue @@ -123,7 +123,8 @@ export default { bubble.style.background = `${item.color}`; bubble.innerText =`${item.name}`; return bubble - } + }, + } }