From 57161888f57a7226ef4c1d105dad56930358c165 Mon Sep 17 00:00:00 2001 From: kim131 <1035828775@qq.com> Date: Fri, 8 Jan 2021 14:43:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E7=89=88=E5=B7=A5=E4=BD=9C=E9=93=BEbu?= =?UTF-8?q?g=E4=BF=AE=E5=A4=8D=20=E5=AE=A2=E6=88=B7=E7=AB=AF=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E7=BC=A9=E5=B0=8F=E6=94=BE=E5=A4=A7=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/static/css/main.css | 1 + src/App.vue | 7 +- src/components/app-header/app-header.vue | 2 +- src/services/system.js | 4 +- .../workspace/components/workLine.vue | 242 ++++++++++-------- .../main_web/workspace/workspace.new.vue | 61 +++-- src/views/platform_center/index.vue | 8 +- 7 files changed, 194 insertions(+), 131 deletions(-) diff --git a/public/static/css/main.css b/public/static/css/main.css index 82ae2653..bf50fa1d 100644 --- a/public/static/css/main.css +++ b/public/static/css/main.css @@ -7794,6 +7794,7 @@ li.secondMenu ul li:hover { } */ .worklink{ width: 100%; + width: calc(100vw - 64px); height: calc(100vh - 114px); display: flex; align-items: center; diff --git a/src/App.vue b/src/App.vue index cef8474b..6f1c3855 100644 --- a/src/App.vue +++ b/src/App.vue @@ -31,7 +31,9 @@ @@ -182,5 +184,8 @@ jmnode { .mt-60 { margin: 60px 0 0 0; } + .mt-64 { + margin: 64px 0 0 0; + } \ No newline at end of file diff --git a/src/components/app-header/app-header.vue b/src/components/app-header/app-header.vue index e22ff477..0db851aa 100644 --- a/src/components/app-header/app-header.vue +++ b/src/components/app-header/app-header.vue @@ -5,7 +5,7 @@
在线
-
+
diff --git a/src/services/system.js b/src/services/system.js index 31f112d0..6d944d06 100644 --- a/src/services/system.js +++ b/src/services/system.js @@ -148,8 +148,8 @@ const system = { /** * 通知系统进入当前的工作空间 */ - entryProject: safeCall((projName, userId, fileChangeHandler, initHandler, errorHandler = identity) => { - requestBySocket(io('init'), [userId, projName].join('|')) + entryProject: safeCall((projName, accountName, fileChangeHandler, initHandler, errorHandler = identity) => { + requestBySocket(io('init'), [accountName, projName].join('|')) .then(response => initHandler(response.data)); const watchSocket = io('subscriptionFileChange'); watchSocket.on('open', () => { diff --git a/src/views/main_web/workspace/components/workLine.vue b/src/views/main_web/workspace/components/workLine.vue index 7e0a54aa..348a6e12 100644 --- a/src/views/main_web/workspace/components/workLine.vue +++ b/src/views/main_web/workspace/components/workLine.vue @@ -2,7 +2,7 @@