mooho-base-admin-plus 0.1.69 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/dist/mooho-base-admin-plus.min.esm.js +17680 -18012
  2. package/dist/mooho-base-admin-plus.min.js +77 -67
  3. package/dist/setting.js +6 -17
  4. package/dist/style.css +1 -1
  5. package/package.json +2 -2
  6. package/public/setting.js +6 -17
  7. package/src/api/customModel.js +1 -1
  8. package/src/api/dataSource.js +1 -1
  9. package/src/api/dataView.js +1 -1
  10. package/src/api/i18nText +33 -0
  11. package/src/api/model.js +1 -1
  12. package/src/components/home/notice-list.vue +2 -2
  13. package/src/components/home/shortcut.vue +9 -9
  14. package/src/components/input/dialog-select.vue +3 -3
  15. package/src/components/input/item-select.vue +5 -5
  16. package/src/components/upload/upload-attachment.vue +13 -3
  17. package/src/components/upload/upload-image.vue +2 -2
  18. package/src/components/view/column-check.vue +3 -3
  19. package/src/components/view/column-edit.vue +18 -18
  20. package/src/components/view/column-select.vue +4 -4
  21. package/src/components/view/condition-edit.vue +10 -10
  22. package/src/components/view/filter-edit.vue +30 -13
  23. package/src/components/view/filter-setting.vue +8 -8
  24. package/src/components/view/form-setting-layout.vue +37 -39
  25. package/src/components/view/form-setting.vue +18 -18
  26. package/src/components/view/group-column.vue +5 -5
  27. package/src/components/view/group-method.vue +5 -5
  28. package/src/components/view/modal-form-filter.vue +28 -25
  29. package/src/components/view/modal-form-sort.vue +32 -27
  30. package/src/components/view/modal-form.vue +30 -8
  31. package/src/components/view/modal-table.vue +22 -2
  32. package/src/components/view/table-filter.vue +18 -11
  33. package/src/components/view/table-setting.vue +30 -42
  34. package/src/components/view/view-chart.vue +6 -6
  35. package/src/components/view/view-form-draggable.vue +3 -3
  36. package/src/components/view/view-form.vue +23 -13
  37. package/src/components/view/view-table.vue +83 -39
  38. package/src/components/workflow/flow-chart.vue +22 -23
  39. package/src/i18n/index.js +43 -6
  40. package/src/i18n/locale/en-US.js +1 -1
  41. package/src/i18n/locale/lang.js +1 -1
  42. package/src/i18n/locale/zh-CN.js +1 -1
  43. package/src/index.js +12 -7
  44. package/src/layouts/basic-layout/header-breadcrumb/index.vue +18 -3
  45. package/src/layouts/basic-layout/header-i18n/index.vue +5 -6
  46. package/src/layouts/basic-layout/header-notice/index.vue +2 -2
  47. package/src/layouts/basic-layout/header-search/index.vue +3 -3
  48. package/src/layouts/basic-layout/header-user/index.vue +18 -18
  49. package/src/layouts/basic-layout/menu-side/index.vue +9 -3
  50. package/src/layouts/basic-layout/menu-side/menu-title.vue +5 -4
  51. package/src/layouts/basic-layout/mixins/click-item.js +21 -21
  52. package/src/layouts/basic-layout/mixins/sider-menu-badge.js +13 -13
  53. package/src/layouts/basic-layout/mixins/translate-title.js +11 -11
  54. package/src/layouts/basic-layout/tabs/index.vue +4 -4
  55. package/src/layouts/basic-layout/water-mark/index.vue +29 -29
  56. package/src/libs/random_str.js +10 -10
  57. package/src/libs/request/index.js +18 -4
  58. package/src/libs/water-mark.js +44 -44
  59. package/src/mixins/page.js +72 -18
  60. package/src/pages/account/login.vue +6 -6
  61. package/src/pages/common/task-form.vue +33 -33
  62. package/src/pages/common/todo.vue +1 -1
  63. package/src/pages/system/apiLog.vue +7 -7
  64. package/src/pages/system/applicationType.vue +6 -6
  65. package/src/pages/system/customTable.vue +7 -7
  66. package/src/pages/system/dict.vue +1 -1
  67. package/src/pages/system/dictType.vue +4 -4
  68. package/src/pages/system/entityView.vue +3 -3
  69. package/src/pages/system/error/404.vue +1 -1
  70. package/src/pages/system/extendColumn.vue +7 -7
  71. package/src/pages/system/formView.vue +10 -10
  72. package/src/pages/system/i18nText.vue +98 -0
  73. package/src/pages/system/log.vue +4 -4
  74. package/src/pages/system/openUser.vue +5 -5
  75. package/src/pages/system/organization.vue +1 -1
  76. package/src/pages/system/permission.vue +5 -5
  77. package/src/pages/system/planJob.vue +3 -3
  78. package/src/pages/system/process.vue +10 -10
  79. package/src/pages/system/role.vue +18 -18
  80. package/src/pages/system/rolePropertyEdit.vue +83 -100
  81. package/src/pages/system/systemData.vue +4 -4
  82. package/src/pages/system/tableView.vue +17 -17
  83. package/src/pages/system/taskQueue.vue +13 -6
  84. package/src/pages/system/user.vue +17 -17
  85. package/src/pages/template/processPage.vue +22 -22
  86. package/src/plugins/sweetalert2/index.js +1 -5
  87. package/src/router/dynamic.js +7 -6
  88. package/src/setting.js +1 -14
  89. package/src/store/modules/admin/modules/account.js +3 -4
  90. package/src/store/modules/admin/modules/i18n.js +41 -42
  91. package/src/store/modules/admin/modules/menu.js +1 -0
  92. package/src/styles/common.less +47 -47
  93. package/src/styles/css/default.css +4 -0
  94. package/src/styles/default/index.less +6 -6
  95. package/src/styles/font/iconfont.css +47 -47
  96. package/src/styles/font/iconfont.json +65 -65
  97. package/src/styles/layout/basic-layout/layout.less +527 -527
  98. package/src/styles/layout/basic-layout/menu.less +274 -274
  99. package/src/styles/layout/index.less +2 -2
  100. package/src/styles/setting.less +6 -6
  101. package/test/api/barcode.js +1 -1
  102. package/test/api/inbound.js +1 -1
  103. package/test/api/movePlan.js +1 -1
  104. package/test/api/outbound.js +1 -1
  105. package/test/main.js +3 -3
  106. package/test/router/routes.js +2 -2
  107. package/src/i18n/locale.js +0 -102
  108. package/src/layouts/basic-layout/i18n.js +0 -50
  109. package/src/plugins/log/index.js +0 -25
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div>
3
- <Exception type="404" img-color :desc="$t('page.exception.e404')" :back-text="$t('page.exception.btn')" />
3
+ <Exception type="404" img-color :desc="$t('Front_Msg_Exception_404')" :back-text="$t('Front_Btn_Back_Home')" />
4
4
  </div>
5
5
  </template>
6
6
  <script></script>
@@ -6,13 +6,13 @@
6
6
  <Card :bordered="false" dis-hover class="ivu-mt">
7
7
  <view-table ref="table" view-code="Entity" :filter="filter">
8
8
  <template #command="{ row }">
9
- <Button size="small" title="扩展字段" type="primary" custom-icon="fa fa-bars" @click="$refs.columnTable.open({ modelName: row.name })"></Button>
9
+ <Button size="small" :title="$t('Front_Btn_Extend_Column')" type="primary" custom-icon="fa fa-bars" @click="$refs.columnTable.open({ modelName: row.name })"></Button>
10
10
  </template>
11
11
  </view-table>
12
12
  </Card>
13
13
  <modal-table ref="columnTable" view-code="ExtendColumn" @create="param => $refs.columnForm.openDefault(param)" @edit="({ row, index }) => $refs.columnForm.open(row)">
14
14
  <template #command="{ row }">
15
- <Button size="small" title="删除" type="warning" custom-icon="fa fa-trash-alt" @click="remove(row)"></Button>
15
+ <Button size="small" :title="$t('Front_Btn_Remove')" type="warning" custom-icon="fa fa-trash-alt" @click="remove(row)"></Button>
16
16
  </template>
17
17
  </modal-table>
18
18
  <modal-form ref="columnForm" view-code="ExtendColumnEdit" @on-change="formChange" @on-after-save="$refs.columnTable.loadData()" />
@@ -54,12 +54,12 @@
54
54
  if (data.dataType === 'String') {
55
55
  // 字符串
56
56
  columnSize.isShow = true;
57
- columnSize.name = '长度';
57
+ columnSize.name = this.$t('Front_Label_Length');
58
58
  columnFkModel.isShow = false;
59
59
  } else if (data.dataType === 'Decimal') {
60
60
  // 小数
61
61
  columnSize.isShow = true;
62
- columnSize.name = '小数位';
62
+ columnSize.name = this.$t('Front_Label_Decimal_Digit');
63
63
  columnFkModel.isShow = false;
64
64
  } else if (data.dataType === 'ID') {
65
65
  // 唯一键
@@ -84,11 +84,11 @@
84
84
  //this.$refs.columnForm.forceUpdate();
85
85
  },
86
86
  remove(row) {
87
- this.confirm('确认要删除该项吗?', () => {
88
- this.confirm('删除扩展字段后该字段的所有数据将不可恢复,确认要删除吗?', async () => {
87
+ this.confirm('Front_Msg_Sure_To_Delete_Item', () => {
88
+ this.confirm('Front_Msg_Sure_To_Delete_Column', async () => {
89
89
  await modelApi.remove('ExtendColumn', row.id);
90
90
 
91
- this.success('操作成功!', () => {
91
+ this.success('Front_Msg_Success', () => {
92
92
  this.$refs.columnTable.loadData();
93
93
  });
94
94
  });
@@ -6,22 +6,22 @@
6
6
  <Card :bordered="false" dis-hover class="ivu-mt">
7
7
  <view-table ref="table" view-code="FormView" :filter="filter" :selectEnable="true" @create="create" @edit="edit">
8
8
  <template #filterCommand>
9
- <Button size="small" type="info" custom-icon="fa fa-cloud-download-alt" @click="exportFile()">导出</Button>
9
+ <Button size="small" type="info" custom-icon="fa fa-cloud-download-alt" @click="exportFile()">{{ $t('Front_Btn_Export') }}</Button>
10
10
  <file-upload url="api/DataView/importFile" accept=".view" @on-success="importFileSuccess" style="display: inline-block; margin-left: 4px; margin-right: 4px">
11
11
  <template #>
12
- <Button type="primary" custom-icon="fa fa-cloud-upload-alt" size="small">导入</Button>
12
+ <Button type="primary" custom-icon="fa fa-cloud-upload-alt" size="small">{{ $t('Front_Btn_Import') }}</Button>
13
13
  </template>
14
14
  </file-upload>
15
15
  </template>
16
16
  <template #command="{ row }">
17
- <Button size="small" title="字段设置" type="info" custom-icon="fa fa-bars" @click="setting(row)"></Button>
17
+ <Button size="small" :title="$t('Front_Btn_Column_Setting')" type="info" custom-icon="fa fa-bars" @click="setting(row)"></Button>
18
18
  </template>
19
19
  </view-table>
20
20
  </Card>
21
21
  <modal-form ref="form" view-code="FormViewEdit" @on-change="formChange" @on-after-save="$refs.table.loadData()">
22
22
  <template #footer>
23
- <Button type="primary" custom-icon="fa fa-save" @click="() => $refs.form.onSave()">保存</Button>
24
- <Button type="primary" v-if="canCopy" custom-icon="fa fa-copy" @click="copy">复制</Button>
23
+ <Button type="primary" custom-icon="fa fa-save" @click="() => $refs.form.onSave()">{{ $t('Front_Btn_Save') }}</Button>
24
+ <Button type="primary" v-if="canCopy" custom-icon="fa fa-copy" @click="copy">{{ $t('Front_Btn_Copy') }}</Button>
25
25
  </template>
26
26
  </modal-form>
27
27
  <form-setting ref="setting" @layout-mode="layoutMode" />
@@ -87,13 +87,13 @@
87
87
  if (ids.length > 0) {
88
88
  dataViewApi.exportFile(ids);
89
89
  } else {
90
- this.error('请选择需要导出的内容!');
90
+ this.error('Front_Msg_Please_Select_Export_Item');
91
91
  }
92
92
  },
93
93
  // 导入成功
94
94
  importFileSuccess(res) {
95
95
  if (res.code == 0) {
96
- this.success('导入成功!', () => {
96
+ this.success('Front_Msg_Success', () => {
97
97
  this.$refs.table.loadData();
98
98
  });
99
99
  } else {
@@ -103,8 +103,8 @@
103
103
  // 复制
104
104
  copy() {
105
105
  this.confirmInput(
106
- '确认要复制并创建新的视图吗?',
107
- '视图代码',
106
+ 'Front_Msg_Sure_To_Copy_Create_View',
107
+ 'Front_Label_View_Code',
108
108
  async () => {
109
109
  let dataView = await dataViewApi.copy(this.$refs.form.data.id, this.newCode);
110
110
  this.$refs.form.open(dataView);
@@ -112,7 +112,7 @@
112
112
  },
113
113
  newCode => {
114
114
  if (!(newCode || '').trim()) {
115
- this.warning('请输入需要创建的视图代码!');
115
+ this.warning('Front_Msg_Please_Input_View_Code');
116
116
  return false;
117
117
  } else {
118
118
  this.newCode = newCode;
@@ -0,0 +1,98 @@
1
+ <template>
2
+ <div>
3
+ <div class="i-layout-page-header">
4
+ <PageHeader :title="$route.meta.title" :content="$route.meta.description" hidden-breadcrumb />
5
+ </div>
6
+ <Card :bordered="false" dis-hover class="ivu-mt">
7
+ <view-form ref="form" view-code="I18nTextFilter" @on-change="formChange"></view-form>
8
+ <div v-if="canSave" style="margin-bottom: 8px; text-align: center">
9
+ <Button type="primary" style="margin-right: 8px" custom-icon="fa fa-save" @click="save()">{{ $t('Front_Btn_Save') }}</Button>
10
+ <Button v-if="i18nType == 'Server' || i18nType == 'Front'" type="primary" custom-icon="fa fa-plus" @click="$refs.newForm.openDefault({ i18nType: i18nType })">
11
+ {{ $t('Front_Btn_Add') }}
12
+ </Button>
13
+ </div>
14
+ <view-table ref="table" view-code="I18nText" :static="true" :onSearch="loadData">
15
+ <template #command="{ row }">
16
+ <Button
17
+ v-if="i18nType == 'Server' || i18nType == 'Front'"
18
+ size="small"
19
+ :title="$t('Front_Btn_Remove')"
20
+ type="warning"
21
+ custom-icon="fa fa-trash-alt"
22
+ @click="remove(row)"
23
+ ></Button>
24
+ </template>
25
+ </view-table>
26
+ <modal-form ref="newForm" view-code="I18nTextEdit" @on-after-save="loadData()"></modal-form>
27
+ </Card>
28
+ </div>
29
+ </template>
30
+ <script>
31
+ import mixinPage from '../../mixins/page';
32
+ import i18nTextApi from '../../api/i18nText';
33
+ import modelApi from '../../api/model';
34
+
35
+ export default {
36
+ name: 'system-i18nText',
37
+ mixins: [mixinPage],
38
+ components: {},
39
+ data() {
40
+ return {
41
+ canSave: false,
42
+ i18nType: null,
43
+ category: null
44
+ };
45
+ },
46
+ computed: {},
47
+ created() {},
48
+ methods: {
49
+ async loadData() {
50
+ this.i18nType = this.$refs.form.data.i18nType;
51
+ this.category = null;
52
+
53
+ if (this.i18nType) {
54
+ if (this.i18nType == 'Enum') {
55
+ this.category = this.$refs.form.data.enum;
56
+ } else if (this.i18nType == 'Dict') {
57
+ this.category = this.$refs.form.data.dict;
58
+ } else if (this.i18nType == 'DataView') {
59
+ this.category = this.$refs.form.data.dataView;
60
+ } else {
61
+ this.category = '';
62
+ }
63
+
64
+ if (this.category != null) {
65
+ let data = await i18nTextApi.queryForEdit(this.i18nType, this.category);
66
+ this.$refs.table.loadData(data);
67
+ this.canSave = true;
68
+ return;
69
+ }
70
+ }
71
+
72
+ this.$refs.table.loadData([]);
73
+ this.canSave = false;
74
+ },
75
+ async formChange() {
76
+ this.loadData();
77
+ },
78
+ async save() {
79
+ this.confirm('Front_Msg_Sure_To_Save', async () => {
80
+ let data = this.$refs.table.data;
81
+
82
+ await i18nTextApi.save(this.i18nType, this.category, data);
83
+
84
+ this.success('Front_Msg_Success');
85
+ });
86
+ },
87
+ async remove(row) {
88
+ this.confirm('Front_Msg_Sure_To_Delete_Item', async () => {
89
+ await modelApi.remove('I18nText', row.id);
90
+
91
+ this.success('Front_Msg_Success', () => {
92
+ this.loadData();
93
+ });
94
+ });
95
+ }
96
+ }
97
+ };
98
+ </script>
@@ -6,7 +6,7 @@
6
6
  <Card :bordered="false" dis-hover class="ivu-mt">
7
7
  <view-table ref="table" view-code="Log">
8
8
  <template #command="{ row }">
9
- <Button size="small" title="堆栈信息" type="info" custom-icon="fa fa-bars" @click="openStack(row)"></Button>
9
+ <Button size="small" :title="$t('Front_Btn_Stack_Info')" type="info" custom-icon="fa fa-bars" @click="openStack(row)"></Button>
10
10
  </template>
11
11
  </view-table>
12
12
  </Card>
@@ -14,8 +14,8 @@
14
14
  <template #header>
15
15
  <div>
16
16
  <slot name="header">
17
- <span class="title">堆栈信息</span>
18
- <span class="description">Stack Info</span>
17
+ <span class="title">{{ $t('Front_Label_Stack_Info') }}</span>
18
+ <span class="description">{{ $t('Front_Label_Stack_Info_Desc') }}</span>
19
19
  </slot>
20
20
  </div>
21
21
  </template>
@@ -24,7 +24,7 @@
24
24
  </div>
25
25
  <template #footer>
26
26
  <div>
27
- <Button type="default" custom-icon="fa fa-times" @click="stackOpened = false">关闭</Button>
27
+ <Button type="default" custom-icon="fa fa-times" @click="stackOpened = false">{{ $t('Front_Btn_Close') }}</Button>
28
28
  </div>
29
29
  </template>
30
30
  </Modal>
@@ -6,15 +6,15 @@
6
6
  <Card :bordered="false" dis-hover class="ivu-mt">
7
7
  <view-table ref="table" view-code="OpenUser" @create="$refs.form.open()" @edit="({ row, index }) => $refs.form.open(row)">
8
8
  <template #command="{ row }">
9
- <Button size="small" title="接口权限" type="primary" custom-icon="fa fa-atom" @click="openApiTableOpen(row)"></Button>
9
+ <Button size="small" :title="$t('Front_Btn_API_Permission')" type="primary" custom-icon="fa fa-atom" @click="openApiTableOpen(row)"></Button>
10
10
  </template>
11
11
  </view-table>
12
12
  </Card>
13
13
  <modal-form ref="form" view-code="OpenUserEdit" @on-after-save="$refs.table.loadData()" />
14
14
  <modal-table ref="openApiTable" view-code="OpenApiCheck" :select-enable="true" :static="true" :footerEnable="true">
15
15
  <template #footer>
16
- <Button type="primary" custom-icon="fa fa-save" @click="saveOpenApiPermission()">保存</Button>
17
- <Button type="default" custom-icon="fa fa-times" @click="$refs.openApiTable.close()">关闭</Button>
16
+ <Button type="primary" custom-icon="fa fa-save" @click="saveOpenApiPermission()">{{ $t('Front_Btn_Save') }}</Button>
17
+ <Button type="default" custom-icon="fa fa-times" @click="$refs.openApiTable.close()">{{ $t('Front_Btn_Close') }}</Button>
18
18
  </template>
19
19
  </modal-table>
20
20
  </div>
@@ -49,13 +49,13 @@
49
49
  },
50
50
  // 保存接口权限
51
51
  async saveOpenApiPermission() {
52
- this.confirm('确定要保存吗?', () => {
52
+ this.confirm('Front_Msg_Sure_To_Save', () => {
53
53
  let openApiIDs = this.$refs.openApiTable.getSelected().map(item => {
54
54
  return item.id;
55
55
  });
56
56
 
57
57
  openApiPermissionApi.batchSave(this.openUserID, openApiIDs).then(() => {
58
- this.success('保存成功!', () => {
58
+ this.success('Front_Msg_Success', () => {
59
59
  this.$refs.openApiTable.close();
60
60
  });
61
61
  });
@@ -19,7 +19,7 @@
19
19
  @edit="({ row, index }) => edit(row)"
20
20
  >
21
21
  <template #command="{ row }">
22
- <Button size="small" title="创建下级" type="primary" custom-icon="fa fa-plus" @click="create(row)"></Button>
22
+ <Button size="small" :title="$t('Front_Btn_Create_Child')" type="primary" custom-icon="fa fa-plus" @click="create(row)"></Button>
23
23
  </template>
24
24
  <template #column="{ row, column, code }">
25
25
  <template v-if="code == 'name'">
@@ -20,15 +20,15 @@
20
20
  @edit="({ row, index }) => edit(row)"
21
21
  >
22
22
  <template #filterCommand>
23
- <Button size="small" type="info" custom-icon="fa fa-cloud-download-alt" @click="exportFile()">导出</Button>
23
+ <Button size="small" type="info" custom-icon="fa fa-cloud-download-alt" @click="exportFile()">{{ $t('Front_Btn_Export') }}</Button>
24
24
  <file-upload url="api/Permission/importFile" accept=".pms" @on-success="importFileSuccess" style="display: inline-block; margin-left: 4px; margin-right: 4px">
25
25
  <template #>
26
- <Button type="primary" custom-icon="fa fa-cloud-upload-alt" size="small">导入</Button>
26
+ <Button type="primary" custom-icon="fa fa-cloud-upload-alt" size="small">{{ $t('Front_Btn_Import') }}</Button>
27
27
  </template>
28
28
  </file-upload>
29
29
  </template>
30
30
  <template #command="{ row }">
31
- <Button size="small" title="创建下级" type="primary" custom-icon="fa fa-plus" @click="create(row)"></Button>
31
+ <Button size="small" :title="$t('Front_Btn_Create_Child')" type="primary" custom-icon="fa fa-plus" @click="create(row)"></Button>
32
32
  </template>
33
33
  <template #column="{ row, column, code }">
34
34
  <template v-if="code == 'name'">
@@ -111,13 +111,13 @@
111
111
  if (ids.length > 0) {
112
112
  permissionApi.exportFile(ids);
113
113
  } else {
114
- this.error('请选择需要导出的内容!');
114
+ this.error('Front_Msg_Please_Select_Export_Item');
115
115
  }
116
116
  },
117
117
  // 导入成功
118
118
  importFileSuccess(res) {
119
119
  if (res.code == 0) {
120
- this.success('导入成功!', () => {
120
+ this.success('Front_Msg_Success', () => {
121
121
  this.$refs.table.loadData();
122
122
  });
123
123
  } else {
@@ -6,7 +6,7 @@
6
6
  <Card :bordered="false" dis-hover class="ivu-mt">
7
7
  <view-table ref="table" view-code="PlanJob" @create="$refs.form.open()" @edit="({ row, index }) => $refs.form.open(row)">
8
8
  <template #command="{ row }">
9
- <Button size="small" title="立即启动" type="primary" custom-icon="fa fa-bolt" @click="execute(row)"></Button>
9
+ <Button size="small" :title="$t('Front_Btn_Start_Immediately')" type="primary" custom-icon="fa fa-bolt" @click="execute(row)"></Button>
10
10
  </template>
11
11
  </view-table>
12
12
  </Card>
@@ -29,9 +29,9 @@
29
29
  methods: {
30
30
  // 执行
31
31
  execute(row) {
32
- this.confirm('确定要立即启动该任务吗?', async () => {
32
+ this.confirm('Front_Msg_Sure_To_Start_Immediately', async () => {
33
33
  await planJobApi.execute(row.id);
34
- this.success('启动成功!');
34
+ this.success('Front_Msg_Success');
35
35
  this.$refs.table.loadData();
36
36
  });
37
37
  }
@@ -6,24 +6,24 @@
6
6
  <Card :bordered="false" dis-hover class="ivu-mt">
7
7
  <view-table ref="table" view-code="Process" :selectEnable="true" @create="$refs.form.open()" @edit="({ row, index }) => $refs.form.open(row)">
8
8
  <template #filterCommand>
9
- <Button size="small" type="info" custom-icon="fa fa-cloud-download-alt" @click="exportFile()">导出</Button>
9
+ <Button size="small" type="info" custom-icon="fa fa-cloud-download-alt" @click="exportFile()">{{ $t('Front_Btn_Export') }}</Button>
10
10
  <file-upload url="api/Process/importFile" accept=".proc" @on-success="importFileSuccess" style="display: inline-block; margin-left: 4px; margin-right: 4px">
11
11
  <template #>
12
- <Button type="primary" custom-icon="fa fa-cloud-upload-alt" size="small">导入</Button>
12
+ <Button type="primary" custom-icon="fa fa-cloud-upload-alt" size="small">{{ $t('Front_Btn_Import') }}</Button>
13
13
  </template>
14
14
  </file-upload>
15
15
  </template>
16
16
  <template #command="{ row }">
17
- <Button size="small" title="流程定义" type="primary" custom-icon="fa fa-route" @click="$refs.flowChart.open({ processID: row.id })"></Button>
18
- <Button size="small" title="版本" type="info" custom-icon="fa fa-bars" @click="$refs.processDefTable.open({ processID: row.id })"></Button>
17
+ <Button size="small" :title="$t('Front_Btn_Process_Def')" type="primary" custom-icon="fa fa-route" @click="$refs.flowChart.open({ processID: row.id })"></Button>
18
+ <Button size="small" :title="$t('Front_Btn_Version')" type="info" custom-icon="fa fa-bars" @click="$refs.processDefTable.open({ processID: row.id })"></Button>
19
19
  </template>
20
20
  </view-table>
21
21
  </Card>
22
22
  <modal-form ref="form" view-code="ProcessEdit" @on-after-save="$refs.table.loadData()" />
23
23
  <modal-table ref="processDefTable" view-code="ProcessDefModal">
24
24
  <template #command="{ row }">
25
- <Button size="small" title="流程定义" type="primary" custom-icon="fa fa-route" @click="$refs.flowChart.open({ id: row.id })"></Button>
26
- <Button size="small" v-if="!row.isActive" title="激活此版本" type="primary" custom-icon="fa fa-star" @click="active(row)"></Button>
25
+ <Button size="small" :title="$t('Front_Btn_Process_Def')" type="primary" custom-icon="fa fa-route" @click="$refs.flowChart.open({ id: row.id })"></Button>
26
+ <Button size="small" v-if="!row.isActive" :title="$t('Front_Btn_Active')" type="primary" custom-icon="fa fa-star" @click="active(row)"></Button>
27
27
  </template>
28
28
  </modal-table>
29
29
  <flow-chart ref="flowChart" />
@@ -47,9 +47,9 @@
47
47
  methods: {
48
48
  // 激活版本
49
49
  active(row) {
50
- this.confirm('确定要激活该版本吗?', async () => {
50
+ this.confirm('Front_Msg_Sure_To_Active_Version', async () => {
51
51
  await processDefApi.active(row.id);
52
- this.success('激活成功!');
52
+ this.success('Front_Msg_Success');
53
53
  this.$refs.processDefTable.loadData();
54
54
  });
55
55
  },
@@ -61,13 +61,13 @@
61
61
  if (ids.length > 0) {
62
62
  processApi.exportFile(ids);
63
63
  } else {
64
- this.error('请选择需要导出的内容!');
64
+ this.error('Front_Msg_Please_Select_Export_Item');
65
65
  }
66
66
  },
67
67
  // 导入成功
68
68
  importFileSuccess(res) {
69
69
  if (res.code == 0) {
70
- this.success('导入成功!', () => {
70
+ this.success('Front_Msg_Success', () => {
71
71
  this.$refs.table.loadData();
72
72
  });
73
73
  } else {
@@ -6,18 +6,18 @@
6
6
  <Card :bordered="false" dis-hover class="ivu-mt">
7
7
  <view-table ref="table" view-code="Role" @create="$refs.form.open()">
8
8
  <template #command="{ row }">
9
- <Button size="small" title="用户" type="info" custom-icon="fa fa-user" @click="$refs.userRoleTable.open({ roleID: row.id })"></Button>
10
- <Button size="small" title="编辑" type="primary" custom-icon="fa fa-edit" @click="$refs.form.open(row)"></Button>
11
- <Button size="small" title="权限" type="primary" custom-icon="fa fa-desktop" @click="openPermission(row)"></Button>
12
- <Button size="small" title="参数" type="info" custom-icon="fa fa-ethernet" @click="$refs.rolePropertyTable.open({ roleID: row.id })"></Button>
13
- <Button size="small" title="删除" type="warning" custom-icon="fa fa-trash-alt" @click="$refs.table.remove(row)"></Button>
9
+ <Button size="small" :title="$t('Front_Btn_User')" type="info" custom-icon="fa fa-user" @click="$refs.userRoleTable.open({ roleID: row.id })"></Button>
10
+ <Button size="small" :title="$t('Front_Btn_Edit')" type="primary" custom-icon="fa fa-edit" @click="$refs.form.open(row)"></Button>
11
+ <Button size="small" :title="$t('Front_Btn_Permission')" type="primary" custom-icon="fa fa-desktop" @click="openPermission(row)"></Button>
12
+ <Button size="small" :title="$t('Front_Btn_Param')" type="info" custom-icon="fa fa-ethernet" @click="$refs.rolePropertyTable.open({ roleID: row.id })"></Button>
13
+ <Button size="small" :title="$t('Front_Btn_Remove')" type="warning" custom-icon="fa fa-trash-alt" @click="$refs.table.remove(row)"></Button>
14
14
  </template>
15
15
  </view-table>
16
16
  </Card>
17
17
  <modal-form ref="form" view-code="RoleEdit" @on-after-save="$refs.table.loadData()" />
18
18
  <modal-table ref="userRoleTable" view-code="RoleUser" @edit="({ row }) => editUserRole(row)">
19
19
  <template #filterCommand>
20
- <Button size="small" type="primary" custom-icon="fa fa-plus" @click="addUserRole()">添加</Button>
20
+ <Button size="small" type="primary" custom-icon="fa fa-plus" @click="addUserRole()">{{ $t('Front_Btn_Add') }}</Button>
21
21
  </template>
22
22
  </modal-table>
23
23
  <modal-form ref="userRoleForm" view-code="RoleUserEdit" @on-after-save="$refs.userRoleTable.loadData()">
@@ -79,7 +79,7 @@
79
79
  </view-table>
80
80
  </template>
81
81
  <template #footer>
82
- <Button type="primary" custom-icon="fa fa-save" @click="userRoleSave">保存</Button>
82
+ <Button type="primary" custom-icon="fa fa-save" @click="userRoleSave">{{ $t('Front_Btn_Save') }}</Button>
83
83
  </template>
84
84
  </modal-form>
85
85
  <modal-table
@@ -110,15 +110,15 @@
110
110
  >
111
111
  <template #header>
112
112
  <div>
113
- <span class="title">权限</span>
114
- <span class="description">Permission</span>
113
+ <span class="title">{{ $t('Front_Label_Permission') }}</span>
114
+ <span class="description">{{ $t('Front_Label_Permission_Desc') }}</span>
115
115
  </div>
116
116
  </template>
117
117
  <div class="ivu-ml-8 ivu-mr-8">
118
118
  <Form label-position="top" label-colon=":" class="ivu-mt">
119
119
  <Row :gutter="24" type="flex">
120
120
  <Col span="24">
121
- <FormItem label="终端类型" key="clientType" prop="clientType">
121
+ <FormItem :label="$t('Front_Label_Client_Type')" key="clientType" prop="clientType">
122
122
  <RadioGroup v-model="clientType" @on-change="loadPermission()">
123
123
  <Radio v-for="item in clientTypes" :key="item.code" :label="item.code">
124
124
  <span>{{ item.name }}</span>
@@ -132,8 +132,8 @@
132
132
  </div>
133
133
  <template #footer>
134
134
  <div>
135
- <Button type="primary" custom-icon="fa fa-save" @click="savePermission()">确定</Button>
136
- <Button type="default" custom-icon="fa fa-times" @click="permissionOpened = false">关闭</Button>
135
+ <Button type="primary" custom-icon="fa fa-save" @click="savePermission()">{{ $t('Front_Btn_OK') }}</Button>
136
+ <Button type="default" custom-icon="fa fa-times" @click="permissionOpened = false">{{ $t('Front_Btn_Close') }}</Button>
137
137
  </div>
138
138
  </template>
139
139
  </Modal>
@@ -238,9 +238,9 @@
238
238
  savePermission() {
239
239
  let permissionIDs = getChecked(this.permissions);
240
240
 
241
- this.confirm('确定要保存权限设置吗?', async () => {
241
+ this.confirm('Front_Msg_Sure_To_Save', async () => {
242
242
  await rolePermissionApi.update(this.roleID, this.clientType, permissionIDs);
243
- this.success('操作成功!', () => {
243
+ this.success('Front_Msg_Success', () => {
244
244
  this.permissionOpened = false;
245
245
  });
246
246
  });
@@ -359,9 +359,9 @@
359
359
  let isOK = await this.$refs.userRoleForm.validate();
360
360
 
361
361
  if (!isOK) {
362
- this.error('有内容不符合要求,请正确填写!');
362
+ this.error('Front_Msg_Form_Validate_Fail');
363
363
  } else {
364
- this.confirm('确定要保存吗?', async () => {
364
+ this.confirm('Front_Msg_Sure_To_Save', async () => {
365
365
  let userRole = this.$refs.userRoleForm.getFullData();
366
366
 
367
367
  if (!userRole) {
@@ -369,7 +369,7 @@
369
369
  return;
370
370
  }
371
371
 
372
- let userRoleDatas = this.$refs.userRoleDataTable.data;
372
+ let userRoleDatas = this.$refs.userRoleDataTable.getData();
373
373
 
374
374
  let data = {
375
375
  userRole,
@@ -382,7 +382,7 @@
382
382
  await modelApi.update('UserRole', data);
383
383
  }
384
384
 
385
- this.success('操作成功!', () => {
385
+ this.success('Front_Msg_Success', () => {
386
386
  this.$refs.userRoleDataTable.loadData([]);
387
387
  this.$refs.userRoleTable.loadData();
388
388
  this.$refs.userRoleForm.close();