Commit aaff7ab5158c30612b57900f32eb960d5d37cf21

Authored by wuxw
1 parent 1f1e38a5

优化一些bug

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