新增页面,国际化

This commit is contained in:
2026-01-21 11:27:09 +08:00
parent 28c09888d9
commit b1fa28b8e6
48 changed files with 173 additions and 49 deletions

View File

@@ -195,7 +195,7 @@
if (!this.val1 || !this.val2) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._inCoolIvt()
}
@@ -227,7 +227,7 @@
this.disabled2 = false
},
async handleConfirm2 () {
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this.modalToSure()
}

View File

@@ -161,7 +161,7 @@
if ((!this.val1 || !this.val2) && type === '2') {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
if (type === '1') {
this._ovenInAndOut1(type)

View File

@@ -68,7 +68,7 @@
if (!this.val1 && !this.index1) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._updatePackageInfo()
}

View File

@@ -104,7 +104,7 @@
if (!this.val1 || !this.val2 || !this.val5) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._handleBakingovenInAndOut1(type)
}
@@ -153,7 +153,7 @@
if (!this.val1 || !this.val2) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._handleBakingcheckConfirm()
}

View File

@@ -59,7 +59,7 @@
if (!this.val1 || !this.index) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._bakingReBake()
}

View File

@@ -60,7 +60,7 @@
if (!this.val1 || !this.val2) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._confirmWeight()
}

View File

@@ -77,7 +77,7 @@
if (!this.val1 || !this.index1 || !this.index2) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._printTable()
}

View File

@@ -183,7 +183,7 @@
if (!this.val2 && type === '7') {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
if (type === '5') {
this._confirmBlanking()
@@ -254,7 +254,7 @@
this.type = ''
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._rawScrollDowm(type)
}

View File

@@ -57,7 +57,7 @@
if (!this.val1) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._updatePackageInfo()
}

View File

@@ -122,7 +122,7 @@
if (!this.arr1.length) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._zjInBoundConfirm()
}