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) { function replaceContent(content) {
// 替换模板中的 $t('key') // 替换模板中的 $t('key')
content = content.replace( // content = content.replace(
/(?<!this\.|that\.)\$t\(['"]([^'"]+)['"]\)/g, // /(?<!this\.|that\.)\$t\(['"]([^'"]+)['"]\)/g,
(match, key) => { // (match, key) => {
const value = getNestedValue(zhCN, key) // const value = getNestedValue(zhCN, key)
return value ? `'${value}'` : match // return value ? `'${value}'` : match
} // }
) // )
// 替换 JavaScript 中的 this.$t('key') // 替换 JavaScript 中的 this.$t('key')
content = content.replace(/this\.\$t\(['"]([^'"]+)['"]\)/g, (match, key) => { content = content.replace(/this\.\$t\(['"]([^'"]+)['"]\)/g, (match, key) => {

View File

@ -47,3 +47,12 @@ export function memberConsumeRule(params) {
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: { filters: {
isAgree(val) { isAgree(val) {
if (!val) { if (!val) {
return this.$t('ENU_POPUP_TYPE_1') return '允许'
} else { } else {
return this.$t('ENU_POPUP_TYPE_2') return '禁止'
} }
} }
}, },

View File

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