Commit 0e772b97f189c21a74e187de4543ebece3e5a0ed
1 parent
745b8235
v1.9 优化一些细微bug
Showing
6 changed files
with
16 additions
and
4 deletions
src/api/system/systemInfoManageApi.js
src/components/fee/addFeeConfig.vue
| ... | ... | @@ -128,7 +128,7 @@ |
| 128 | 128 | :placeholder="$t('feeConfigManage.enterFormula')" :rows="4" /> |
| 129 | 129 | </el-form-item> |
| 130 | 130 | </el-col> |
| 131 | - <el-col :span="24"> | |
| 131 | + <el-col :span="24" class="text-left"> | |
| 132 | 132 | <el-form-item :label="$t('common.explanation')"> |
| 133 | 133 | <div>C {{ $t('feeConfigManage.explanationC') }}</div> |
| 134 | 134 | <div>F {{ $t('feeConfigManage.explanationF') }}</div> | ... | ... |
src/components/fee/editFeeConfig.vue
| ... | ... | @@ -144,7 +144,7 @@ |
| 144 | 144 | :placeholder="$t('feeConfigManage.enterFormula')" :rows="4" /> |
| 145 | 145 | </el-form-item> |
| 146 | 146 | </el-col> |
| 147 | - <el-col :span="24"> | |
| 147 | + <el-col :span="24" class="text-left"> | |
| 148 | 148 | <el-form-item :label="$t('common.explanation')"> |
| 149 | 149 | <div>C {{ $t('feeConfigManage.explanationC') }}</div> |
| 150 | 150 | <div>F {{ $t('feeConfigManage.explanationF') }}</div> | ... | ... |
src/i18n/commonLang.js
| ... | ... | @@ -69,6 +69,7 @@ export const messages = { |
| 69 | 69 | sizeLimit:'File size must be less than 2MB', |
| 70 | 70 | required:'Required', |
| 71 | 71 | invalid:'Invalid', |
| 72 | + explanation:'Explanation', | |
| 72 | 73 | } |
| 73 | 74 | }, |
| 74 | 75 | zh: { |
| ... | ... | @@ -141,6 +142,7 @@ export const messages = { |
| 141 | 142 | sizeLimit:'文件大小必须小于2MB', |
| 142 | 143 | required:'必填', |
| 143 | 144 | invalid:'无效', |
| 145 | + explanation:'说明', | |
| 144 | 146 | } |
| 145 | 147 | } |
| 146 | 148 | } |
| 147 | 149 | \ No newline at end of file | ... | ... |
src/views/system/communitySettingManageList.vue
| ... | ... | @@ -106,7 +106,11 @@ export default { |
| 106 | 106 | keys: this.settingKeys, |
| 107 | 107 | settingType: this.conditions.settingType |
| 108 | 108 | } |
| 109 | - await saveCommunitySetting(params) | |
| 109 | + const { code, msg } = await saveCommunitySetting(params) | |
| 110 | + if (code != 0) { | |
| 111 | + this.$message.error(msg) | |
| 112 | + return; | |
| 113 | + } | |
| 110 | 114 | this.$message.success(this.$t('common.saveSuccess')) |
| 111 | 115 | this.loadSettingKeys() |
| 112 | 116 | } catch (error) { | ... | ... |
src/views/user/login/updatePwd.vue
| ... | ... | @@ -80,14 +80,19 @@ export default { |
| 80 | 80 | this.$refs.pwdForm.validate(async (valid) => { |
| 81 | 81 | if (valid) { |
| 82 | 82 | try { |
| 83 | - await updatePassword({ | |
| 83 | + const {code,msg} = await updatePassword({ | |
| 84 | 84 | oldPwd: this.form.oldPassword, |
| 85 | 85 | newPwd: this.form.newPassword, |
| 86 | 86 | reNewPwd:this.form.confirmPassword |
| 87 | 87 | }) |
| 88 | + if(code != 0){ | |
| 89 | + this.$message.error(msg) | |
| 90 | + return; | |
| 91 | + } | |
| 88 | 92 | this.$message.success('密码修改成功') |
| 89 | 93 | this.$refs.pwdForm.resetFields() |
| 90 | 94 | } catch (error) { |
| 95 | + this.$message.error(error) | |
| 91 | 96 | console.error('修改密码失败:', error) |
| 92 | 97 | } |
| 93 | 98 | } | ... | ... |