Преглед изворни кода

协作文件 蓝色图标样式修改

dev-remain
kim131 пре 4 година
родитељ
комит
9ab0d8bb57
3 измењених фајлова са 3 додато и 7 уклоњено
  1. +1
    -1
      public/static/css/main.css
  2. +1
    -1
      src/views/main_web/workspace/components/file-item.vue
  3. +1
    -5
      src/views/main_web/workspace/workspace.new.vue

+ 1
- 1
public/static/css/main.css Прегледај датотеку

@@ -9072,7 +9072,7 @@ h5.dulilabel{
} }
/* 文件左上角图标 */ /* 文件左上角图标 */
.green-icon, .gray-icon {
.green-icon, .gray-icon , .blue-icon {
display: block; display: block;
width: 24px; width: 24px;
height: 24px; height: 24px;


+ 1
- 1
src/views/main_web/workspace/components/file-item.vue Прегледај датотеку

@@ -121,7 +121,7 @@
class="yijianxietong" class="yijianxietong"
> >
<i <i
class="blue-icon icon"
class="blue-icon icon font_family"
title="当前文件不是最新的文件" title="当前文件不是最新的文件"
@click="clientDownLoad(file, 1)" @click="clientDownLoad(file, 1)"
/> />


+ 1
- 5
src/views/main_web/workspace/workspace.new.vue Прегледај датотеку

@@ -670,12 +670,8 @@ export default {
} }
); );
this.timerIns = setTimeout(() => { this.intervalTask(); }, 3000); this.timerIns = setTimeout(() => { this.intervalTask(); }, 3000);
},
beforeDestroy() {

}, },
destroyed: function () { destroyed: function () {
console.log('destroyed');
window.removeEventListener("scroll", this.onscroll); window.removeEventListener("scroll", this.onscroll);
window.removeEventListener("resize", this.listenBottomHeight); window.removeEventListener("resize", this.listenBottomHeight);
// window.removeEventListener("mouseenter", this.setIconMouseEnter); // window.removeEventListener("mouseenter", this.setIconMouseEnter);
@@ -1604,7 +1600,6 @@ export default {
* 文件打开方式 * 文件打开方式
*/ */
async openFileWith(file) { async openFileWith(file) {
debugger;
const localWorkspacePrefix = this.localWorkspacePrefix; const localWorkspacePrefix = this.localWorkspacePrefix;
const fileStoreKey = getFileStoreKey(file, this.currentNodeFolder); const fileStoreKey = getFileStoreKey(file, this.currentNodeFolder);
if(!this.localFileHashMap[fileStoreKey]) return; if(!this.localFileHashMap[fileStoreKey]) return;
@@ -1613,6 +1608,7 @@ export default {
// 若文件在协作文件中,则不更改状态 // 若文件在协作文件中,则不更改状态
const { archName, extension, id: fileId, nodeName } = file; const { archName, extension, id: fileId, nodeName } = file;
const isCooperationFile = !!nodeName; const isCooperationFile = !!nodeName;
console.log(filePath);
if(isCooperationFile) { system.clientOpenFileWith(filePath); return; } if(isCooperationFile) { system.clientOpenFileWith(filePath); return; }
// 将文件状态设置为编辑中 // 将文件状态设置为编辑中
const flagRes = await services.changeFileWorkStatus(fileId, 2); const flagRes = await services.changeFileWorkStatus(fileId, 2);


Loading…
Откажи
Сачувај