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')
// return
// }
if(this.allBoardData.printboardFiles.length<=0){
return
}
if(credits.value < 30){
message.info( useI18.t('exportModel.jsContent3'))
// return

View File

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

View File

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

View File

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