diff --git a/.env.dev b/.env.dev index 5c2f790a..ed123db3 100644 --- a/.env.dev +++ b/.env.dev @@ -8,6 +8,4 @@ VUE_APP_BASE_URL = 'https://develop.api.aida.com.hk' # 徐佩 # VUE_APP_BASE_URL = 'http://192.168.31.118:5567' # 海波 -# VUE_APP_BASE_URL = 'http://192.168.1.3:5567' - -ss \ No newline at end of file +# VUE_APP_BASE_URL = 'http://192.168.31.34:5567' diff --git a/src/assets/images/icon/details_model.png b/src/assets/images/icon/details_model.png new file mode 100644 index 00000000..ffbc1fd7 Binary files /dev/null and b/src/assets/images/icon/details_model.png differ diff --git a/src/assets/images/icon/details_model.svg b/src/assets/images/icon/details_model.svg new file mode 100644 index 00000000..f431a7dc --- /dev/null +++ b/src/assets/images/icon/details_model.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/assets/style/style.css b/src/assets/style/style.css index d5ef0f57..12a687d3 100644 --- a/src/assets/style/style.css +++ b/src/assets/style/style.css @@ -720,6 +720,10 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte .generalModel_state .generalModel_state_item.smail .el-cascader { padding: 1rem 2rem; } +.generalModel_state .generalModel_state_item.smail .ant-select-selection-placeholder { + display: flex; + align-items: center; +} .generalModel_state .generalModel_state_item > input { height: 6rem !important; padding: 1rem !important; @@ -762,8 +766,9 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte } .generalModel_state .generalModel_state_item .ant-select-lg .ant-select-selector .ant-select-selection-item { height: 100%; - display: flex; - align-items: center; + display: inline-block; + overflow: hidden; + line-height: 2.7rem; } .generalModel_state .generalModel_state_item .el-cascader { font-size: 1.8rem; diff --git a/src/assets/style/style.less b/src/assets/style/style.less index 0b59dace..03dc162a 100644 --- a/src/assets/style/style.less +++ b/src/assets/style/style.less @@ -791,7 +791,10 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte .el-cascader{ padding: 1rem 2rem; } - + .ant-select-selection-placeholder{ + display: flex; + align-items: center; + } } >input{ height: 6rem !important; @@ -838,8 +841,12 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte .ant-select-selector{ .ant-select-selection-item{ height: 100%; - display: flex; - align-items: center; + // display: flex; + display: inline-block; + // align-items: center; + //文字超出隐藏 + overflow: hidden; + line-height: 2.7rem; } } } diff --git a/src/component/Account/frontPage/bindPage.vue b/src/component/Account/frontPage/bindPage.vue index bcdce51a..907b40db 100644 --- a/src/component/Account/frontPage/bindPage.vue +++ b/src/component/Account/frontPage/bindPage.vue @@ -139,7 +139,7 @@ export default defineComponent({ } onMounted(async ()=>{ - let GOOGLE_CLIENT_ID = '194770296147-njd68pm7tnapgonkj2h48mhf63n15n3f.apps.googleusercontent.com' + let GOOGLE_CLIENT_ID = '29310152396-nnsd3h533fld665oguu8ovrt1nukmt46.apps.googleusercontent.com' var existingScript = document.querySelector(`script[src="${data.scriptSrc}"]`); if(!window.isAddGmail){ if(!existingScript){ diff --git a/src/component/Administrator/organization/add.vue b/src/component/Administrator/organization/add.vue index 57b20cc5..8baf53e3 100644 --- a/src/component/Administrator/organization/add.vue +++ b/src/component/Administrator/organization/add.vue @@ -82,11 +82,9 @@ export default defineComponent({ operationsModal:false, operationsEdit:false, loadingShow:false, - title:'' - }) - let operationsData = reactive({ + title:'', name:'', - type:'Enterprise', + systemUser:'Enterprise', }) let state = ref([ { @@ -104,38 +102,37 @@ export default defineComponent({ operations.title = funStr if(funStr == 'Add') operations.operationsEdit = false if(funStr == 'Edit'){ - operationsData.name=data.name - operationsData.type=data.type + operations.systemUser=data.type + operations.name=data.name } } let setAddData = ()=>{ return { - "name": operationsData.name, - "type": operationsData.type, + "type": operations.systemUser, + name:operations.name, } } let setEditData = ()=>{ return { - "name": operationsData.country, - "type": operationsData.credits, + "type": operations.systemUser, + name:operations.name, } } let cancelDsign = ()=>{ - operationsData.name='' - operationsData.type='Enterprise' + operations.value='Enterprise' + operations.operationsModal = false + operations.operationsEdit = false } let setOk = ()=>{ let data if(operations.title == 'Add'){ data = setAddData() if(!data.name)return message.warning('Please check the input box marked with *') - Https.axiosPost(Https.httpUrls.addOrganization, data).then( + Https.axiosGet(Https.httpUrls.addOrganization, {params:data}).then( (rv) => { - if (rv) { - cancelDsign() - emit('searchHistoryList') - } + cancelDsign() + emit('searchHistoryList') } ); } @@ -143,7 +140,6 @@ export default defineComponent({ } return { ...toRefs(operations), - ...toRefs(operationsData), state, cancelDsign, init, diff --git a/src/component/Administrator/organization/organization.vue b/src/component/Administrator/organization/organization.vue index 7ce63f0b..f3fb8d79 100644 --- a/src/component/Administrator/organization/organization.vue +++ b/src/component/Administrator/organization/organization.vue @@ -104,39 +104,37 @@ export default defineComponent({ const columns: any = computed(() => { return [ { - title: "City", + title: "Id", align: "center", - dataIndex: "city", - key: "city", + dataIndex: "id", + key: "id", width:150, ellipsis:true }, { - title: "Country", + title: "Name", align: "center", - dataIndex: "country", - key: "country", + dataIndex: "name", + key: "name", width:150, ellipsis:true }, - { + { title: "Create Time", align: "center", dataIndex: "createTime", key: "createTime", width:150, - ellipsis:true, + ellipsis:true }, { - title: "Status", + title: "Type", align: "center", - dataIndex: "status", - key: "status", - fixed: "right", + dataIndex: "type", + key: "type", width:150, - Operations: true, ellipsis:true, - } + }, ]; }); //改变页码 @@ -158,9 +156,9 @@ export default defineComponent({ (rv: any) => { if (rv) { console.log(rv) - // this.dataList = rv - filter.dataList = rv.content; - filterData.total = rv.total; + filter.dataList = rv + // filter.dataList = rv.content; + // filterData.total = rv.total; filter.tableLoading = false; // this.workspaceItem.position = this.singleTypeList[0].label diff --git a/src/component/DetailCopy/designDetail.vue b/src/component/DetailCopy/designDetail.vue index c89b653b..9d8b0260 100644 --- a/src/component/DetailCopy/designDetail.vue +++ b/src/component/DetailCopy/designDetail.vue @@ -39,6 +39,10 @@
Elements
+
@@ -293,6 +297,7 @@ export default defineComponent({ let workspace = store.state.Workspace.probjects if(!detailData.selectDetail.path && !detailData.selectDetail.newDetail?.sketch?.minIOPath)return let clothes:any = await setClothes([detailData.selectDetail]) + console.log(detailData.designDetail) let data = { designItemId:detailData.designDetail.designItemId, designSingleItemDTOList:clothes, @@ -537,12 +542,13 @@ export default defineComponent({ > .gallery_btn{ width: 6rem; height: 6rem; + margin-top: 2rem; border-radius: 50%; } } > .nav_list{ margin-top: 2.7rem; - height: 38rem; + // height: 38rem; width: 9rem; background: #f4f4f4; border-radius: 1.4rem; diff --git a/src/component/DetailCopy/detailLeft/index.vue b/src/component/DetailCopy/detailLeft/index.vue index 3dfda612..947892f8 100644 --- a/src/component/DetailCopy/detailLeft/index.vue +++ b/src/component/DetailCopy/detailLeft/index.vue @@ -4,6 +4,7 @@ +
@@ -18,11 +19,12 @@ import sketch from './sketch.vue' import print from './print.vue' import color from './colorBox/index.vue' import element from './element.vue' +import models from './models.vue' import addDetails from '@/component/Detail/addDetails.vue' export default defineComponent({ components:{ - sketch,print,color,addDetails,element + sketch,print,color,addDetails,element,models }, setup(props,{emit}) { const store = useStore(); diff --git a/src/component/DetailCopy/detailLeft/models.vue b/src/component/DetailCopy/detailLeft/models.vue new file mode 100644 index 00000000..49327e41 --- /dev/null +++ b/src/component/DetailCopy/detailLeft/models.vue @@ -0,0 +1,171 @@ + + + \ No newline at end of file diff --git a/src/component/DetailCopy/detailLeft/module/libraryList.vue b/src/component/DetailCopy/detailLeft/module/libraryList.vue index 60706ba4..01871aca 100644 --- a/src/component/DetailCopy/detailLeft/module/libraryList.vue +++ b/src/component/DetailCopy/detailLeft/module/libraryList.vue @@ -1,7 +1,7 @@ -
+
+ + + +
+
+ + + + +
+
+ + + +
+
+ + + +
+
@@ -29,8 +98,8 @@
- - + +
@@ -84,6 +153,19 @@ export default defineComponent({ designType:'', searchPictureName:'', designDetail:computed(()=>store.state.DesignDetailCopy.designDetail), + mannequinData:{ + sex:'Female', + style:'', + system:'system', + ageGroup:'Adult', + systemList:[], + libraryList:[], + }, + systemList:[{name:'System',value:'system',},{name:'Library',value:'library',}],//系统 + mannequinStyle:computed(()=>store.state.UserHabit.mannequinStyle),//风格列表 + sexList:computed(()=>store.state.UserHabit.sex.value),//风格列表 + ageGroupList:computed(()=>store.state.UserHabit.ageGroup),//风格列表 + }) const getDetailListData = reactive({ total:0, @@ -126,7 +208,44 @@ export default defineComponent({ // store.commit('DesignDetailCopy/setNewDetail',data) } const getLibraryList = ()=>{ - detailData.isShowLoading = true + if(props.type == 'models'){ + getModelList() + }else{ + getList() + } + } + const getModelList = ()=>{ + detailData.isShowLoading = true + let value = { + sex:detailData.mannequinData.sex, + style:detailData.mannequinData?.style, + ageGroup:store.state.Workspace.probjects.ageGroup, + } + Https.axiosGet(Https.httpUrls.getMannequins,{params:value}).then((rv: any) => { + if (rv) { + rv.forEach((item:any) => { + if(item.type == 'System'){ + detailData.mannequinData.systemList = item.modelList + }else{ + detailData.mannequinData.libraryList = item.modelList + } + }); + setMannequinList() + } + detailData.isShowLoading = false + }).catch((res)=>{ + detailData.isShowLoading = false + }); + } + const setMannequinList = ()=>{ + if(detailData.mannequinData.system == 'system'){ + detailData.libraryList = detailData.mannequinData.systemList + }else{ + detailData.libraryList = detailData.mannequinData.libraryList + } + } + const getList = ()=>{ + detailData.isShowLoading = true let level2Type = '' let workspace = store.state.Workspace.probjects // let type = store.state.DesignDetailCopy.currentDetailType @@ -159,14 +278,13 @@ export default defineComponent({ ).catch((res)=>{ detailData.isShowLoading = false }); - } + } const handleChange = ()=>{ getDetailListData.currentPage = 1 detailData.libraryList = [] getLibraryList() } onMounted(()=>{ - // getLibraryList() }) return{ ...toRefs(detailData), diff --git a/src/component/DetailCopy/detailLeft/module/selectList.vue b/src/component/DetailCopy/detailLeft/module/selectList.vue index 8c758e27..e373daa9 100644 --- a/src/component/DetailCopy/detailLeft/module/selectList.vue +++ b/src/component/DetailCopy/detailLeft/module/selectList.vue @@ -9,6 +9,7 @@ {{ $t('DesignDetailAlter.current') }}
--> +
@@ -20,9 +21,10 @@ import sketchType from './sketchType.vue' import printType from './printType.vue' import editPrintElement from './editPrintElement.vue' import elementType from './elementType.vue' +import modelsType from './modelsType.vue' export default defineComponent({ components:{ - sketchType,printType,elementType,editPrintElement + sketchType,printType,elementType,editPrintElement,modelsType }, setup(props,{emit}) { const store = useStore(); diff --git a/src/component/DetailCopy/detailRight/modelsType.vue b/src/component/DetailCopy/detailRight/modelsType.vue new file mode 100644 index 00000000..9fc026e3 --- /dev/null +++ b/src/component/DetailCopy/detailRight/modelsType.vue @@ -0,0 +1,60 @@ + + + \ No newline at end of file diff --git a/src/component/DetailCopy/model/index.vue b/src/component/DetailCopy/model/index.vue index dabf1164..4a28ef3d 100644 --- a/src/component/DetailCopy/model/index.vue +++ b/src/component/DetailCopy/model/index.vue @@ -164,18 +164,20 @@ export default defineComponent({ border-radius: 1rem; padding: .7rem ; flex-shrink: 0; - flex: 1; overflow: hidden; - max-height: 4rem; + // max-height: 4rem; > i{ font-size: 2rem; cursor: pointer; - padding: 1.5rem; + // padding: 1.5rem; display: flex; align-items: center; border-radius: .6rem; overflow: hidden; transition: all .3s; + width: 4rem; + height: 4rem; + justify-content: center; } > i:hover{ background: #000000; diff --git a/src/component/HomePage/NewCollectionReview.vue b/src/component/HomePage/NewCollectionReview.vue index 3e826a6a..44f8732b 100644 --- a/src/component/HomePage/NewCollectionReview.vue +++ b/src/component/HomePage/NewCollectionReview.vue @@ -17,7 +17,7 @@
-
+
Moodboard
@@ -28,7 +28,7 @@
-
+
Printboard
@@ -45,7 +45,7 @@
-
+
Colorboard
@@ -59,6 +59,17 @@
+
+
+
Mannequin
+ +
+
+
+ +
+
+
-
+
Sketchboard
@@ -103,12 +114,15 @@ export default defineComponent({ return store.state.UploadFilesModule.showSketchboard}) let allBoardData:any = computed(()=>{ return store.state.UploadFilesModule.allBoardData}) + let probjects:any = computed(()=>{ + return store.state.Workspace.probjects}) const openCollection = (str:any)=>{ emit('openCollection',str) } return { store, allBoardData, + probjects, sketch, sketchList, openCollection, @@ -269,6 +283,9 @@ export default defineComponent({ } } } + &.mannquin{ + + } .sketch_img_item{ display: inline-block; @@ -282,6 +299,12 @@ export default defineComponent({ height: 6.8rem; display: inline-block; vertical-align: top; + } + .mannquin_img_item{ + width: 6.8rem; + height: 15rem; + display: inline-block; + vertical-align: top; } .color_item{ display: inline-block; @@ -291,7 +314,7 @@ export default defineComponent({ margin-right: 4%; margin-bottom: 0.5rem; width: 21%; - &:nth-child(4n){ + &:nth-child(5n){ margin-right: 0; } } @@ -346,7 +369,7 @@ export default defineComponent({ flex-wrap: wrap; justify-content: flex-start; align-items: flex-start; - >div{ + > .lager_img_item{ width: 30%; margin-left: 2rem; height: auto; diff --git a/src/component/HomePage/index/index.vue b/src/component/HomePage/index/index.vue deleted file mode 100644 index 5cf10b97..00000000 --- a/src/component/HomePage/index/index.vue +++ /dev/null @@ -1,341 +0,0 @@ - - - \ No newline at end of file diff --git a/src/component/HomePage/index/model/collection/ColorboardUpload.vue b/src/component/HomePage/index/model/collection/ColorboardUpload.vue deleted file mode 100644 index 1db2f6ec..00000000 --- a/src/component/HomePage/index/model/collection/ColorboardUpload.vue +++ /dev/null @@ -1,1468 +0,0 @@ - - - diff --git a/src/component/HomePage/index/model/collection/MoodboardUpload.vue b/src/component/HomePage/index/model/collection/MoodboardUpload.vue deleted file mode 100644 index f588021b..00000000 --- a/src/component/HomePage/index/model/collection/MoodboardUpload.vue +++ /dev/null @@ -1,742 +0,0 @@ - - - - diff --git a/src/component/HomePage/index/model/collection/PrintboardUpload.vue b/src/component/HomePage/index/model/collection/PrintboardUpload.vue deleted file mode 100644 index 88c26ca3..00000000 --- a/src/component/HomePage/index/model/collection/PrintboardUpload.vue +++ /dev/null @@ -1,1000 +0,0 @@ - - - diff --git a/src/component/HomePage/index/model/collection/SketchboardUpload.vue b/src/component/HomePage/index/model/collection/SketchboardUpload.vue deleted file mode 100644 index 24aad8e5..00000000 --- a/src/component/HomePage/index/model/collection/SketchboardUpload.vue +++ /dev/null @@ -1,962 +0,0 @@ - - - diff --git a/src/component/HomePage/index/model/collection/more.vue b/src/component/HomePage/index/model/collection/more.vue deleted file mode 100644 index 4b460b96..00000000 --- a/src/component/HomePage/index/model/collection/more.vue +++ /dev/null @@ -1,128 +0,0 @@ - - - \ No newline at end of file diff --git a/src/component/HomePage/index/model/design/index.vue b/src/component/HomePage/index/model/design/index.vue deleted file mode 100644 index 405d9659..00000000 --- a/src/component/HomePage/index/model/design/index.vue +++ /dev/null @@ -1,1877 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/component/HomePage/index/workflow/content/index.vue b/src/component/HomePage/index/workflow/content/index.vue deleted file mode 100644 index 3f6be6dc..00000000 --- a/src/component/HomePage/index/workflow/content/index.vue +++ /dev/null @@ -1,238 +0,0 @@ - - - \ No newline at end of file diff --git a/src/component/HomePage/index/workflow/content/printDesign.vue b/src/component/HomePage/index/workflow/content/printDesign.vue deleted file mode 100644 index 7ad733b4..00000000 --- a/src/component/HomePage/index/workflow/content/printDesign.vue +++ /dev/null @@ -1,217 +0,0 @@ - - - \ No newline at end of file diff --git a/src/component/HomePage/index/workflow/content/printingDesign3D.vue b/src/component/HomePage/index/workflow/content/printingDesign3D.vue deleted file mode 100644 index 649e56a6..00000000 --- a/src/component/HomePage/index/workflow/content/printingDesign3D.vue +++ /dev/null @@ -1,200 +0,0 @@ - - - \ No newline at end of file diff --git a/src/component/HomePage/index/workflow/content/productDrawingDesign.vue b/src/component/HomePage/index/workflow/content/productDrawingDesign.vue deleted file mode 100644 index 5bdd0dc1..00000000 --- a/src/component/HomePage/index/workflow/content/productDrawingDesign.vue +++ /dev/null @@ -1,215 +0,0 @@ - - - \ No newline at end of file diff --git a/src/component/HomePage/index/workflow/content/seriesDesign.vue b/src/component/HomePage/index/workflow/content/seriesDesign.vue deleted file mode 100644 index 4dd1558c..00000000 --- a/src/component/HomePage/index/workflow/content/seriesDesign.vue +++ /dev/null @@ -1,338 +0,0 @@ - - - \ No newline at end of file diff --git a/src/component/HomePage/index/workflow/content/singleProductDesign.vue b/src/component/HomePage/index/workflow/content/singleProductDesign.vue deleted file mode 100644 index 070710f4..00000000 --- a/src/component/HomePage/index/workflow/content/singleProductDesign.vue +++ /dev/null @@ -1,321 +0,0 @@ - - - \ No newline at end of file diff --git a/src/component/HomePage/index/workflow/content/sketchDesign.vue b/src/component/HomePage/index/workflow/content/sketchDesign.vue deleted file mode 100644 index 2a99ac03..00000000 --- a/src/component/HomePage/index/workflow/content/sketchDesign.vue +++ /dev/null @@ -1,228 +0,0 @@ - - - \ No newline at end of file diff --git a/src/component/HomePage/index/workflow/index.vue b/src/component/HomePage/index/workflow/index.vue deleted file mode 100644 index e42e46ea..00000000 --- a/src/component/HomePage/index/workflow/index.vue +++ /dev/null @@ -1,269 +0,0 @@ - - - \ No newline at end of file diff --git a/src/component/HomePage/index/workflow/nav.vue b/src/component/HomePage/index/workflow/nav.vue deleted file mode 100644 index 63260a06..00000000 --- a/src/component/HomePage/index/workflow/nav.vue +++ /dev/null @@ -1,173 +0,0 @@ - - - \ No newline at end of file diff --git a/src/component/HomePage/index/workflow/navBox.vue b/src/component/HomePage/index/workflow/navBox.vue deleted file mode 100644 index ea89fb4c..00000000 --- a/src/component/HomePage/index/workflow/navBox.vue +++ /dev/null @@ -1,231 +0,0 @@ - - - \ No newline at end of file diff --git a/src/component/HomePage/index/workflow/workspace.vue b/src/component/HomePage/index/workflow/workspace.vue deleted file mode 100644 index 6dfecca3..00000000 --- a/src/component/HomePage/index/workflow/workspace.vue +++ /dev/null @@ -1,371 +0,0 @@ - - - \ No newline at end of file diff --git a/src/component/LibraryPage/searchLabel.vue b/src/component/LibraryPage/searchLabel.vue index f6dc6b22..18753a4f 100644 --- a/src/component/LibraryPage/searchLabel.vue +++ b/src/component/LibraryPage/searchLabel.vue @@ -277,7 +277,7 @@ export default defineComponent({ let bor = false if(this.newPicName && this.selectCode == 'History'){//多选修改名字 - await Https.axiosPost(Https.httpUrls.saveOrUpdate, data).then( + await Https.axiosPost(Https.httpUrls.classificationSaveOrUpdate, data).then( (rv: any) => { bor = true } diff --git a/src/component/LibraryPage/setLabel.vue b/src/component/LibraryPage/setLabel.vue index 1e287a84..73037825 100644 --- a/src/component/LibraryPage/setLabel.vue +++ b/src/component/LibraryPage/setLabel.vue @@ -268,7 +268,7 @@ export default defineComponent({ } data.classificationName = val.classificationName - Https.axiosPost(Https.httpUrls.saveOrUpdate, data).then( + Https.axiosPost(Https.httpUrls.classificationSaveOrUpdate, data).then( (rv: any) => { this.getClass() } diff --git a/src/component/LoginPage/googleLogin.vue b/src/component/LoginPage/googleLogin.vue index 88aea17e..c950a650 100644 --- a/src/component/LoginPage/googleLogin.vue +++ b/src/component/LoginPage/googleLogin.vue @@ -33,7 +33,7 @@ scriptSrc:'https://accounts.google.com/gsi/client', script:null }) - let GOOGLE_CLIENT_ID = '194770296147-njd68pm7tnapgonkj2h48mhf63n15n3f.apps.googleusercontent.com' + let GOOGLE_CLIENT_ID = '29310152396-nnsd3h533fld665oguu8ovrt1nukmt46.apps.googleusercontent.com' // let GOOGLE_CLIENT_ID = '399537927614-3sd3rs9p79doocsrff7gm5m1f3chvmn2.apps.googleusercontent.com' // 使用谷歌登录的api const createGmailLogin = async ()=>{ diff --git a/src/component/HomePage/index/model/cloudUploading/createCloud.vue b/src/component/home/batchGeneration/createCloud.vue similarity index 100% rename from src/component/HomePage/index/model/cloudUploading/createCloud.vue rename to src/component/home/batchGeneration/createCloud.vue diff --git a/src/component/home/batchGeneration/index.vue b/src/component/home/batchGeneration/index.vue new file mode 100644 index 00000000..31d02e67 --- /dev/null +++ b/src/component/home/batchGeneration/index.vue @@ -0,0 +1,362 @@ + + + \ No newline at end of file diff --git a/src/component/home/chat/index.vue b/src/component/home/chat/index.vue index 4267ab6c..ac43f760 100644 --- a/src/component/home/chat/index.vue +++ b/src/component/home/chat/index.vue @@ -54,9 +54,9 @@ +
Deep Thinking
-
Deep Thinking
{{ chatContent?.length }}/10000
@@ -525,6 +525,21 @@ export default defineComponent({ } } } + > .enableThinking{ + width: 10rem; + padding: .2rem .4rem; + text-align: center; + font-size: 1.4rem; + border: 1px solid #000; + border-radius: .4rem; + cursor: pointer; + margin-left: 1rem; + &.active{ + background: #000; + color: #fff; + + } + } } i{ font-size: 2rem; @@ -547,21 +562,7 @@ export default defineComponent({ > .sendBox{ display: flex; align-items: center; - > .enableThinking{ - width: 10rem; - padding: .2rem .4rem; - text-align: center; - font-size: 1.4rem; - border: 1px solid #000; - border-radius: .4rem; - cursor: pointer; - margin-right: 1rem; - &.active{ - background: #000; - color: #fff; - - } - } + > .maxNum{ font-size: 1.2rem; margin-right: .8rem; diff --git a/src/component/home/design/collection.vue b/src/component/home/design/collection.vue index 9aa056b7..7c8cb6a6 100644 --- a/src/component/home/design/collection.vue +++ b/src/component/home/design/collection.vue @@ -32,6 +32,7 @@ +
@@ -50,10 +51,11 @@ import MoodboardUpload from './collection/MoodboardUpload.vue'; import PrintboardUpload from './collection/PrintboardUpload.vue'; import ColorboardUpload from './collection/ColorboardUpload.vue'; import SketchboardUpload from './collection/SketchboardUpload.vue'; +import mannequin from './mannequin/index.vue'; export default defineComponent({ components:{ - MoodboardUpload,PrintboardUpload,ColorboardUpload,SketchboardUpload, + MoodboardUpload,PrintboardUpload,ColorboardUpload,SketchboardUpload,mannequin, }, props:{ }, @@ -64,6 +66,7 @@ export default defineComponent({ habitSetStyle:false, isShowMark:false, openType:'', + selectObject:computed(()=>store.state.Workspace.probjects),//选择的项目 }) let driver__:any = computed(()=>{ return store.state.Guide.guide @@ -74,6 +77,7 @@ export default defineComponent({ printBoard:null as any, colorBoard:null as any, sketchBoard:null as any, + mannequin:null as any, }) as any const init = (value:any)=>{ data.habitSetStyle = true @@ -85,8 +89,21 @@ export default defineComponent({ let cleardata = ()=>{ data.habitSetStyle = false if(data.openType)store.dispatch('setAllBoardData',{type:data.openType}) + saveProject(data.openType) + } + const saveProject = (str:any)=>{ + if(str == 'design')return + let value:any = { + projectId:data.selectObject.id, + } + store.dispatch('getProjectData',str).then((data)=>{ + if(!data[str])return + value[str] = data[str] + Https.axiosPost(Https.httpUrls.saveModuleContent, value).then((rv)=>{ + if(rv.boundingBox)store.commit('setShowSketchboard',rv.boundingBox) + }) + }) } - return{ ...toRefs(dataDom), ...toRefs(data), @@ -107,6 +124,7 @@ export default defineComponent({ flex-direction: column; width: 100%; height: 100%; + position: relative; .collectionBox{ width: 100%; height: 100%; diff --git a/src/component/home/design/index.vue b/src/component/home/design/index.vue index cf2171ba..1e470a6f 100644 --- a/src/component/home/design/index.vue +++ b/src/component/home/design/index.vue @@ -887,7 +887,16 @@ export default defineComponent({ moodboardPosition, } = this.store.state.UploadFilesModule.allBoardData; this.randomNum() - let workspace = this.store.state.Workspace.probjects + let modelList = [] as any; + let workspace:any = this.store.state.Workspace.probjects + workspace.model.forEach((item:any)=>{ + let obj = { + id:item.id, + type:item.type, + collectionElementId:item.collectionElementId + } + modelList.push(obj) + }) let data: any = { colorBoards: this.getColorBoard(colorBoards), // marketingSketchs: this.getBoardId(marketingSketchFiles), @@ -898,9 +907,10 @@ export default defineComponent({ switchCategory: workspace.type == "seriesDesign"?"": workspace.position.value, singleOverall: workspace.type == "seriesDesign" ? "overall" : 'single', systemScale: workspace.systemDesignerPercentage?workspace.systemDesignerPercentage*.01:.3, - // templateId: 3377, - templateId: workspace.model.id, - modelType:workspace.model.type, + templateId: '', + // templateId: workspace.model.id, + mannequins: modelList, + modelType:'', modelSex:workspace?.sex, moodTemplateId: disposeMoodboard?.[0] ? String(disposeMoodboard[0].id) : null, timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone, diff --git a/src/component/HomePage/index/model/mannequin/edit.vue b/src/component/home/design/mannequin/edit.vue similarity index 99% rename from src/component/HomePage/index/model/mannequin/edit.vue rename to src/component/home/design/mannequin/edit.vue index 59a51f99..fb6ad839 100644 --- a/src/component/HomePage/index/model/mannequin/edit.vue +++ b/src/component/home/design/mannequin/edit.vue @@ -1,11 +1,9 @@ + + \ No newline at end of file diff --git a/src/component/HomePage/index/model/cloudUploading/index.vue b/src/component/home/tools/cloudUploading/index.vue similarity index 100% rename from src/component/HomePage/index/model/cloudUploading/index.vue rename to src/component/home/tools/cloudUploading/index.vue diff --git a/src/component/HomePage/index/model/deReconstruction/canvas/argument.vue b/src/component/home/tools/deReconstruction/canvas/argument.vue similarity index 100% rename from src/component/HomePage/index/model/deReconstruction/canvas/argument.vue rename to src/component/home/tools/deReconstruction/canvas/argument.vue diff --git a/src/component/HomePage/index/model/deReconstruction/canvas/canvasContent.vue b/src/component/home/tools/deReconstruction/canvas/canvasContent.vue similarity index 100% rename from src/component/HomePage/index/model/deReconstruction/canvas/canvasContent.vue rename to src/component/home/tools/deReconstruction/canvas/canvasContent.vue diff --git a/src/component/HomePage/index/model/deReconstruction/canvas/detail.vue b/src/component/home/tools/deReconstruction/canvas/detail.vue similarity index 100% rename from src/component/HomePage/index/model/deReconstruction/canvas/detail.vue rename to src/component/home/tools/deReconstruction/canvas/detail.vue diff --git a/src/component/HomePage/index/model/deReconstruction/canvas/index.vue b/src/component/home/tools/deReconstruction/canvas/index.vue similarity index 100% rename from src/component/HomePage/index/model/deReconstruction/canvas/index.vue rename to src/component/home/tools/deReconstruction/canvas/index.vue diff --git a/src/component/HomePage/index/model/deReconstruction/canvas/tool.vue b/src/component/home/tools/deReconstruction/canvas/tool.vue similarity index 100% rename from src/component/HomePage/index/model/deReconstruction/canvas/tool.vue rename to src/component/home/tools/deReconstruction/canvas/tool.vue diff --git a/src/component/HomePage/index/model/deReconstruction/index.vue b/src/component/home/tools/deReconstruction/index.vue similarity index 100% rename from src/component/HomePage/index/model/deReconstruction/index.vue rename to src/component/home/tools/deReconstruction/index.vue diff --git a/src/component/HomePage/index/model/patternMaking3D/download.vue b/src/component/home/tools/patternMaking3D/download.vue similarity index 100% rename from src/component/HomePage/index/model/patternMaking3D/download.vue rename to src/component/home/tools/patternMaking3D/download.vue diff --git a/src/component/HomePage/index/model/patternMaking3D/index.vue b/src/component/home/tools/patternMaking3D/index.vue similarity index 100% rename from src/component/HomePage/index/model/patternMaking3D/index.vue rename to src/component/home/tools/patternMaking3D/index.vue diff --git a/src/component/HomePage/index/model/patternMaking3D/three.vue b/src/component/home/tools/patternMaking3D/three.vue similarity index 100% rename from src/component/HomePage/index/model/patternMaking3D/three.vue rename to src/component/home/tools/patternMaking3D/three.vue diff --git a/src/component/HomePage/index/model/poseTransfer/index.vue b/src/component/home/tools/poseTransfer/index.vue similarity index 100% rename from src/component/HomePage/index/model/poseTransfer/index.vue rename to src/component/home/tools/poseTransfer/index.vue diff --git a/src/component/HomePage/index/model/toProduct/index.vue b/src/component/home/tools/toProduct/index.vue similarity index 100% rename from src/component/HomePage/index/model/toProduct/index.vue rename to src/component/home/tools/toProduct/index.vue diff --git a/src/component/Detail/habitSetStyle.vue b/src/component/modules/habitSetStyle.vue similarity index 100% rename from src/component/Detail/habitSetStyle.vue rename to src/component/modules/habitSetStyle.vue diff --git a/src/component/modules/setBrandDNA.vue b/src/component/modules/setBrandDNA.vue new file mode 100644 index 00000000..44249155 --- /dev/null +++ b/src/component/modules/setBrandDNA.vue @@ -0,0 +1,293 @@ + + + + + \ No newline at end of file diff --git a/src/component/toolsPage/index.vue b/src/component/toolsPage/index.vue index 733344f1..04092217 100644 --- a/src/component/toolsPage/index.vue +++ b/src/component/toolsPage/index.vue @@ -27,13 +27,10 @@ import { Https } from "@/tool/https"; import { useStore } from "vuex"; import { useI18n } from 'vue-i18n' import { useRoute } from 'vue-router'; -import MoodboardUpload from '@/component/HomePage/index/model/collection/MoodboardUpload.vue'; -import PrintboardUpload from '@/component/HomePage/index/model/collection/PrintboardUpload.vue'; -import ColorboardUpload from '@/component/HomePage/index/model/collection/ColorboardUpload.vue'; -import toProduct from '@/component/HomePage/index/model/toProduct/index.vue'; -import poseTransfer from '@/component/HomePage/index/model/poseTransfer/index.vue'; -import deReconstruction from '@/component/HomePage/index/model/deReconstruction/index.vue'; -import patternMaking3D from '@/component/HomePage/index/model/patternMaking3D/index.vue'; +import toProduct from '@/component/home/tools/toProduct/index.vue'; +import poseTransfer from '@/component/home/tools/poseTransfer/index.vue'; +import deReconstruction from '@/component/home/tools/deReconstruction/index.vue'; +import patternMaking3D from '@/component/home/tools/patternMaking3D/index.vue'; import canvasUpload from "@/component/Canvas/index.vue"; export default defineComponent({ diff --git a/src/lang/cn.ts b/src/lang/cn.ts index f33d14f2..1a6417cf 100644 --- a/src/lang/cn.ts +++ b/src/lang/cn.ts @@ -257,6 +257,8 @@ export default { jsContent9:'选择一张图片~', jsContent10:'是否另存为当前模特?', jsContent11:'你确定删除当前品牌DNA吗?', + jsContent12:'请先取消选中后就再次点击删除', + jsContent13:'您必须选择至少一个模特,且最多不超过四个', }, HistoryPage:{ History:'历史', diff --git a/src/lang/en.ts b/src/lang/en.ts index d84f6184..433ddd67 100644 --- a/src/lang/en.ts +++ b/src/lang/en.ts @@ -257,6 +257,8 @@ export default { jsContent9:'Please select a picture', jsContent10:'Save as New or Overwrite Current Mannequin?', jsContent11:'Are you sure about deleting the current brand DNA?', + jsContent12:'Please deselect first, then try deleting again.', + jsContent13:'You must select at least one mannequin and no more than four.', }, HistoryPage:{ History:'History', diff --git a/src/router/index.ts b/src/router/index.ts index c6149102..0a4deade 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -93,6 +93,11 @@ const routes: Array = [ name:'events', meta:{enter:'all',}, component: _import_custom('HomeView/Events.vue'), + },{ + path:'cloud', + name:'cloud', + meta:{enter:'all',}, + component: _import_custom('HomeView/cloudGeneration.vue'), },{ path:'eventsDetail', name:'eventsDetail', diff --git a/src/store/Detail/designDetailCopy.ts b/src/store/Detail/designDetailCopy.ts index 67c6eabd..127b9f25 100644 --- a/src/store/Detail/designDetailCopy.ts +++ b/src/store/Detail/designDetailCopy.ts @@ -114,6 +114,8 @@ const DesignDetailCopy : Module = { state.selectDetail.newDetail[str] = data }else if(str == 'element'){ state.selectDetail.newDetail[str] = data + }else if(str == 'models'){ + state.selectDetail.newDetail[str] = data }else{ if(!state.selectDetail.newDetail[str])state.selectDetail.newDetail[str] = [] const foundObjects = state.selectDetail.newDetail[str].filter((item:any) => item.id === data.id); diff --git a/src/store/uploadFile/uploadFile.ts b/src/store/uploadFile/uploadFile.ts index 8835621f..bdebd012 100644 --- a/src/store/uploadFile/uploadFile.ts +++ b/src/store/uploadFile/uploadFile.ts @@ -404,7 +404,7 @@ const UploadFilesModule : Module = { getProjectData({ state,commit },str){ return new Promise((resolve,reject) => { let data:any = {} - let allBoardData = ['sketchBoard','moodBoard','printBoard','colorBoard'] + let allBoardData = ['sketchBoard','moodBoard','printBoard','colorBoard','mannequin'] if(allBoardData.indexOf(str) != -1){ if(str == 'colorBoard'){ let boardData = state.colorBoards || [] @@ -456,6 +456,18 @@ const UploadFilesModule : Module = { return data; }); data[str] = sketchBoards + }else if(str == 'mannequin'){ + let list:any = [] + let workspaceState:any = workspace.state + workspaceState.probjects.model.forEach((item:any)=>{ + let obj = { + id:item.id, + type:item.type, + collectionElementId:item.collectionElementId + } + list.push(obj) + }) + data[str] = list } }else{ data[str] = state.modularData[str] diff --git a/src/store/userHabit/userHabit.ts b/src/store/userHabit/userHabit.ts index bde7b985..b6d07c02 100644 --- a/src/store/userHabit/userHabit.ts +++ b/src/store/userHabit/userHabit.ts @@ -260,7 +260,7 @@ const userHabit : Module = { */ state.userDetail.affiliate = data.affiliate state.userDetail.systemUser = data.systemUser - state.userDetail.systemUser = 3 + // state.userDetail.systemUser = 3 // 身份列表1:可以使用aida系统,2:可以使用affiliate页面,3:系统管理员用户 state.userDetail.systemList = [] if(data.systemUser != 0)state.userDetail.systemList.push(1) @@ -380,6 +380,25 @@ const userHabit : Module = { }) }) } + const getmannequinStyle = ()=>{ + return new Promise((resolve,reject) => { + Https.axiosPost(Https.httpUrls.getStyleList, {}).then( + (rv) => { + rv.forEach((item:any) => { + let name = item.value + item.value = item.name + item.name = name + }); + rv.unshift({name:'All',value:'',id:''}) + store.commit('setMannequinStyle',rv) + resolve('') + } + ).catch(res=>{ + reject('') + }); + }) + } + context.commit('setWorkspaceAllPosition',workspaceAllPosition) let getUserDetail = ()=>{ return new Promise((resolve,reject) => { @@ -394,7 +413,7 @@ const userHabit : Module = { }) }) } - return await Promise.all([...getList.map(item => axiosGet(item)),getUserDetail()]) + return await Promise.all([...getList.map(item => axiosGet(item)),getUserDetail(),getmannequinStyle()]) } } } diff --git a/src/store/workspace/workspace.ts b/src/store/workspace/workspace.ts index aaad552f..dd1b8853 100644 --- a/src/store/workspace/workspace.ts +++ b/src/store/workspace/workspace.ts @@ -28,6 +28,10 @@ const Workspace : Module = { ageGroup:'Adult',//年龄组 positionList:[],//衣服位置 position:{},//衣服位置 + brandPercentage:30,//品牌分成 + userBrandDna:'',//用户品牌 + userBrandDnaImg:'',//用户品牌图片 + userBrandDnaName:'',//用户品牌名字 publishData:{ id:'', portfolioDes:'', @@ -35,11 +39,7 @@ const Workspace : Module = { tagsDTO:[], },//发布的作品数据 systemDesignerPercentage:30,//设计师分成 - model:{ - id:null, - url:'', - type:'', - },//模特 + model:[],//模特 }, projectList:[],//项目列表参数 }, @@ -83,6 +83,9 @@ const Workspace : Module = { ageGroup:'Adult',//年龄组 positionList:[], position:{},//衣服位置 + userBrandDna:'',//用户品牌 + userBrandDnaImg:'',//用户品牌图片 + userBrandDnaName:'',//用户品牌名字 publishData:{ id:'', portfolioDes:'', @@ -90,11 +93,7 @@ const Workspace : Module = { tagsDTO:[], },//发布的作品数据 systemDesignerPercentage:30, - model:{ - id:-1, - url:'', - type:'', - },//模特 + model:[],//模特 } } }, diff --git a/src/tool/https.js b/src/tool/https.js index adecb456..7c31b348 100644 --- a/src/tool/https.js +++ b/src/tool/https.js @@ -213,7 +213,7 @@ export const Https = { queryUserGroup:`/api/history/queryUserGroup`, //History用户分页分组列表 deleteUserGroup:`/api/history/deleteUserGroup`, //History删除用户分组 updateUserGroupName:`/api/history/updateUserGroupName`, //History修改用户分组名 - saveOrUpdate:`/api/project/saveOrUpdate`, //History修改用户分组名 + projectSaveOrUpdate:`/api/project/saveOrUpdate`, //History修改用户分组名 historyChoose:`/api/history/choose`, //History choose getDesignDetail:`/api/design/detail/getDetail`,//查询design详情 designSingleWithGradient:`/api/design/detail/designSingleWithGradient`,//查询需要更新mask列表 @@ -225,7 +225,7 @@ export const Https = { setSketchLibrary:`/api/library/updateLibraryLevel2Type`, // Library文件上传 queryClassification:`/api/classification/queryClassification`,//标签类别查询 - saveOrUpdate:`/api/classification/saveOrUpdate`,//标签类别新增修改 + classificationSaveOrUpdate:`/api/classification/saveOrUpdate`,//标签类别新增修改 classificationDelete:`/api/classification/delete`,//标签类别新增修改 relationLibrary:`/api/classification/relationLibrary`,//标签类别新增修改 getRelClassificationIdList:`/api/classification/getRelClassificationIdList`,//标签类别新增修改 diff --git a/src/views/HomeMain.vue b/src/views/HomeMain.vue index 01a50bc1..b4f5e663 100644 --- a/src/views/HomeMain.vue +++ b/src/views/HomeMain.vue @@ -21,8 +21,8 @@
-
-
+
+
@@ -30,23 +30,24 @@
-
+
{{ childItem.name }} - +
-
{{ childItem.process }}
+
{{ childItem.process.replace('_', ' ').toLowerCase().replace(/\b\w/g, char => char.toUpperCase()) }}
+
{{ childItem.updateTime.replace('T', ' ') }}
-
- +
- + Setting
@@ -56,20 +57,27 @@
-
- - +
+ +
- - +
- +
-
+
@@ -273,18 +278,20 @@ export default defineComponent({ isLanguage:false, openTypeList:openTypeList(t), projectSetting:null, - + historyData:{ + isNoData:false, + isShowLoading:false, + isNull:false, + searchCollectionName:'', + historyTextarea:'', + historyList:[], + selectHistoryIndex:-1, + page:1, + size:10, + } }) const historyData = reactive({ - isNoData:false, - isShowLoading:false, - isNull:false, - searchCollectionName:'', - historyTextarea:'', - historyList:[], - selectHistoryIndex:-1, - page:1, - size:10, + }) watch(() => route.query, (query, oldQuery) => { @@ -437,15 +444,16 @@ export default defineComponent({ } } let setPorfolioDom = ()=>{ - historyData.isShowLoading = false - historyData.isNoData = false - let imgParent = document.querySelector('.homeMain_max .detailBox .material_content_list_loding .page_loading') + homeMainData.historyData.isShowLoading = false + homeMainData.historyData.isNoData = false + let imgParent = document.querySelector('.homeMain_max .detail .material_content_list_loding .historyPage_loading') + console.log(imgParent) new IntersectionObserver( (entries, observer) => { // 如果不是相交,则直接返回 if (!entries[0].intersectionRatio) return; getHistory() - historyData.page += 1 + homeMainData.historyData.page += 1 }, ).observe(imgParent); } @@ -459,19 +467,19 @@ export default defineComponent({ // router.push(`/home?history=${childItem.id}`) } const settingGetHistory = ()=>{ - historyData.page = 1 + homeMainData.historyData.page = 1 homeMainData.openTypeList.history.list = [] - historyData.isShowLoading = false - historyData.isNoData = false + homeMainData.historyData.isShowLoading = false + homeMainData.historyData.isNoData = false } const getHistory = ()=>{ - if(historyData.isShowLoading && !historyData.isNoData)return - historyData.isShowLoading = true + if(homeMainData.historyData.isShowLoading && !homeMainData.historyData.isNoData)return + homeMainData.historyData.isShowLoading = true let data = { classificationIdList:[], - page:historyData.page, - size:historyData.size, - collectionName:historyData.searchCollectionName, + page:homeMainData.historyData.page, + size:homeMainData.historyData.size, + collectionName:homeMainData.historyData.searchCollectionName, // startDate:startDate, // endDate:endDate, // intersection:1, @@ -480,33 +488,33 @@ export default defineComponent({ // Https.axiosPost( Https.httpUrls.queryUserGroup, data).then( (rv) => { if(data.page == 1 && rv.content.length == 0){ - historyData.isNull = true + homeMainData.historyData.isNull = true }else{ - historyData.isNull = false + homeMainData.historyData.isNull = false } if (rv.content.length > 0) { - historyData.isNull = false + homeMainData.historyData.isNull = false homeMainData.openTypeList.history.list.push(...rv.content) } else { - historyData.isNoData = true + homeMainData.historyData.isNoData = true } - historyData.isShowLoading = false + homeMainData.historyData.isShowLoading = false } ).catch(res=>{ - historyData.isShowMark = false + homeMainData.historyData.isShowMark = false if(data.page == 1){ - historyData.isNull = true + homeMainData.historyData.isNull = true } - historyData.isNoData = true + homeMainData.historyData.isNoData = true }); } const editHistory = (item,index,el)=>{ - if(historyData.selectHistoryIndex == -1){ + if(homeMainData.historyData.selectHistoryIndex == -1){ let top = el.target.parentNode.parentNode.getBoundingClientRect().top let parentTop = el.target.parentNode.parentNode.parentNode.offsetTop let parentHeight = el.target.parentNode.parentNode.parentNode.offsetHeight let operation = el.target.parentNode.querySelector('.operation') - historyData.selectHistoryIndex = index + homeMainData.historyData.selectHistoryIndex = index //判断弹窗是加载按钮上面还是下面 if((parentTop+parentHeight)/2 < top){//加在按钮上面 operation.classList.add('active') @@ -514,26 +522,26 @@ export default defineComponent({ operation.classList.remove('active') } }else{ - historyData.selectHistoryIndex = -1 + homeMainData.historyData.selectHistoryIndex = -1 } let operationCli = ()=>{ - historyData.selectHistoryIndex = -1 + homeMainData.historyData.selectHistoryIndex = -1 document.removeEventListener("click", operationCli); } document.addEventListener("click",operationCli,); } const editName = (item)=>{ - historyData.selectHistoryIndex = -1 + homeMainData.historyData.selectHistoryIndex = -1 homeMainData.openTypeList.history.list.forEach((item)=>{ item.editName = false }) item.editName = true - historyData.historyTextarea = item.name + homeMainData.historyData.historyTextarea = item.name } const deleteItem = (item)=>{ Https.axiosPost(Https.httpUrls.projectDetail,{},{params:{projectId:item.id}}).then( (rv) => { - historyData.selectHistoryIndex = -1 + homeMainData.historyData.selectHistoryIndex = -1 settingGetHistory() if(homeMainData.openTypeChild == item.id){ router.push('/home') @@ -546,17 +554,14 @@ export default defineComponent({ } const accomplishHistory = (item)=>{ let data = { - libraryIds:[], - libraryName:historyData.historyTextarea,//library名字 - userGroupName:historyData.historyTextarea,//history名字 - userGroupId :item.id,//history id - timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone, + name:homeMainData.historyData.historyTextarea,//library名字 + id :item.id,//history id } - Https.axiosPost(Https.httpUrls.saveOrUpdate, data).then( + Https.axiosPost(Https.httpUrls.projectSaveOrUpdate, data).then( (rv) => { - item.name = historyData.historyTextarea + item.name = homeMainData.historyData.historyTextarea item.editName = false - historyData.historyTextarea = '' + homeMainData.historyData.historyTextarea = '' } ).catch((res)=>{ }); @@ -750,25 +755,10 @@ export default defineComponent({ let data = { userId: this.userDetail.userId, }; - if(this.userDetail.systemUser == 3){ - await Https.axiosGet(Https.httpUrls.trialUserLogout,).then((rv) => { - Https.axiosPost(Https.httpUrls.accountLogout, data).then((rv) => { - if(this.userDetail.systemUser == 7){ - this.$router.replace("/schoolLogin"); - }else if(this.userDetail.systemUser == 5){ - this.$router.replace("/enterpriseLogin"); - }else{ - this.$router.replace("/"); - } - // WriteCookie("token"); - }); - }) - }else{ - await Https.axiosPost(Https.httpUrls.accountLogout, data).then((rv) => { - // WriteCookie("token"); - }); - this.$router.replace("/"); - } + await Https.axiosPost(Https.httpUrls.accountLogout, data).then((rv) => { + // WriteCookie("token"); + }); + this.$router.replace("/"); this.store.commit('createDetail') this.store.commit('createProbject') @@ -954,6 +944,10 @@ export default defineComponent({ display: flex; align-items: center; flex-wrap: wrap; + > .time{ + font-size: 1.2rem; + opacity: .5; + } > i{ margin-right: .8rem; display: flex; @@ -986,7 +980,6 @@ export default defineComponent({ width: 100%; font-weight: 600; line-height: 2rem; - margin-bottom: .8rem; font-size: 1.8rem; display: inline-block; } @@ -1107,6 +1100,7 @@ export default defineComponent({ > .titleBox{ padding: .8rem; background: #00000000; + height: 5rem; > .left{ > i{ margin-right: 2rem; diff --git a/src/views/HomeView/HomeView.vue b/src/views/HomeView/HomeView.vue index 1f0e7f3c..ca24fd4f 100644 --- a/src/views/HomeView/HomeView.vue +++ b/src/views/HomeView/HomeView.vue @@ -1,6 +1,6 @@ @@ -15,7 +15,7 @@ import generalCanvas from "@/component/modules/generalCanvas.vue"; import affiche from "@/component/HomePage/affiche.vue"; import DesignDetail from "@/component/Detail/DesignDetail.vue"; import DesignDetailcopy from "@/component/DetailCopy/designDetail.vue"; -import homeIndex from "@/component/HomePage/index/index.vue"; +// import homeIndex from "@/component/HomePage/index/index.vue"; import html2canvas from "html2canvas"; import { message,Modal } from "ant-design-vue"; import { useStore } from "vuex"; @@ -33,7 +33,7 @@ const FileSaver = require("file-saver"); export default defineComponent({ name: "homePage", components: { - homeIndex, + // homeIndex, NewCollectionReview, DesignDetail, ExportNewCoolection, diff --git a/src/views/HomeView/cloudGeneration.vue b/src/views/HomeView/cloudGeneration.vue new file mode 100644 index 00000000..aeeb1834 --- /dev/null +++ b/src/views/HomeView/cloudGeneration.vue @@ -0,0 +1,43 @@ + + + \ No newline at end of file diff --git a/src/views/HomeView/history.vue b/src/views/HomeView/history.vue deleted file mode 100644 index b3432a00..00000000 --- a/src/views/HomeView/history.vue +++ /dev/null @@ -1,562 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/HomeView/library.vue b/src/views/HomeView/library.vue index fc9b4bfe..c252e09b 100644 --- a/src/views/HomeView/library.vue +++ b/src/views/HomeView/library.vue @@ -481,7 +481,7 @@
-
{{ ageGroup }} +
@@ -524,7 +524,7 @@ import { remove } from "jszip"; import createSlogan from "@/component/HomePage/createSlogan.vue"; import generalMenu from "@/component/HomePage/generalMenu.vue"; import UpgradePlan from "@/component/HomePage/UpgradePlan.vue"; -import mannequinEdit from "@/component/HomePage/index/model/mannequin/edit.vue"; +import mannequinEdit from "@/component/home/design/mannequin/edit.vue"; export default defineComponent({ components: { setLabel, @@ -1966,6 +1966,8 @@ export default defineComponent({ // width: calc(100% - 23.5rem); height: 100%; position: relative; + display: flex; + flex-direction: column; .header_operate_item{ margin-right: 5rem; color: #C2C2C2; @@ -2048,7 +2050,9 @@ export default defineComponent({ .libray_right_content{ width:100%; - height:calc(100% - 12rem); + // height:calc(100% - 12rem); + flex: 1; + overflow: hidden; padding: 0.1rem 0 0 0.3rem; box-sizing: border-box; &.myBrand{ @@ -2165,6 +2169,7 @@ export default defineComponent({ justify-content: flex-start; align-content: flex-start; position: relative; + flex: 1; &.content_body_table::-webkit-scrollbar { display: none; } @@ -2343,7 +2348,7 @@ export default defineComponent({ .table_pagination{ text-align: center; // height: 5.2rem; - flex: 1; + // flex: 1; margin-top: 2rem; } }