feat: 导航列表添加返回当前编辑的项目
This commit is contained in:
@@ -4,13 +4,16 @@
|
||||
<a-spin size="large" />
|
||||
</div>
|
||||
<div class="show">
|
||||
<div v-show="openType === 'history'" class="function">
|
||||
<design :key="componentKey" ref="design"></design>
|
||||
</div>
|
||||
<router-view v-if="
|
||||
(openType && openType != 'history' && !routeQuery.id) ||
|
||||
$route.path != '/home'"
|
||||
@setTask="setTask"
|
||||
>
|
||||
</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>
|
||||
</div>
|
||||
<div v-else class="function">
|
||||
@@ -82,11 +85,11 @@ export default defineComponent({
|
||||
data.dataLoad = false
|
||||
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(()=>{
|
||||
if(query.history || query.id){
|
||||
//切换新项目需要清除首次design提示
|
||||
|
||||
@@ -200,6 +200,7 @@ export default {
|
||||
jsContent1: "是否删除指定工作空间",
|
||||
jsContent2: "请输入当前工作空间的名字",
|
||||
jsContent3: "看到您换了风格。您是否愿意将目前使用的模特替换为系统推荐的模特?",
|
||||
currentProject: "当前项目"
|
||||
},
|
||||
RobotAssist: {
|
||||
inputContent1: "问我什么都行~",
|
||||
|
||||
@@ -200,6 +200,7 @@ export default {
|
||||
jsContent1: "Whether to delete the workspace?",
|
||||
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?",
|
||||
currentProject: "Current Project"
|
||||
},
|
||||
RobotAssist: {
|
||||
inputContent1: "write a message~",
|
||||
|
||||
@@ -2,12 +2,13 @@ import {Module} from 'vuex'
|
||||
import { RootState } from '../index'
|
||||
|
||||
interface DesignDetail {
|
||||
workspace:any,
|
||||
workspaceSex:any,
|
||||
workspacePosition:any,
|
||||
workspaceAllPosition:any,//所有位置
|
||||
probjects:any,//项目参数
|
||||
projectList:any,//项目列表参数
|
||||
workspace: any
|
||||
workspaceSex: any
|
||||
workspacePosition: any
|
||||
workspaceAllPosition: any //所有位置
|
||||
probjects: any //项目参数
|
||||
projectList: any //项目列表参数
|
||||
projectPath: string //项目路径
|
||||
}
|
||||
|
||||
const Workspace: Module<DesignDetail, RootState> = {
|
||||
@@ -38,12 +39,13 @@ const Workspace : Module<DesignDetail,RootState> = {
|
||||
id: '',
|
||||
portfolioDes: '',
|
||||
portfolioName: '',
|
||||
tagsDTO:[],
|
||||
tagsDTO: []
|
||||
}, //发布的作品数据
|
||||
systemDesignerPercentage: 30, //设计师分成
|
||||
model:[],//模特
|
||||
model: [] //模特
|
||||
},
|
||||
projectList: [], //项目列表参数
|
||||
projectPath:''
|
||||
},
|
||||
mutations: {
|
||||
setWorkspace(state, files) {
|
||||
@@ -96,16 +98,17 @@ const Workspace : Module<DesignDetail,RootState> = {
|
||||
id: '',
|
||||
portfolioDes: '',
|
||||
portfolioName: '',
|
||||
tagsDTO:[],
|
||||
tagsDTO: []
|
||||
}, //发布的作品数据
|
||||
systemDesignerPercentage: 30,
|
||||
model:[],//模特
|
||||
}
|
||||
model: [] //模特
|
||||
}
|
||||
},
|
||||
actions:{
|
||||
|
||||
setProjectPath(state, path) {
|
||||
state.projectPath = path
|
||||
}
|
||||
},
|
||||
actions: {}
|
||||
}
|
||||
|
||||
export default Workspace
|
||||
File diff suppressed because it is too large
Load Diff
@@ -286,7 +286,6 @@ export default defineComponent({
|
||||
this.currentPage = 1
|
||||
this.getHistoryList()
|
||||
}
|
||||
console.log('==========size:' + size + ' rem:' + rem + ' height:' + height)
|
||||
},
|
||||
getClass() {
|
||||
let data = {
|
||||
|
||||
Reference in New Issue
Block a user