feat(ticketQuery): 购票明细列表页面接口报错处理

This commit is contained in:
woody 2025-05-28 11:04:25 +08:00
parent a7fa2f2fe7
commit 68b31bae50
4 changed files with 21 additions and 12 deletions

View File

@ -25,13 +25,13 @@ function getNestedValue(obj, path) {
// 替换文件内容
function replaceContent(content) {
// 替换模板中的 $t('key')
content = content.replace(
/(?<!this\.|that\.)\$t\(['"]([^'"]+)['"]\)/g,
(match, key) => {
const value = getNestedValue(zhCN, key)
return value ? `'${value}'` : match
}
)
// content = content.replace(
// /(?<!this\.|that\.)\$t\(['"]([^'"]+)['"]\)/g,
// (match, key) => {
// const value = getNestedValue(zhCN, key)
// return value ? `'${value}'` : match
// }
// )
// 替换 JavaScript 中的 this.$t('key')
content = content.replace(/this\.\$t\(['"]([^'"]+)['"]\)/g, (match, key) => {

View File

@ -47,3 +47,12 @@ export function memberConsumeRule(params) {
params
})
}
// 自助购票-列表
export function ticketQuery(data) {
return request({
url: '/sale/manage/ticket/query?pageNum=' + data.pageNum + '&pageSize=' + data.pageSize,
method: 'post',
data
})
}

View File

@ -171,9 +171,9 @@ export default {
filters: {
isAgree(val) {
if (!val) {
return this.$t('ENU_POPUP_TYPE_1')
return '允许'
} else {
return this.$t('ENU_POPUP_TYPE_2')
return '禁止'
}
}
},

View File

@ -279,9 +279,9 @@ export default {
handleSelectionChange(val) {},
/** 导出按钮操作 */
handleExport() {
this.$confirm(this.$t('MN_F_T_407'), this.$t('MN_F_T_304'), {
confirmButtonText: this.$t('w_0035'),
cancelButtonText: this.$t('ENU_P_TYPE0'),
this.$confirm('是否确认导出所有数据项?', '警告', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then((_) => {
this.download(