mooho-base-admin-plus 0.1.68 → 0.4.0

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 (88) hide show
  1. package/dist/mooho-base-admin-plus.min.esm.js +15796 -15624
  2. package/dist/mooho-base-admin-plus.min.js +40 -41
  3. package/dist/setting.js +4 -2
  4. package/dist/style.css +1 -1
  5. package/package.json +2 -2
  6. package/public/setting.js +4 -2
  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 +22 -12
  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 +7 -4
  36. package/src/components/view/view-form.vue +27 -14
  37. package/src/components/view/view-table.vue +87 -40
  38. package/src/components/workflow/flow-chart.vue +22 -23
  39. package/src/i18n/index.js +7 -7
  40. package/src/index.js +13 -8
  41. package/src/layouts/basic-layout/header-breadcrumb/index.vue +18 -3
  42. package/src/layouts/basic-layout/header-i18n/index.vue +5 -6
  43. package/src/layouts/basic-layout/header-notice/index.vue +2 -2
  44. package/src/layouts/basic-layout/header-search/index.vue +3 -3
  45. package/src/layouts/basic-layout/header-user/index.vue +18 -18
  46. package/src/layouts/basic-layout/menu-side/index.vue +9 -3
  47. package/src/layouts/basic-layout/menu-side/menu-title.vue +5 -4
  48. package/src/layouts/basic-layout/tabs/index.vue +4 -4
  49. package/src/libs/request/index.js +18 -4
  50. package/src/mixins/page.js +72 -18
  51. package/src/pages/account/login.vue +6 -6
  52. package/src/pages/common/task-form.vue +33 -33
  53. package/src/pages/common/todo.vue +1 -1
  54. package/src/pages/system/apiLog.vue +7 -7
  55. package/src/pages/system/applicationType.vue +6 -6
  56. package/src/pages/system/customTable.vue +7 -7
  57. package/src/pages/system/dict.vue +1 -1
  58. package/src/pages/system/dictType.vue +4 -4
  59. package/src/pages/system/entityView.vue +3 -3
  60. package/src/pages/system/error/404.vue +1 -1
  61. package/src/pages/system/extendColumn.vue +7 -7
  62. package/src/pages/system/formView.vue +10 -10
  63. package/src/pages/system/i18nText.vue +98 -0
  64. package/src/pages/system/log.vue +4 -4
  65. package/src/pages/system/openUser.vue +5 -5
  66. package/src/pages/system/organization.vue +1 -1
  67. package/src/pages/system/permission.vue +5 -5
  68. package/src/pages/system/planJob.vue +3 -3
  69. package/src/pages/system/process.vue +10 -10
  70. package/src/pages/system/role.vue +18 -18
  71. package/src/pages/system/rolePropertyEdit.vue +83 -100
  72. package/src/pages/system/systemData.vue +4 -4
  73. package/src/pages/system/tableView.vue +17 -17
  74. package/src/pages/system/taskQueue.vue +13 -6
  75. package/src/pages/system/user.vue +17 -17
  76. package/src/pages/template/processPage.vue +22 -22
  77. package/src/plugins/sweetalert2/index.js +1 -5
  78. package/src/router/dynamic.js +7 -6
  79. package/src/store/modules/admin/modules/i18n.js +72 -32
  80. package/src/store/modules/admin/modules/menu.js +1 -0
  81. package/src/styles/css/default.css +4 -0
  82. package/test/api/barcode.js +1 -1
  83. package/test/api/inbound.js +1 -1
  84. package/test/api/movePlan.js +1 -1
  85. package/test/api/outbound.js +1 -1
  86. package/test/main.js +4 -4
  87. package/test/router/routes.js +2 -2
  88. package/src/i18n/locale.js +0 -102
@@ -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();