From c6a022dd0b702301a5da79f11e325a1e0871418a Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 12 Nov 2020 18:26:37 +0800 Subject: [PATCH] workspace update --- src/services/system.js | 6 +- .../workspace/components/add-file-button.vue | 2 +- .../workspace/components/file-item.vue | 188 +++++++++--------- .../main_web/workspace/workspace.new.vue | 24 ++- 4 files changed, 119 insertions(+), 101 deletions(-) diff --git a/src/services/system.js b/src/services/system.js index fc66bfde..8ab0451b 100644 --- a/src/services/system.js +++ b/src/services/system.js @@ -147,8 +147,8 @@ const system = { // 项目id ProjId: projectId, // ShowUrl: "string", - // Status: 0, - // Version: 0, + Status: 2, + Version: 1, // WorkStatus: 0 }; @@ -210,7 +210,7 @@ const system = { const res = await fetchApi('file/updateFile', copyFile); wrapErrorHint(res); - if(res.Code === 0) { notify.success(`${archName} 更新成功`); } + // if(res.Code === 0) { notify.success(`${archName} 更新成功`); } onSuccessHandler(copyFile); return; } catch(err) { diff --git a/src/views/main_web/workspace/components/add-file-button.vue b/src/views/main_web/workspace/components/add-file-button.vue index 9025cd61..7311a419 100644 --- a/src/views/main_web/workspace/components/add-file-button.vue +++ b/src/views/main_web/workspace/components/add-file-button.vue @@ -23,7 +23,7 @@
点击上传本地文件 diff --git a/src/views/main_web/workspace/components/file-item.vue b/src/views/main_web/workspace/components/file-item.vue index cd37a718..c0ebb2b8 100644 --- a/src/views/main_web/workspace/components/file-item.vue +++ b/src/views/main_web/workspace/components/file-item.vue @@ -13,7 +13,7 @@ v-if="!oneOf(file.extension, imgExtensionList)" class="defultImage-mid" :class="`${file.extension}-mid ${ - isClient && file.downloadStatus !== DownloadStatus.DOWNLOADED ? 'toumin' : '' + isClient && !localFileIsLatest ? 'toumin' : '' }`" @contextmenu.prevent.stop="rightShowMenu($event, file, 1)" /> @@ -22,7 +22,7 @@ v-else class="defultImage-mid img_bg-mid" :class=" - isClient && file.downloadStatus !== DownloadStatus.DOWNLOADED ? 'toumin' : '' + isClient && !localFileIsLatest ? 'toumin' : '' " @contextmenu.prevent.stop="rightShowMenu($event, file, 1)" > @@ -34,106 +34,91 @@
工作中
-
-
-
- - -
-
-
- -
-
- - - -
-
- -
-
- - - -
- -
- - -