页面调整
This commit is contained in:
@@ -26,7 +26,7 @@ import { useRouter,useRoute } from 'vue-router'
|
||||
import design from "./design/index.vue"
|
||||
import newPorject from "./newProject/index.vue"
|
||||
import router from '@/router';
|
||||
import {getMinioUrl} from '@/tool/util'
|
||||
import {getMinioUrl, getUniversalZoomLevel} from '@/tool/util'
|
||||
import chat from "./chat/index.vue"
|
||||
export default defineComponent({
|
||||
components:{
|
||||
@@ -76,7 +76,16 @@ export default defineComponent({
|
||||
if(query.history || query.id){
|
||||
if(data.openType == 'tools')data.isShowMark = true
|
||||
data.dataLoad = true
|
||||
if(query?.source != 'batch')createData()
|
||||
if(query?.source != 'batch'){
|
||||
createData()
|
||||
}else{
|
||||
let arr = ['moodBoard','printBoard','sketchBoard','colorBoard']
|
||||
arr.forEach((item:any)=>{
|
||||
store.commit("clearAllBoardData",item);
|
||||
})
|
||||
store.commit("createProbject");
|
||||
store.commit("clearAllData");
|
||||
}
|
||||
if(query.type == 'Works'){
|
||||
getWorks(query.id || query.history)
|
||||
}else{
|
||||
@@ -98,7 +107,6 @@ export default defineComponent({
|
||||
store.commit("clearAllCollection");
|
||||
store.commit("setAllBoardDataChoose",{});
|
||||
store.commit("clearShowSketchboard",{});
|
||||
store.commit("clearAllCollection");
|
||||
store.commit("clearAllCloudList");
|
||||
let arr = ['moodBoard','printBoard','sketchBoard','colorBoard']
|
||||
arr.forEach((item:any)=>{
|
||||
@@ -225,7 +233,7 @@ export default defineComponent({
|
||||
return new Promise((resolve, reject) => {
|
||||
let moduleList = [] as any
|
||||
if(type == 'design'){
|
||||
moduleList = ["moodBoard", "printBoard", "colorBoard", "sketchBoard",'design','mannequin']
|
||||
moduleList = ["moodBoard", "printBoard", "colorBoard", "sketchBoard",'design','mannequin','toProduct','relight','poseTransfer']
|
||||
}else{
|
||||
moduleList = ["printBoard", "colorBoard", "sketchBoard",'design','toProduct','relight','poseTransfer','mannequin',"patternMaking3D",'deReconstruction','uploadElement']
|
||||
}
|
||||
@@ -282,7 +290,7 @@ export default defineComponent({
|
||||
})
|
||||
data.isShowMark = false
|
||||
data.dataLoad = false
|
||||
if(type == 'design'){
|
||||
if(type == 'design' && dataDom.design){
|
||||
nextTick(()=>{
|
||||
dataDom.design.openSetData()
|
||||
})
|
||||
@@ -357,7 +365,8 @@ export default defineComponent({
|
||||
store.commit("setUserGroupId", dataValue.design?.userGroupId);
|
||||
if(dataValue.toProduct){
|
||||
let value = {
|
||||
list: dataValue.toProduct,
|
||||
list:dataValue.toProduct.list.filter((rv)=>rv.status != 'Invalid' && rv.status != 'Fail'),
|
||||
likedList:dataValue.toProduct.likedList,
|
||||
str:'add',
|
||||
index:-1,
|
||||
}
|
||||
@@ -365,7 +374,8 @@ export default defineComponent({
|
||||
}
|
||||
if(dataValue.relight){
|
||||
let value = {
|
||||
list: dataValue.relight,
|
||||
list:dataValue.relight.list.filter((rv)=>rv.status != 'Invalid' && rv.status != 'Fail'),
|
||||
likedList:dataValue.relight.likedList,
|
||||
str:'add',
|
||||
index:-1,
|
||||
}
|
||||
@@ -391,6 +401,24 @@ export default defineComponent({
|
||||
};
|
||||
store.commit('setPatternMaking3D',patternMaking3DData)
|
||||
}
|
||||
if(dataValue.deReconstruction){
|
||||
let deReconstruction = {
|
||||
str:'add',
|
||||
list:[
|
||||
{
|
||||
isLike:dataValue.deReconstruction.liked,
|
||||
category:dataValue.deReconstruction.category,
|
||||
url:dataValue.deReconstruction.collageSketchUrl,
|
||||
categoryValue:dataValue.deReconstruction.categoryValue,
|
||||
}
|
||||
]
|
||||
};
|
||||
let uploadImages = {
|
||||
str:'add',
|
||||
list:dataValue.deReconstruction?.uploadImages
|
||||
};
|
||||
store.commit('setDeReconstructionUploadImages',uploadImages)
|
||||
}
|
||||
}
|
||||
//统一处理选择组的渲染数据
|
||||
const dealViewChooseData = (dataValue: any,str:string)=> {
|
||||
|
||||
Reference in New Issue
Block a user