2023-11-24-dist
This commit is contained in:
@@ -49,6 +49,9 @@
|
||||
<SketchboardUpload ref="SketchboardUpload" v-show="collectionStep === 4"></SketchboardUpload>
|
||||
<!-- <MarketingSketchUpload ref="MarketingSketchUpload" v-show="collectionStep === 5"></MarketingSketchUpload> -->
|
||||
</div>
|
||||
<div class="mark_loading" v-show="isShowMark">
|
||||
<a-spin size="large" />
|
||||
</div>
|
||||
</a-modal>
|
||||
</div>
|
||||
|
||||
@@ -64,6 +67,7 @@ import SketchboardUpload from '@/component/HomePage/SketchboardUpload.vue'
|
||||
import MarketingSketchUpload from '@/component/HomePage/MarketingSketchUpload.vue'
|
||||
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
||||
import { Modal,message } from 'ant-design-vue';
|
||||
import { Https } from "@/tool/https";
|
||||
import {useStore} from 'vuex'
|
||||
import { openGuide,driverObj__ } from "@/tool/guide";
|
||||
import GO from "@/tool/GO";
|
||||
@@ -84,9 +88,11 @@ export default defineComponent({
|
||||
return store.state.Guide.guide
|
||||
})
|
||||
provide('driver__',driver__)
|
||||
let isShowMark = ref(false)
|
||||
return {
|
||||
driver__,
|
||||
t,
|
||||
isShowMark,
|
||||
}
|
||||
},
|
||||
|
||||
@@ -167,21 +173,46 @@ export default defineComponent({
|
||||
|
||||
//完成
|
||||
finishCollection(){
|
||||
let colorBoards = this.store.state.UploadFilesModule.colorBoards
|
||||
|
||||
if(!colorBoards || colorBoards?.length < 1){
|
||||
message.info(this.$t('collectionModal.jsContent3'))
|
||||
return
|
||||
}
|
||||
this.isShowMark = true
|
||||
let sketchList = this.store.state.UploadFilesModule.sketchboard
|
||||
let arr:any = []
|
||||
sketchList.forEach((item:any) => {
|
||||
let obj = {
|
||||
designType:item.resData.designType,
|
||||
isPin:item.pin,
|
||||
level2Type:item.category,
|
||||
sketchBoardId:item.id
|
||||
}
|
||||
arr.push(obj)
|
||||
});
|
||||
let data = {sketchBoards:arr}
|
||||
this.store.commit('clearAllId')
|
||||
GO.id = 0
|
||||
this.showCollectionModal =false
|
||||
this.collectionStep = 1
|
||||
this.$emit('finishCollection')
|
||||
this.showCollectionModal =false
|
||||
this.collectionStep = 1
|
||||
this.$emit('finishCollection')
|
||||
if(this.driver__.driver){
|
||||
driverObj__.moveNext()
|
||||
}
|
||||
// let elList = document.querySelectorAll('.img_block_item_sketch img')
|
||||
// Https.axiosPost(Https.httpUrls.sketchBoardsBoundingBox, data)
|
||||
// .then((rv: any) => {
|
||||
// elList.forEach((item:any)=>{
|
||||
// item.src = item.src
|
||||
// })
|
||||
// this.store.commit('clearAllId')
|
||||
// GO.id = 0
|
||||
// this.showCollectionModal =false
|
||||
// this.collectionStep = 1
|
||||
// this.$emit('finishCollection')
|
||||
// if(this.driver__.driver){
|
||||
// driverObj__.moveNext()
|
||||
// }
|
||||
// })
|
||||
// .catch((res) => {
|
||||
// });
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user