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: {
// URL
uploadUrl() {
return `${process.env.VUE_APP_BASE_API}/file/upload`;
return `${process.env.VUE_APP_BASE_API}/commonFile/upload`;
}
},
methods: {

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

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

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

@ -288,14 +288,14 @@ export default {
handleAdd() {
this.reset();
this.open = true;
this.title = $t('business.merchant.userInfoBus.addUserInfoBus');
this.title = this.$t('business.merchant.userInfoBus.addUserInfoBus');
},
/** 详情按钮操作 */
handleDetail(row){
this.reset();
this.form = row;
this.detailOpen = true;
this.title = $t('business.merchant.userInfoBus.userInfoBusDetail');
this.title = this.$t('business.merchant.userInfoBus.userInfoBusDetail');
},
/** 修改按钮操作 */
handleUpdate(row) {
@ -306,7 +306,7 @@ export default {
this.loading = false;
this.form = response.data;
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;
if (this.form.id != null) {
updateUserInfoBus(this.form).then(response => {
this.$modal.msgSuccess($t('common.promptMsg.editSuccess'));
this.$modal.msgSuccess(this.$t('common.promptMsg.editSuccess'));
this.open = false;
this.getList();
}).finally(() => {
@ -324,7 +324,7 @@ export default {
});
} else {
addUserInfoBus(this.form).then(response => {
this.$modal.msgSuccess($t('common.promptMsg.addSuccess'));
this.$modal.msgSuccess(this.$t('common.promptMsg.addSuccess'));
this.open = false;
this.getList();
}).finally(() => {
@ -337,13 +337,13 @@ export default {
/** 删除按钮操作 */
handleDelete(row) {
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;
return delUserInfoBus(ids);
}).then(() => {
this.loading = false;
this.getList();
this.$modal.msgSuccess($t('common.promptMsg.deleteSuccess'));
this.$modal.msgSuccess(this.$t('common.promptMsg.deleteSuccess'));
}).catch(() => {
}).finally(() => {
this.loading = false;
@ -353,7 +353,7 @@ export default {
handleExport() {
this.download('business/userInfoBus/export', {
...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"
class-name="small-padding fixed-width">
<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"
type="text"
icon="el-icon-document-add"
@ -406,7 +406,7 @@ export default {
computed: {
// URL
uploadUrl() {
return `${process.env.VUE_APP_BASE_API}/file/upload`;
return `${process.env.VUE_APP_BASE_API}/commonFile/upload`;
}
},
methods: {

Loading…
Cancel
Save