feat: 导航列表添加返回当前编辑的项目
This commit is contained in:
@@ -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提示
|
||||||
|
|||||||
@@ -200,6 +200,7 @@ export default {
|
|||||||
jsContent1: "是否删除指定工作空间",
|
jsContent1: "是否删除指定工作空间",
|
||||||
jsContent2: "请输入当前工作空间的名字",
|
jsContent2: "请输入当前工作空间的名字",
|
||||||
jsContent3: "看到您换了风格。您是否愿意将目前使用的模特替换为系统推荐的模特?",
|
jsContent3: "看到您换了风格。您是否愿意将目前使用的模特替换为系统推荐的模特?",
|
||||||
|
currentProject: "当前项目"
|
||||||
},
|
},
|
||||||
RobotAssist: {
|
RobotAssist: {
|
||||||
inputContent1: "问我什么都行~",
|
inputContent1: "问我什么都行~",
|
||||||
|
|||||||
@@ -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~",
|
||||||
|
|||||||
@@ -1,52 +1,54 @@
|
|||||||
import {Module} from 'vuex'
|
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> = {
|
||||||
state:{
|
state: {
|
||||||
workspace:{},
|
workspace: {},
|
||||||
workspaceSex:{},
|
workspaceSex: {},
|
||||||
workspacePosition:{},
|
workspacePosition: {},
|
||||||
workspaceAllPosition:{},
|
workspaceAllPosition: {},
|
||||||
openChat:false,
|
openChat: false,
|
||||||
probjects:{
|
probjects: {
|
||||||
name:'',//项目名称
|
name: '', //项目名称
|
||||||
id:'',//项目id
|
id: '', //项目id
|
||||||
type:'',//项目类型
|
type: '', //项目类型
|
||||||
httpType:'',//项目类型
|
httpType: '', //项目类型
|
||||||
styleName:'',//项目风格
|
styleName: '', //项目风格
|
||||||
style:'',
|
style: '',
|
||||||
styleId:null,//项目风格
|
styleId: null, //项目风格
|
||||||
sex:'Female',//项目性别
|
sex: 'Female', //项目性别
|
||||||
ageGroup:'Adult',//年龄组
|
ageGroup: 'Adult', //年龄组
|
||||||
positionList:[],//衣服位置
|
positionList: [], //衣服位置
|
||||||
position:{},//衣服位置
|
position: {}, //衣服位置
|
||||||
brandPercentage:30,//品牌分成
|
brandPercentage: 30, //品牌分成
|
||||||
userBrandDna:'',//用户品牌
|
userBrandDna: '', //用户品牌
|
||||||
userBrandDnaImg:'',//用户品牌图片
|
userBrandDnaImg: '', //用户品牌图片
|
||||||
userBrandDnaName:'',//用户品牌名字
|
userBrandDnaName: '', //用户品牌名字
|
||||||
workspaceId:-1,//worspaceId
|
workspaceId: -1, //worspaceId
|
||||||
publishData:{
|
publishData: {
|
||||||
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) {
|
||||||
state.workspace = files
|
state.workspace = files
|
||||||
//写一个下载视频的代码
|
//写一个下载视频的代码
|
||||||
// const a = document.createElement('a')
|
// const a = document.createElement('a')
|
||||||
@@ -54,58 +56,59 @@ const Workspace : Module<DesignDetail,RootState> = {
|
|||||||
// a.download = 'video.mp4'
|
// a.download = 'video.mp4'
|
||||||
// a.click()
|
// a.click()
|
||||||
},
|
},
|
||||||
setOpenChatStatus(state,boolean){
|
setOpenChatStatus(state, boolean) {
|
||||||
state.openChat = boolean
|
state.openChat = boolean
|
||||||
},
|
},
|
||||||
setWorkspaceSex(state,files){
|
setWorkspaceSex(state, files) {
|
||||||
state.workspaceSex = files
|
state.workspaceSex = files
|
||||||
},
|
},
|
||||||
setWorkspacePosition(state,files){
|
setWorkspacePosition(state, files) {
|
||||||
state.workspacePosition = files
|
state.workspacePosition = files
|
||||||
},
|
},
|
||||||
setWorkspaceAllPosition(state,files){
|
setWorkspaceAllPosition(state, files) {
|
||||||
state.workspaceAllPosition = files
|
state.workspaceAllPosition = files
|
||||||
},
|
},
|
||||||
setProjectList(state,list){
|
setProjectList(state, list) {
|
||||||
state.projectList = list
|
state.projectList = list
|
||||||
},
|
},
|
||||||
setProbject(state,data){
|
setProbject(state, data) {
|
||||||
for (const key in data) {
|
for (const key in data) {
|
||||||
if(data[key] == undefined)continue
|
if (data[key] == undefined) continue
|
||||||
state.probjects[key] = data[key]
|
state.probjects[key] = data[key]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
createProbject(state){
|
createProbject(state) {
|
||||||
state.probjects = {
|
state.probjects = {
|
||||||
name:'',
|
name: '',
|
||||||
id:'',
|
id: '',
|
||||||
type:'',
|
type: '',
|
||||||
httpType:'',
|
httpType: '',
|
||||||
styleName:'',//项目风格
|
styleName: '', //项目风格
|
||||||
styleId:null,//项目风格
|
styleId: null, //项目风格
|
||||||
style:'',
|
style: '',
|
||||||
sex:'Female',
|
sex: 'Female',
|
||||||
ageGroup:'Adult',//年龄组
|
ageGroup: 'Adult', //年龄组
|
||||||
positionList:[],
|
positionList: [],
|
||||||
position:{},//衣服位置
|
position: {}, //衣服位置
|
||||||
userBrandDna:'',//用户品牌
|
userBrandDna: '', //用户品牌
|
||||||
userBrandDnaImg:'',//用户品牌图片
|
userBrandDnaImg: '', //用户品牌图片
|
||||||
userBrandDnaName:'',//用户品牌名字
|
userBrandDnaName: '', //用户品牌名字
|
||||||
workspaceId:-1,//worspaceId
|
workspaceId: -1, //worspaceId
|
||||||
publishData:{
|
publishData: {
|
||||||
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
@@ -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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user