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 - } + }, + } }