优化移动端

This commit is contained in:
kuaifan 2022-05-10 17:57:33 +08:00
parent d2428e43b2
commit 8e2a649d57
16 changed files with 2632 additions and 2479 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -151,7 +151,7 @@ export default {
const {wrapperWidth, editorHeight} = this; const {wrapperWidth, editorHeight} = this;
if (wrapperWidth > 0 if (wrapperWidth > 0
&& editorHeight > 0 && editorHeight > 0
&& (wrapperWidth < 300 || editorHeight > 40)) { && (wrapperWidth < 280 || editorHeight > 40)) {
return { return {
width: '100%' width: '100%'
}; };

View File

@ -1,36 +0,0 @@
<template>
<div class="project-all">
<PageTitle :title="$L('项目')"/>
</div>
</template>
<script>
export default {
name: "ProjectAll",
data() {
return {
}
},
mounted() {
},
destroyed() {
},
computed: {
},
watch: {
},
methods: {
}
}
</script>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -163,11 +163,11 @@ export default {
}, },
computed: { computed: {
...mapState(['userId', 'cacheDialogs', 'windowMax768']), ...mapState(['userId', 'cacheDialogs', 'isDesktop']),
dialogId() { dialogId() {
const {dialogId} = this.$route.params; const {dialogId} = this.$route.params;
if (dialogId && !/^\d+$/.test(dialogId)) { if (['dialog', 'contacts'].includes(dialogId)) {
this.tabActive = dialogId this.tabActive = dialogId
} }
return parseInt(/^\d+$/.test(dialogId) ? dialogId : 0); return parseInt(/^\d+$/.test(dialogId) ? dialogId : 0);
@ -317,7 +317,7 @@ export default {
}, },
openContacts(user) { openContacts(user) {
if (!this.windowMax768) { if (this.isDesktop) {
this.tabActive = 'dialog'; this.tabActive = 'dialog';
} }
this.$store.dispatch("openDialogUserid", user.userid).then(({data}) => { this.$store.dispatch("openDialogUserid", user.userid).then(({data}) => {

View File

@ -1,20 +1,20 @@
<template> <template>
<div class="page-project"> <div class="page-project">
<template v-if="projectId > 0"> <template v-if="projectId > 0">
<ProjectList/> <ProjectPanel/>
<ProjectDialog v-if="projectData.cacheParameter.chat"/> <ProjectDialog v-if="projectData.cacheParameter.chat"/>
</template> </template>
<ProjectAll v-else-if="routeName === 'manage-project'"/> <ProjectList v-else-if="routeName === 'manage-project'"/>
</div> </div>
</template> </template>
<script> <script>
import {mapState, mapGetters} from "vuex"; import {mapState, mapGetters} from "vuex";
import ProjectList from "./components/ProjectList"; import ProjectPanel from "./components/ProjectPanel";
import ProjectDialog from "./components/ProjectDialog"; import ProjectDialog from "./components/ProjectDialog";
import ProjectAll from "./components/ProjectAll"; import ProjectList from "./components/ProjectList";
export default { export default {
components: {ProjectAll, ProjectDialog, ProjectList}, components: {ProjectList, ProjectDialog, ProjectPanel},
deactivated() { deactivated() {
this.$store.dispatch("forgetTaskCompleteTemp", true); this.$store.dispatch("forgetTaskCompleteTemp", true);

View File

@ -57,7 +57,7 @@ export default {
}, },
computed: { computed: {
...mapState(['userInfo', 'userIsAdmin', 'clientNewVersion', 'windowMax768']), ...mapState(['userInfo', 'userIsAdmin', 'clientNewVersion', 'isDesktop']),
routeName() { routeName() {
return this.$route.name return this.$route.name
@ -93,10 +93,10 @@ export default {
routeName: { routeName: {
handler(name) { handler(name) {
if (name === 'manage-setting') { if (name === 'manage-setting') {
if (!this.windowMax768) { this.show768Menu = true;
if (this.isDesktop) {
this.goForward({name: 'manage-setting-personal'}, true); this.goForward({name: 'manage-setting-personal'}, true);
} }
this.show768Menu = true;
} }
}, },
immediate: true immediate: true
@ -115,7 +115,7 @@ export default {
classNameRoute(path, divided) { classNameRoute(path, divided) {
return { return {
"active": !this.windowMax768 && this.routeName === `manage-setting-${path}`, "active": this.isDesktop && this.routeName === `manage-setting-${path}`,
"divided": !!divided "divided": !!divided
}; };
}, },

View File

@ -95,7 +95,7 @@ body.dark-mode-reverse {
} }
} }
.project-list { .project-panel {
.project-head { .project-head {
.project-titbox { .project-titbox {
.project-title { .project-title {

View File

@ -8,6 +8,7 @@
@import "project-list"; @import "project-list";
@import "project-log"; @import "project-log";
@import "project-management"; @import "project-management";
@import "project-panel";
@import "project-workflow"; @import "project-workflow";
@import "task-add"; @import "task-add";
@import "task-add-simple"; @import "task-add-simple";

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -445,8 +445,9 @@
.messenger-wrapper { .messenger-wrapper {
.messenger-select { .messenger-select {
.messenger-menu { .messenger-menu {
height: 60px;
border-top: 0; border-top: 0;
height: 60px;
opacity: 0;
} }
} }
} }

View File

@ -2,7 +2,7 @@
flex: 1; flex: 1;
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
.project-list { .project-panel {
flex: 1; flex: 1;
width: 0; width: 0;
height: 100%; height: 100%;
@ -20,7 +20,7 @@
@media (max-width: 768px) { @media (max-width: 768px) {
.page-project { .page-project {
.project-list { .project-panel {
height: auto; height: auto;
&.gantt { &.gantt {
height: 100%; height: 100%;