This commit is contained in:
X1627315083
2024-01-04 09:40:28 +08:00
parent 003d8da364
commit 21c5fad138
10 changed files with 64 additions and 18 deletions

View File

@@ -145,13 +145,15 @@
</template>
<script lang="ts">
import { defineComponent,computed,ref,provide,nextTick } from 'vue'
import { defineComponent,computed,ref,provide,nextTick,createVNode} from 'vue'
import DesignDetailAlter from '@/component/Detail/DesignDetailAlter.vue'
import magnifyingGlass from '@/component/Detail/magnifyingGlass.vue'
import setDesignItem from '@/component/Detail/setDesignItem.vue'
import setDesignItemMobile from '@/component/Detail/setDesignItemMobile.vue'
import Draggable from 'vuedraggable'
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
import { Https } from "@/tool/https";
import { Modal,message } from 'ant-design-vue';
import {getUploadUrl,isMoible} from '@/tool/util'
import { useStore } from "vuex";
import { openGuide,driverObj__ } from "@/tool/guide";
@@ -360,12 +362,34 @@ export default defineComponent({
closeModal(){
if(this.designShowPrview == 1){
this.designDetailShow = false
this.designOrder = false
let DesignDetailAlter:any = this.$refs.DesignDetailAlter
DesignDetailAlter.terminate()
// this.designItemDetail = {}
this.frontBack = {}
if(this.ifSubmit){
let _this = this
Modal.confirm({
title: this.t('DesignPrintOperation.jsContent1'),
icon: createVNode(ExclamationCircleOutlined),
okText: 'Yes',
cancelText: 'No',
mask:false,
centered:true,
onOk() {
_this.designDetailShow = false
_this.designOrder = false
let DesignDetailAlter:any = _this.$refs.DesignDetailAlter
DesignDetailAlter.terminate()
// _this.designItemDetail = {}
_this.frontBack = {}
}
});
}else{
this.designDetailShow = false
this.designOrder = false
let DesignDetailAlter:any = this.$refs.DesignDetailAlter
DesignDetailAlter.terminate()
// this.designItemDetail = {}
this.frontBack = {}
}
}else{
this.designShowPrview = 1;
// this.designItemDetailUrl = {}
@@ -762,6 +786,7 @@ export default defineComponent({
this.loadingShow = true
Https.axiosPost(Https.httpUrls.designSingle, data).then(
(rv) => {
designItemDetail.currentFullBodyView = rv.currentFullBodyView
designItemDetail.ifSubmit = true
this.loadingShow = false
this.store.commit("setDesignItemDetail", designItemDetail);