detail页面调整
This commit is contained in:
@@ -148,7 +148,7 @@ export default defineComponent({
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
nextStep(){
|
||||
async nextStep(){
|
||||
let colorBoards = this.store.state.UploadFilesModule.colorBoards
|
||||
if(this.collectionStep == 1){
|
||||
let disposeMoodboard = this.store.state.UploadFilesModule.disposeMoodboard
|
||||
@@ -165,11 +165,12 @@ export default defineComponent({
|
||||
|
||||
if(this.collectionStep == 3){
|
||||
if(colorBoards.length >= 1){
|
||||
colorBoards.forEach((colorItem:any) => {
|
||||
if(colorItem.gradient){
|
||||
colorItem.gradient.colorImg = setGradual(colorItem.gradient,320,700)
|
||||
for (let index = 0; index < colorBoards.length; index++) {
|
||||
if(colorBoards[index].gradient){
|
||||
colorBoards[index].gradient.colorImg = await setGradual(colorBoards[index].gradient,320,700)
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
this.store.commit('setColorboardList',colorBoards)
|
||||
}else{
|
||||
message.info(this.$t('collectionModal.jsContent3'))
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent,ref ,nextTick, computed,watch} from "vue";
|
||||
import { defineComponent,ref ,nextTick, computed,watch, onMounted} from "vue";
|
||||
import { Https } from "@/tool/https";
|
||||
import { openGuide,driverObj__ } from "@/tool/guide";
|
||||
export default defineComponent({
|
||||
@@ -134,6 +134,17 @@ export default defineComponent({
|
||||
).catch((res)=>{
|
||||
});
|
||||
}
|
||||
onMounted(()=>{
|
||||
if(!props.item.category){
|
||||
props.disignTypeList.forEach((item:any) => {
|
||||
if(item.value == props.item.level2Type){
|
||||
props.item.category = item.name
|
||||
props.item.categoryValue = item.value
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
})
|
||||
return {
|
||||
showFileCategory,
|
||||
selectFileCategory,
|
||||
|
||||
Reference in New Issue
Block a user