Commit 4ead63f9c643353b3a28686a47742f8282d83156
1 parent
e0f5a995
优化房屋创建费用 国际化问题
Showing
4 changed files
with
98 additions
and
1 deletions
src/api/staff/systemUserApi.js
src/api/util/vcApi.js
| ... | ... | @@ -25,3 +25,12 @@ export function deepCopy(srcObj, targetObj = {}) { |
| 25 | 25 | export function isDate(value) { |
| 26 | 26 | return value instanceof Date && !isNaN(value.getTime()); |
| 27 | 27 | } |
| 28 | +export function initSystem() { | |
| 29 | + var _hmt = _hmt || []; | |
| 30 | + (function () { | |
| 31 | + var hm = document.createElement("script"); | |
| 32 | + hm.src = "https://hm.baidu.com/hm.js?adedae9bc250561cc17e96dc1fb46079"; | |
| 33 | + var s = document.getElementsByTagName("script")[0]; | |
| 34 | + s.parentNode.insertBefore(hm, s); | |
| 35 | + })(); | |
| 36 | +} | ... | ... |
src/lang/roomCreateFeeLang.js
0 → 100644
| 1 | +export default { | |
| 2 | + zh: { | |
| 3 | + // 页面标题 | |
| 4 | + title: '房屋费用管理', | |
| 5 | + | |
| 6 | + // 按钮文本 | |
| 7 | + customTemplate: '自定义模板', | |
| 8 | + customImport: '自定义导入', | |
| 9 | + batchCreate: '批量创建', | |
| 10 | + batchCollectionLetter: '批量催缴单', | |
| 11 | + query: '查询', | |
| 12 | + reset: '重置', | |
| 13 | + | |
| 14 | + // 输入框占位符 | |
| 15 | + roomNumPlaceholder: '请输入房间号', | |
| 16 | + ownerNamePlaceholder: '请输入业主姓名', | |
| 17 | + | |
| 18 | + // Tab 标签 | |
| 19 | + roomFee: '房屋费用', | |
| 20 | + paymentHistory: '缴费历史', | |
| 21 | + room: '房屋', | |
| 22 | + owner: '业主', | |
| 23 | + callable: '催缴', | |
| 24 | + receipt: '补打收据', | |
| 25 | + meterRecord: '抄表记录', | |
| 26 | + prepaidAccount: '预存账户', | |
| 27 | + prepaidReceipt: '预存补打', | |
| 28 | + deposit: '押金', | |
| 29 | + billRule: '账单规则', | |
| 30 | + feeBill: '费用账单', | |
| 31 | + | |
| 32 | + // 消息提示 | |
| 33 | + requestFailed: '请求失败', | |
| 34 | + pleaseEnterRoomNumber: '请输入房屋编号 楼栋-单元-房屋 如1-1-1', | |
| 35 | + | |
| 36 | + // 其他 | |
| 37 | + roomNumber: '房间号', | |
| 38 | + ownerName: '业主姓名', | |
| 39 | + searchType: '搜索类型', | |
| 40 | + searchValue: '搜索值', | |
| 41 | + searchPlaceholder: '搜索占位符' | |
| 42 | + }, | |
| 43 | + en: { | |
| 44 | + // 页面标题 | |
| 45 | + title: 'Room Fee Management', | |
| 46 | + | |
| 47 | + // 按钮文本 | |
| 48 | + customTemplate: 'Custom Template', | |
| 49 | + customImport: 'Custom Import', | |
| 50 | + batchCreate: 'Batch Create', | |
| 51 | + batchCollectionLetter: 'Batch Collection Letter', | |
| 52 | + query: 'Query', | |
| 53 | + reset: 'Reset', | |
| 54 | + | |
| 55 | + // 输入框占位符 | |
| 56 | + roomNumPlaceholder: 'Please enter room number', | |
| 57 | + ownerNamePlaceholder: 'Please enter owner name', | |
| 58 | + | |
| 59 | + // Tab 标签 | |
| 60 | + roomFee: 'Room Fee', | |
| 61 | + paymentHistory: 'Payment History', | |
| 62 | + room: 'Room', | |
| 63 | + owner: 'Owner', | |
| 64 | + callable: 'Callable', | |
| 65 | + receipt: 'Receipt', | |
| 66 | + meterRecord: 'Meter Record', | |
| 67 | + prepaidAccount: 'Prepaid Account', | |
| 68 | + prepaidReceipt: 'Prepaid Receipt', | |
| 69 | + deposit: 'Deposit', | |
| 70 | + billRule: 'Bill Rule', | |
| 71 | + feeBill: 'Fee Bill', | |
| 72 | + | |
| 73 | + // 消息提示 | |
| 74 | + requestFailed: 'Request failed', | |
| 75 | + pleaseEnterRoomNumber: 'Please enter room number Building-Unit-Room such as 1-1-1', | |
| 76 | + | |
| 77 | + // 其他 | |
| 78 | + roomNumber: 'Room Number', | |
| 79 | + ownerName: 'Owner Name', | |
| 80 | + searchType: 'Search Type', | |
| 81 | + searchValue: 'Search Value', | |
| 82 | + searchPlaceholder: 'Search Placeholder' | |
| 83 | + } | |
| 84 | +} | |
| 0 | 85 | \ No newline at end of file | ... | ... |
src/views/layout/layout.vue
| ... | ... | @@ -84,6 +84,8 @@ import { getCommunityName, _loadCommunityInfo } from '@/api/community/communityA |
| 84 | 84 | import moreCommunity from '@/components/community/moreCommunity.vue' |
| 85 | 85 | import viewMenuUserList from '@/components/system/viewMenuUserList.vue' |
| 86 | 86 | import searchCommunityDataList from '@/components/system/searchCommunityDataList.vue' |
| 87 | +import {initSystem} from '@/api/util/vcApi' | |
| 88 | + | |
| 87 | 89 | |
| 88 | 90 | export default { |
| 89 | 91 | name: 'Layout', |
| ... | ... | @@ -111,10 +113,12 @@ export default { |
| 111 | 113 | created() { |
| 112 | 114 | let _user = JSON.parse(localStorage.getItem('user')); |
| 113 | 115 | this.username = _user.name |
| 116 | + | |
| 114 | 117 | this._loadStoreInfo() |
| 115 | 118 | this.loadCatalogs() |
| 116 | 119 | this.curCommunityName = getCommunityName() |
| 117 | 120 | this.loadCommunity() |
| 121 | + initSystem() | |
| 118 | 122 | }, |
| 119 | 123 | components: { |
| 120 | 124 | moreCommunity, | ... | ... |