fix
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
<div v-for="item,index in imgList" :key="item" class="content_img_item" :class="[ item?.checked ? 'active':'' , selectCode == 'Moodboard' ? 'moodb':'' ]" >
|
||||
<img :src="item?.imgUrl" @click.stop="selectImgItem(item)">
|
||||
<sketchCategory v-if="selectCode == 'Sketchboard'" :disignTypeList="disignTypeList" :generateList="imgList" :item="item" :isSetSketchCategory="true"></sketchCategory>
|
||||
<printCategory v-if="selectCode == 'Printboard'" :disignTypeList="disignTypeList" :generateList="imgList" :item="item" :isSetSketchCategory="true"></printCategory>
|
||||
<!-- <div v-if="selectCode == 'Sketchboard' || selectCode == 'Printboard'" class="pin_block">
|
||||
<a-checkbox v-model:checked="item.pin">{{ $t('Material.PIN') }}</a-checkbox>
|
||||
</div> -->
|
||||
@@ -48,9 +49,10 @@ import GO from '@/tool/GO';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { openGuide,driverObj__ } from "@/tool/guide";
|
||||
import sketchCategory from "@/component/HomePage/sketchCategory.vue";
|
||||
import printCategory from "@/component/HomePage/printCategory.vue";
|
||||
|
||||
export default defineComponent({
|
||||
components: { sketchCategory },
|
||||
components: { sketchCategory,printCategory },
|
||||
|
||||
props: ["msg",'disignTypeList'],
|
||||
setup(prop) {
|
||||
|
||||
@@ -28,9 +28,9 @@
|
||||
|
||||
</div>
|
||||
<div v-show="openClick == 3" class="generalMenu_printModel printMenu">
|
||||
<div @click.stop="openPrintModel">{{ scene.label }} <i class="icon iconfont icon-xiala" :class="{forbidden:openMenu}"></i></div>
|
||||
<div @click.stop="openPrintModel">{{ scene.name }} <i class="icon iconfont icon-xiala" :class="{forbidden:openMenu}"></i></div>
|
||||
<ul v-show="openMenu">
|
||||
<li v-for="item,index in sceneList" class="printModel_item" @click.stop="setSceneList(item)">{{ item.label }}</li>
|
||||
<li v-for="item,index in sceneList" class="printModel_item" @click.stop="setSceneList(item)">{{ item.name }}</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -91,7 +91,13 @@
|
||||
<span>{{ $t('PrintboardUpload.Maximum') }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<Material v-show="openClick == 2" ref="Material" msg="Printboard" @setLibrary = setSetchboardGenerate @confirmSelect="confirmSelect"></Material>
|
||||
<Material v-show="openClick == 2"
|
||||
ref="Material"
|
||||
msg="Printboard"
|
||||
@setLibrary = setSetchboardGenerate
|
||||
@confirmSelect="confirmSelect"
|
||||
:disignTypeList="printCatecoryList"
|
||||
></Material>
|
||||
<Generate v-show="openClick == 3" ref="Generate" :scene="scene" msg="Printboard"></Generate>
|
||||
</div>
|
||||
<div class="modal_right">
|
||||
@@ -186,21 +192,24 @@ export default defineComponent({
|
||||
let workspace = ref({})
|
||||
let sceneList = ref([
|
||||
{
|
||||
label:'Pattern',
|
||||
name:'Pattern',
|
||||
value:'Pattern'
|
||||
},{
|
||||
label:'Slogan',
|
||||
name:'Slogan',
|
||||
value:'Slogan'
|
||||
},{
|
||||
label:'Logo',
|
||||
name:'Logo',
|
||||
value:'Logo'
|
||||
},
|
||||
])
|
||||
let scene = ref({
|
||||
label:'Pattern',
|
||||
name:'Pattern',
|
||||
value:'Pattern'
|
||||
})
|
||||
let openMenu = ref(false)
|
||||
let printCatecoryList:any = computed(()=>{
|
||||
return store.state.UserHabit.printType
|
||||
})
|
||||
return {
|
||||
fileList,
|
||||
printImgList,
|
||||
@@ -215,6 +224,7 @@ export default defineComponent({
|
||||
sceneList,
|
||||
scene,
|
||||
openMenu,
|
||||
printCatecoryList,
|
||||
}
|
||||
},
|
||||
computed:{
|
||||
|
||||
@@ -114,11 +114,11 @@
|
||||
libraryId:[item.id],
|
||||
level2Type:item.category,
|
||||
}
|
||||
Https.axiosPost(Https.httpUrls.setSketchLibrary,data).then(
|
||||
(rv: any) => {
|
||||
}
|
||||
).catch((res)=>{
|
||||
});
|
||||
// Https.axiosPost(Https.httpUrls.setSketchLibrary,data).then(
|
||||
// (rv: any) => {
|
||||
// }
|
||||
// ).catch((res)=>{
|
||||
// });
|
||||
}
|
||||
return {
|
||||
showFileCategory,
|
||||
@@ -129,7 +129,7 @@
|
||||
|
||||
});
|
||||
</script>
|
||||
<style lang="less">
|
||||
<style lang="less" scoped>
|
||||
//衣服类型下拉菜单
|
||||
.operate_file_block{
|
||||
width: 100%;
|
||||
|
||||
@@ -129,7 +129,7 @@ export default defineComponent({
|
||||
|
||||
});
|
||||
</script>
|
||||
<style lang="less">
|
||||
<style lang="less" scoped>
|
||||
//衣服类型下拉菜单
|
||||
.operate_file_block{
|
||||
width: 100%;
|
||||
|
||||
Reference in New Issue
Block a user