接入画布

This commit is contained in:
X1627315083
2025-06-09 10:25:54 +08:00
parent 87a08f5f8f
commit c266967f16
157 changed files with 43833 additions and 1571 deletions

View File

@@ -51,6 +51,10 @@
<i class="fi fi-rr-settings-sliders"></i>
<span>Setting</span>
</div>
<div class="item" v-if="bathGenerationList.indexOf(childItem.process)>-1" @click.stop="bathGeneration(childItem)">
<i class="fi fi-rr-settings-sliders"></i>
<span>Batch Generation</span>
</div>
<div class="item" @click.stop="deleteItem(childItem)">
<i class="icon iconfont icon-shanchu operate_icon"></i>
<span>Delete</span>
@@ -225,7 +229,7 @@
<div class="mark_loading" v-show="getLangIsShowMark">
<a-spin size="large" />
</div>
<RobotAssist v-if="!getLangIsShowMark"></RobotAssist>
<!-- <RobotAssist v-if="!getLangIsShowMark"></RobotAssist> -->
<scaleVideo ref="scaleVideo"></scaleVideo>
<!-- 进行续订 -->
<renew ref="renew"></renew>
@@ -297,7 +301,8 @@ export default defineComponent({
selectHistoryIndex:-1,
page:1,
size:10,
}
},
bathGenerationList:["poseTransfer","SERIES_DESIGN","toProduct","relight"]
})
const historyData = reactive({
@@ -475,7 +480,22 @@ export default defineComponent({
if(childItem.process == 'SERIES_DESIGN' || childItem.process == "SINGLE_DESIGN"){
router.push(`/home?history=${childItem.id}`)
}else{
router.push(`/home/tools?tools=${childItem.process}&id=${childItem.id}`)
let processList = {
toProduct:'TO_PRODUCT_IMAGE',
relight:'RELIGHT',
poseTransfer:'POSE_TRANSFER',
deReconstruction:'DE_RECONSTRUCTION',
patternMaking3D:'THREE_D_PLATE_MAKING',
canvasUpload:'CANVAS',
}
let process = ''
for (const key in processList) {
if(processList[key] == childItem.process){
process = key
break
}
}
router.push(`/home/tools?tools=${process}&id=${childItem.id}`)
}
// router.push(`/home?history=${childItem.id}`)
}
@@ -490,10 +510,11 @@ export default defineComponent({
if(homeMainData.historyData.isShowLoading && !homeMainData.historyData.isNoData)return
homeMainData.historyData.isShowLoading = true
let data = {
classificationIdList:[],
page:homeMainData.historyData.page,
size:homeMainData.historyData.size,
collectionName:homeMainData.historyData.searchCollectionName,
projectName:homeMainData.historyData.searchCollectionName,
asc:0,
process:'',
// startDate:startDate,
// endDate:endDate,
// intersection:1,
@@ -584,6 +605,11 @@ export default defineComponent({
const newProject = ()=>{
router.push('/home')
}
const bathGeneration = (item)=>{
homeMainData.openType = ''
homeMainData.historyData.selectHistoryIndex = -1
router.push(`/home/cloud?type=creation&id=${item.id}&name=${item.name}`)
}
return {
store,
userDetail,
@@ -614,6 +640,7 @@ export default defineComponent({
setting,
accomplishHistory,
newProject,
bathGeneration,
}
},
data() {
@@ -1073,6 +1100,7 @@ export default defineComponent({
}
> span{
margin-left: .5rem;
white-space: nowrap;
}
&:hover{
background: #efeff1;

View File

@@ -352,6 +352,7 @@ export default defineComponent({
.page_content{
scrollbar-width: none;
border-radius: 0;
min-height: 100%;
}
}
.modal_title_text{
@@ -386,7 +387,8 @@ export default defineComponent({
>img{
position: relative;
left: 50%;
transform: translateX(-50%);
top: 50%;
transform: translate(-50%,-50%);
}
}
&.active{

View File

@@ -696,7 +696,7 @@ export default defineComponent({
let printModelList:any = ref([])
let speed = reactive({
speedList:[
{
{
title:'Picture quality is average, speed is fast',
label:'Low Quality',
value:'fast',
@@ -705,6 +705,10 @@ export default defineComponent({
title:'Picture quality is high, speed is slow',
label:'High Quality',
value:'high',
},{
title:'Generate using Wanxiang',
label:'WX',
value:'wx',
},
],
speedState:false,
@@ -1614,7 +1618,7 @@ export default defineComponent({
text:sloganText,
seed:this.searchPictureSeed,
timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,
version:this.speedData.value,//为1就是Print
modelName:this.speedData.value,//为1就是Print
gender:selectCodeStr == 'Sketchboard'?this.sex:'',
sloganBase64:base64,
}