super-pages 0.0.13-up → 0.0.15-up

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 (49) hide show
  1. package/README.md +7 -7
  2. package/index.html +13 -13
  3. package/lib/super-pages.css +1 -1
  4. package/lib/super-pages.js +9 -9
  5. package/lib/super-pages.umd.cjs +1 -1
  6. package/package.json +1 -1
  7. package/packages/index.js +30 -30
  8. package/packages/super-page/index.js +9 -9
  9. package/packages/super-page/src/button-group.vue +294 -294
  10. package/packages/super-page/src/chart-page.vue +215 -215
  11. package/packages/super-page/src/chart-query-page.vue +163 -163
  12. package/packages/super-page/src/export-form-report-dialog.vue +145 -145
  13. package/packages/super-page/src/form-head.vue +74 -74
  14. package/packages/super-page/src/form-page.vue +107 -107
  15. package/packages/super-page/src/group-tag.vue +21 -21
  16. package/packages/super-page/src/list-toolbar-dynamic-source.vue +89 -89
  17. package/packages/super-page/src/list-toolbar-page.vue +377 -377
  18. package/packages/super-page/src/my-button-base.vue +438 -438
  19. package/packages/super-page/src/my-button.vue +196 -196
  20. package/packages/super-page/src/page-custom-component.vue +56 -56
  21. package/packages/super-page/src/remove-signer-dialog.vue +103 -103
  22. package/packages/super-page/src/sub-tab-page.vue +79 -79
  23. package/packages/super-page/src/super-page-component.vue +86 -86
  24. package/packages/super-page/src/super-page.vue +162 -162
  25. package/packages/super-page/src/tab-page.vue +154 -154
  26. package/packages/super-page/src/task-informition-dialog.vue +82 -82
  27. package/packages/super-page/src/util/ListButtonEvent.js +896 -896
  28. package/packages/super-page/src/util/api.js +37 -37
  29. package/packages/super-page/src/util/callEvents.js +62 -62
  30. package/packages/super-page/src/util/chartButtonEvent.js +60 -60
  31. package/packages/super-page/src/util/common-util.js +102 -102
  32. package/packages/super-page/src/util/commonButtonEvent.js +70 -70
  33. package/packages/super-page/src/util/formButtonEvent.js +509 -509
  34. package/packages/super-page/src/util/store.js +3 -3
  35. package/packages/super-page/src/util/super-page.js +29 -29
  36. package/packages/super-page/src/util/util.js +1 -1
  37. package/packages/super-page/src/util/workflowButtonEvent.js +1729 -1729
  38. package/packages/super-page/src/widget-col-page.vue +339 -339
  39. package/packages/super-page/src/widget-page.vue +703 -703
  40. package/packages/super-page/src/widget-sub-tab-pane-page.vue +115 -115
  41. package/packages/super-page/src/widget-tab-pane-page.vue +135 -135
  42. package/packages/super-page/src/workflow-button-group.vue +561 -561
  43. package/packages/super-page-dialog/index.js +9 -9
  44. package/packages/super-page-dialog/src/super-page-dialog.vue +200 -200
  45. package/packages/utils/gogocodeTransfer.js +59 -59
  46. package/src/i18n/langs/cn.js +65 -65
  47. package/src/i18n/langs/en.js +68 -68
  48. package/src/utils/common-util.js +9 -9
  49. package/vite.config.js +36 -36
@@ -1,74 +1,74 @@
1
- <template>
2
- <div
3
- :style="{ marginTop: formButtonPosition === 'topLeft' ? '72px' : '' }"
4
- class="formHead"
5
- >
6
- <div
7
- v-if="formTitle && formTitle !== '' && formTitle !== null"
8
- class="formTitle"
9
- >
10
- {{ formTitle }}
11
- </div>
12
- <span
13
- v-if="formNo"
14
- style="
15
- font-size: 18px;
16
- white-space: nowrap;
17
- display: block;
18
- text-align: right;
19
- "
20
- >{{
21
- formNoLabel && formNoLabel !== null && formNoLabel.trim() !== ''
22
- ? formNoLabel + ':'
23
- : $t('superPage.formNo')
24
- }}{{ formNo }}</span
25
- >
26
- </div>
27
- </template>
28
-
29
- <script>
30
- export default {
31
- name: 'FormHead',
32
- components: {},
33
- props: {
34
- // 表单标题
35
- formTitle: {
36
- type: String,
37
- default: null,
38
- },
39
- // 表单编码规则解析获得的表单编码
40
- formNo: {
41
- type: String,
42
- default: null,
43
- },
44
- formNoLabel: {
45
- type: String,
46
- default: null,
47
- },
48
- formButtonPosition: {
49
- type: String,
50
- default: null,
51
- },
52
- },
53
- }
54
- </script>
55
-
56
- <style lang="scss" scoped>
57
- .formTitle {
58
- color: #333;
59
- padding: 0;
60
- border: 0;
61
- display: block;
62
- margin-left: 40%;
63
- margin-bottom: 20px;
64
- font-weight: 700;
65
- font-size: 24px;
66
- }
67
- .formHead {
68
- color: #333;
69
- padding: 10px;
70
- border: 0;
71
- display: block;
72
- width: 100%;
73
- }
74
- </style>
1
+ <template>
2
+ <div
3
+ :style="{ marginTop: formButtonPosition === 'topLeft' ? '72px' : '' }"
4
+ class="formHead"
5
+ >
6
+ <div
7
+ v-if="formTitle && formTitle !== '' && formTitle !== null"
8
+ class="formTitle"
9
+ >
10
+ {{ formTitle }}
11
+ </div>
12
+ <span
13
+ v-if="formNo"
14
+ style="
15
+ font-size: 18px;
16
+ white-space: nowrap;
17
+ display: block;
18
+ text-align: right;
19
+ "
20
+ >{{
21
+ formNoLabel && formNoLabel !== null && formNoLabel.trim() !== ''
22
+ ? formNoLabel + ':'
23
+ : $t('superPage.formNo')
24
+ }}{{ formNo }}</span
25
+ >
26
+ </div>
27
+ </template>
28
+
29
+ <script>
30
+ export default {
31
+ name: 'FormHead',
32
+ components: {},
33
+ props: {
34
+ // 表单标题
35
+ formTitle: {
36
+ type: String,
37
+ default: null,
38
+ },
39
+ // 表单编码规则解析获得的表单编码
40
+ formNo: {
41
+ type: String,
42
+ default: null,
43
+ },
44
+ formNoLabel: {
45
+ type: String,
46
+ default: null,
47
+ },
48
+ formButtonPosition: {
49
+ type: String,
50
+ default: null,
51
+ },
52
+ },
53
+ }
54
+ </script>
55
+
56
+ <style lang="scss" scoped>
57
+ .formTitle {
58
+ color: #333;
59
+ padding: 0;
60
+ border: 0;
61
+ display: block;
62
+ margin-left: 40%;
63
+ margin-bottom: 20px;
64
+ font-weight: 700;
65
+ font-size: 24px;
66
+ }
67
+ .formHead {
68
+ color: #333;
69
+ padding: 10px;
70
+ border: 0;
71
+ display: block;
72
+ width: 100%;
73
+ }
74
+ </style>
@@ -1,107 +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 { $on, $off, $once, $emit } from '../../utils/gogocodeTransfer'
27
- import CommonFormPage from './common-form-page'
28
- import WorkflowFormPage from './workflow-form-page'
29
- export default {
30
- name: 'FormPage',
31
- components: {
32
- CommonFormPage,
33
- WorkflowFormPage,
34
- },
35
- props: {
36
- colSetting: {
37
- type: Object,
38
- default: null,
39
- },
40
- // 表单页面修改记录时记录id
41
- dataId: {
42
- type: Number,
43
- default: null,
44
- },
45
- // 流程表单页面办理任务时任务id
46
- taskId: {
47
- type: Number,
48
- default: null,
49
- },
50
- // 页面编码
51
- pageCode: {
52
- type: String,
53
- default: null,
54
- },
55
- // 页签编码
56
- tabCode: {
57
- type: String,
58
- default: null,
59
- },
60
- },
61
- data() {
62
- return {
63
- isWorkflowForm: false, // 是否是流程表单
64
- emailTemplateCode: '', // 流程办理发送邮件对应的模板
65
- }
66
- },
67
- created() {
68
- this.getProcessInfo()
69
- },
70
- methods: {
71
- updateSetValues(soureModel, sourceTableName, targetRowIndex) {
72
- $emit(this, 'update-value', soureModel, sourceTableName, targetRowIndex)
73
- },
74
- fnProhibitToEdit(entity) {
75
- if (this.isWorkflowForm) {
76
- console.log('this.$refs.formPage', this.$refs.workflowFormPage)
77
- if (this.$refs.workflowFormPage) {
78
- return this.$refs.workflowFormPage.fnProhibitToEdit(entity)
79
- }
80
- } else {
81
- console.log('this.$refs.formPage', this.$refs.formPage)
82
- if (this.$refs.formPage) {
83
- return this.$refs.formPage.fnProhibitToEdit(entity)
84
- }
85
- }
86
- },
87
- // 获得“工作流程按钮组”对应的流程编码
88
- getProcessInfo() {
89
- const buttonGroups = this.colSetting.options.buttonGroup
90
- if (buttonGroups && buttonGroups.length > 0) {
91
- for (let i = 0; i < buttonGroups.length; i++) {
92
- const button = buttonGroups[i]
93
- if (button.code && button.code === 'workflowButton') {
94
- // 流程按钮组
95
- // 获得流程办理发送邮件对应的模板
96
- this.emailTemplateCode = button.emailTemplateCode
97
- this.isWorkflowForm = true
98
- return
99
- }
100
- }
101
- }
102
- this.isWorkflowForm = false
103
- },
104
- },
105
- emits: ['update-value'],
106
- }
107
- </script>
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 { $on, $off, $once, $emit } from '../../utils/gogocodeTransfer'
27
+ import CommonFormPage from './common-form-page'
28
+ import WorkflowFormPage from './workflow-form-page'
29
+ export default {
30
+ name: 'FormPage',
31
+ components: {
32
+ CommonFormPage,
33
+ WorkflowFormPage,
34
+ },
35
+ props: {
36
+ colSetting: {
37
+ type: Object,
38
+ default: null,
39
+ },
40
+ // 表单页面修改记录时记录id
41
+ dataId: {
42
+ type: Number,
43
+ default: null,
44
+ },
45
+ // 流程表单页面办理任务时任务id
46
+ taskId: {
47
+ type: Number,
48
+ default: null,
49
+ },
50
+ // 页面编码
51
+ pageCode: {
52
+ type: String,
53
+ default: null,
54
+ },
55
+ // 页签编码
56
+ tabCode: {
57
+ type: String,
58
+ default: null,
59
+ },
60
+ },
61
+ data() {
62
+ return {
63
+ isWorkflowForm: false, // 是否是流程表单
64
+ emailTemplateCode: '', // 流程办理发送邮件对应的模板
65
+ }
66
+ },
67
+ created() {
68
+ this.getProcessInfo()
69
+ },
70
+ methods: {
71
+ updateSetValues(soureModel, sourceTableName, targetRowIndex) {
72
+ $emit(this, 'update-value', soureModel, sourceTableName, targetRowIndex)
73
+ },
74
+ fnProhibitToEdit(entity) {
75
+ if (this.isWorkflowForm) {
76
+ console.log('this.$refs.formPage', this.$refs.workflowFormPage)
77
+ if (this.$refs.workflowFormPage) {
78
+ return this.$refs.workflowFormPage.fnProhibitToEdit(entity)
79
+ }
80
+ } else {
81
+ console.log('this.$refs.formPage', this.$refs.formPage)
82
+ if (this.$refs.formPage) {
83
+ return this.$refs.formPage.fnProhibitToEdit(entity)
84
+ }
85
+ }
86
+ },
87
+ // 获得“工作流程按钮组”对应的流程编码
88
+ getProcessInfo() {
89
+ const buttonGroups = this.colSetting.options.buttonGroup
90
+ if (buttonGroups && buttonGroups.length > 0) {
91
+ for (let i = 0; i < buttonGroups.length; i++) {
92
+ const button = buttonGroups[i]
93
+ if (button.code && button.code === 'workflowButton') {
94
+ // 流程按钮组
95
+ // 获得流程办理发送邮件对应的模板
96
+ this.emailTemplateCode = button.emailTemplateCode
97
+ this.isWorkflowForm = true
98
+ return
99
+ }
100
+ }
101
+ }
102
+ this.isWorkflowForm = false
103
+ },
104
+ },
105
+ emits: ['update-value'],
106
+ }
107
+ </script>
@@ -1,21 +1,21 @@
1
- <template>
2
- <div>
3
- <el-menu default-active="1" class="el-menu-group" mode="horizontal">
4
- <el-menu-item index="1">
5
- {{ label }}
6
- </el-menu-item>
7
- </el-menu>
8
- </div>
9
- </template>
10
-
11
- <script>
12
- export default {
13
- name: 'GroupTag',
14
- props: {
15
- label: {
16
- type: String,
17
- default: null,
18
- },
19
- },
20
- }
21
- </script>
1
+ <template>
2
+ <div>
3
+ <el-menu default-active="1" class="el-menu-group" mode="horizontal">
4
+ <el-menu-item index="1">
5
+ {{ label }}
6
+ </el-menu-item>
7
+ </el-menu>
8
+ </div>
9
+ </template>
10
+
11
+ <script>
12
+ export default {
13
+ name: 'GroupTag',
14
+ props: {
15
+ label: {
16
+ type: String,
17
+ default: null,
18
+ },
19
+ },
20
+ }
21
+ </script>
@@ -1,89 +1,89 @@
1
- <template>
2
- <span>
3
- <dynamic-source-select
4
- v-model:value="selectValue"
5
- :base-props="{
6
- multiple: toolbar.controlType === 'multiselect' ? true : false,
7
- disabled: false,
8
- }"
9
- :analysis-area="1"
10
- :entity="modelObj"
11
- :full-width="false"
12
- :clearable="false"
13
- :size="toolbar.size ? toolbar.size : 'small'"
14
- :options="{
15
- dynamicDataSourceCode: dynamicDataSourceCode,
16
- valueSetOptions: valueSetOptions,
17
- isSql: true,
18
- }"
19
- :is-join-table="false"
20
- @load-completed="loadCompleted"
21
- @change="multiselectChange"
22
- @set-value="setDynamicSourceSelectValue"
23
- />
24
- </span>
25
- </template>
26
-
27
- <script>
28
- import { $on, $off, $once, $emit } from '../../utils/gogocodeTransfer'
29
- export default {
30
- name: 'ListToolbarDynamicSource',
31
- components: {},
32
- props: {
33
- modelObj: {
34
- type: Object,
35
- default: null,
36
- },
37
- toolbar: {
38
- type: Object,
39
- default: null,
40
- },
41
- },
42
- data() {
43
- return {
44
- dynamicDataSourceCode: null,
45
- valueSetOptions: [],
46
- dymLoadCompleted: false,
47
- selectValue: null,
48
- }
49
- },
50
- created() {
51
- this.dynamicDataSourceCode = this.toolbar.dynamicDataSourceCode
52
- this.valueSetOptions = this.toolbar.valueSetOptions
53
- },
54
- mounted() {},
55
- beforeUnmount() {},
56
- methods: {
57
- multiselectChange() {
58
- $emit(this, 'search-grid-data', this.toolbar.controlType)
59
- },
60
- setDynamicSourceSelectValue(selectValue) {
61
- this.valueSetOptions.forEach((element) => {
62
- this.modelObj[element.valueField] =
63
- selectValue.selectedItem[element.columnName]
64
- })
65
- console.log(this.modelObj, '------------')
66
- },
67
- loadCompleted(dynamicDataSourceDto) {
68
- if (
69
- dynamicDataSourceDto.defaultSelect &&
70
- dynamicDataSourceDto.options &&
71
- dynamicDataSourceDto.options.length > 0
72
- ) {
73
- this.setDynamicSourceSelectValue({
74
- selectedItem: dynamicDataSourceDto.options[0],
75
- })
76
- // this.modelObj[this.toolbar.propDbName] = dynamicDataSourceDto.options[0][dynamicDataSourceDto.valueAttribute]
77
- this.selectValue =
78
- dynamicDataSourceDto.options[0][dynamicDataSourceDto.valueAttribute]
79
- $emit(this, 'dynamic-source-onload', dynamicDataSourceDto, this.toolbar)
80
- } else {
81
- this.modelObj[this.toolbar.propDbName] = null
82
- $emit(this, 'dynamic-source-onload', dynamicDataSourceDto, this.toolbar)
83
- }
84
- this.dymLoadCompleted = true
85
- },
86
- },
87
- emits: ['search-grid-data', 'dynamic-source-onload'],
88
- }
89
- </script>
1
+ <template>
2
+ <span>
3
+ <dynamic-source-select
4
+ v-model:value="selectValue"
5
+ :base-props="{
6
+ multiple: toolbar.controlType === 'multiselect' ? true : false,
7
+ disabled: false,
8
+ }"
9
+ :analysis-area="1"
10
+ :entity="modelObj"
11
+ :full-width="false"
12
+ :clearable="false"
13
+ :size="toolbar.size ? toolbar.size : 'small'"
14
+ :options="{
15
+ dynamicDataSourceCode: dynamicDataSourceCode,
16
+ valueSetOptions: valueSetOptions,
17
+ isSql: true,
18
+ }"
19
+ :is-join-table="false"
20
+ @load-completed="loadCompleted"
21
+ @change="multiselectChange"
22
+ @set-value="setDynamicSourceSelectValue"
23
+ />
24
+ </span>
25
+ </template>
26
+
27
+ <script>
28
+ import { $on, $off, $once, $emit } from '../../utils/gogocodeTransfer'
29
+ export default {
30
+ name: 'ListToolbarDynamicSource',
31
+ components: {},
32
+ props: {
33
+ modelObj: {
34
+ type: Object,
35
+ default: null,
36
+ },
37
+ toolbar: {
38
+ type: Object,
39
+ default: null,
40
+ },
41
+ },
42
+ data() {
43
+ return {
44
+ dynamicDataSourceCode: null,
45
+ valueSetOptions: [],
46
+ dymLoadCompleted: false,
47
+ selectValue: null,
48
+ }
49
+ },
50
+ created() {
51
+ this.dynamicDataSourceCode = this.toolbar.dynamicDataSourceCode
52
+ this.valueSetOptions = this.toolbar.valueSetOptions
53
+ },
54
+ mounted() {},
55
+ beforeUnmount() {},
56
+ methods: {
57
+ multiselectChange() {
58
+ $emit(this, 'search-grid-data', this.toolbar.controlType)
59
+ },
60
+ setDynamicSourceSelectValue(selectValue) {
61
+ this.valueSetOptions.forEach((element) => {
62
+ this.modelObj[element.valueField] =
63
+ selectValue.selectedItem[element.columnName]
64
+ })
65
+ console.log(this.modelObj, '------------')
66
+ },
67
+ loadCompleted(dynamicDataSourceDto) {
68
+ if (
69
+ dynamicDataSourceDto.defaultSelect &&
70
+ dynamicDataSourceDto.options &&
71
+ dynamicDataSourceDto.options.length > 0
72
+ ) {
73
+ this.setDynamicSourceSelectValue({
74
+ selectedItem: dynamicDataSourceDto.options[0],
75
+ })
76
+ // this.modelObj[this.toolbar.propDbName] = dynamicDataSourceDto.options[0][dynamicDataSourceDto.valueAttribute]
77
+ this.selectValue =
78
+ dynamicDataSourceDto.options[0][dynamicDataSourceDto.valueAttribute]
79
+ $emit(this, 'dynamic-source-onload', dynamicDataSourceDto, this.toolbar)
80
+ } else {
81
+ this.modelObj[this.toolbar.propDbName] = null
82
+ $emit(this, 'dynamic-source-onload', dynamicDataSourceDto, this.toolbar)
83
+ }
84
+ this.dymLoadCompleted = true
85
+ },
86
+ },
87
+ emits: ['search-grid-data', 'dynamic-source-onload'],
88
+ }
89
+ </script>