feat(ticketQuery): 购票明细列表页面接口报错处理
This commit is contained in:
parent
a7fa2f2fe7
commit
68b31bae50
|
@ -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) => {
|
||||||
|
|
|
@ -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
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
|
@ -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 '禁止'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue