feat: 导航列表添加返回当前编辑的项目

This commit is contained in:
zhangyh
2025-10-23 13:51:29 +08:00
parent 569ffd2bf3
commit fe20ed1ad3
6 changed files with 2234 additions and 2006 deletions

View File

@@ -4,13 +4,16 @@
<a-spin size="large" /> <a-spin size="large" />
</div> </div>
<div class="show"> <div class="show">
<div v-show="openType === 'history'" class="function">
<design :key="componentKey" ref="design"></design>
</div>
<router-view v-if=" <router-view v-if="
(openType && openType != 'history' && !routeQuery.id) || (openType && openType != 'history' && !routeQuery.id) ||
$route.path != '/home'" $route.path != '/home'"
@setTask="setTask" @setTask="setTask"
> >
</router-view> </router-view>
<div v-else-if="routeQuery.id || openType == 'history'" class="function"> <div v-else-if="routeQuery.id" class="function">
<design :key="componentKey" ref="design"></design> <design :key="componentKey" ref="design"></design>
</div> </div>
<div v-else class="function"> <div v-else class="function">
@@ -82,11 +85,11 @@ export default defineComponent({
data.dataLoad = false data.dataLoad = false
return return
} }
// if((query.history || query.id) != (oldQuery.history || oldQuery.id)){
// }
if(query.history && query.history != query.history){
if(data.openType == 'history'){
store.commit('setProjectPath',route.fullPath)
} }
nextTick(()=>{ nextTick(()=>{
if(query.history || query.id){ if(query.history || query.id){
//切换新项目需要清除首次design提示 //切换新项目需要清除首次design提示

View File

@@ -200,6 +200,7 @@ export default {
jsContent1: "是否删除指定工作空间", jsContent1: "是否删除指定工作空间",
jsContent2: "请输入当前工作空间的名字", jsContent2: "请输入当前工作空间的名字",
jsContent3: "看到您换了风格。您是否愿意将目前使用的模特替换为系统推荐的模特?", jsContent3: "看到您换了风格。您是否愿意将目前使用的模特替换为系统推荐的模特?",
currentProject: "当前项目"
}, },
RobotAssist: { RobotAssist: {
inputContent1: "问我什么都行~", inputContent1: "问我什么都行~",

View File

@@ -200,6 +200,7 @@ export default {
jsContent1: "Whether to delete the workspace?", jsContent1: "Whether to delete the workspace?",
jsContent2: "Please enter a workbench name", jsContent2: "Please enter a workbench name",
jsContent3: "It looks like you've changed the style. Would you like to replace the currently used mannequin with the system-recommended model for this style?", jsContent3: "It looks like you've changed the style. Would you like to replace the currently used mannequin with the system-recommended model for this style?",
currentProject: "Current Project"
}, },
RobotAssist: { RobotAssist: {
inputContent1: "write a message~", inputContent1: "write a message~",

View File

@@ -2,12 +2,13 @@ import {Module} from 'vuex'
import { RootState } from '../index' import { RootState } from '../index'
interface DesignDetail { interface DesignDetail {
workspace:any, workspace: any
workspaceSex:any, workspaceSex: any
workspacePosition:any, workspacePosition: any
workspaceAllPosition:any,//所有位置 workspaceAllPosition: any //所有位置
probjects:any,//项目参数 probjects: any //项目参数
projectList:any,//项目列表参数 projectList: any //项目列表参数
projectPath: string //项目路径
} }
const Workspace: Module<DesignDetail, RootState> = { const Workspace: Module<DesignDetail, RootState> = {
@@ -38,12 +39,13 @@ const Workspace : Module<DesignDetail,RootState> = {
id: '', id: '',
portfolioDes: '', portfolioDes: '',
portfolioName: '', portfolioName: '',
tagsDTO:[], tagsDTO: []
}, //发布的作品数据 }, //发布的作品数据
systemDesignerPercentage: 30, //设计师分成 systemDesignerPercentage: 30, //设计师分成
model:[],//模特 model: [] //模特
}, },
projectList: [], //项目列表参数 projectList: [], //项目列表参数
projectPath:''
}, },
mutations: { mutations: {
setWorkspace(state, files) { setWorkspace(state, files) {
@@ -96,16 +98,17 @@ const Workspace : Module<DesignDetail,RootState> = {
id: '', id: '',
portfolioDes: '', portfolioDes: '',
portfolioName: '', portfolioName: '',
tagsDTO:[], tagsDTO: []
}, //发布的作品数据 }, //发布的作品数据
systemDesignerPercentage: 30, systemDesignerPercentage: 30,
model:[],//模特 model: [] //模特
}
} }
}, },
actions:{ setProjectPath(state, path) {
state.projectPath = path
} }
},
actions: {}
} }
export default Workspace export default Workspace

File diff suppressed because it is too large Load Diff

View File

@@ -286,7 +286,6 @@ export default defineComponent({
this.currentPage = 1 this.currentPage = 1
this.getHistoryList() this.getHistoryList()
} }
console.log('==========size:' + size + ' rem:' + rem + ' height:' + height)
}, },
getClass() { getClass() {
let data = { let data = {