super-pages 0.7.57 → 0.7.58

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 (44) hide show
  1. package/lib/super-pages.css +1 -1
  2. package/lib/super-pages.umd.min.js +5 -5
  3. package/package.json +2 -2
  4. package/packages/index.js +33 -0
  5. package/packages/super-page/index.js +9 -0
  6. package/packages/super-page/src/button-group.vue +272 -0
  7. package/packages/super-page/src/chart-page.vue +173 -0
  8. package/packages/super-page/src/chart-query-page.vue +113 -0
  9. package/packages/super-page/src/common-form-page.vue +547 -0
  10. package/packages/super-page/src/export-form-report-dialog.vue +84 -0
  11. package/packages/super-page/src/form-head.vue +67 -0
  12. package/packages/super-page/src/form-page.vue +107 -0
  13. package/packages/super-page/src/group-tag.vue +29 -0
  14. package/packages/super-page/src/list-page.vue +1023 -0
  15. package/packages/super-page/src/list-toolbar-page.vue +257 -0
  16. package/packages/super-page/src/my-button-base.vue +367 -0
  17. package/packages/super-page/src/my-button.vue +185 -0
  18. package/packages/super-page/src/page-custom-component.vue +64 -0
  19. package/packages/super-page/src/remove-signer-dialog.vue +107 -0
  20. package/packages/super-page/src/sub-tab-page.vue +88 -0
  21. package/packages/super-page/src/super-page-component.vue +78 -0
  22. package/packages/super-page/src/super-page.vue +134 -0
  23. package/packages/super-page/src/tab-page.vue +152 -0
  24. package/packages/super-page/src/task-informition-dialog.vue +88 -0
  25. package/packages/super-page/src/util/ListButtonEvent.js +608 -0
  26. package/packages/super-page/src/util/api.js +32 -0
  27. package/packages/super-page/src/util/callEvents.js +52 -0
  28. package/packages/super-page/src/util/chartButtonEvent.js +60 -0
  29. package/packages/super-page/src/util/common-util.js +100 -0
  30. package/packages/super-page/src/util/commonButtonEvent.js +55 -0
  31. package/packages/super-page/src/util/eventBus.js +2 -0
  32. package/packages/super-page/src/util/formButtonEvent.js +262 -0
  33. package/packages/super-page/src/util/store.js +3 -0
  34. package/packages/super-page/src/util/super-page.js +19 -0
  35. package/packages/super-page/src/util/util.js +976 -0
  36. package/packages/super-page/src/util/workflowButtonEvent.js +1037 -0
  37. package/packages/super-page/src/widget-col-page.vue +339 -0
  38. package/packages/super-page/src/widget-page.vue +596 -0
  39. package/packages/super-page/src/widget-sub-tab-pane-page.vue +105 -0
  40. package/packages/super-page/src/widget-tab-pane-page.vue +125 -0
  41. package/packages/super-page/src/workflow-button-group.vue +487 -0
  42. package/packages/super-page/src/workflow-form-page.vue +1119 -0
  43. package/packages/super-page-dialog/index.js +9 -0
  44. package/packages/super-page-dialog/src/super-page-dialog.vue +173 -0
@@ -0,0 +1,107 @@
1
+ <template>
2
+ <div>
3
+ <workflow-form-page
4
+ v-if="isWorkflowForm"
5
+ ref="workflowFormPage"
6
+ :col-setting="colSetting"
7
+ :data-id="dataId"
8
+ :task-id="taskId"
9
+ :tab-code="tabCode"
10
+ :email-template-code="emailTemplateCode"
11
+ :page-code="pageCode"
12
+ />
13
+ <common-form-page
14
+ v-else
15
+ ref="formPage"
16
+ :col-setting="colSetting"
17
+ :data-id="dataId"
18
+ :page-code="pageCode"
19
+ :tab-code="tabCode"
20
+ @update-value="updateSetValues"
21
+ />
22
+ </div>
23
+ </template>
24
+
25
+ <script>
26
+ import CommonFormPage from './common-form-page'
27
+ import WorkflowFormPage from './workflow-form-page'
28
+ export default {
29
+ name: 'FormPage',
30
+ components: {
31
+ CommonFormPage,
32
+ WorkflowFormPage
33
+ },
34
+ props: {
35
+ colSetting: {
36
+ type: Object,
37
+ default: null
38
+ },
39
+ // 表单页面修改记录时记录id
40
+ dataId: {
41
+ type: Number,
42
+ default: null
43
+ },
44
+ // 流程表单页面办理任务时任务id
45
+ taskId: {
46
+ type: Number,
47
+ default: null
48
+ },
49
+ // 页面编码
50
+ pageCode: {
51
+ type: String,
52
+ default: null
53
+ },
54
+ // 页签编码
55
+ tabCode: {
56
+ type: String,
57
+ default: null
58
+ }
59
+ },
60
+ data () {
61
+ return {
62
+ isWorkflowForm: false, // 是否是流程表单
63
+ emailTemplateCode: '' // 流程办理发送邮件对应的模板
64
+ }
65
+ },
66
+ created () {
67
+ this.getProcessInfo()
68
+ },
69
+ methods: {
70
+ updateSetValues (soureModel, sourceTableName, targetRowIndex) {
71
+ this.$emit('update-value', soureModel, sourceTableName, targetRowIndex)
72
+ },
73
+ fnProhibitToEdit (entity) {
74
+ if (this.isWorkflowForm) {
75
+ console.log('this.$refs.formPage', this.$refs.workflowFormPage)
76
+ if (this.$refs.workflowFormPage) {
77
+ return this.$refs.workflowFormPage.fnProhibitToEdit(entity)
78
+ }
79
+ } else {
80
+ console.log('this.$refs.formPage', this.$refs.formPage)
81
+ if (this.$refs.formPage) {
82
+ return this.$refs.formPage.fnProhibitToEdit(entity)
83
+ }
84
+ }
85
+ },
86
+ // 获得“工作流程按钮组”对应的流程编码
87
+ getProcessInfo () {
88
+ const buttonGroups = this.colSetting.options.buttonGroup
89
+ if (buttonGroups && buttonGroups.length > 0) {
90
+ for (let i = 0; i < buttonGroups.length; i++) {
91
+ const button = buttonGroups[i]
92
+ if (button.code && button.code === 'workflowButton') {
93
+ // 流程按钮组
94
+ // 获得流程办理发送邮件对应的模板
95
+ this.emailTemplateCode = button.emailTemplateCode
96
+ this.isWorkflowForm = true
97
+ return
98
+ }
99
+ }
100
+ }
101
+ this.isWorkflowForm = false
102
+ }
103
+ }
104
+ }
105
+ </script>
106
+
107
+ <style lang="scss" scoped></style>
@@ -0,0 +1,29 @@
1
+ <template>
2
+ <div>
3
+ <el-menu
4
+ default-active="1"
5
+ class="el-menu-group"
6
+ mode="horizontal"
7
+ >
8
+ <el-menu-item index="1">
9
+ {{ label }}
10
+ </el-menu-item>
11
+ </el-menu>
12
+ </div>
13
+ </template>
14
+
15
+ <script>
16
+ export default {
17
+ name: 'GroupTag',
18
+ props: {
19
+ label: {
20
+ type: String,
21
+ default: null
22
+ }
23
+ }
24
+ }
25
+ </script>
26
+
27
+ <style lang="scss" scoped>
28
+
29
+ </style>