语言适配和超分调整
This commit is contained in:
4
.env.dev
4
.env.dev
@@ -3,6 +3,6 @@ NODE_ENV = 'development'
|
|||||||
# VUE_APP_BASE_URL = 'https://api.aida.com.hk'
|
# VUE_APP_BASE_URL = 'https://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 = 'https://develop.api.aida.com.hk'
|
VUE_APP_BASE_URL = 'https://develop.api.aida.com.hk'
|
||||||
# VUE_APP_BASE_URL = 'http://192.168.1.9:17088'
|
# VUE_APP_BASE_URL = 'http://192.168.1.9:17088'
|
||||||
VUE_APP_BASE_URL = 'http://192.168.1.7:5567'
|
# VUE_APP_BASE_URL = 'http://192.168.1.7:5567'
|
||||||
|
|||||||
@@ -690,7 +690,7 @@ export default defineComponent({
|
|||||||
//关闭画布
|
//关闭画布
|
||||||
let cancelDsign = () => {
|
let cancelDsign = () => {
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
title: 'Canvas edit content is not saved, whether to leave the page',
|
title: useI18n().t('exportModel.jsContent1'),
|
||||||
okText: 'Yes',
|
okText: 'Yes',
|
||||||
cancelText: 'No',
|
cancelText: 'No',
|
||||||
mask:false,
|
mask:false,
|
||||||
@@ -1450,7 +1450,7 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
Https.axiosPost(Https.httpUrls.prepareForSR, data).then((rv) => {
|
Https.axiosPost(Https.httpUrls.prepareForSR, data).then((rv) => {
|
||||||
store.dispatch('getCredits')
|
store.dispatch('getCredits')
|
||||||
emit('setTask')
|
emit('setTask',rv)
|
||||||
cancelSRExport()
|
cancelSRExport()
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -141,10 +141,13 @@ export default defineComponent({
|
|||||||
let dom = document.querySelector('.task_page .task_content_select')
|
let dom = document.querySelector('.task_page .task_content_select')
|
||||||
return dom
|
return dom
|
||||||
},
|
},
|
||||||
init(){
|
init(data:any){
|
||||||
this.visible = true
|
this.visible = true
|
||||||
// this.getTaskList()
|
// this.getTaskList()
|
||||||
|
this.currentPage = 1
|
||||||
|
// setTimeout(() => {
|
||||||
this.getTaskMoreList()
|
this.getTaskMoreList()
|
||||||
|
// }, 1000);
|
||||||
},
|
},
|
||||||
sort(arr:any){
|
sort(arr:any){
|
||||||
arr.sort((a:any, b:any) => {
|
arr.sort((a:any, b:any) => {
|
||||||
@@ -157,7 +160,7 @@ export default defineComponent({
|
|||||||
afterVisibleChange(bool:any){
|
afterVisibleChange(bool:any){
|
||||||
if(!bool){
|
if(!bool){
|
||||||
// clearTimeout(this.getTaskTime)
|
// clearTimeout(this.getTaskTime)
|
||||||
// this.taskListMore = []
|
this.taskListMore = []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
visibleChange(){
|
visibleChange(){
|
||||||
@@ -170,24 +173,34 @@ export default defineComponent({
|
|||||||
getTaskList(){
|
getTaskList(){
|
||||||
clearTimeout(this.getTaskTime)
|
clearTimeout(this.getTaskTime)
|
||||||
let arr = this.taskListUnfinished.map((item:any) => item.taskId)
|
let arr = this.taskListUnfinished.map((item:any) => item.taskId)
|
||||||
console.log(arr,this.taskListUnfinished);
|
|
||||||
if(arr <= 0){
|
if(arr <= 0){
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
Https.axiosPost(Https.httpUrls.getTasksList,arr).then((rv)=>{
|
Https.axiosPost(Https.httpUrls.getTasksList,arr).then((rv)=>{
|
||||||
this.taskListUnfinished.forEach((item:any,index:number) => {
|
this.taskListUnfinished.forEach((item:any,index:number) => {
|
||||||
let rvIndex = rv.findIndex((rvItem:any)=>{
|
rv.forEach((rvItem:any) => {
|
||||||
if(rvItem.status == 'success'){
|
if(item.taskId==rvItem.taskId && rvItem.status == 'success'){
|
||||||
downloadIamge(item.outputImage,item.imageName)
|
downloadIamge(rvItem.outputImage,rvItem.imageName)
|
||||||
|
let itemIndex = item.index
|
||||||
|
this.taskListUnfinished[index] = rvItem
|
||||||
|
this.taskListUnfinished[index].index = itemIndex
|
||||||
|
this.taskListMore[itemIndex] = rvItem
|
||||||
|
this.taskListMore[itemIndex].inputImage = rvItem.inputParam.images
|
||||||
}
|
}
|
||||||
return rvItem.taskId == item.taskId
|
|
||||||
})
|
|
||||||
item = rv[rvIndex]
|
|
||||||
this.taskListMore[item.index] = rv[rvIndex]
|
|
||||||
console.log(this.taskListUnfinished);
|
|
||||||
});
|
});
|
||||||
this.taskListUnfinished.filter((unfinishedItem:any)=>{
|
// let itemIndex = item.index
|
||||||
return unfinishedItem.status == 'Waiting' || unfinishedItem.status == 'Executing'
|
// let rvIndex = rv.findIndex((rvItem:any)=>{
|
||||||
|
// if(rvItem.status == 'success'){
|
||||||
|
// downloadIamge(rvItem.outputImage,rvItem.imageName)
|
||||||
|
// }
|
||||||
|
// return rvItem.taskId == item.taskId
|
||||||
|
// })
|
||||||
|
// this.taskListUnfinished[index] = rv[rvIndex]
|
||||||
|
// this.taskListUnfinished[index].index = itemIndex
|
||||||
|
// this.taskListMore[itemIndex] = rv[rvIndex]
|
||||||
|
});
|
||||||
|
this.taskListUnfinished = this.taskListUnfinished.filter((unfinishedItem:any)=>{
|
||||||
|
return (unfinishedItem.status == 'Waiting' || unfinishedItem.status == 'Executing')
|
||||||
})
|
})
|
||||||
// this.taskList = this.sort(rv)
|
// this.taskList = this.sort(rv)
|
||||||
// let isSuccess = rv.filter((item:any) => item.status == 'Waiting' || item.status == 'Executing')
|
// let isSuccess = rv.filter((item:any) => item.status == 'Waiting' || item.status == 'Executing')
|
||||||
@@ -206,8 +219,8 @@ export default defineComponent({
|
|||||||
endTime: "",
|
endTime: "",
|
||||||
startTime: "",
|
startTime: "",
|
||||||
}
|
}
|
||||||
this.currentPage += 1
|
|
||||||
Https.axiosPost(Https.httpUrls.getTasksHistory,data).then((rv)=>{
|
Https.axiosPost(Https.httpUrls.getTasksHistory,data).then((rv)=>{
|
||||||
|
this.currentPage += 1
|
||||||
if(this.currentPage > 1 && rv.content.length == 0){
|
if(this.currentPage > 1 && rv.content.length == 0){
|
||||||
this.currentPage = 1
|
this.currentPage = 1
|
||||||
this.getTaskMoreList()
|
this.getTaskMoreList()
|
||||||
@@ -221,8 +234,6 @@ export default defineComponent({
|
|||||||
this.taskListUnfinished.push(item)
|
this.taskListUnfinished.push(item)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
console.log(this.getTaskTime);
|
|
||||||
|
|
||||||
if(!this.getTaskTime){
|
if(!this.getTaskTime){
|
||||||
this.getTaskList()
|
this.getTaskList()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,10 +14,66 @@ export default {
|
|||||||
verification:'输入验证码',
|
verification:'输入验证码',
|
||||||
SentTo:'发送',
|
SentTo:'发送',
|
||||||
Resend:'重发',
|
Resend:'重发',
|
||||||
|
Credits:'积分',
|
||||||
|
TaskList:'任务列表',
|
||||||
|
ViewOrders:'查询订单',
|
||||||
jsContent1:'邮箱格式不正确',
|
jsContent1:'邮箱格式不正确',
|
||||||
jsContent2:'绑定邮箱成功',
|
jsContent2:'绑定邮箱成功',
|
||||||
jsContent3:`已经长时间未操作,您必须活跃起来,否则将会在{numTime} S 后退出登录`,
|
jsContent3:`已经长时间未操作,您必须活跃起来,否则将会在{numTime} S 后退出登录`,
|
||||||
},
|
},
|
||||||
|
allOrder:{
|
||||||
|
Time:'时间',
|
||||||
|
Serial:'序号',
|
||||||
|
Title:'名字',
|
||||||
|
Money:'金额',
|
||||||
|
Payment:'支付方式',
|
||||||
|
State:'状态',
|
||||||
|
Income:'支出',
|
||||||
|
Expend:'收入',
|
||||||
|
},
|
||||||
|
payOrder:{
|
||||||
|
OrderInformation:'订单详情',
|
||||||
|
CreditsInformation:'积分详情',
|
||||||
|
},
|
||||||
|
exportModel:{
|
||||||
|
EditExport:'编辑 & 导出',
|
||||||
|
CanvasSize:'画布大小',
|
||||||
|
Height:'高',
|
||||||
|
CanvasNav:'缩略图',
|
||||||
|
CanvasTool:'画布工具',
|
||||||
|
Color:'颜色',
|
||||||
|
Size:'大小',
|
||||||
|
Brushwork:'绘画',
|
||||||
|
Texture:'材质',
|
||||||
|
FillBack:'填充 & 边',
|
||||||
|
Layer:'层级',
|
||||||
|
More:'更多',
|
||||||
|
insufficient:'您的积分余额不足,如需使用此功能,请点击左上角充值',
|
||||||
|
HDExport:'高清导出',
|
||||||
|
Export:'导出',
|
||||||
|
SR:'请选择需要SR的图片',
|
||||||
|
requiresCredits:'每张图片需要消耗300积分',
|
||||||
|
Scale:'倍率',
|
||||||
|
Cancel:'取消',
|
||||||
|
jsContent1:'画布内容没有保存是否离开页面',
|
||||||
|
},
|
||||||
|
upgradePlan:{
|
||||||
|
BuyCredlts:'购买积分',
|
||||||
|
credits:'积分',
|
||||||
|
organization:'积分再任意场景都可以使用',
|
||||||
|
Continue:'继续',
|
||||||
|
payment:'选择付款方式',
|
||||||
|
Cancel:'取消',
|
||||||
|
Payment:'付款',
|
||||||
|
completed:'是否已完成支付?',
|
||||||
|
hint:'请保持窗口打开,直到付款完成。如果您无法打开付款窗口,请检查您的浏览器设置,看看弹出窗口是否被阻止。成功付款后,积分可能会延迟发放。请等待1-3分钟,点击积分刷新按钮',
|
||||||
|
Back:'返回',
|
||||||
|
},
|
||||||
|
taskPage:{
|
||||||
|
TaskList:'任务列表',
|
||||||
|
download:'下载',
|
||||||
|
|
||||||
|
},
|
||||||
Habit:{
|
Habit:{
|
||||||
Workspace:'工作空间',
|
Workspace:'工作空间',
|
||||||
WorkspaceSetting:'设置工作空间',
|
WorkspaceSetting:'设置工作空间',
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ export default {
|
|||||||
Credits:'Credits',
|
Credits:'Credits',
|
||||||
TaskList:'Task List',
|
TaskList:'Task List',
|
||||||
ViewOrders:'View Orders',
|
ViewOrders:'View Orders',
|
||||||
|
|
||||||
jsContent1:'The email format is incorrect',
|
jsContent1:'The email format is incorrect',
|
||||||
jsContent2:'Succeeded in binding the mailbox.',
|
jsContent2:'Succeeded in binding the mailbox.',
|
||||||
jsContent3:`You have not performed any operation for a long time. You must be active;otherwise, you will log out in {numTime} S`,
|
jsContent3:`You have not performed any operation for a long time. You must be active;otherwise, you will log out in {numTime} S`,
|
||||||
@@ -37,7 +36,7 @@ export default {
|
|||||||
CreditsInformation:'Credits Information',
|
CreditsInformation:'Credits Information',
|
||||||
},
|
},
|
||||||
exportModel:{
|
exportModel:{
|
||||||
EditExport:'>Edit & Export',
|
EditExport:'Edit & Export',
|
||||||
CanvasSize:'Canvas Size',
|
CanvasSize:'Canvas Size',
|
||||||
Height:'Height',
|
Height:'Height',
|
||||||
CanvasNav:'Canvas Nav',
|
CanvasNav:'Canvas Nav',
|
||||||
@@ -46,7 +45,7 @@ export default {
|
|||||||
Size:'Size',
|
Size:'Size',
|
||||||
Brushwork:'Brushwork',
|
Brushwork:'Brushwork',
|
||||||
Texture:'Texture',
|
Texture:'Texture',
|
||||||
FillBack:'FillBack',
|
FillBack:'Fill & Border',
|
||||||
Layer:'Layer',
|
Layer:'Layer',
|
||||||
More:'More',
|
More:'More',
|
||||||
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',
|
||||||
@@ -56,6 +55,8 @@ export default {
|
|||||||
requiresCredits:'Each picture requires 300 credits',
|
requiresCredits:'Each picture requires 300 credits',
|
||||||
Scale:'Scale',
|
Scale:'Scale',
|
||||||
Cancel:'Cancel',
|
Cancel:'Cancel',
|
||||||
|
jsContent1:'Canvas edit content is not saved, whether to leave the page',
|
||||||
|
|
||||||
},
|
},
|
||||||
upgradePlan:{
|
upgradePlan:{
|
||||||
BuyCredlts:'Buy credlts',
|
BuyCredlts:'Buy credlts',
|
||||||
|
|||||||
@@ -194,8 +194,8 @@ export default defineComponent({
|
|||||||
this.getLang('')
|
this.getLang('')
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
setTask(){
|
setTask(data){
|
||||||
this.openTask()
|
this.openTask(data)
|
||||||
},
|
},
|
||||||
turnToNewPage(url) {
|
turnToNewPage(url) {
|
||||||
window.open(url);
|
window.open(url);
|
||||||
@@ -366,9 +366,9 @@ export default defineComponent({
|
|||||||
setLocale(v){
|
setLocale(v){
|
||||||
this.setLang(v)
|
this.setLang(v)
|
||||||
},
|
},
|
||||||
openTask(){
|
openTask(data){
|
||||||
let taskPage = this.$refs.TaskPage
|
let taskPage = this.$refs.TaskPage
|
||||||
taskPage.init()
|
taskPage.init(data)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1046,8 +1046,8 @@ export default defineComponent({
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
setTask(){
|
setTask(data:any){
|
||||||
this.$emit('setTask')
|
this.$emit('setTask',data)
|
||||||
// this.exportModel()
|
// this.exportModel()
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user