|
|
@ -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`) |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|