diff --git a/src/components/table/index.js b/src/components/table/index.js new file mode 100644 index 0000000000000000000000000000000000000000..09cb4f6a1104f9ae5d17c4a334168a5d6c94cd1d --- /dev/null +++ b/src/components/table/index.js @@ -0,0 +1,15 @@ +import Wraper from './wraper.vue'; +import Table from './table.vue'; +import MoreItem from './more_item.vue'; + +export const WraperMixins = { + props: { hidden: Function, row: Object, type: String, refresh: Function }, + components: { Wraper }, + data() { + return { + form: {}, + }; + }, +}; + +export { Wraper, Table, MoreItem }; diff --git a/src/components/table/index.vue b/src/components/table/index.vue index 9f4a2db63de5ef91c2a5d1b0d82683f6a506dabd..caba50af25de8abfbbebce0b870b160e62042d62 100644 --- a/src/components/table/index.vue +++ b/src/components/table/index.vue @@ -1,16 +1,14 @@ @@ -188,7 +188,7 @@ export default { this.addVisible = true; this.type = 0; this.noFooter = false; - this.title = '新增'; + this.title = this.$t('table.add'); }, addDrawerClose() { this.addVisible = false; @@ -206,13 +206,13 @@ export default { }, show({ type, title, noFooter } = {}) { if (type === 0) { - this.title = '新增'; + this.title = this.$t('table.add'); } if (type === 1) { - this.title = '编辑'; + this.title = this.$t('table.edit'); } if (type === 2) { - this.title = '查看'; + this.title = this.$t('table.view'); } if (title) { this.title = title; diff --git a/src/components/table/table.vue b/src/components/table/table.vue index 4f04690caf4302428a5ca21891d644c2f6793e96..4ca9ddb0c471470679239d24b531ef0a512ca11b 100644 --- a/src/components/table/table.vue +++ b/src/components/table/table.vue @@ -18,7 +18,6 @@ {{ $t('table.reset') }} {{ $t('table.search') }} - @@ -113,7 +112,6 @@ export default { }, data() { - const newBtn = this.addBtn ? (typeof this.addBtn === 'object' ? this.addBtn : {}) : this.addBtn; return { initQuery: { ...initQuery, diff --git a/src/local/index.js b/src/local/index.js index 14d8a5241201181013e74d7446ac1f605ac590ad..b336acb76e83c0639bf92dc932c83062794235c0 100644 --- a/src/local/index.js +++ b/src/local/index.js @@ -1,6 +1,7 @@ import selectLang from './select'; -import TableLang from './table'; -import UserLang from './user'; +import tableLang from './table'; +import userLang from './user'; +import systemLang from './system'; const zh_CN = {}; const en_US = {}; @@ -14,7 +15,8 @@ function formatLang(langObject) { } formatLang(selectLang); -formatLang(TableLang); -formatLang(UserLang); +formatLang(tableLang); +formatLang(userLang); +formatLang(systemLang); export { en_US, zh_CN }; diff --git a/src/local/system.js b/src/local/system.js new file mode 100644 index 0000000000000000000000000000000000000000..914b836d7757a8d50538ae689cbf5e9e8ba5fd98 --- /dev/null +++ b/src/local/system.js @@ -0,0 +1,6 @@ +export default { + 'system.jobName': ['任务名称', 'Job Name'], + 'system.jobName.add': ['请输入@:system.jobName', 'Please Input @:system.jobName'], + 'system.department': ['所属部门', 'Department'], + 'system.userTitleName': ['用户职称', 'User Title Name'], +}; diff --git a/src/local/table.js b/src/local/table.js index 05b151e6db120bda2a6cca3a89e085572cb42632..728de0a0610dde75c998e2ae2e75934de38cf12a 100644 --- a/src/local/table.js +++ b/src/local/table.js @@ -27,5 +27,10 @@ export default { 'table.confirm': ['确认', 'Confirm'], 'table.cancel': ['取消', 'Cancel'], 'table.delete': ['删除', 'Delete'], - 'table.confirmDelete': ['确认是否删除', 'Confirm To Delete'] + 'table.confirmDelete': ['确认是否删除', 'Confirm To Delete'], + 'table.describe': ['描述', 'Describe'], + 'table.describe.add': ['请输入描述信息', 'Please Input @:table.describe'], + 'table.confirmReset': ['确认是否重置', 'Confirm Reset'], + 'table.hasSelectedSome': ['已选择{num}项', '{num} have been selected'], + 'table.view': ['查看', 'View'], }; diff --git a/src/local/user.js b/src/local/user.js index 9b89419d3f1f4d74936978fff4cb4b82ca9fd5df..4e8bd181fc3569e1b59fe6e548e7a5c715f6dd85 100644 --- a/src/local/user.js +++ b/src/local/user.js @@ -24,4 +24,9 @@ export default { 'user.twoInconsistent': ['两次密码不一致', 'The two passwords are inconsistent'], 'user.modifiedSuccessfully': ['修改成功', 'Modified successfully'], 'user.serverException': ['服务器异常', 'Server exception'], + 'user.isLocked': ['是否锁定', 'Is Locked'], + 'user.deblocking': ['解锁', 'Deblocking'], + 'user.confirmUnlock': ['确认是否解锁', 'Confirm Whether To Unlock'], + 'user.locking': ['锁定', 'Locking'], + 'user.confirmLocked': ['确认是否锁定', 'Confirm Locked'], }; diff --git a/src/pages/system/organization/jobsmanagement/Jobs.vue b/src/pages/system/organization/jobsmanagement/Jobs.vue index 4bd4e9360ddecb05b1d33f39ef3f770b06f60f0e..b13c725a6c75b300331a3bc0e7e87d40fcb0c36f 100644 --- a/src/pages/system/organization/jobsmanagement/Jobs.vue +++ b/src/pages/system/organization/jobsmanagement/Jobs.vue @@ -1,44 +1,40 @@