Browse Source

修改图片上传路径、商户信息编辑页面国际化异常

main
daimenglei 1 month ago
parent
commit
f1db09faec
  1. 2
      src/views/business/agentVerification/index.vue
  2. 2
      src/views/business/merchantVerification/index.vue
  3. 16
      src/views/business/userInfoBus/index.vue
  4. 4
      src/views/business/userVerification/index.vue

2
src/views/business/agentVerification/index.vue

@ -345,7 +345,7 @@ export default {
computed: { computed: {
// URL // URL
uploadUrl() { uploadUrl() {
return `${process.env.VUE_APP_BASE_API}/file/upload`; return `${process.env.VUE_APP_BASE_API}/commonFile/upload`;
} }
}, },
methods: { methods: {

2
src/views/business/merchantVerification/index.vue

@ -327,7 +327,7 @@ export default {
computed: { computed: {
// URL // URL
uploadUrl() { uploadUrl() {
return `${process.env.VUE_APP_BASE_API}/file/upload`; return `${process.env.VUE_APP_BASE_API}/commonFile/upload`;
} }
}, },
methods: { methods: {

16
src/views/business/userInfoBus/index.vue

@ -288,14 +288,14 @@ export default {
handleAdd() { handleAdd() {
this.reset(); this.reset();
this.open = true; this.open = true;
this.title = $t('business.merchant.userInfoBus.addUserInfoBus'); this.title = this.$t('business.merchant.userInfoBus.addUserInfoBus');
}, },
/** 详情按钮操作 */ /** 详情按钮操作 */
handleDetail(row){ handleDetail(row){
this.reset(); this.reset();
this.form = row; this.form = row;
this.detailOpen = true; this.detailOpen = true;
this.title = $t('business.merchant.userInfoBus.userInfoBusDetail'); this.title = this.$t('business.merchant.userInfoBus.userInfoBusDetail');
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
@ -306,7 +306,7 @@ export default {
this.loading = false; this.loading = false;
this.form = response.data; this.form = response.data;
this.open = true; this.open = true;
this.title = $t('business.merchant.userInfoBus.editUserInfoBus'); this.title = this.$t('business.merchant.userInfoBus.editUserInfoBus');
}); });
}, },
/** 提交按钮 */ /** 提交按钮 */
@ -316,7 +316,7 @@ export default {
this.buttonLoading = true; this.buttonLoading = true;
if (this.form.id != null) { if (this.form.id != null) {
updateUserInfoBus(this.form).then(response => { updateUserInfoBus(this.form).then(response => {
this.$modal.msgSuccess($t('common.promptMsg.editSuccess')); this.$modal.msgSuccess(this.$t('common.promptMsg.editSuccess'));
this.open = false; this.open = false;
this.getList(); this.getList();
}).finally(() => { }).finally(() => {
@ -324,7 +324,7 @@ export default {
}); });
} else { } else {
addUserInfoBus(this.form).then(response => { addUserInfoBus(this.form).then(response => {
this.$modal.msgSuccess($t('common.promptMsg.addSuccess')); this.$modal.msgSuccess(this.$t('common.promptMsg.addSuccess'));
this.open = false; this.open = false;
this.getList(); this.getList();
}).finally(() => { }).finally(() => {
@ -337,13 +337,13 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const ids = row.id || this.ids; const ids = row.id || this.ids;
this.$modal.confirm($t('common.promptMsg.confirmDelete', { ids: ids })).then(() => { this.$modal.confirm(this.$t('common.promptMsg.confirmDelete', { ids: ids })).then(() => {
this.loading = true; this.loading = true;
return delUserInfoBus(ids); return delUserInfoBus(ids);
}).then(() => { }).then(() => {
this.loading = false; this.loading = false;
this.getList(); this.getList();
this.$modal.msgSuccess($t('common.promptMsg.deleteSuccess')); this.$modal.msgSuccess(this.$t('common.promptMsg.deleteSuccess'));
}).catch(() => { }).catch(() => {
}).finally(() => { }).finally(() => {
this.loading = false; this.loading = false;
@ -353,7 +353,7 @@ export default {
handleExport() { handleExport() {
this.download('business/userInfoBus/export', { this.download('business/userInfoBus/export', {
...this.queryParams ...this.queryParams
}, `${$t('business.merchant.userInfoBus.userInfoBus')}_${new Date().getTime()}.xlsx`) }, `${this.$t('business.merchant.userInfoBus.userInfoBus')}_${new Date().getTime()}.xlsx`)
} }
} }
}; };

4
src/views/business/userVerification/index.vue

@ -91,7 +91,7 @@
<el-table-column :label="$t('common.tableMsg.operation')" align="center" width="200" <el-table-column :label="$t('common.tableMsg.operation')" align="center" width="200"
class-name="small-padding fixed-width"> class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button v-if="(scope.row.status == null || scope.row.status == 0)" <el-button v-if="(scope.row.status == null || scope.row.status == 0 || scope.row.status == 3)"
size="mini" size="mini"
type="text" type="text"
icon="el-icon-document-add" icon="el-icon-document-add"
@ -406,7 +406,7 @@ export default {
computed: { computed: {
// URL // URL
uploadUrl() { uploadUrl() {
return `${process.env.VUE_APP_BASE_API}/file/upload`; return `${process.env.VUE_APP_BASE_API}/commonFile/upload`;
} }
}, },
methods: { methods: {

Loading…
Cancel
Save