This commit is contained in:
X1627315083
2024-04-22 09:46:40 +08:00
parent 727968548b
commit a194ae3bf6
7 changed files with 28 additions and 21 deletions

View File

@@ -1443,6 +1443,9 @@ export default defineComponent({
// message.info('Your print is empty') // message.info('Your print is empty')
// return // return
// } // }
if(this.allBoardData.printboardFiles.length<=0){
return
}
if(credits.value < 30){ if(credits.value < 30){
message.info( useI18.t('exportModel.jsContent3')) message.info( useI18.t('exportModel.jsContent3'))
// return // return

View File

@@ -644,15 +644,16 @@ export default defineComponent({
}, },
removeGenerate(){ removeGenerate(){
let arr = this.fileList.filter((item:any)=>item.status != 'Success') let arr = this.fileList.filter((item:any)=>item.status != 'Success')
//取消操作
this.fileList = this.fileList.filter((item:any)=>item.status == 'Success')
this.loadingShow = false
clearInterval(this.generateTime)
if(arr){ if(arr){
let str = arr.map((obj:any) => obj.taskId).join(','); let str = arr.map((obj:any) => obj.taskId).join(',');
let data = {uniqueId:str,userId:this?.userInfo?.userId,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone} let data = {uniqueId:str,userId:this?.userInfo?.userId,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone}
Https.axiosGet(Https.httpUrls.generateStopWaiting, {params:data}).then( Https.axiosGet(Https.httpUrls.generateStopWaiting, {params:data}).then(
(rv) => { (rv) => {
this.fileList = this.fileList.filter((item:any)=>item.status == 'Success')
this.loadingShow = false
clearInterval(this.generateTime)
} }
).catch(res=>{ ).catch(res=>{
}); });

View File

@@ -793,14 +793,16 @@ export default defineComponent({
}, },
removeGenerate(){ removeGenerate(){
let arr = this.generateList.filter((item:any)=>item.status != 'Success') let arr = this.generateList.filter((item:any)=>item.status != 'Success')
//取消操作
this.generateList = this.generateList.filter((item:any)=>item.status == 'Success')
this.loadingShow = false
clearInterval(this.generateTime)
if(arr){ if(arr){
let str = arr.map((obj:any) => obj.taskId).join(','); let str = arr.map((obj:any) => obj.taskId).join(',');
let data = {uniqueId:str,userId:this?.userInfo?.userId,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone} let data = {uniqueId:str,userId:this?.userInfo?.userId,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone}
Https.axiosGet(Https.httpUrls.generateStopWaiting, {params:data}).then( Https.axiosGet(Https.httpUrls.generateStopWaiting, {params:data}).then(
(rv) => { (rv) => {
this.generateList = this.generateList.filter((item:any)=>item.status == 'Success')
this.loadingShow = false
clearInterval(this.generateTime)
} }
).catch(res=>{ ).catch(res=>{
}); });

View File

@@ -905,16 +905,17 @@ export default defineComponent({
},1000) },1000)
}, },
removeGenerate(){ removeGenerate(){
let arr = this.generateList.filter((item:any)=>item.status != 'Success') let arr = this.generateList.filter((item:any)=>item.status != 'Success')
//取消操作
this.generateList = this.generateList.filter((item:any)=>item.status == 'Success')
this.loadingShow = false
clearInterval(this.generateTime)
if(arr){ if(arr){
let str = arr.map((obj:any) => obj.taskId).join(','); let str = arr.map((obj:any) => obj.taskId).join(',');
let data = {uniqueId:str,userId:this?.userInfo?.userId,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone} let data = {uniqueId:str,userId:this?.userInfo?.userId,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone}
Https.axiosGet(Https.httpUrls.generateStopWaiting, {params:data}).then( Https.axiosGet(Https.httpUrls.generateStopWaiting, {params:data}).then(
(rv) => { (rv) => {
this.generateList = this.generateList.filter((item:any)=>item.status == 'Success')
this.loadingShow = false
clearInterval(this.generateTime)
} }
).catch(res=>{ ).catch(res=>{
}); });

View File

@@ -52,7 +52,7 @@ export default {
insufficient:'您的积分余额不足,如需使用此功能,请点击左上角充值', insufficient:'您的积分余额不足,如需使用此功能,请点击左上角充值',
HDExport:'高清导出', HDExport:'高清导出',
Export:'导出', Export:'导出',
SR:'请选择需要SR的图片', SR:'请选择需要超分的图片',
requiresCredits:'每张图片需要消耗{data}积分', requiresCredits:'每张图片需要消耗{data}积分',
Scale:'倍率', Scale:'倍率',
Cancel:'取消', Cancel:'取消',
@@ -61,7 +61,7 @@ export default {
jsContent3:'您的积分小于一次超分', jsContent3:'您的积分小于一次超分',
jsContent4:'您的积分余额不足', jsContent4:'您的积分余额不足',
jsContent5:'你选择的第 {str}张图片宽度或者高度超过2048,', jsContent5:'你选择的第 {str}张图片宽度或者高度超过2048,',
jsContent6:'请选择需要SR的图片', jsContent6:'请选择需要超分的图片',
}, },
upgradePlan:{ upgradePlan:{
BuyCredlts:'购买积分', BuyCredlts:'购买积分',

View File

@@ -53,7 +53,7 @@ export default {
insufficient:'Your points balance is insufficient, if you need to use this feature, please click the top left corner to recharge', insufficient:'Your points balance is insufficient, if you need to use this feature, please click the top left corner to recharge',
HDExport:'UpScale', HDExport:'UpScale',
Export:'Export', Export:'Export',
SR:'Please select the picture that requires SR', SR:'Please select the picture that requires upscale',
requiresCredits:'Each picture requires {data} credits', requiresCredits:'Each picture requires {data} credits',
Scale:'Scale', Scale:'Scale',
Cancel:'Cancel', Cancel:'Cancel',
@@ -62,7 +62,7 @@ export default {
jsContent3:'Your points are less than one SR', jsContent3:'Your points are less than one SR',
jsContent4:'Your points balance is insufficient', jsContent4:'Your points balance is insufficient',
jsContent5:'You selected the {str} image and zoom ratio more than 2048,', jsContent5:'You selected the {str} image and zoom ratio more than 2048,',
jsContent6:'Please select the picture that requires SR', jsContent6:'Please select the picture that requires upscale',
}, },
upgradePlan:{ upgradePlan:{
BuyCredlts:'Buy credits', BuyCredlts:'Buy credits',

View File

@@ -1198,17 +1198,17 @@ export default defineComponent({
}, },
removeGenerate(){ removeGenerate(){
let arr = this.generateList.filter((item:any)=>item.status != 'Success') let arr = this.generateList.filter((item:any)=>item.status != 'Success')
this.generateList = this.generateList.filter((item:any)=>item.status == 'Success')
this.isShowMark = false
this.isGenerate = false
this.remGenerate = false
clearInterval(this.generateTime)
if(arr){ if(arr){
let str = arr.map((obj:any) => obj.taskId).join(','); let str = arr.map((obj:any) => obj.taskId).join(',');
let data = {uniqueId:str,userId:(this?.userInfo as any)?.userId,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone} let data = {uniqueId:str,userId:(this?.userInfo as any)?.userId,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone}
Https.axiosGet(Https.httpUrls.generateStopWaiting, {params:data}).then( Https.axiosGet(Https.httpUrls.generateStopWaiting, {params:data}).then(
(rv) => { (rv) => {
this.generateList = this.generateList.filter((item:any)=>item.status == 'Success')
this.isShowMark = false
this.isGenerate = false
this.remGenerate = false
clearInterval(this.generateTime)
} }
).catch(res=>{ ).catch(res=>{
}); });