Commit 7af40104d36eb85f25737c10e60464e46422073c
1 parent
0af91599
应用信息页面完成(上报没写)
Showing
13 changed files
with
1111 additions
and
154 deletions
package.json
| @@ -23,6 +23,7 @@ | @@ -23,6 +23,7 @@ | ||
| 23 | "sass-loader": "^14.2.1", | 23 | "sass-loader": "^14.2.1", |
| 24 | "style-loader": "^4.0.0", | 24 | "style-loader": "^4.0.0", |
| 25 | "vue": "^2.6.14", | 25 | "vue": "^2.6.14", |
| 26 | + "vue-i18n": "^7.3.2", | ||
| 26 | "vue-router": "^2.8.1", | 27 | "vue-router": "^2.8.1", |
| 27 | "vuex": "^3.6.2" | 28 | "vuex": "^3.6.2" |
| 28 | }, | 29 | }, |
src/assets/scss/common.scss
| @@ -30,11 +30,11 @@ | @@ -30,11 +30,11 @@ | ||
| 30 | width: 100%; | 30 | width: 100%; |
| 31 | display: flex; | 31 | display: flex; |
| 32 | position: relative; | 32 | position: relative; |
| 33 | - background: #EBEEF5; | 33 | + background: unset; |
| 34 | 34 | ||
| 35 | .NCC-common-layout-left { | 35 | .NCC-common-layout-left { |
| 36 | width: 220px; | 36 | width: 220px; |
| 37 | - background-color: #fff; | 37 | + // background-color: #fff; |
| 38 | flex-shrink: 0; | 38 | flex-shrink: 0; |
| 39 | height: 100%; | 39 | height: 100%; |
| 40 | display: flex; | 40 | display: flex; |
| @@ -85,7 +85,7 @@ | @@ -85,7 +85,7 @@ | ||
| 85 | .NCC-common-layout-main { | 85 | .NCC-common-layout-main { |
| 86 | flex: 1; | 86 | flex: 1; |
| 87 | padding: 0 0 10px; | 87 | padding: 0 0 10px; |
| 88 | - background-color: #fff; | 88 | + // background-color: #fff; |
| 89 | height: 100%; | 89 | height: 100%; |
| 90 | overflow: hidden; | 90 | overflow: hidden; |
| 91 | 91 | ||
| @@ -96,10 +96,10 @@ | @@ -96,10 +96,10 @@ | ||
| 96 | } | 96 | } |
| 97 | 97 | ||
| 98 | .NCC-common-search-box { | 98 | .NCC-common-search-box { |
| 99 | - background: #fff; | 99 | + // background: #fff; |
| 100 | flex-shrink: 0; | 100 | flex-shrink: 0; |
| 101 | margin-bottom: 10px; | 101 | margin-bottom: 10px; |
| 102 | - padding: 15px 10px 0; | 102 | + // padding: 15px 10px 0; |
| 103 | position: relative; | 103 | position: relative; |
| 104 | 104 | ||
| 105 | .el-form-item { | 105 | .el-form-item { |
| @@ -129,7 +129,8 @@ | @@ -129,7 +129,8 @@ | ||
| 129 | .NCC-common-search-box-right { | 129 | .NCC-common-search-box-right { |
| 130 | position: absolute; | 130 | position: absolute; |
| 131 | right: 10px; | 131 | right: 10px; |
| 132 | - top: 15px; | 132 | + // top: 15px; |
| 133 | + top: 0px; | ||
| 133 | } | 134 | } |
| 134 | } | 135 | } |
| 135 | 136 | ||
| @@ -211,6 +212,10 @@ | @@ -211,6 +212,10 @@ | ||
| 211 | .sort-caret.descending { | 212 | .sort-caret.descending { |
| 212 | bottom: 1px !important; | 213 | bottom: 1px !important; |
| 213 | } | 214 | } |
| 215 | + .btn_dialog { | ||
| 216 | + display: inline-block; | ||
| 217 | + margin-right: 10px; | ||
| 218 | + } | ||
| 214 | } | 219 | } |
| 215 | 220 | ||
| 216 | .NCC-table-delBtn { | 221 | .NCC-table-delBtn { |
src/assets/style/common.scss
| @@ -30,6 +30,9 @@ body, | @@ -30,6 +30,9 @@ body, | ||
| 30 | -webkit-border-radius: 6px | 30 | -webkit-border-radius: 6px |
| 31 | } | 31 | } |
| 32 | 32 | ||
| 33 | +.common-info-box { | ||
| 34 | + height: calc(100vh - 200px); | ||
| 35 | +} | ||
| 33 | .item-box { | 36 | .item-box { |
| 34 | width: 100%; | 37 | width: 100%; |
| 35 | border-radius: 10px; | 38 | border-radius: 10px; |
| @@ -60,6 +63,4 @@ a { | @@ -60,6 +63,4 @@ a { | ||
| 60 | text-decoration: none | 63 | text-decoration: none |
| 61 | 64 | ||
| 62 | } | 65 | } |
| 63 | -.common-info-box { | ||
| 64 | - height: calc(100vh - 200px); | ||
| 65 | -} | 66 | + |
src/components/InfoForm/index.vue
| @@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
| 4 | <slot></slot> | 4 | <slot></slot> |
| 5 | </div> | 5 | </div> |
| 6 | <el-dialog | 6 | <el-dialog |
| 7 | - :title="`${type == 'add' ? '新增' : '编辑'}信息`" | 7 | + :title="`${type == 'add' ? '新增' : '修改'}信息`" |
| 8 | :close-on-click-modal="false" | 8 | :close-on-click-modal="false" |
| 9 | :visible.sync="visible" | 9 | :visible.sync="visible" |
| 10 | lock-scroll | 10 | lock-scroll |
| @@ -79,7 +79,7 @@ | @@ -79,7 +79,7 @@ | ||
| 79 | v-for="v in systemTypeOptions" | 79 | v-for="v in systemTypeOptions" |
| 80 | :key="v.Id" | 80 | :key="v.Id" |
| 81 | :label="v.Id" | 81 | :label="v.Id" |
| 82 | - @change="initSystemClassList" | 82 | + @change="handleSystemTypeChange" |
| 83 | >{{ v.FullName }}</el-radio | 83 | >{{ v.FullName }}</el-radio |
| 84 | > | 84 | > |
| 85 | </el-radio-group> | 85 | </el-radio-group> |
| @@ -344,7 +344,7 @@ export default { | @@ -344,7 +344,7 @@ export default { | ||
| 344 | this.companyInfo = data; | 344 | this.companyInfo = data; |
| 345 | this.isShowCompanyInfo = true; | 345 | this.isShowCompanyInfo = true; |
| 346 | }, | 346 | }, |
| 347 | - | 347 | + |
| 348 | // 文件上传-------------------- | 348 | // 文件上传-------------------- |
| 349 | httpRequest(file) { | 349 | httpRequest(file) { |
| 350 | uploader({ | 350 | uploader({ |
| @@ -355,7 +355,7 @@ export default { | @@ -355,7 +355,7 @@ export default { | ||
| 355 | }); | 355 | }); |
| 356 | }, | 356 | }, |
| 357 | // 文件上传-------------------- | 357 | // 文件上传-------------------- |
| 358 | - | 358 | + |
| 359 | reset() { | 359 | reset() { |
| 360 | for (let key in this.infoForm) { | 360 | for (let key in this.infoForm) { |
| 361 | this.infoForm[key] = undefined; | 361 | this.infoForm[key] = undefined; |
| @@ -389,6 +389,10 @@ export default { | @@ -389,6 +389,10 @@ export default { | ||
| 389 | await this.companyChange(data.companyId); | 389 | await this.companyChange(data.companyId); |
| 390 | this.$forceUpdate(); | 390 | this.$forceUpdate(); |
| 391 | }, | 391 | }, |
| 392 | + handleSystemTypeChange(val) { | ||
| 393 | + this.query.systemClass = ""; | ||
| 394 | + this.initSystemClassList(val); | ||
| 395 | + }, | ||
| 392 | async confirm() { | 396 | async confirm() { |
| 393 | this.$refs["infoForm"].validate((valid) => { | 397 | this.$refs["infoForm"].validate((valid) => { |
| 394 | if (valid) { | 398 | if (valid) { |
| @@ -472,4 +476,4 @@ export default { | @@ -472,4 +476,4 @@ export default { | ||
| 472 | } | 476 | } |
| 473 | } | 477 | } |
| 474 | </style> | 478 | </style> |
| 475 | -@/api/baseData/area@/api/baseData/company | ||
| 476 | \ No newline at end of file | 479 | \ No newline at end of file |
| 480 | +@/api/baseData/area@/api/baseData/company |
src/components/Pagination/index.vue
| @@ -105,8 +105,18 @@ export default { | @@ -105,8 +105,18 @@ export default { | ||
| 105 | 105 | ||
| 106 | <style scoped> | 106 | <style scoped> |
| 107 | .pagination-container { | 107 | .pagination-container { |
| 108 | - background: #fff; | ||
| 109 | - padding: 32px 16px; | 108 | + background: unset; |
| 109 | + color: #fff; | ||
| 110 | + padding: 0px 16px; | ||
| 111 | +} | ||
| 112 | +.el-pagination { | ||
| 113 | + float: right; | ||
| 114 | +} | ||
| 115 | +:deep(.el-pagination__total) { | ||
| 116 | + color: #fff; | ||
| 117 | +} | ||
| 118 | +:deep(.el-pagination__jump) { | ||
| 119 | + color: #fff; | ||
| 110 | } | 120 | } |
| 111 | .pagination-container.hidden { | 121 | .pagination-container.hidden { |
| 112 | display: none; | 122 | display: none; |
src/lang/en.js
0 → 100644
| 1 | +export default { | ||
| 2 | + route: { | ||
| 3 | + "home": "Home", | ||
| 4 | + "dashboard": "Dashboard", | ||
| 5 | + "onlineDev": "OnlineDev", | ||
| 6 | + "onlineDev-webDesign": "WebDesign", | ||
| 7 | + "onlineDev-appDesign": "APPDesign", | ||
| 8 | + "onlineDev-dataReport": "DataReport", | ||
| 9 | + "onlineDev-dataScreen": "DataScreen", | ||
| 10 | + "onlineDev-visualPortal": "VisualPortal", | ||
| 11 | + "generator": "Generator", | ||
| 12 | + "generator-webForm": "WebForm", | ||
| 13 | + "generator-appForm": "AppForm", | ||
| 14 | + "generator-flowForm": "FlowForm", | ||
| 15 | + "system": "System", | ||
| 16 | + "system-sysConfig": "SysConfig", | ||
| 17 | + "system-notice": "Notice", | ||
| 18 | + "system-task": "Task", | ||
| 19 | + "system-cache": "CacheManage", | ||
| 20 | + "system-log": "Log", | ||
| 21 | + "system-monitor": "Monitor", | ||
| 22 | + "system-icons": "Icons", | ||
| 23 | + "system-language": "Language", | ||
| 24 | + "system-menu": "Menu", | ||
| 25 | + "system-area": "Area", | ||
| 26 | + "system-billRule": "BillRule", | ||
| 27 | + "systemData": "SystemData", | ||
| 28 | + "systemData-dataSource": "DataSource", | ||
| 29 | + "systemData-dataModel": "DataModel", | ||
| 30 | + "systemData-dataSync": "DataSync", | ||
| 31 | + "systemData-dataBackup": "DataBackup", | ||
| 32 | + "systemData-dataInterface": "DataInterface", | ||
| 33 | + "systemData-dictionary": "Dictionary", | ||
| 34 | + "systemData-map": "Map", | ||
| 35 | + "weChat": "WeChat", | ||
| 36 | + "weChat-mpConfig": "MPConfig", | ||
| 37 | + "weChat-mpMenu": "MPMenu", | ||
| 38 | + "weChat-mpUser": "MPUser", | ||
| 39 | + "weChat-mpMessage": "MPMessage", | ||
| 40 | + "weChat-mpMaterial": "MPMaterial", | ||
| 41 | + "weChat-qyhConfig": "QYHConfig", | ||
| 42 | + "weChat-qyDepartment": "QYDepartment", | ||
| 43 | + "weChat-qyUser": "QYUser", | ||
| 44 | + "weChat-qyMessage": "QYMessage", | ||
| 45 | + "permission": "Permission", | ||
| 46 | + "permission-organize": "Organize", | ||
| 47 | + "permission-department": "Department", | ||
| 48 | + "permission-position": "Position", | ||
| 49 | + "permission-user": "User", | ||
| 50 | + "permission-role": "Role", | ||
| 51 | + "permission-authorize": "Authorize", | ||
| 52 | + "permission-userOnline": "UserOnline", | ||
| 53 | + "workFlow": "WorkFlow", | ||
| 54 | + "workFlow-flowEngine": "FlowEngine", | ||
| 55 | + "workFlow-flowLaunch": "FlowLaunch", | ||
| 56 | + "workFlow-flowTodo": "FlowTodo", | ||
| 57 | + "workFlow-flowDone": "FlowDone", | ||
| 58 | + "workFlow-flowCirculate": "FlowCirculate", | ||
| 59 | + "workFlow-entrust": "Entrust", | ||
| 60 | + "workFlow-flowMonitor": "FlowMonitor", | ||
| 61 | + "extend-graphDemo": "Graph Demo", | ||
| 62 | + "extend-graphDemo-echartsBar": "E-Bar", | ||
| 63 | + "extend-graphDemo-echartsPie": "E-Pie", | ||
| 64 | + "extend-graphDemo-echartsBarAcross": "E-BarAcross", | ||
| 65 | + "extend-graphDemo-echartsGauge": "E-Gauge", | ||
| 66 | + "extend-graphDemo-echartsLineArea": "E-LineArea", | ||
| 67 | + "extend-graphDemo-echartsScatter": "E-Scatter", | ||
| 68 | + "extend-graphDemo-echartsCandlestick": "E-Candlestick", | ||
| 69 | + "extend-graphDemo-echartsLineBar": "E-LineBar", | ||
| 70 | + "extend-graphDemo-echartsTree": "E-Tree", | ||
| 71 | + "extend-graphDemo-echartsFunnel": "E-Funnel", | ||
| 72 | + "extend-graphDemo-highchartsScatter": "H-Scatter", | ||
| 73 | + "extend-graphDemo-highchartsWordcloud": "H-Wordcloud", | ||
| 74 | + "extend-graphDemo-highchartsLine": "H-Line", | ||
| 75 | + "extend-graphDemo-highchartsArea": "H-Area", | ||
| 76 | + "extend-graphDemo-highchartsGauge": "H-Gauge", | ||
| 77 | + "extend-graphDemo-highchartsBellcurve": "H-Bellcurve", | ||
| 78 | + "extend-graphDemo-highchartsFunnel": "H-Funnel", | ||
| 79 | + "extend-graphDemo-highchartsBullet": "H-Bullet", | ||
| 80 | + "extend-graphDemo-highchartsColumn": "H-Column", | ||
| 81 | + "extend-graphDemo-highchartsPie": "H-Pie", | ||
| 82 | + "extend-tableDemo": "Table Demo", | ||
| 83 | + "extend-tableDemo-commonTable": "CommonTable", | ||
| 84 | + "extend-tableDemo-statisticsTable": "StatisticsTable", | ||
| 85 | + "extend-tableDemo-lockTable": "LockTable", | ||
| 86 | + "extend-tableDemo-groupingTable": "GroupingTable", | ||
| 87 | + "extend-tableDemo-redactTable": "RedactTable", | ||
| 88 | + "extend-tableDemo-complexHeader": "ComplexHeader", | ||
| 89 | + "extend-tableDemo-mergeTable": "MergeTable", | ||
| 90 | + "extend-tableDemo-printTable": "PrintTable", | ||
| 91 | + "extend-tableDemo-extension": "Extension", | ||
| 92 | + "extend-tableDemo-treeTable": "TreeTable", | ||
| 93 | + "extend-tableDemo-postilTable": "PostilTable", | ||
| 94 | + "extend-tableDemo-tableTree": "TableTree", | ||
| 95 | + "extend-tableDemo-signTable": "SignTable", | ||
| 96 | + "extend-formDemo": "Form Demo", | ||
| 97 | + "extend-formDemo-verifyForm": "VerifyForm", | ||
| 98 | + "extend-formDemo-verifyForm1": "VerifyForm1", | ||
| 99 | + "extend-formDemo-fieldForm1": "FieldForm1", | ||
| 100 | + "extend-formDemo-fieldForm2": "FieldForm2", | ||
| 101 | + "extend-formDemo-fieldForm3": "FieldForm3", | ||
| 102 | + "extend-formDemo-fieldForm4": "FieldForm4", | ||
| 103 | + "extend-formDemo-fieldForm5": "FieldForm5", | ||
| 104 | + "extend-formDemo-fieldForm6": "FieldForm6", | ||
| 105 | + "extend": "Extend", | ||
| 106 | + "extend-bigData": "BigData", | ||
| 107 | + "extend-importAndExport": "ImportAndExport", | ||
| 108 | + "extend-signet": "Signet", | ||
| 109 | + "extend-signature": 'Signature', | ||
| 110 | + "extend-schedule": "Schedule", | ||
| 111 | + "extend-email": "Email", | ||
| 112 | + "extend-document": "Document", | ||
| 113 | + "extend-documentPreview": "DocumentPreview", | ||
| 114 | + "extend-barCode": "BarCode", | ||
| 115 | + "extend-printData": "PrintData", | ||
| 116 | + "extend-map": "Map", | ||
| 117 | + "extend-order": "Order", | ||
| 118 | + "extend-projectGantt": "ProjectGantt", | ||
| 119 | + "moreMenu": "More...", | ||
| 120 | + "dataReport": "DataReport Demo", | ||
| 121 | + "reportBI": "ReportBI Demo", | ||
| 122 | + }, | ||
| 123 | + navbar: { | ||
| 124 | + profile: 'Profile', | ||
| 125 | + feedback: 'Feedback', | ||
| 126 | + about: 'About', | ||
| 127 | + lockScreen: 'Lock Screen', | ||
| 128 | + documentation: 'Documentation', | ||
| 129 | + logOut: 'Log Out', | ||
| 130 | + notice: 'Notice', | ||
| 131 | + chat: 'Chat', | ||
| 132 | + setting: 'Setting' | ||
| 133 | + }, | ||
| 134 | + login: { | ||
| 135 | + title: 'Account Password Login', | ||
| 136 | + scanTitle: 'APP Scan Login', | ||
| 137 | + codeTitle: 'Verification Code Login', | ||
| 138 | + logIn: 'Login', | ||
| 139 | + username: 'Username / Mobile Number', | ||
| 140 | + password: 'Password', | ||
| 141 | + rule: 'Sub Account: mobile@account example:18577778888@101001', | ||
| 142 | + version: 'V', | ||
| 143 | + upper: 'Caps locked', | ||
| 144 | + scanTip: 'APP Scan code login', | ||
| 145 | + accountTip: 'Please enter the account number', | ||
| 146 | + passwordTip: 'Please enter your password', | ||
| 147 | + mobile: 'Please enter mobile number', | ||
| 148 | + rightMobile: 'Please enter the correct mobile number', | ||
| 149 | + smsCode: 'Please enter the verification code', | ||
| 150 | + getCode: 'Get code', | ||
| 151 | + reSend: 'Resend', | ||
| 152 | + company: 'Please enter company name', | ||
| 153 | + contacts: 'Please enter contact' | ||
| 154 | + }, | ||
| 155 | + tagsView: { | ||
| 156 | + refresh: 'Refresh', | ||
| 157 | + close: 'Close', | ||
| 158 | + closeOthers: 'Close Others', | ||
| 159 | + closeAll: 'Close All' | ||
| 160 | + }, | ||
| 161 | + settings: { | ||
| 162 | + mode: 'NavigationMode', | ||
| 163 | + classic: 'Classic', | ||
| 164 | + functional: 'Functional', | ||
| 165 | + plain: 'Plain', | ||
| 166 | + blend: 'Blend', | ||
| 167 | + lightOrDark: 'Light&Dark', | ||
| 168 | + dark: 'Dark', | ||
| 169 | + lightWhite: 'Light', | ||
| 170 | + theme: 'ThemeColor', | ||
| 171 | + blue: 'Blue', | ||
| 172 | + purple: 'Purple', | ||
| 173 | + azure: 'Azure', | ||
| 174 | + ocean: 'Ocean', | ||
| 175 | + green: 'Green', | ||
| 176 | + yellow: 'Yellow', | ||
| 177 | + orange: 'Orange', | ||
| 178 | + red: 'Red', | ||
| 179 | + otherSet: 'OtherSettings', | ||
| 180 | + tagsView: 'Open Tags-View', | ||
| 181 | + tagsViewIcon: 'Show Tags-View Icon', | ||
| 182 | + language: 'Show Language Select', | ||
| 183 | + search: 'Show Search', | ||
| 184 | + cache: 'Cache Page' | ||
| 185 | + }, | ||
| 186 | + common: { | ||
| 187 | + addBtn: 'Add', | ||
| 188 | + editBtn: 'Edit', | ||
| 189 | + delBtn: 'Del', | ||
| 190 | + moreBtn: 'More', | ||
| 191 | + search: 'Search', | ||
| 192 | + reset: 'Reset', | ||
| 193 | + refresh: 'Refresh', | ||
| 194 | + columnSettings: 'Column Settings', | ||
| 195 | + fullScreen: 'Full Screen', | ||
| 196 | + outFullScreen: 'Out Full Screen', | ||
| 197 | + confirmButton: 'Ok', | ||
| 198 | + cancelButton: 'Cancel', | ||
| 199 | + delTip: 'This operation will permanently delete the data. Do you want to continue?', | ||
| 200 | + loadingText: 'Data Loading', | ||
| 201 | + noData: 'No Data', | ||
| 202 | + noPerTip: 'Permission Denied', | ||
| 203 | + tipTitle: 'Tips', | ||
| 204 | + prev: 'Prev', | ||
| 205 | + next: 'Next', | ||
| 206 | + keyWord: 'Keyword', | ||
| 207 | + enterKeyword: 'Please Enter', | ||
| 208 | + organization: 'Organization' | ||
| 209 | + }, | ||
| 210 | + Organize: { | ||
| 211 | + addCompany: 'Add Company', | ||
| 212 | + editCompany: 'Edit Company' | ||
| 213 | + }, | ||
| 214 | + department: { | ||
| 215 | + addDepartment: 'Add Department', | ||
| 216 | + editDepartment: 'Edit Department', | ||
| 217 | + }, | ||
| 218 | + position: { | ||
| 219 | + newPost: 'New Position', | ||
| 220 | + editPost: 'Edit Position', | ||
| 221 | + postMember: 'Post Member', | ||
| 222 | + postPermission: 'Post Permission' | ||
| 223 | + }, | ||
| 224 | + user: { | ||
| 225 | + addUser: 'Add User', | ||
| 226 | + editUser: 'Edit User', | ||
| 227 | + resetPassword: 'Reset Password', | ||
| 228 | + userPermission: 'User Permission' | ||
| 229 | + }, | ||
| 230 | + role: { | ||
| 231 | + addRole: 'Add Role', | ||
| 232 | + editRole: 'Edit Role', | ||
| 233 | + roleMember: 'Role Member', | ||
| 234 | + rolePermission: 'Role Permission' | ||
| 235 | + }, | ||
| 236 | + authorize: { | ||
| 237 | + operation: 'Operation', | ||
| 238 | + checkAll: 'Check All', | ||
| 239 | + deselectAll: 'Deselect All', | ||
| 240 | + expandAll: 'Expand All', | ||
| 241 | + foldAll: 'Fold All', | ||
| 242 | + menuPermission: 'Menu Permission', | ||
| 243 | + buttonPermission: 'Button Permission', | ||
| 244 | + listPermission: 'List Permission', | ||
| 245 | + formPermission: 'Form Permission', | ||
| 246 | + dataPermission: 'Data Permission', | ||
| 247 | + selectRoles: 'Select Role', | ||
| 248 | + }, | ||
| 249 | + userOnline: { | ||
| 250 | + cancelAccountTip: 'Do you want to cancel the account?', | ||
| 251 | + forcedOffline: 'Offline' | ||
| 252 | + } | ||
| 253 | +} | ||
| 0 | \ No newline at end of file | 254 | \ No newline at end of file |
src/lang/index.js
0 → 100644
| 1 | +import Vue from 'vue' | ||
| 2 | +import VueI18n from 'vue-i18n' | ||
| 3 | +import ncc from '@/utils/ncc' | ||
| 4 | +import elementEnLocale from 'element-ui/lib/locale/lang/en' // element-ui lang | ||
| 5 | +import elementZhLocale from 'element-ui/lib/locale/lang/zh-CN' // element-ui lang | ||
| 6 | +import elementZhTWLocale from 'element-ui/lib/locale/lang/zh-TW' // element-ui lang | ||
| 7 | +import enLocale from './en' | ||
| 8 | +import zhLocale from './zh' | ||
| 9 | +import zhtwLocale from './zhtw' | ||
| 10 | + | ||
| 11 | +Vue.use(VueI18n) | ||
| 12 | + | ||
| 13 | +const messages = { | ||
| 14 | + zh: { | ||
| 15 | + ...zhLocale, | ||
| 16 | + ...elementZhLocale | ||
| 17 | + }, | ||
| 18 | + en: { | ||
| 19 | + ...enLocale, | ||
| 20 | + ...elementEnLocale | ||
| 21 | + }, | ||
| 22 | + zhtw: { | ||
| 23 | + ...zhtwLocale, | ||
| 24 | + ...elementZhTWLocale | ||
| 25 | + } | ||
| 26 | +} | ||
| 27 | +export function getLanguage() { | ||
| 28 | + const chooseLanguage = ncc.storageGet('language') | ||
| 29 | + if (chooseLanguage) return chooseLanguage | ||
| 30 | + | ||
| 31 | + // if has not choose language | ||
| 32 | + const language = (navigator.language || navigator.browserLanguage).toLowerCase() | ||
| 33 | + if (language.indexOf('tw') > -1) return 'zhtw' | ||
| 34 | + const locales = Object.keys(messages) | ||
| 35 | + for (const locale of locales) { | ||
| 36 | + if (language.indexOf(locale) > -1) { | ||
| 37 | + return locale | ||
| 38 | + } | ||
| 39 | + } | ||
| 40 | + return 'zh' | ||
| 41 | +} | ||
| 42 | +const i18n = new VueI18n({ | ||
| 43 | + // options: zh | zhtw | en | ||
| 44 | + locale: getLanguage(), | ||
| 45 | + silentTranslationWarn: true, | ||
| 46 | + // set locale messages | ||
| 47 | + messages | ||
| 48 | +}) | ||
| 49 | + | ||
| 50 | +export default i18n | ||
| 0 | \ No newline at end of file | 51 | \ No newline at end of file |
src/lang/zh.js
0 → 100644
| 1 | +export default { | ||
| 2 | + route: { | ||
| 3 | + "home": "首页", | ||
| 4 | + "dashboard": "门户展示", | ||
| 5 | + "onlineDev": "在线开发", | ||
| 6 | + "onlineDev-webDesign": "功能设计", | ||
| 7 | + "onlineDev-appDesign": "移动设计", | ||
| 8 | + "onlineDev-dataReport": "报表设计", | ||
| 9 | + "onlineDev-dataScreen": "大屏设计", | ||
| 10 | + "onlineDev-visualPortal": "门户设计", | ||
| 11 | + "generator": "代码生成", | ||
| 12 | + "generator-webForm": "功能表单", | ||
| 13 | + "generator-appForm": "移动表单", | ||
| 14 | + "generator-flowForm": "流程表单", | ||
| 15 | + "system": "系统管理", | ||
| 16 | + "system-sysConfig": "系统配置", | ||
| 17 | + "system-notice": "系统公告", | ||
| 18 | + "system-task": "系统调度", | ||
| 19 | + "system-cache": "系统缓存", | ||
| 20 | + "system-log": "系统日志", | ||
| 21 | + "system-monitor": "系统监控", | ||
| 22 | + "system-icons": "系统图标", | ||
| 23 | + "system-language": "翻译管理", | ||
| 24 | + "system-menu": "系统菜单", | ||
| 25 | + "system-area": "行政区划", | ||
| 26 | + "system-billRule": "单据模板", | ||
| 27 | + "systemData": "数据应用", | ||
| 28 | + "systemData-dataSource": "数据连接", | ||
| 29 | + "systemData-dataModel": "数据建模", | ||
| 30 | + "systemData-dataSync": "数据同步", | ||
| 31 | + "systemData-dataBackup": "数据备份", | ||
| 32 | + "systemData-dataInterface": "数据接口", | ||
| 33 | + "systemData-dictionary": "数据字典", | ||
| 34 | + "systemData-map": "数据地图", | ||
| 35 | + "weChat": "微信配置", | ||
| 36 | + "weChat-mpConfig": "公众号配置", | ||
| 37 | + "weChat-mpMenu": "公众号菜单", | ||
| 38 | + "weChat-mpUser": "公众号用户", | ||
| 39 | + "weChat-mpMessage": "公众号消息", | ||
| 40 | + "weChat-mpMaterial": "公众号素材", | ||
| 41 | + "weChat-qyhConfig": "企业号配置", | ||
| 42 | + "weChat-qyDepartment": "企业号组织", | ||
| 43 | + "weChat-qyUser": "企业号用户", | ||
| 44 | + "weChat-qyMessage": "企业号消息", | ||
| 45 | + "permission": "系统权限", | ||
| 46 | + "permission-organize": "组织管理", | ||
| 47 | + "permission-department": "部门管理", | ||
| 48 | + "permission-position": "岗位管理", | ||
| 49 | + "permission-user": "用户管理", | ||
| 50 | + "permission-role": "角色管理", | ||
| 51 | + "permission-authorize": "权限管理", | ||
| 52 | + "permission-userOnline": "在线用户", | ||
| 53 | + "workFlow": "工作流程", | ||
| 54 | + "workFlow-flowEngine": "流程设计", | ||
| 55 | + "workFlow-flowLaunch": "我发起的", | ||
| 56 | + "workFlow-flowTodo": "待办事宜", | ||
| 57 | + "workFlow-flowDone": "已办事宜", | ||
| 58 | + "workFlow-flowCirculate": "抄送事宜", | ||
| 59 | + "workFlow-entrust": "流程委托", | ||
| 60 | + "workFlow-flowMonitor": "流程监控", | ||
| 61 | + "extend-graphDemo": "图表示例", | ||
| 62 | + "extend-graphDemo-echartsBar": "E-柱状图", | ||
| 63 | + "extend-graphDemo-echartsPie": "E-饼状图", | ||
| 64 | + "extend-graphDemo-echartsBarAcross": "E-横状条形图", | ||
| 65 | + "extend-graphDemo-echartsGauge": "E-仪表图", | ||
| 66 | + "extend-graphDemo-echartsLineArea": "E-线形图", | ||
| 67 | + "extend-graphDemo-echartsScatter": "E-散点图", | ||
| 68 | + "extend-graphDemo-echartsCandlestick": "E-K线图", | ||
| 69 | + "extend-graphDemo-echartsLineBar": "E-折柱混合图", | ||
| 70 | + "extend-graphDemo-echartsTree": "E-树形图", | ||
| 71 | + "extend-graphDemo-echartsFunnel": "E-漏斗图", | ||
| 72 | + "extend-graphDemo-highchartsScatter": "H-散点图", | ||
| 73 | + "extend-graphDemo-highchartsWordcloud": "H-词云图", | ||
| 74 | + "extend-graphDemo-highchartsLine": "H-线性图", | ||
| 75 | + "extend-graphDemo-highchartsArea": "H-面积图", | ||
| 76 | + "extend-graphDemo-highchartsGauge": "H-仪表图", | ||
| 77 | + "extend-graphDemo-highchartsBellcurve": "H-贝尔曲线", | ||
| 78 | + "extend-graphDemo-highchartsFunnel": "H-漏斗图", | ||
| 79 | + "extend-graphDemo-highchartsBullet": "H-子弹图", | ||
| 80 | + "extend-graphDemo-highchartsColumn": "H-柱状图", | ||
| 81 | + "extend-graphDemo-highchartsPie": "H-饼状图", | ||
| 82 | + "extend-tableDemo": "表格示例", | ||
| 83 | + "extend-tableDemo-commonTable": "普通表格", | ||
| 84 | + "extend-tableDemo-statisticsTable": "表格统计", | ||
| 85 | + "extend-tableDemo-lockTable": "表格锁定", | ||
| 86 | + "extend-tableDemo-groupingTable": "表格分组", | ||
| 87 | + "extend-tableDemo-redactTable": "表格编辑", | ||
| 88 | + "extend-tableDemo-complexHeader": "复杂表头", | ||
| 89 | + "extend-tableDemo-mergeTable": "表格合并", | ||
| 90 | + "extend-tableDemo-printTable": "表格打印", | ||
| 91 | + "extend-tableDemo-extension": "延伸扩展", | ||
| 92 | + "extend-tableDemo-treeTable": "树形表格", | ||
| 93 | + "extend-tableDemo-postilTable": "表格批注", | ||
| 94 | + "extend-tableDemo-tableTree": "表格树形", | ||
| 95 | + "extend-tableDemo-signTable": "表格标记", | ||
| 96 | + "extend-formDemo": "表单示例", | ||
| 97 | + "extend-formDemo-verifyForm": "表单验证", | ||
| 98 | + "extend-formDemo-verifyForm1": "表单验证1", | ||
| 99 | + "extend-formDemo-fieldForm1": "表单字段1", | ||
| 100 | + "extend-formDemo-fieldForm2": "表单字段2", | ||
| 101 | + "extend-formDemo-fieldForm3": "表单字段3", | ||
| 102 | + "extend-formDemo-fieldForm4": "表单字段4", | ||
| 103 | + "extend-formDemo-fieldForm5": "表单字段5", | ||
| 104 | + "extend-formDemo-fieldForm6": "表单字段6", | ||
| 105 | + "extend": "扩展应用", | ||
| 106 | + "extend-bigData": "百万数据", | ||
| 107 | + "extend-importAndExport": "导入导出", | ||
| 108 | + "extend-signet": "电子签章", | ||
| 109 | + "extend-signature": '电子签名', | ||
| 110 | + "extend-schedule": "日程安排", | ||
| 111 | + "extend-email": "邮件收发", | ||
| 112 | + "extend-document": "知识管理", | ||
| 113 | + "extend-documentPreview": "文档预览", | ||
| 114 | + "extend-barCode": "条码示例", | ||
| 115 | + "extend-printData": "打印示例", | ||
| 116 | + "extend-map": "地图示例", | ||
| 117 | + "extend-order": "订单管理", | ||
| 118 | + "extend-projectGantt": "项目管理", | ||
| 119 | + "moreMenu": "更多...", | ||
| 120 | + "dataReport": "报表示例", | ||
| 121 | + "reportBI": "大屏示例", | ||
| 122 | + }, | ||
| 123 | + navbar: { | ||
| 124 | + profile: '个人信息', | ||
| 125 | + feedback: '反馈问题', | ||
| 126 | + about: '关于平台', | ||
| 127 | + lockScreen: '锁住屏幕', | ||
| 128 | + documentation: '帮助文档', | ||
| 129 | + logOut: '退出系统', | ||
| 130 | + notice: '消息', | ||
| 131 | + chat: '聊天', | ||
| 132 | + setting: '设置' | ||
| 133 | + }, | ||
| 134 | + login: { | ||
| 135 | + title: '账户密码登录', | ||
| 136 | + scanTitle: 'APP扫码登录', | ||
| 137 | + codeTitle: '手机验证登录', | ||
| 138 | + logIn: '登录', | ||
| 139 | + username: '请输入用户名/手机号', | ||
| 140 | + password: '请输入密码', | ||
| 141 | + rule: '子账户规则:手机号@账户 例:18577778888@101001', | ||
| 142 | + version: '版本', | ||
| 143 | + upper: '大写已锁定', | ||
| 144 | + scanTip: 'APP扫码登录', | ||
| 145 | + accountTip: '请输入账号', | ||
| 146 | + passwordTip: '请输入密码', | ||
| 147 | + mobile: '请输入手机号', | ||
| 148 | + rightMobile: '请输入正确的手机号', | ||
| 149 | + smsCode: '请输入验证码', | ||
| 150 | + getCode: '获取验证码', | ||
| 151 | + reSend: '重新发送', | ||
| 152 | + company: '请输入公司名', | ||
| 153 | + contacts: '请输入联系人' | ||
| 154 | + }, | ||
| 155 | + tagsView: { | ||
| 156 | + refresh: '刷新', | ||
| 157 | + close: '关闭', | ||
| 158 | + closeOthers: '关闭其它', | ||
| 159 | + closeAll: '关闭所有' | ||
| 160 | + }, | ||
| 161 | + settings: { | ||
| 162 | + mode: '导航模式', | ||
| 163 | + classic: '侧边导航', | ||
| 164 | + functional: '顶部导航', | ||
| 165 | + plain: '简约导航', | ||
| 166 | + blend: '混合导航', | ||
| 167 | + lightOrDark: '颜色区块', | ||
| 168 | + dark: '暗黑模式', | ||
| 169 | + lightWhite: '亮白模式', | ||
| 170 | + theme: '主题颜色', | ||
| 171 | + blue: '经典蓝', | ||
| 172 | + purple: '玫紫', | ||
| 173 | + azure: '湛蓝', | ||
| 174 | + ocean: '海洋', | ||
| 175 | + green: '生机', | ||
| 176 | + yellow: '丰收', | ||
| 177 | + orange: '阳橙', | ||
| 178 | + red: '热情', | ||
| 179 | + otherSet: '其他设置', | ||
| 180 | + tagsView: '多页签开启模式', | ||
| 181 | + tagsViewIcon: '多页签显示图标', | ||
| 182 | + language: '显示多语言选择', | ||
| 183 | + search: '显示页面搜索框', | ||
| 184 | + cache: '多页签缓存页面' | ||
| 185 | + }, | ||
| 186 | + common: { | ||
| 187 | + addBtn: '新建', | ||
| 188 | + editBtn: '编辑', | ||
| 189 | + delBtn: '删除', | ||
| 190 | + moreBtn: '更多', | ||
| 191 | + search: '查询', | ||
| 192 | + reset: '重置', | ||
| 193 | + refresh: '刷新', | ||
| 194 | + columnSettings: '列设置', | ||
| 195 | + fullScreen: '全屏', | ||
| 196 | + outFullScreen: '退出全屏', | ||
| 197 | + confirmButton: '确 定', | ||
| 198 | + cancelButton: '取 消', | ||
| 199 | + delTip: '此操作将永久删除该数据, 是否继续?', | ||
| 200 | + loadingText: '数据加载中', | ||
| 201 | + noData: '暂无数据', | ||
| 202 | + noPerTip: '暂无权限', | ||
| 203 | + tipTitle: '提示', | ||
| 204 | + prev: '上一步', | ||
| 205 | + next: '下一步', | ||
| 206 | + keyWord: '关键词', | ||
| 207 | + enterKeyword: '请输入关键词查询', | ||
| 208 | + organization: '组织机构' | ||
| 209 | + }, | ||
| 210 | + Organize: { | ||
| 211 | + addCompany: '新建公司', | ||
| 212 | + editCompany: '编辑公司' | ||
| 213 | + }, | ||
| 214 | + department: { | ||
| 215 | + addDepartment: '新建部门', | ||
| 216 | + editDepartment: '编辑部门', | ||
| 217 | + }, | ||
| 218 | + position: { | ||
| 219 | + newPost: '新建岗位', | ||
| 220 | + editPost: '编辑岗位', | ||
| 221 | + postMember: '岗位成员', | ||
| 222 | + postPermission: '岗位权限' | ||
| 223 | + }, | ||
| 224 | + user: { | ||
| 225 | + addUser: '新建用户', | ||
| 226 | + editUser: '编辑用户', | ||
| 227 | + resetPassword: '重置密码', | ||
| 228 | + userPermission: '用户权限' | ||
| 229 | + }, | ||
| 230 | + role: { | ||
| 231 | + addRole: '新建角色', | ||
| 232 | + editRole: '编辑角色', | ||
| 233 | + roleMember: '角色成员', | ||
| 234 | + rolePermission: '角色权限' | ||
| 235 | + }, | ||
| 236 | + authorize: { | ||
| 237 | + operation: '操作', | ||
| 238 | + checkAll: '全部勾选', | ||
| 239 | + deselectAll: '取消全选', | ||
| 240 | + expandAll: '展开所有', | ||
| 241 | + foldAll: '折叠所有', | ||
| 242 | + menuPermission: '菜单权限', | ||
| 243 | + buttonPermission: '按钮权限', | ||
| 244 | + listPermission: '列表权限', | ||
| 245 | + formPermission: '表单权限', | ||
| 246 | + dataPermission: '数据权限', | ||
| 247 | + selectRoles: '选择角色', | ||
| 248 | + }, | ||
| 249 | + userOnline: { | ||
| 250 | + cancelAccountTip: '确定要注销该账号?', | ||
| 251 | + forcedOffline: '强制下线' | ||
| 252 | + } | ||
| 253 | +} | ||
| 0 | \ No newline at end of file | 254 | \ No newline at end of file |
src/lang/zhtw.js
0 → 100644
| 1 | +export default { | ||
| 2 | + route: { | ||
| 3 | + "home": "首頁", | ||
| 4 | + "dashboard": "門戶展示", | ||
| 5 | + "onlineDev": "在線開發", | ||
| 6 | + "onlineDev-webDesign": "功能設計", | ||
| 7 | + "onlineDev-appDesign": "移動設計", | ||
| 8 | + "onlineDev-dataReport": "報表設計", | ||
| 9 | + "onlineDev-dataScreen": "大屏設計", | ||
| 10 | + "onlineDev-visualPortal": "門戶設計", | ||
| 11 | + "generator": "代碼生成", | ||
| 12 | + "generator-webForm": "功能表單", | ||
| 13 | + "generator-appForm": "移動表單", | ||
| 14 | + "generator-flowForm": "流程表單", | ||
| 15 | + "system": "系統管理", | ||
| 16 | + "system-sysConfig": "系統配置", | ||
| 17 | + "system-notice": "系統公告", | ||
| 18 | + "system-task": "系統調度", | ||
| 19 | + "system-cache": "系統緩存", | ||
| 20 | + "system-log": "系統日誌", | ||
| 21 | + "system-monitor": "系統監控", | ||
| 22 | + "system-icons": "系統圖標", | ||
| 23 | + "system-language": "翻譯管理", | ||
| 24 | + "system-menu": "菜單管理", | ||
| 25 | + "system-area": "行政區劃", | ||
| 26 | + "system-billRule": "單據模板", | ||
| 27 | + "systemData": "數據應用", | ||
| 28 | + "systemData-dataSource": "數據連接", | ||
| 29 | + "systemData-dataModel": "數據建模", | ||
| 30 | + "systemData-dataSync": "數據同步", | ||
| 31 | + "systemData-dataBackup": "數據備份", | ||
| 32 | + "systemData-dataInterface": "數據接口", | ||
| 33 | + "systemData-dictionary": "數據字典", | ||
| 34 | + "systemData-map": "數據地圖", | ||
| 35 | + "weChat": "微信配置", | ||
| 36 | + "weChat-mpConfig": "公眾號配置", | ||
| 37 | + "weChat-mpMenu": "公眾號菜單", | ||
| 38 | + "weChat-mpUser": "公眾號用戶", | ||
| 39 | + "weChat-mpMessage": "公眾號消息", | ||
| 40 | + "weChat-mpMaterial": "公眾號素材", | ||
| 41 | + "weChat-qyhConfig": "企業號配置", | ||
| 42 | + "weChat-qyDepartment": "企業號組織", | ||
| 43 | + "weChat-qyUser": "企業號用戶", | ||
| 44 | + "weChat-qyMessage": "企業號消息", | ||
| 45 | + "permission": "系統權限", | ||
| 46 | + "permission-organize": "組織管理", | ||
| 47 | + "permission-department": "部門管理", | ||
| 48 | + "permission-position": "崗位管理", | ||
| 49 | + "permission-user": "用戶管理", | ||
| 50 | + "permission-role": "角色管理", | ||
| 51 | + "permission-authorize": "權限管理", | ||
| 52 | + "permission-userOnline": "在線用戶", | ||
| 53 | + "workFlow": "工作流程", | ||
| 54 | + "workFlow-flowEngine": "流程設計", | ||
| 55 | + "workFlow-flowLaunch": "我發起的", | ||
| 56 | + "workFlow-flowTodo": "待辦事宜", | ||
| 57 | + "workFlow-flowDone": "已辦事宜", | ||
| 58 | + "workFlow-flowCirculate": "抄送事宜", | ||
| 59 | + "workFlow-entrust": "流程委托", | ||
| 60 | + "workFlow-flowMonitor": "流程監控", | ||
| 61 | + "extend-graphDemo": "圖表示例", | ||
| 62 | + "extend-graphDemo-echartsBar": "E-柱狀圖", | ||
| 63 | + "extend-graphDemo-echartsPie": "E-餅狀圖", | ||
| 64 | + "extend-graphDemo-echartsBarAcross": "E-橫狀條形圖", | ||
| 65 | + "extend-graphDemo-echartsGauge": "E-儀表圖", | ||
| 66 | + "extend-graphDemo-echartsLineArea": "E-線形圖", | ||
| 67 | + "extend-graphDemo-echartsScatter": "E-散點圖", | ||
| 68 | + "extend-graphDemo-echartsCandlestick": "E-K線圖", | ||
| 69 | + "extend-graphDemo-echartsLineBar": "E-折柱混合圖", | ||
| 70 | + "extend-graphDemo-echartsTree": "E-樹形圖", | ||
| 71 | + "extend-graphDemo-echartsFunnel": "E-漏鬥圖", | ||
| 72 | + "extend-graphDemo-highchartsScatter": "H-散點圖", | ||
| 73 | + "extend-graphDemo-highchartsWordcloud": "H-詞雲圖", | ||
| 74 | + "extend-graphDemo-highchartsLine": "H-線性圖", | ||
| 75 | + "extend-graphDemo-highchartsArea": "H-面積圖", | ||
| 76 | + "extend-graphDemo-highchartsGauge": "H-儀表圖", | ||
| 77 | + "extend-graphDemo-highchartsBellcurve": "H-貝爾曲線", | ||
| 78 | + "extend-graphDemo-highchartsFunnel": "H-漏鬥圖", | ||
| 79 | + "extend-graphDemo-highchartsBullet": "H-子彈圖", | ||
| 80 | + "extend-graphDemo-highchartsColumn": "H-柱狀圖", | ||
| 81 | + "extend-graphDemo-highchartsPie": "H-餅狀圖", | ||
| 82 | + "extend-tableDemo": "表格示例", | ||
| 83 | + "extend-tableDemo-commonTable": "普通表格", | ||
| 84 | + "extend-tableDemo-statisticsTable": "表格統計", | ||
| 85 | + "extend-tableDemo-lockTable": "表格鎖定", | ||
| 86 | + "extend-tableDemo-groupingTable": "表格分組", | ||
| 87 | + "extend-tableDemo-redactTable": "表格編輯", | ||
| 88 | + "extend-tableDemo-complexHeader": "復雜表頭", | ||
| 89 | + "extend-tableDemo-mergeTable": "表格合並", | ||
| 90 | + "extend-tableDemo-printTable": "表格打印", | ||
| 91 | + "extend-tableDemo-extension": "延伸擴展", | ||
| 92 | + "extend-tableDemo-treeTable": "樹形表格", | ||
| 93 | + "extend-tableDemo-postilTable": "表格批註", | ||
| 94 | + "extend-tableDemo-tableTree": "表格樹形", | ||
| 95 | + "extend-tableDemo-signTable": "表格標記", | ||
| 96 | + "extend-formDemo": "表單示例", | ||
| 97 | + "extend-formDemo-verifyForm": "表單驗證", | ||
| 98 | + "extend-formDemo-verifyForm1": "表單驗證1", | ||
| 99 | + "extend-formDemo-fieldForm1": "表單字段1", | ||
| 100 | + "extend-formDemo-fieldForm2": "表單字段2", | ||
| 101 | + "extend-formDemo-fieldForm3": "表單字段3", | ||
| 102 | + "extend-formDemo-fieldForm4": "表單字段4", | ||
| 103 | + "extend-formDemo-fieldForm5": "表單字段5", | ||
| 104 | + "extend-formDemo-fieldForm6": "表單字段6", | ||
| 105 | + "extend": "擴展應用", | ||
| 106 | + "extend-bigData": "百萬數據", | ||
| 107 | + "extend-importAndExport": "導入導出", | ||
| 108 | + "extend-signet": "電子簽章", | ||
| 109 | + "extend-signature": '電子簽名', | ||
| 110 | + "extend-schedule": "日程安排", | ||
| 111 | + "extend-email": "郵件收發", | ||
| 112 | + "extend-document": "知識管理", | ||
| 113 | + "extend-documentPreview": "文檔預覽", | ||
| 114 | + "extend-barCode": "條碼示例", | ||
| 115 | + "extend-printData": "打印示例", | ||
| 116 | + "extend-map": "地圖示例", | ||
| 117 | + "extend-order": "訂單管理", | ||
| 118 | + "extend-projectGantt": "項目管理", | ||
| 119 | + "moreMenu": "更多...", | ||
| 120 | + "dataReport": "報表示例", | ||
| 121 | + "reportBI": "大屏示例", | ||
| 122 | + }, | ||
| 123 | + navbar: { | ||
| 124 | + profile: '個人信息', | ||
| 125 | + feedback: '反饋問題', | ||
| 126 | + about: '關於平臺', | ||
| 127 | + lockScreen: '鎖住屏幕', | ||
| 128 | + documentation: '幫助文檔', | ||
| 129 | + logOut: '退出系統', | ||
| 130 | + notice: '消息', | ||
| 131 | + chat: '聊天', | ||
| 132 | + setting: '設置' | ||
| 133 | + }, | ||
| 134 | + login: { | ||
| 135 | + title: '賬戶密碼登錄', | ||
| 136 | + scanTitle: 'APP掃碼登錄', | ||
| 137 | + codeTitle: '手機驗證登錄', | ||
| 138 | + logIn: '登錄', | ||
| 139 | + username: '請輸入用戶名/手機號', | ||
| 140 | + password: '請輸入密碼', | ||
| 141 | + rule: '子賬戶規則:手機號@賬戶 例:18577778888@101001', | ||
| 142 | + version: '版本', | ||
| 143 | + upper: '大寫已鎖定', | ||
| 144 | + scanTip: 'APP掃碼登錄', | ||
| 145 | + accountTip: '請輸入賬號', | ||
| 146 | + passwordTip: '請輸入密碼', | ||
| 147 | + mobile: '請輸入手機號', | ||
| 148 | + rightMobile: '請輸入正確的手機號', | ||
| 149 | + smsCode: '請輸入驗證碼', | ||
| 150 | + getCode: '獲取驗證碼', | ||
| 151 | + reSend: '重新發送', | ||
| 152 | + company: '請輸入公司名', | ||
| 153 | + contacts: '請輸入聯系人' | ||
| 154 | + }, | ||
| 155 | + tagsView: { | ||
| 156 | + refresh: '刷新', | ||
| 157 | + close: '關閉', | ||
| 158 | + closeOthers: '關閉其它', | ||
| 159 | + closeAll: '關閉所有' | ||
| 160 | + }, | ||
| 161 | + settings: { | ||
| 162 | + mode: '導航模式', | ||
| 163 | + classic: '側邊導航', | ||
| 164 | + functional: '頂部導航', | ||
| 165 | + plain: '簡約導航', | ||
| 166 | + blend: '混合導航', | ||
| 167 | + lightOrDark: '顏色區塊', | ||
| 168 | + dark: '暗黑模式', | ||
| 169 | + lightWhite: '亮白模式', | ||
| 170 | + theme: '主題顏色', | ||
| 171 | + blue: '經典藍', | ||
| 172 | + purple: '玫紫', | ||
| 173 | + azure: '湛藍', | ||
| 174 | + ocean: '海洋', | ||
| 175 | + green: '生機', | ||
| 176 | + yellow: '豐收', | ||
| 177 | + orange: '陽橙', | ||
| 178 | + red: '熱情', | ||
| 179 | + otherSet: '其他設置', | ||
| 180 | + tagsView: '多頁簽開啟模式', | ||
| 181 | + tagsViewIcon: '多頁簽顯示圖標', | ||
| 182 | + language: '顯示多語言選擇', | ||
| 183 | + search: '顯示頁面搜索框', | ||
| 184 | + cache: '多頁簽緩存頁面' | ||
| 185 | + }, | ||
| 186 | + common: { | ||
| 187 | + addBtn: '新建', | ||
| 188 | + editBtn: '編輯', | ||
| 189 | + delBtn: '刪除', | ||
| 190 | + moreBtn: '更多', | ||
| 191 | + search: '查詢', | ||
| 192 | + reset: '重置', | ||
| 193 | + refresh: '刷新', | ||
| 194 | + columnSettings: '列設置', | ||
| 195 | + fullScreen: '全屏', | ||
| 196 | + outFullScreen: '退出全屏', | ||
| 197 | + confirmButton: '確 定', | ||
| 198 | + cancelButton: '取 消', | ||
| 199 | + delTip: '此操作將永久刪除該數據, 是否繼續?', | ||
| 200 | + loadingText: '數據加載中', | ||
| 201 | + noData: '暫無數據', | ||
| 202 | + noPerTip: '暫無權限', | ||
| 203 | + tipTitle: '提示', | ||
| 204 | + prev: '上壹步', | ||
| 205 | + next: '下壹步', | ||
| 206 | + keyWord: '關鍵詞', | ||
| 207 | + enterKeyword: '請輸入關鍵詞查詢', | ||
| 208 | + organization: '組織機構' | ||
| 209 | + }, | ||
| 210 | + Organize: { | ||
| 211 | + addCompany: '新建公司', | ||
| 212 | + editCompany: '編輯公司' | ||
| 213 | + }, | ||
| 214 | + department: { | ||
| 215 | + addDepartment: '新建部門', | ||
| 216 | + editDepartment: '編輯部門', | ||
| 217 | + | ||
| 218 | + }, | ||
| 219 | + position: { | ||
| 220 | + newPost: '新建崗位', | ||
| 221 | + editPost: '編輯崗位', | ||
| 222 | + postMember: '崗位成員', | ||
| 223 | + postPermission: '崗位權限' | ||
| 224 | + }, | ||
| 225 | + user: { | ||
| 226 | + addUser: '新建用戶', | ||
| 227 | + editUser: '編輯用戶', | ||
| 228 | + resetPassword: '重置密碼', | ||
| 229 | + userPermission: '用戶權限' | ||
| 230 | + }, | ||
| 231 | + role: { | ||
| 232 | + addRole: '新建角色', | ||
| 233 | + editRole: '編輯角色', | ||
| 234 | + roleMember: '角色成員', | ||
| 235 | + rolePermission: '角色權限', | ||
| 236 | + }, | ||
| 237 | + authorize: { | ||
| 238 | + operation: '操作', | ||
| 239 | + checkAll: '全部勾選', | ||
| 240 | + deselectAll: '取消全選', | ||
| 241 | + expandAll: '展開所有', | ||
| 242 | + foldAll: '折疊所有', | ||
| 243 | + menuPermission: '菜單權限', | ||
| 244 | + buttonPermission: '按鈕權限', | ||
| 245 | + listPermission: '列表權限', | ||
| 246 | + formPermission: '表單權限', | ||
| 247 | + dataPermission: '數據權限', | ||
| 248 | + selectRoles: '選擇角色', | ||
| 249 | + }, | ||
| 250 | + userOnline: { | ||
| 251 | + cancelAccountTip: '確定要註銷該賬號?', | ||
| 252 | + forcedOffline: '強制下線' | ||
| 253 | + } | ||
| 254 | +} | ||
| 0 | \ No newline at end of file | 255 | \ No newline at end of file |
src/main.js
| @@ -18,12 +18,14 @@ import store from './store' | @@ -18,12 +18,14 @@ import store from './store' | ||
| 18 | import './permission' | 18 | import './permission' |
| 19 | import moment from "moment"; | 19 | import moment from "moment"; |
| 20 | import './assets/scss/common.scss' | 20 | import './assets/scss/common.scss' |
| 21 | +import i18n from './lang' // internationalization | ||
| 21 | 22 | ||
| 22 | 23 | ||
| 23 | Vue.config.productionTip = false | 24 | Vue.config.productionTip = false |
| 24 | Vue.prototype.$m = moment | 25 | Vue.prototype.$m = moment |
| 25 | Vue.use(ElementUI, { | 26 | Vue.use(ElementUI, { |
| 26 | size: ncc.storageGet('size') || 'small', // set element-ui default size | 27 | size: ncc.storageGet('size') || 'small', // set element-ui default size |
| 28 | + i18n: (key, value) => i18n.t(key, value) | ||
| 27 | }); | 29 | }); |
| 28 | // 批量引入组件 | 30 | // 批量引入组件 |
| 29 | import components from './components' | 31 | import components from './components' |
| @@ -59,5 +61,6 @@ Vue.directive('loadMore', { | @@ -59,5 +61,6 @@ Vue.directive('loadMore', { | ||
| 59 | new Vue({ | 61 | new Vue({ |
| 60 | router, | 62 | router, |
| 61 | store, | 63 | store, |
| 64 | + i18n, | ||
| 62 | render: h => h(App), | 65 | render: h => h(App), |
| 63 | }).$mount('#app') | 66 | }).$mount('#app') |
src/mixins/info.js
| @@ -12,7 +12,6 @@ export default { | @@ -12,7 +12,6 @@ export default { | ||
| 12 | async initSystemTypeList() { | 12 | async initSystemTypeList() { |
| 13 | let list = this.$store.state.meta.system; | 13 | let list = this.$store.state.meta.system; |
| 14 | !list && (list = await this.$store.dispatch('getTypeListByCode', 'system')); | 14 | !list && (list = await this.$store.dispatch('getTypeListByCode', 'system')); |
| 15 | - console.log(list, '11'); | ||
| 16 | this.systemTypeOptions = list; | 15 | this.systemTypeOptions = list; |
| 17 | }, | 16 | }, |
| 18 | async initAreaTypeList() { | 17 | async initAreaTypeList() { |
src/views/baseSystemInfo/index.vue
| 1 | <template> | 1 | <template> |
| 2 | - <!-- 应用信息 --> | ||
| 3 | - <div class="SystemInfo"> | ||
| 4 | - <div class="common-info-box"> | ||
| 5 | - <div class="item-title">系统信息列表</div> | ||
| 6 | - <div class="item-body"> | ||
| 7 | - <template> | ||
| 8 | - <el-table | ||
| 9 | - :data="infoDataList" | ||
| 10 | - style="width: 100%" | ||
| 11 | - stripe | ||
| 12 | - v-loading="loading" | ||
| 13 | - > | ||
| 14 | - <el-table-column | ||
| 15 | - type="index" | ||
| 16 | - width="50" | ||
| 17 | - label="序号" | ||
| 18 | - ></el-table-column> | ||
| 19 | - <el-table-column | ||
| 20 | - prop="CompanyName" | ||
| 21 | - label="主体企业" | ||
| 22 | - show-overflow-tooltip | ||
| 23 | - /> | ||
| 24 | - <el-table-column | ||
| 25 | - prop="SystemName" | ||
| 26 | - label="系统名称" | ||
| 27 | - show-overflow-tooltip | ||
| 28 | - /> | ||
| 29 | - <el-table-column | ||
| 30 | - prop="ContactUser" | ||
| 31 | - label="联系人" | ||
| 32 | - show-overflow-tooltip | ||
| 33 | - /> | ||
| 34 | - <el-table-column | ||
| 35 | - prop="ContactPhone" | ||
| 36 | - label="联系电话" | ||
| 37 | - show-overflow-tooltip | ||
| 38 | - /> | ||
| 39 | - <el-table-column label="操作"> | ||
| 40 | - <template scope="scope"> | ||
| 41 | - <infoForm | ||
| 42 | - style="display: inline-block; margin-right: 5px" | ||
| 43 | - type="edit" | ||
| 44 | - :systemId="scope.row.Id" | ||
| 45 | - > | ||
| 46 | - <el-button type="primary" size="small">修改</el-button> | ||
| 47 | - </infoForm> | ||
| 48 | - <InfoEditRecord | ||
| 49 | - style="display: inline-block" | ||
| 50 | - :systemId="scope.row.Id" | ||
| 51 | - > | ||
| 52 | - <el-button type="success" size="small">查看记录</el-button> | ||
| 53 | - </InfoEditRecord> | ||
| 54 | - </template> | ||
| 55 | - </el-table-column> | ||
| 56 | - </el-table> | ||
| 57 | - </template> | ||
| 58 | - </div> | ||
| 59 | - </div> | ||
| 60 | - </div> | ||
| 61 | - </template> | ||
| 62 | - | ||
| 63 | - <script> | ||
| 64 | - import { getInfoList } from "@/api/baseData/info"; | ||
| 65 | - export default { | ||
| 66 | - name: "SystemInfo", | ||
| 67 | - data() { | ||
| 68 | - return { | ||
| 69 | - loading: true, | ||
| 70 | - listquery: { | ||
| 71 | - keyword: this.$route.query.keyword, | ||
| 72 | - pageIndex: 1, | ||
| 73 | - pageSize: 10, | ||
| 74 | - sort: "desc", | ||
| 75 | - sidx: "", | ||
| 76 | - }, | ||
| 77 | - total: 0, | ||
| 78 | - infoDataList: [], | ||
| 79 | - }; | 2 | + <!-- 应用信息 --> |
| 3 | + <div class="SystemInfo item-box common-info-box"> | ||
| 4 | + <div class="item-title">应用信息</div> | ||
| 5 | + <div class="item-body"> | ||
| 6 | + <div class="NCC-common-layout"> | ||
| 7 | + <div class="NCC-common-layout-center"> | ||
| 8 | + <el-row class="NCC-common-search-box" :gutter="5"> | ||
| 9 | + <el-form @submit.native.prevent size="mini"> | ||
| 10 | + <el-col :span="5"> | ||
| 11 | + <el-form-item label=""> | ||
| 12 | + <el-input v-model="query.keyword" placeholder="请输入应用名称、企业名称进行查询" /> | ||
| 13 | + </el-form-item> | ||
| 14 | + </el-col> | ||
| 15 | + <el-col :span="3"> | ||
| 16 | + <el-form-item label=""> | ||
| 17 | + <el-select v-model="query.systemType" placeholder="请选择应用类型" clearable @change="handleSystemTypeChange"> | ||
| 18 | + <el-option | ||
| 19 | + v-for="(item) in systemTypeOptions" | ||
| 20 | + :key="item.Id" | ||
| 21 | + :label="item.FullName" | ||
| 22 | + :value="item.Id" | ||
| 23 | + /> | ||
| 24 | + </el-select> | ||
| 25 | + </el-form-item> | ||
| 26 | + </el-col> | ||
| 27 | + <el-col :span="3"> | ||
| 28 | + <el-form-item label=""> | ||
| 29 | + <el-select | ||
| 30 | + v-model="query.proId" | ||
| 31 | + placeholder="请选择应用分类" | ||
| 32 | + :disabled="!query.systemType" | ||
| 33 | + clearable | ||
| 34 | + > | ||
| 35 | + <el-option | ||
| 36 | + v-for="(item) in systemClassOptions" | ||
| 37 | + :key="item.Id" | ||
| 38 | + :label="item.ClassName" | ||
| 39 | + :value="item.Id" | ||
| 40 | + /> | ||
| 41 | + </el-select> | ||
| 42 | + </el-form-item> | ||
| 43 | + </el-col> | ||
| 44 | + <el-col :span="4"> | ||
| 45 | + <el-form-item label=""> | ||
| 46 | + <el-input | ||
| 47 | + v-model="query.contactUser" | ||
| 48 | + placeholder="请输入联系人" | ||
| 49 | + /> | ||
| 50 | + </el-form-item> | ||
| 51 | + </el-col> | ||
| 52 | + <el-col :span="4"> | ||
| 53 | + <el-form-item label=""> | ||
| 54 | + <el-input | ||
| 55 | + v-model="query.contactPhone" | ||
| 56 | + placeholder="请输入联系电话" | ||
| 57 | + /> | ||
| 58 | + </el-form-item> | ||
| 59 | + </el-col> | ||
| 60 | + <el-col :span="2"> | ||
| 61 | + <el-form-item> | ||
| 62 | + <el-button | ||
| 63 | + type="primary" | ||
| 64 | + icon="el-icon-search" | ||
| 65 | + @click="search()" | ||
| 66 | + >搜索</el-button | ||
| 67 | + > | ||
| 68 | + </el-form-item> | ||
| 69 | + </el-col> | ||
| 70 | + </el-form> | ||
| 71 | + <div class="NCC-common-search-box-right"> | ||
| 72 | + <el-button type="success" icon="el-icon-upload2" size="mini">导入</el-button> | ||
| 73 | + <el-button type="primary" icon="el-icon-download" size="mini">导出</el-button> | ||
| 74 | + </div> | ||
| 75 | + </el-row> | ||
| 76 | + <div class="NCC-common-layout-main NCC-flex-main"> | ||
| 77 | + <NCC-table v-loading="loading" :data="infoDataList"> | ||
| 78 | + <el-table-column prop="companyName" label="主体企业" align="center" /> | ||
| 79 | + <el-table-column prop="systemName" label="应用名称" align="center" /> | ||
| 80 | + <el-table-column prop="systemType" label="应用类型" align="center" /> | ||
| 81 | + <el-table-column prop="systemClass" label="应用分类" align="center" /> | ||
| 82 | + <el-table-column prop="contactUser" label="联系人" align="center" /> | ||
| 83 | + <el-table-column prop="contactPhone" label="联系电话" align="center" /> | ||
| 84 | + <el-table-column prop="areaName" label="所属区域" align="center" /> | ||
| 85 | + <el-table-column label="操作" width="200"> | ||
| 86 | + <!-- 查看,修改,归属地变更,上报 --> | ||
| 87 | + <template slot-scope="scope"> | ||
| 88 | + <infoForm class="btn_dialog" type="edit" :systemId="scope.row.Id"> | ||
| 89 | + <el-button size="mini" type="text">修改</el-button> | ||
| 90 | + </infoForm> | ||
| 91 | + <InfoEditRecord class="btn_dialog" :systemId="scope.row.Id"> | ||
| 92 | + <el-button size="mini" type="text">查看</el-button> | ||
| 93 | + </InfoEditRecord> | ||
| 94 | + <el-button size="mini" type="text" @click="toChangeArea(scope.row)">归属地变更</el-button> | ||
| 95 | + <el-button size="mini" type="text" @click="toDetail(scope.row)">上报</el-button> | ||
| 96 | + </template> | ||
| 97 | + </el-table-column> | ||
| 98 | + </NCC-table> | ||
| 99 | + <pagination :total="total" :page.sync="listQuery.pageIndex" :limit.sync="listQuery.pageSize" @pagination="initList" /> | ||
| 100 | + </div> | ||
| 101 | + </div> | ||
| 102 | + <el-dialog | ||
| 103 | + title="归属地变更" | ||
| 104 | + :visible.sync="areaChangeVisible" | ||
| 105 | + width="50%"> | ||
| 106 | + <el-form | ||
| 107 | + :model="areaForm" | ||
| 108 | + :rules="areaRules" | ||
| 109 | + ref="areaForm" | ||
| 110 | + size="small" | ||
| 111 | + label-width="100px" | ||
| 112 | + v-loading="areaDialogLoading" | ||
| 113 | + > | ||
| 114 | + <el-form-item label="所属区县" prop="areaId"> | ||
| 115 | + <el-radio-group | ||
| 116 | + v-model="areaForm.areaId" | ||
| 117 | + placeholder="请选择所属区县" | ||
| 118 | + style="line-height: 22px" | ||
| 119 | + > | ||
| 120 | + <el-radio v-for="v in areaOptions" :key="v.id" :label="v.id">{{ | ||
| 121 | + v.fullName | ||
| 122 | + }}</el-radio> | ||
| 123 | + </el-radio-group> | ||
| 124 | + </el-form-item> | ||
| 125 | + </el-form> | ||
| 126 | + | ||
| 127 | + | ||
| 128 | + <span slot="footer" class="dialog-footer"> | ||
| 129 | + <el-button @click="areaChangeVisible = false">取 消</el-button> | ||
| 130 | + <el-button type="primary" @click="areaSubmit">确 定</el-button> | ||
| 131 | + </span> | ||
| 132 | + </el-dialog> | ||
| 133 | + </div> | ||
| 134 | + </div> | ||
| 135 | + </div> | ||
| 136 | +</template> | ||
| 137 | + | ||
| 138 | +<script> | ||
| 139 | +import { getInfoList } from "@/api/baseData/info"; | ||
| 140 | +import { updataSystem } from "@/api/baseData/info"; | ||
| 141 | +import infoMixin from "@/mixins/info"; | ||
| 142 | +export default { | ||
| 143 | + name: "SystemInfo", | ||
| 144 | + mixins: [infoMixin], | ||
| 145 | + data() { | ||
| 146 | + return { | ||
| 147 | + loading: false, | ||
| 148 | + query: { | ||
| 149 | + keyword: '', | ||
| 150 | + systemType: "", | ||
| 151 | + systemClass: "", | ||
| 152 | + contactUser: "", | ||
| 153 | + contactPhone: "", | ||
| 80 | }, | 154 | }, |
| 81 | - created() { | ||
| 82 | - // this.initList(); | 155 | + listQuery: { |
| 156 | + pageIndex: 1, | ||
| 157 | + pageSize: 10, | ||
| 158 | + sort: "desc", | ||
| 159 | + sidx: "", | ||
| 160 | + }, | ||
| 161 | + total: 0, | ||
| 162 | + infoDataList: [], | ||
| 163 | + | ||
| 164 | + // 归属地变更 | ||
| 165 | + areaChangeVisible: false, | ||
| 166 | + areaDialogLoading: false, | ||
| 167 | + areaForm: { | ||
| 168 | + areaId: '' | ||
| 83 | }, | 169 | }, |
| 84 | - mounted() { | ||
| 85 | - console.log(this.$route.path, "path"); | 170 | + areaRules: { |
| 171 | + areaId: { | ||
| 172 | + required: true, | ||
| 173 | + message: "请输入所属区县", | ||
| 174 | + trigger: "change", | ||
| 175 | + }, | ||
| 86 | }, | 176 | }, |
| 87 | - watch: { | ||
| 88 | - $route: { | ||
| 89 | - handler: function (route) { | ||
| 90 | - this.listquery.keyword = route.query.keyword; | ||
| 91 | - this.initList(); | ||
| 92 | - }, | ||
| 93 | - immediate: true, | ||
| 94 | - }, | 177 | + activeSystemId: '', |
| 178 | + }; | ||
| 179 | + }, | ||
| 180 | + created() { | ||
| 181 | + this.initList(); | ||
| 182 | + this.initSystemTypeList(); | ||
| 183 | + }, | ||
| 184 | + mounted() { | ||
| 185 | + }, | ||
| 186 | + watch: { | ||
| 187 | + // $route: { | ||
| 188 | + // handler: function (route) { | ||
| 189 | + // this.query.keyword = route.query.keyword || ''; | ||
| 190 | + // this.initList(); | ||
| 191 | + // }, | ||
| 192 | + // immediate: true, | ||
| 193 | + // }, | ||
| 194 | + }, | ||
| 195 | + methods: { | ||
| 196 | + handleSystemTypeChange(val) { | ||
| 197 | + this.query.systemClass = ''; | ||
| 198 | + this.initSystemClassList(val) | ||
| 95 | }, | 199 | }, |
| 96 | - methods: { | ||
| 97 | - initList() { | ||
| 98 | - getInfoList(this.listquery).then(({ data }) => { | ||
| 99 | - let list = []; | ||
| 100 | - data.list.forEach((v) => { | ||
| 101 | - let obj = { | ||
| 102 | - CompanyName: v.compayInfo.CompanyName, | ||
| 103 | - SystemName: v.SysytemInfo.SystemName, | ||
| 104 | - ContactUser: v.compayInfo.ContactUser, | ||
| 105 | - ContactPhone: v.compayInfo.ContactPhone, | ||
| 106 | - Id: v.SysytemInfo.Id, | ||
| 107 | - }; | ||
| 108 | - list.push(obj); | ||
| 109 | - }); | ||
| 110 | - this.infoDataList = list; | ||
| 111 | - this.total = data.totalCount; | ||
| 112 | - this.loading = false; | ||
| 113 | - }); | ||
| 114 | - }, | ||
| 115 | - getSystemUpdataList() { | ||
| 116 | - getInfoList({ | ||
| 117 | - id: "580628220576007429", | ||
| 118 | - pageIndex: 1, | ||
| 119 | - pageSize: 10, | ||
| 120 | - }).then(({ data }) => { | ||
| 121 | - console.log(data); | ||
| 122 | - }); | ||
| 123 | - }, | 200 | + search() { |
| 201 | + this.listQuery = { | ||
| 202 | + pageIndex: 1, | ||
| 203 | + pageSize: 10, | ||
| 204 | + sort: "desc", | ||
| 205 | + sidx: "", | ||
| 206 | + } | ||
| 207 | + this.initList(); | ||
| 208 | + }, | ||
| 209 | + initList() { | ||
| 210 | + this.loading = true | ||
| 211 | + let query = { | ||
| 212 | + ...this.listQuery, | ||
| 213 | + ...this.query, | ||
| 214 | + }; | ||
| 215 | + getInfoList(query).then(({ data }) => { | ||
| 216 | + let list = []; | ||
| 217 | + data.list.length && data.list.forEach((v) => { | ||
| 218 | + let obj = { | ||
| 219 | + companyName: v.compayInfo.CompanyName, | ||
| 220 | + systemName: v.SysytemInfo.SystemName, | ||
| 221 | + systemType: v.SysytemInfo.SystemType, | ||
| 222 | + systemClass: v.SysytemInfo.SystemClass, | ||
| 223 | + areaName: v.SysytemInfo.AreaName, | ||
| 224 | + areaId: v.SysytemInfo.AreaId, | ||
| 225 | + principalName: v.SysytemInfo.PrincipalName, | ||
| 226 | + principalPhone: v.SysytemInfo.PrincipalPhone, | ||
| 227 | + Id: v.SysytemInfo.Id, | ||
| 228 | + }; | ||
| 229 | + list.push(obj); | ||
| 230 | + }); | ||
| 231 | + this.infoDataList = list; | ||
| 232 | + this.total = data.totalCount; | ||
| 233 | + this.loading = false; | ||
| 234 | + }); | ||
| 235 | + }, | ||
| 236 | + // 上报 | ||
| 237 | + toDetail(row) { | ||
| 124 | }, | 238 | }, |
| 125 | - }; | ||
| 126 | - </script> | ||
| 127 | - <style scoped lang="scss"> | ||
| 128 | - .item-box.info-box { | ||
| 129 | - height: 70vh; | ||
| 130 | - :deep(.el-table__body-wrapper.is-scrolling-none) { | ||
| 131 | - height: calc(100% - 47px); | ||
| 132 | - overflow-y: scroll; | 239 | + async toChangeArea(row) { |
| 240 | + this.areaChangeVisible = true; | ||
| 241 | + this.areaDialogLoading = true; | ||
| 242 | + this.areaForm.areaId = row.areaId; | ||
| 243 | + this.activeSystemId = row.Id; | ||
| 244 | + await this.initAreaTypeList(); | ||
| 245 | + this.areaDialogLoading = false; | ||
| 246 | + }, | ||
| 247 | + areaSubmit() { | ||
| 248 | + updataSystem({ | ||
| 249 | + id: this.activeSystemId, | ||
| 250 | + areaId: this.areaForm.areaId, | ||
| 251 | + }).then((res) => { | ||
| 252 | + this.areaChangeVisible = false; | ||
| 253 | + this.initList(); | ||
| 254 | + }); | ||
| 133 | } | 255 | } |
| 256 | + }, | ||
| 257 | +}; | ||
| 258 | +</script> | ||
| 259 | +<style scoped lang="scss"> | ||
| 260 | +.common-info-box { | ||
| 261 | + :deep(.el-table__body-wrapper.is-scrolling-none) { | ||
| 262 | + height: calc(100% - 47px); | ||
| 263 | + overflow-y: scroll; | ||
| 264 | + } | ||
| 265 | + .item-body { | ||
| 266 | + height: calc(100% - 35px); | ||
| 134 | } | 267 | } |
| 135 | - </style> | ||
| 136 | - | ||
| 137 | \ No newline at end of file | 268 | \ No newline at end of file |
| 269 | +} | ||
| 270 | +</style> |
src/views/systemPage/InfoList.vue
| @@ -111,15 +111,6 @@ export default { | @@ -111,15 +111,6 @@ export default { | ||
| 111 | this.loading = false; | 111 | this.loading = false; |
| 112 | }); | 112 | }); |
| 113 | }, | 113 | }, |
| 114 | - getSystemUpdataList() { | ||
| 115 | - getInfoList({ | ||
| 116 | - id: "580628220576007429", | ||
| 117 | - pageIndex: 1, | ||
| 118 | - pageSize: 10, | ||
| 119 | - }).then(({ data }) => { | ||
| 120 | - console.log(data); | ||
| 121 | - }); | ||
| 122 | - }, | ||
| 123 | }, | 114 | }, |
| 124 | }; | 115 | }; |
| 125 | </script> | 116 | </script> |