fix
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
NODE_ENV = 'development'
|
NODE_ENV = 'development'
|
||||||
VUE_APP_BASE_URL = 'https://develop.api.aida.com.hk'
|
VUE_APP_BASE_URL = 'https://develop.api.aida.com.hk'
|
||||||
# VUE_APP_BASE_URL = 'http://18.167.251.121:10086'
|
# VUE_APP_BASE_URL = 'http://18.167.251.121:10086'
|
||||||
# VUE_APP_BASE_URL = 'http://192.168.1.7:5567'
|
# VUE_APP_BASE_URL = 'http://192.168.1.6:5567'
|
||||||
|
|||||||
@@ -145,13 +145,15 @@
|
|||||||
|
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts">
|
<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 DesignDetailAlter from '@/component/Detail/DesignDetailAlter.vue'
|
||||||
import magnifyingGlass from '@/component/Detail/magnifyingGlass.vue'
|
import magnifyingGlass from '@/component/Detail/magnifyingGlass.vue'
|
||||||
import setDesignItem from '@/component/Detail/setDesignItem.vue'
|
import setDesignItem from '@/component/Detail/setDesignItem.vue'
|
||||||
import setDesignItemMobile from '@/component/Detail/setDesignItemMobile.vue'
|
import setDesignItemMobile from '@/component/Detail/setDesignItemMobile.vue'
|
||||||
import Draggable from 'vuedraggable'
|
import Draggable from 'vuedraggable'
|
||||||
|
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
||||||
import { Https } from "@/tool/https";
|
import { Https } from "@/tool/https";
|
||||||
|
import { Modal,message } from 'ant-design-vue';
|
||||||
import {getUploadUrl,isMoible} from '@/tool/util'
|
import {getUploadUrl,isMoible} from '@/tool/util'
|
||||||
import { useStore } from "vuex";
|
import { useStore } from "vuex";
|
||||||
import { openGuide,driverObj__ } from "@/tool/guide";
|
import { openGuide,driverObj__ } from "@/tool/guide";
|
||||||
@@ -360,12 +362,34 @@ export default defineComponent({
|
|||||||
|
|
||||||
closeModal(){
|
closeModal(){
|
||||||
if(this.designShowPrview == 1){
|
if(this.designShowPrview == 1){
|
||||||
this.designDetailShow = false
|
if(this.ifSubmit){
|
||||||
this.designOrder = false
|
let _this = this
|
||||||
let DesignDetailAlter:any = this.$refs.DesignDetailAlter
|
Modal.confirm({
|
||||||
DesignDetailAlter.terminate()
|
title: this.t('DesignPrintOperation.jsContent1'),
|
||||||
// this.designItemDetail = {}
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
this.frontBack = {}
|
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{
|
}else{
|
||||||
this.designShowPrview = 1;
|
this.designShowPrview = 1;
|
||||||
// this.designItemDetailUrl = {}
|
// this.designItemDetailUrl = {}
|
||||||
@@ -762,6 +786,7 @@ export default defineComponent({
|
|||||||
this.loadingShow = true
|
this.loadingShow = true
|
||||||
Https.axiosPost(Https.httpUrls.designSingle, data).then(
|
Https.axiosPost(Https.httpUrls.designSingle, data).then(
|
||||||
(rv) => {
|
(rv) => {
|
||||||
|
designItemDetail.currentFullBodyView = rv.currentFullBodyView
|
||||||
designItemDetail.ifSubmit = true
|
designItemDetail.ifSubmit = true
|
||||||
this.loadingShow = false
|
this.loadingShow = false
|
||||||
this.store.commit("setDesignItemDetail", designItemDetail);
|
this.store.commit("setDesignItemDetail", designItemDetail);
|
||||||
|
|||||||
@@ -480,7 +480,7 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
workspaceCom(newVal,oldVal){
|
workspaceCom(newVal,oldVal){
|
||||||
this.workspace = newVal
|
this.workspace = newVal
|
||||||
this.upload.gender = newVal.sexEnum.name
|
this.upload.gender = newVal?.sexEnum?.name
|
||||||
this.getPosition()
|
this.getPosition()
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -388,7 +388,10 @@ export default defineComponent({
|
|||||||
})
|
})
|
||||||
data.designSingleItemDTOList.forEach((item)=>{
|
data.designSingleItemDTOList.forEach((item)=>{
|
||||||
let front = arr
|
let front = arr
|
||||||
let imageCategory1 = arr[1].imageCategory
|
let imageCategory1
|
||||||
|
if(arr.length > 1){
|
||||||
|
imageCategory1 = arr[1].imageCategory
|
||||||
|
}
|
||||||
for (let index = 0; index < arr.length; index++) {
|
for (let index = 0; index < arr.length; index++) {
|
||||||
if(item.id == arr[index].id && !arr[index].similarity){
|
if(item.id == arr[index].id && !arr[index].similarity){
|
||||||
let y = ((arr[index]?.style?.top.replace(/px/g,'')*ratio).toFixed(0) - arr[index]?.position[0])
|
let y = ((arr[index]?.style?.top.replace(/px/g,'')*ratio).toFixed(0) - arr[index]?.position[0])
|
||||||
@@ -404,7 +407,7 @@ export default defineComponent({
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(item.type == this.capitalizeFirstLetter(imageCategory1)){
|
if(arr.length > 1 && item.type == this.capitalizeFirstLetter(imageCategory1)){
|
||||||
item.scale = front?.imageSize?Number(((front?.style?.width.replace(/px/g,'')*ratio)/front?.imageSize[0]).toFixed(2)):1
|
item.scale = front?.imageSize?Number(((front?.style?.width.replace(/px/g,'')*ratio)/front?.imageSize[0]).toFixed(2)):1
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -387,7 +387,10 @@ export default defineComponent({
|
|||||||
})
|
})
|
||||||
data.designSingleItemDTOList.forEach((item)=>{
|
data.designSingleItemDTOList.forEach((item)=>{
|
||||||
let front = arr
|
let front = arr
|
||||||
let imageCategory1 = arr[1].imageCategory
|
let imageCategory1
|
||||||
|
if(arr.length > 1){
|
||||||
|
imageCategory1 = arr[1].imageCategory
|
||||||
|
}
|
||||||
arr.forEach((i)=>{
|
arr.forEach((i)=>{
|
||||||
let imageCategory = i.imageCategory.split('_')[0]
|
let imageCategory = i.imageCategory.split('_')[0]
|
||||||
if(item.id == i.id){
|
if(item.id == i.id){
|
||||||
@@ -402,7 +405,7 @@ export default defineComponent({
|
|||||||
// item.offset = [(i?.style?.left.replace(/px/g,'')*ratio).toFixed(0),(i?.style?.top.replace(/px/g,'')*ratio).toFixed(0)]
|
// item.offset = [(i?.style?.left.replace(/px/g,'')*ratio).toFixed(0),(i?.style?.top.replace(/px/g,'')*ratio).toFixed(0)]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if(item.type == this.capitalizeFirstLetter(imageCategory1)){
|
if(arr.length > 1 && item.type == this.capitalizeFirstLetter(imageCategory1)){
|
||||||
item.scale = front?.imageSize?Number(((front?.style?.width.replace(/px/g,'')*ratio)/front?.imageSize[0]).toFixed(2)):1
|
item.scale = front?.imageSize?Number(((front?.style?.width.replace(/px/g,'')*ratio)/front?.imageSize[0]).toFixed(2)):1
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -343,7 +343,7 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
workspaceCom(newVal,oldVal){
|
workspaceCom(newVal,oldVal){
|
||||||
this.workspace = newVal
|
this.workspace = newVal
|
||||||
this.upload.gender = newVal.sexEnum.name
|
this.upload.gender = newVal?.sexEnum?.name
|
||||||
},
|
},
|
||||||
moodboarList(newVal,oldVal){
|
moodboarList(newVal,oldVal){
|
||||||
if(newVal.length>=1 || this.sketchboardList.length >= 2){
|
if(newVal.length>=1 || this.sketchboardList.length >= 2){
|
||||||
|
|||||||
@@ -131,6 +131,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- 取消请求 -->
|
||||||
|
<!-- <button @click="canelAxios">9999999999999999999</button> -->
|
||||||
<scaleImage ref="scaleImage"></scaleImage>
|
<scaleImage ref="scaleImage"></scaleImage>
|
||||||
<Cropper ref="Cropper" @handleCropperSuccess="handleCropperSuccess" @closeCropper="deletUploadFile()" :cropperFileData="cropperFileData" :isUpload="isUpload"></Cropper>
|
<Cropper ref="Cropper" @handleCropperSuccess="handleCropperSuccess" @closeCropper="deletUploadFile()" :cropperFileData="cropperFileData" :isUpload="isUpload"></Cropper>
|
||||||
</div>
|
</div>
|
||||||
@@ -150,6 +152,7 @@ import GO from "@/tool/GO";
|
|||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import { openGuide,driverObj__ } from "@/tool/guide";
|
import { openGuide,driverObj__ } from "@/tool/guide";
|
||||||
import scaleImage from "@/component/HomePage/scaleImage.vue";
|
import scaleImage from "@/component/HomePage/scaleImage.vue";
|
||||||
|
import axios from 'axios'
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
components:{
|
components:{
|
||||||
@@ -238,6 +241,7 @@ export default defineComponent({
|
|||||||
printboardList:computed(()=>{
|
printboardList:computed(()=>{
|
||||||
return useStore().state.UploadFilesModule.printboard
|
return useStore().state.UploadFilesModule.printboard
|
||||||
}),
|
}),
|
||||||
|
source:axios.CancelToken.source()
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -253,6 +257,12 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
//取消请求测试
|
||||||
|
canelAxios(){
|
||||||
|
// Https.axiosCanel()
|
||||||
|
this.source.cancel('请求被取消');
|
||||||
|
this.source = axios.CancelToken.source()
|
||||||
|
},
|
||||||
open(num: Number) {
|
open(num: Number) {
|
||||||
this.openClick = num;
|
this.openClick = num;
|
||||||
let material:any = this.$refs.Material
|
let material:any = this.$refs.Material
|
||||||
@@ -635,6 +645,8 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.loadingShow = true
|
this.loadingShow = true
|
||||||
|
//取消请求
|
||||||
|
// Https.axiosPost(Https.httpUrls.sketchAndPrintGenerate, data,{cancelToken: this.source?.token}).then(
|
||||||
Https.axiosPost(Https.httpUrls.sketchAndPrintGenerate, data).then(
|
Https.axiosPost(Https.httpUrls.sketchAndPrintGenerate, data).then(
|
||||||
(rv) => {
|
(rv) => {
|
||||||
if(rv){
|
if(rv){
|
||||||
|
|||||||
@@ -382,7 +382,7 @@ export default defineComponent({
|
|||||||
watch:{
|
watch:{
|
||||||
workspaceCom(newVal,oldVal){
|
workspaceCom(newVal,oldVal){
|
||||||
this.workspace = newVal
|
this.workspace = newVal
|
||||||
this.upload.gender = newVal.sexEnum.name
|
this.upload.gender = newVal?.sexEnum?.name
|
||||||
},
|
},
|
||||||
sketchboardList:{
|
sketchboardList:{
|
||||||
handler(newVal:any,oldVal:any){
|
handler(newVal:any,oldVal:any){
|
||||||
|
|||||||
@@ -972,7 +972,8 @@ export default defineComponent({
|
|||||||
if (key !== "colorBoards" && key !== "moodTemplateId") {
|
if (key !== "colorBoards" && key !== "moodTemplateId") {
|
||||||
if(this.exportNav[num]?.change || key == 'disposeMoodboard'){
|
if(this.exportNav[num]?.change || key == 'disposeMoodboard'){
|
||||||
for (let item of allBoardData[key]) {
|
for (let item of allBoardData[key]) {
|
||||||
if(key == 'disposeMoodboard'){
|
if(key == 'disposeMoodboard' && allBoardData[key][0]==undefined){
|
||||||
|
break
|
||||||
}
|
}
|
||||||
let nameTail = item?.imgUrl?.split(".").pop().split("?").shift();
|
let nameTail = item?.imgUrl?.split(".").pop().split("?").shift();
|
||||||
let data = {
|
let data = {
|
||||||
|
|||||||
@@ -778,7 +778,7 @@ export default defineComponent({
|
|||||||
// this.closeRenameModal()
|
// this.closeRenameModal()
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if(labelArr.length > 0){//多选修改标签
|
if(labelArr.length > 0 && this.renameType == 'batch'){//多选修改标签
|
||||||
await Https.axiosPost(Https.httpUrls.relationLibrary, data2).then(
|
await Https.axiosPost(Https.httpUrls.relationLibrary, data2).then(
|
||||||
(rv: any) => {
|
(rv: any) => {
|
||||||
bor = true
|
bor = true
|
||||||
@@ -1245,7 +1245,9 @@ export default defineComponent({
|
|||||||
like:v.isLiked
|
like:v.isLiked
|
||||||
|
|
||||||
}
|
}
|
||||||
this.generateList.push(arr)
|
// this.generateList.push(arr)
|
||||||
|
this.generateList.unshift(arr)
|
||||||
|
|
||||||
})
|
})
|
||||||
this.isShowMark = false
|
this.isShowMark = false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user