Commit aaff7ab5158c30612b57900f32eb960d5d37cf21
1 parent
1f1e38a5
优化一些bug
Showing
5 changed files
with
33 additions
and
10 deletions
.gitignore
src/components/contract/addTemplateView.vue
| ... | ... | @@ -10,8 +10,7 @@ |
| 10 | 10 | <el-form label-width="120px"> |
| 11 | 11 | <el-form-item :label="$t('contractTypeManage.template.content')"> |
| 12 | 12 | <div class="editor-container"> |
| 13 | - <el-input type="textarea" :rows="15" v-model="context" | |
| 14 | - :placeholder="$t('contractTypeManage.template.placeholder')" /> | |
| 13 | + <rich-text-editor ref="richTextEditor" v-model="context" /> | |
| 15 | 14 | </div> |
| 16 | 15 | </el-form-item> |
| 17 | 16 | </el-form> |
| ... | ... | @@ -28,9 +27,13 @@ |
| 28 | 27 | |
| 29 | 28 | <script> |
| 30 | 29 | import { saveContractTypeTemplate, updateContractTypeTemplate, queryContractTypeTemplate, printContractTemplate } from '@/api/contract/contractTypeManageApi' |
| 30 | +import RichTextEditor from '@/components/editor/RichTextEditor' | |
| 31 | 31 | |
| 32 | 32 | export default { |
| 33 | 33 | name: 'AddTemplateView', |
| 34 | + components: { | |
| 35 | + RichTextEditor | |
| 36 | + }, | |
| 34 | 37 | data() { |
| 35 | 38 | return { |
| 36 | 39 | visible: false, |
| ... | ... | @@ -69,7 +72,9 @@ export default { |
| 69 | 72 | } |
| 70 | 73 | }, |
| 71 | 74 | insertAttrs(attr) { |
| 72 | - this.context += attr | |
| 75 | + if (this.$refs.richTextEditor && this.$refs.richTextEditor.editor) { | |
| 76 | + this.$refs.richTextEditor.editor.txt.append(attr) | |
| 77 | + } | |
| 73 | 78 | }, |
| 74 | 79 | async saveTemplateInfo() { |
| 75 | 80 | if (!this.addTemplateValidate()) { |
| ... | ... | @@ -121,9 +126,15 @@ export default { |
| 121 | 126 | if (data.length > 0) { |
| 122 | 127 | this.templateId = data[0].templateId |
| 123 | 128 | this.context = data[0].context |
| 129 | + if (this.$refs.richTextEditor) { | |
| 130 | + this.$refs.richTextEditor.setContent(this.context) | |
| 131 | + } | |
| 124 | 132 | } else { |
| 125 | 133 | this.templateId = '' |
| 126 | 134 | this.context = '' |
| 135 | + if (this.$refs.richTextEditor) { | |
| 136 | + this.$refs.richTextEditor.clear() | |
| 137 | + } | |
| 127 | 138 | } |
| 128 | 139 | } catch (error) { |
| 129 | 140 | console.error('加载模板失败:', error) |
| ... | ... | @@ -133,6 +144,9 @@ export default { |
| 133 | 144 | this.contractTypeId = '' |
| 134 | 145 | this.context = '' |
| 135 | 146 | this.templateId = '' |
| 147 | + if (this.$refs.richTextEditor) { | |
| 148 | + this.$refs.richTextEditor.clear() | |
| 149 | + } | |
| 136 | 150 | } |
| 137 | 151 | } |
| 138 | 152 | } | ... | ... |
src/views/account/accountManageList.vue
| ... | ... | @@ -20,7 +20,7 @@ |
| 20 | 20 | |
| 21 | 21 | <el-row :gutter="20"> |
| 22 | 22 | <el-col :span="6"> |
| 23 | - <el-input v-model="conditions.ownerName" :placeholder="$t('accountManage.placeholderName')" clearable /> | |
| 23 | + <el-input v-model="conditions.acctName" :placeholder="$t('accountManage.placeholderName')" clearable /> | |
| 24 | 24 | </el-col> |
| 25 | 25 | |
| 26 | 26 | <el-col :span="6"> |
| ... | ... | @@ -114,7 +114,7 @@ export default { |
| 114 | 114 | accountTypes: [], |
| 115 | 115 | conditions: { |
| 116 | 116 | acctType: '', |
| 117 | - ownerName: '', | |
| 117 | + acctName: '', | |
| 118 | 118 | idCard: '', |
| 119 | 119 | link: '', |
| 120 | 120 | page: 1, | ... | ... |
src/views/fee/printPayFeeXiangyun.vue
| ... | ... | @@ -9,7 +9,7 @@ |
| 9 | 9 | <span>{{ $t('printPayFeeXiangyun.receiptNum') }}:{{ printPayFeeInfo.receiptNum }}</span> |
| 10 | 10 | </div> |
| 11 | 11 | <el-row style="color:#000;font-size:20px;margin-bottom:10px;"> |
| 12 | - <el-col :span="12" class="text-left"> | |
| 12 | + <el-col :span="12" class="text-right"> | |
| 13 | 13 | <span>{{ $t('printPayFeeXiangyun.owner') }}:{{ printPayFeeInfo.payObjName }}</span> |
| 14 | 14 | </el-col> |
| 15 | 15 | <el-col :span="12" style="text-align:right;"> |
| ... | ... | @@ -103,7 +103,7 @@ |
| 103 | 103 | <el-col :span="20"> |
| 104 | 104 | <el-row> |
| 105 | 105 | <el-col :span="6">{{ $t('printPayFeeXiangyun.departmentHead') }}:</el-col> |
| 106 | - <el-col :span="6">{{ $t('printPayFeeXiangyun.operator') }}:</el-col> | |
| 106 | + <el-col :span="6">{{ $t('printPayFeeXiangyun.operator') }}:{{userInfo.name}}</el-col> | |
| 107 | 107 | <el-col :span="6">{{ $t('printPayFeeXiangyun.financeReceipt') }}:</el-col> |
| 108 | 108 | <el-col :span="6">{{ $t('printPayFeeXiangyun.customerConfirm') }}:</el-col> |
| 109 | 109 | </el-row> |
| ... | ... | @@ -123,6 +123,8 @@ |
| 123 | 123 | <script> |
| 124 | 124 | import { getCommunityId, getCommunityName } from '@/api/community/communityApi' |
| 125 | 125 | import { queryFeeReceipt, queryFeeReceiptDetail, queryFeePrintSpec } from '@/api/fee/printPayFeeApi' |
| 126 | +import { getUserId, getUserName } from '@/api/user/userApi' | |
| 127 | + | |
| 126 | 128 | import { dateFormat } from '@/utils/dateUtil' |
| 127 | 129 | import { changeNumMoneyToChinese } from '@/utils/moneyUtil' |
| 128 | 130 | |
| ... | ... | @@ -148,12 +150,17 @@ export default { |
| 148 | 150 | receiptNum: '', |
| 149 | 151 | merge: '' |
| 150 | 152 | }, |
| 153 | + userInfo: {}, | |
| 151 | 154 | printFlag: '0', |
| 152 | 155 | communityId: '' |
| 153 | 156 | } |
| 154 | 157 | }, |
| 155 | 158 | created() { |
| 156 | 159 | this.communityId = getCommunityId() |
| 160 | + this.userInfo = { | |
| 161 | + userId: getUserId(), | |
| 162 | + name: getUserName() | |
| 163 | + } | |
| 157 | 164 | this.initData() |
| 158 | 165 | }, |
| 159 | 166 | methods: { | ... | ... |
vue.config.js
| ... | ... | @@ -4,14 +4,14 @@ module.exports = { |
| 4 | 4 | open: true, // 自动打开浏览器 |
| 5 | 5 | proxy: { |
| 6 | 6 | '/app': { |
| 7 | - target: 'https://demo.homecommunity.cn/app', // 后端API地址 | |
| 7 | + target: 'https://wuye.xywlgyl.xyz/app', // 后端API地址 | |
| 8 | 8 | changeOrigin: true, |
| 9 | 9 | pathRewrite: { |
| 10 | 10 | '^/app': '' |
| 11 | 11 | } |
| 12 | 12 | }, |
| 13 | 13 | '/callComponent': { |
| 14 | - target: 'https://demo.homecommunity.cn/callComponent', // 后端API地址 | |
| 14 | + target: 'https://wuye.xywlgyl.xyz/callComponent', // 后端API地址 | |
| 15 | 15 | changeOrigin: true, |
| 16 | 16 | pathRewrite: { |
| 17 | 17 | '^/callComponent': '' | ... | ... |