Sfoglia il codice sorgente

调整文件图片样式

dev
zhengzhou 4 anni fa
parent
commit
aadd51a2a2
3 ha cambiato i file con 9 aggiunte e 9 eliminazioni
  1. +4
    -4
      public/static/css/main.css
  2. +3
    -3
      src/services/system.js
  3. +2
    -2
      src/views/main_web/workspace/workspace.new.vue

+ 4
- 4
public/static/css/main.css Vedi File

@@ -2688,7 +2688,7 @@ button:focus {
.defultImage-mid {
width: 136px;
height: 136px;
background: url("/static/img/fileType/default.svg") no-repeat;
background: url("/static/img/fileType/default.svg") no-repeat center;
background-size:80% 76%;
}
.folder {
@@ -2731,7 +2731,7 @@ button:focus {
.xls-mid,
.xlsx-mid,
.excel-mid {
background: url("/static/img/fileType/excel.svg") no-repeat;
background: url("/static/img/fileType/excel.svg") no-repeat center;
background-size:80% 76%;
}
@@ -2741,7 +2741,7 @@ button:focus {
}
.ppt-mid,
.pptx-mid {
background: url("/static/img/fileType/PPT.svg") no-repeat;
background: url("/static/img/fileType/PPT.svg") no-repeat center;
background-size:80% 76%;
}
@@ -2749,7 +2749,7 @@ button:focus {
background: url("/static/img/bgtupian.png") no-repeat -900px 0
}
.pdf-mid {
background: url("/static/img/fileType/pdf.svg") no-repeat;
background: url("/static/img/fileType/pdf.svg") no-repeat center;
background-size:80% 76%;
}


+ 3
- 3
src/services/system.js Vedi File

@@ -174,9 +174,9 @@ const system = {
/**
* 通知系统进入当前的工作空间
*/
entryProject: safeCall((projName, accountName, fileChangeHandler, initHandler, errorHandler = identity) => {
requestBySocket(io('init'), [accountName, projName].join('|'))
.then(response => initHandler(response.data));
entryProject: safeCall(async (projName, accountName, fileChangeHandler, initHandler, errorHandler = identity) => {
const response = await requestBySocket(io('init'), [accountName, projName].join('|'));
initHandler(response.data);
const watchSocket = io('subscriptionFileChange');
watchSocket.on('open', () => {
watchSocket.send(projName);


+ 2
- 2
src/views/main_web/workspace/workspace.new.vue Vedi File

@@ -721,7 +721,7 @@ export default {
this.fetchFoldersByProjId();
this.getNestNode(sessionStorage.templateID);

this.socketIns = system.entryProject(
system.entryProject(
sessionStorage.projName, sessionStorage.accountName,
this.onSocketFileChangeDetected.bind(this),
(localWorkspacePrefix) => { this.localWorkspacePrefix = localWorkspacePrefix;},
@@ -732,7 +732,7 @@ export default {
type:'error'
})
}
);
).then(socketIns => { this.socketIns = socketIns; });
this.timerIns = setTimeout(() => { this.intervalTask(); }, 3000);
},
destroyed: function () {


Caricamento…
Annulla
Salva