修复页面bug
This commit is contained in:
@@ -34,9 +34,10 @@
|
||||
<div v-show="scaleImageList[scaleImageIndex]?.resultType == 'Relight'" class="productImg_content_item_title productImg_content_item_title_similarity">
|
||||
<span>{{$t('ProductImg.SelectionFunction')}}</span>
|
||||
</div>
|
||||
<div v-show="scaleImageList[scaleImageIndex]?.resultType == 'Relight'" class="productImg_content_item_Direction generalModel_state_item" style="margin-bottom: 1rem;">
|
||||
<!-- 暂时去掉 -->
|
||||
<!-- <div v-show="scaleImageList[scaleImageIndex]?.resultType == 'Relight'" class="productImg_content_item_Direction generalModel_state_item" style="margin-bottom: 1rem;">
|
||||
<a-select size="large" style="width: 100%;" v-model:value="speedData.value" :options="speedList" :field-names="{ label: 'relightLabel', value: 'value' }"></a-select>
|
||||
</div>
|
||||
</div> -->
|
||||
<div v-show="scaleImageList[scaleImageIndex]?.resultType == 'ToProductImage' && speedData.value != 'flux'" class="productImg_content_item_title productImg_content_item_title_similarity">
|
||||
<span>{{$t('ProductImg.Similarity')}}</span>
|
||||
</div>
|
||||
@@ -46,7 +47,7 @@
|
||||
:tooltipVisible="false"
|
||||
:step="5"
|
||||
@afterChange="()=>{}"
|
||||
:max="70"
|
||||
:max="100"
|
||||
>
|
||||
</a-slider>
|
||||
<input style="margin-left: 2rem;" type="number" readonly v-model="productimgSimilarity">
|
||||
@@ -295,7 +296,8 @@ export default defineComponent({
|
||||
elementId:scaleImageList.value[scaleImageIndex.value].elementId,
|
||||
elementType:scaleImageList.value[scaleImageIndex.value].elementType,
|
||||
}
|
||||
let imageStrength = productimg.productimgSimilarity == 100? 95 :productimg.productimgSimilarity
|
||||
// let imageStrength = productimg.productimgSimilarity == 100? 95 :productimg.productimgSimilarity
|
||||
let imageStrength = 70 / 100 * productimg.productimgSimilarity
|
||||
let data:any ={
|
||||
direction:productimg.productimgRelightDirection,
|
||||
prompt:productimg.productimgSearchName,
|
||||
@@ -527,22 +529,20 @@ export default defineComponent({
|
||||
},
|
||||
methods: {
|
||||
setUserData(item:any){
|
||||
console.log(item)
|
||||
this.productimgSearchName = item.prompt
|
||||
this.productimgSimilarity = 100 - item.imageStrength * 100
|
||||
this.productimgRelightDirection = item.direction
|
||||
console.log(this.productimgSearchName)
|
||||
let list = this.speedTypeList.toPorductImg
|
||||
if(list.length == 0)return
|
||||
// let list = this.speedTypeList.toPorductImg
|
||||
if(this.speedList.length == 0)return
|
||||
let modelName = ''
|
||||
if(!item.modelName){
|
||||
modelName = ''
|
||||
}else{
|
||||
modelName = item.modelName
|
||||
}
|
||||
list.forEach((item:any)=>{
|
||||
this.speedList.forEach((item:any)=>{
|
||||
if(modelName == item.value){
|
||||
this.speedData = item
|
||||
this.speedData = {...item}
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -562,7 +562,7 @@ export default defineComponent({
|
||||
}else{
|
||||
this.speedList = this.speedTypeList.toPorductImg
|
||||
}
|
||||
this.speedData = JSON.parse(JSON.stringify(this.speedList[0]))
|
||||
// this.speedData = JSON.parse(JSON.stringify(this.speedList[0]))
|
||||
document.addEventListener('keydown',this.setKeydown)
|
||||
this.setUserData(list[index])
|
||||
this.$nextTick()
|
||||
|
||||
Reference in New Issue
Block a user