super-pages 0.0.15-up → 0.0.17-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 (52) 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 +2603 -2569
  5. package/lib/super-pages.umd.cjs +14 -14
  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/common-form-page.vue +5 -1
  13. package/packages/super-page/src/export-form-report-dialog.vue +145 -145
  14. package/packages/super-page/src/form-head.vue +74 -74
  15. package/packages/super-page/src/form-page.vue +107 -107
  16. package/packages/super-page/src/group-tag.vue +21 -21
  17. package/packages/super-page/src/list-page.vue +4 -2
  18. package/packages/super-page/src/list-toolbar-dynamic-source.vue +89 -89
  19. package/packages/super-page/src/list-toolbar-page.vue +377 -377
  20. package/packages/super-page/src/my-button-base.vue +438 -438
  21. package/packages/super-page/src/my-button.vue +196 -196
  22. package/packages/super-page/src/page-custom-component.vue +56 -56
  23. package/packages/super-page/src/remove-signer-dialog.vue +103 -103
  24. package/packages/super-page/src/sub-tab-page.vue +79 -79
  25. package/packages/super-page/src/super-page-component.vue +86 -86
  26. package/packages/super-page/src/super-page.vue +162 -162
  27. package/packages/super-page/src/tab-page.vue +154 -154
  28. package/packages/super-page/src/task-informition-dialog.vue +82 -82
  29. package/packages/super-page/src/util/ListButtonEvent.js +896 -896
  30. package/packages/super-page/src/util/api.js +37 -37
  31. package/packages/super-page/src/util/callEvents.js +62 -62
  32. package/packages/super-page/src/util/chartButtonEvent.js +60 -60
  33. package/packages/super-page/src/util/common-util.js +102 -102
  34. package/packages/super-page/src/util/commonButtonEvent.js +70 -70
  35. package/packages/super-page/src/util/formButtonEvent.js +509 -509
  36. package/packages/super-page/src/util/store.js +3 -3
  37. package/packages/super-page/src/util/super-page.js +29 -29
  38. package/packages/super-page/src/util/util.js +46 -10
  39. package/packages/super-page/src/util/workflowButtonEvent.js +1729 -1729
  40. package/packages/super-page/src/widget-col-page.vue +339 -339
  41. package/packages/super-page/src/widget-page.vue +703 -703
  42. package/packages/super-page/src/widget-sub-tab-pane-page.vue +115 -115
  43. package/packages/super-page/src/widget-tab-pane-page.vue +135 -135
  44. package/packages/super-page/src/workflow-button-group.vue +561 -561
  45. package/packages/super-page/src/workflow-form-page.vue +5 -2
  46. package/packages/super-page-dialog/index.js +9 -9
  47. package/packages/super-page-dialog/src/super-page-dialog.vue +200 -200
  48. package/packages/utils/gogocodeTransfer.js +59 -59
  49. package/src/i18n/langs/cn.js +65 -65
  50. package/src/i18n/langs/en.js +68 -68
  51. package/src/utils/common-util.js +9 -9
  52. package/vite.config.js +36 -36
@@ -1,196 +1,196 @@
1
- <template>
2
- <span v-if="isVisible">
3
- <workflow-button-group
4
- v-if="button.code === 'workflowButton'"
5
- ref="workflowButtonGroup"
6
- :permission-prefix="permissionPrefix"
7
- :workflow-button-component="workflowButtonComponent"
8
- :is-task-input="isTaskInput"
9
- :table-name="tableName"
10
- :button="button"
11
- :button-groups="buttonGroups"
12
- :page-code="pageCode"
13
- :work-name-color="workNameColor"
14
- :get-form-data="getFormData"
15
- :my-form-data-fun="formDataFun"
16
- :form-button-position="formButtonPosition"
17
- @refresh="refreshEmit"
18
- @click="commonButtonClick"
19
- @workflowClick="workflowButtonClick"
20
- @prohibi-edit="fnProhibitToEdit"
21
- @refreshFrom="refreshFrom"
22
- />
23
- <my-button-base
24
- v-else
25
- :search-form-info="searchFormInfo"
26
- :button="button"
27
- :permission-prefix="permissionPrefix"
28
- :disabled="disabled"
29
- :position="position"
30
- :table-name="tableName"
31
- :page-code="pageCode"
32
- :get-form-data="getFormData"
33
- :selections="selections"
34
- :my-form-data-fun="formDataFun"
35
- :get-system-ref="getSystemRef"
36
- is-visible="true"
37
- :button-groups="buttonGroups"
38
- @refresh="refreshEmit"
39
- @click="commonButtonClick"
40
- @workflowClick="workflowButtonClick"
41
- @prohibi-edit="fnProhibitToEdit"
42
- @refreshFrom="refreshFrom"
43
- />
44
- </span>
45
- </template>
46
-
47
- <script>
48
- import { $on, $off, $once, $emit } from '../../utils/gogocodeTransfer'
49
- import Util from './util/util'
50
- import myButtonBase from './my-button-base'
51
- import workflowButtonGroup from './workflow-button-group'
52
- import { getStoreInfo } from './util/common-util'
53
- export default {
54
- name: 'MyButton',
55
- components: {
56
- myButtonBase,
57
- workflowButtonGroup,
58
- },
59
- props: {
60
- button: {
61
- type: Object,
62
- default: null,
63
- },
64
- // 资源编码前缀,例如:系统编码.页面编码.列表组件编码 或 系统编码.页面编码.表单组件编码 或 系统编码.页面编码.按钮组组件编码
65
- permissionPrefix: {
66
- type: String,
67
- default: null,
68
- },
69
- // 流程按钮组信息
70
- workflowButtonComponent: {
71
- type: Object,
72
- default: null,
73
- },
74
- // 按钮所在位置,list列表或form表单内
75
- position: {
76
- type: String,
77
- default: null,
78
- },
79
- // 是否在任务办理页面(待办事宜中打开的),控制返回、关闭按钮
80
- isTaskInput: {
81
- type: Boolean,
82
- default: false,
83
- },
84
- // 数据表名称
85
- tableName: {
86
- type: String,
87
- default: null,
88
- },
89
- // 流程表单页面才需要传该设置
90
- buttonGroups: {
91
- type: Array,
92
- default: null,
93
- },
94
- // 列表行编辑时编辑的记录下标,行编辑按钮使用
95
- rowIndex: {
96
- type: Number,
97
- default: null,
98
- },
99
- // 页面编码
100
- pageCode: {
101
- type: String,
102
- default: null,
103
- },
104
- // 获取页面数据的方法
105
- getFormData: {
106
- type: Function,
107
- default: null,
108
- },
109
- // 列表选中的记录集合
110
- selections: {
111
- type: Array,
112
- default: null,
113
- },
114
- // 表单对象方法
115
- formDataFun: {
116
- type: Function,
117
- default: function () {},
118
- },
119
- // 列表刷新方法
120
- getSystemRef: {
121
- type: Function,
122
- default: function () {},
123
- },
124
- searchFormInfo: {
125
- type: Object,
126
- default: () => {
127
- return { data: {} }
128
- },
129
- },
130
- formButtonPosition: {
131
- type: String,
132
- default: null,
133
- },
134
- disabled: {
135
- type: Boolean,
136
- default: false,
137
- },
138
- workNameColor: {
139
- type: String,
140
- },
141
- },
142
- data() {
143
- let permission = this.permissionPrefix + '.' + this.button.code
144
- const isDevMode = getStoreInfo(this.pageCode, '_pageDevMode')
145
-
146
- const isPreview = getStoreInfo(this.pageCode, '_pagePreview')
147
- if (
148
- (isDevMode && isDevMode === true) ||
149
- (isPreview && isPreview === true)
150
- ) {
151
- // 开发模式 或 预览时按钮不受控制
152
- permission = 'true'
153
- }
154
- const displayConditions = this.button.buttonDisplayConditionsList
155
- let isVisible = false
156
- if (!displayConditions || displayConditions === 0) {
157
- // 如果没有配置按钮显示条件,则默认为显示
158
- isVisible = true
159
- }
160
- const isView = this.isViewDetail(this.position)
161
- return {
162
- permission, // 按钮的资源编码
163
- isVisible, // 是否显示按钮
164
- displayConditions, // 按钮显示条件
165
- isPreview, // 预览时导入按钮不操作
166
- isView, // 是否是查看页面
167
- additionalParamMap: null, // 跳转页面的附加参数
168
- }
169
- },
170
- created() {
171
- const additionalParamMap = getStoreInfo(this.pageCode, 'additionalParamMap')
172
- if (additionalParamMap) {
173
- this.additionalParamMap = additionalParamMap
174
- }
175
- // 解析按钮是否显示
176
- if (!this.displayConditions || this.displayConditions.length === 0) {
177
- this.isVisible = true
178
- } else if (this.position === 'form' || this.position === 'workflowForm') {
179
- this.isButtonVisible(
180
- this.displayConditions,
181
- this.tableName,
182
- this.additionalParamMap
183
- ).then((result) => {
184
- this.isVisible = result
185
- })
186
- }
187
- },
188
- methods: {
189
- ...Util,
190
- fnProhibitToEdit(data) {
191
- $emit(this, 'prohibi-edit', data)
192
- },
193
- },
194
- emits: ['prohibi-edit'],
195
- }
196
- </script>
1
+ <template>
2
+ <span v-if="isVisible">
3
+ <workflow-button-group
4
+ v-if="button.code === 'workflowButton'"
5
+ ref="workflowButtonGroup"
6
+ :permission-prefix="permissionPrefix"
7
+ :workflow-button-component="workflowButtonComponent"
8
+ :is-task-input="isTaskInput"
9
+ :table-name="tableName"
10
+ :button="button"
11
+ :button-groups="buttonGroups"
12
+ :page-code="pageCode"
13
+ :work-name-color="workNameColor"
14
+ :get-form-data="getFormData"
15
+ :my-form-data-fun="formDataFun"
16
+ :form-button-position="formButtonPosition"
17
+ @refresh="refreshEmit"
18
+ @click="commonButtonClick"
19
+ @workflowClick="workflowButtonClick"
20
+ @prohibi-edit="fnProhibitToEdit"
21
+ @refreshFrom="refreshFrom"
22
+ />
23
+ <my-button-base
24
+ v-else
25
+ :search-form-info="searchFormInfo"
26
+ :button="button"
27
+ :permission-prefix="permissionPrefix"
28
+ :disabled="disabled"
29
+ :position="position"
30
+ :table-name="tableName"
31
+ :page-code="pageCode"
32
+ :get-form-data="getFormData"
33
+ :selections="selections"
34
+ :my-form-data-fun="formDataFun"
35
+ :get-system-ref="getSystemRef"
36
+ is-visible="true"
37
+ :button-groups="buttonGroups"
38
+ @refresh="refreshEmit"
39
+ @click="commonButtonClick"
40
+ @workflowClick="workflowButtonClick"
41
+ @prohibi-edit="fnProhibitToEdit"
42
+ @refreshFrom="refreshFrom"
43
+ />
44
+ </span>
45
+ </template>
46
+
47
+ <script>
48
+ import { $on, $off, $once, $emit } from '../../utils/gogocodeTransfer'
49
+ import Util from './util/util'
50
+ import myButtonBase from './my-button-base'
51
+ import workflowButtonGroup from './workflow-button-group'
52
+ import { getStoreInfo } from './util/common-util'
53
+ export default {
54
+ name: 'MyButton',
55
+ components: {
56
+ myButtonBase,
57
+ workflowButtonGroup,
58
+ },
59
+ props: {
60
+ button: {
61
+ type: Object,
62
+ default: null,
63
+ },
64
+ // 资源编码前缀,例如:系统编码.页面编码.列表组件编码 或 系统编码.页面编码.表单组件编码 或 系统编码.页面编码.按钮组组件编码
65
+ permissionPrefix: {
66
+ type: String,
67
+ default: null,
68
+ },
69
+ // 流程按钮组信息
70
+ workflowButtonComponent: {
71
+ type: Object,
72
+ default: null,
73
+ },
74
+ // 按钮所在位置,list列表或form表单内
75
+ position: {
76
+ type: String,
77
+ default: null,
78
+ },
79
+ // 是否在任务办理页面(待办事宜中打开的),控制返回、关闭按钮
80
+ isTaskInput: {
81
+ type: Boolean,
82
+ default: false,
83
+ },
84
+ // 数据表名称
85
+ tableName: {
86
+ type: String,
87
+ default: null,
88
+ },
89
+ // 流程表单页面才需要传该设置
90
+ buttonGroups: {
91
+ type: Array,
92
+ default: null,
93
+ },
94
+ // 列表行编辑时编辑的记录下标,行编辑按钮使用
95
+ rowIndex: {
96
+ type: Number,
97
+ default: null,
98
+ },
99
+ // 页面编码
100
+ pageCode: {
101
+ type: String,
102
+ default: null,
103
+ },
104
+ // 获取页面数据的方法
105
+ getFormData: {
106
+ type: Function,
107
+ default: null,
108
+ },
109
+ // 列表选中的记录集合
110
+ selections: {
111
+ type: Array,
112
+ default: null,
113
+ },
114
+ // 表单对象方法
115
+ formDataFun: {
116
+ type: Function,
117
+ default: function () {},
118
+ },
119
+ // 列表刷新方法
120
+ getSystemRef: {
121
+ type: Function,
122
+ default: function () {},
123
+ },
124
+ searchFormInfo: {
125
+ type: Object,
126
+ default: () => {
127
+ return { data: {} }
128
+ },
129
+ },
130
+ formButtonPosition: {
131
+ type: String,
132
+ default: null,
133
+ },
134
+ disabled: {
135
+ type: Boolean,
136
+ default: false,
137
+ },
138
+ workNameColor: {
139
+ type: String,
140
+ },
141
+ },
142
+ data() {
143
+ let permission = this.permissionPrefix + '.' + this.button.code
144
+ const isDevMode = getStoreInfo(this.pageCode, '_pageDevMode')
145
+
146
+ const isPreview = getStoreInfo(this.pageCode, '_pagePreview')
147
+ if (
148
+ (isDevMode && isDevMode === true) ||
149
+ (isPreview && isPreview === true)
150
+ ) {
151
+ // 开发模式 或 预览时按钮不受控制
152
+ permission = 'true'
153
+ }
154
+ const displayConditions = this.button.buttonDisplayConditionsList
155
+ let isVisible = false
156
+ if (!displayConditions || displayConditions === 0) {
157
+ // 如果没有配置按钮显示条件,则默认为显示
158
+ isVisible = true
159
+ }
160
+ const isView = this.isViewDetail(this.position)
161
+ return {
162
+ permission, // 按钮的资源编码
163
+ isVisible, // 是否显示按钮
164
+ displayConditions, // 按钮显示条件
165
+ isPreview, // 预览时导入按钮不操作
166
+ isView, // 是否是查看页面
167
+ additionalParamMap: null, // 跳转页面的附加参数
168
+ }
169
+ },
170
+ created() {
171
+ const additionalParamMap = getStoreInfo(this.pageCode, 'additionalParamMap')
172
+ if (additionalParamMap) {
173
+ this.additionalParamMap = additionalParamMap
174
+ }
175
+ // 解析按钮是否显示
176
+ if (!this.displayConditions || this.displayConditions.length === 0) {
177
+ this.isVisible = true
178
+ } else if (this.position === 'form' || this.position === 'workflowForm') {
179
+ this.isButtonVisible(
180
+ this.displayConditions,
181
+ this.tableName,
182
+ this.additionalParamMap
183
+ ).then((result) => {
184
+ this.isVisible = result
185
+ })
186
+ }
187
+ },
188
+ methods: {
189
+ ...Util,
190
+ fnProhibitToEdit(data) {
191
+ $emit(this, 'prohibi-edit', data)
192
+ },
193
+ },
194
+ emits: ['prohibi-edit'],
195
+ }
196
+ </script>
@@ -1,56 +1,56 @@
1
- <template>
2
- <span>
3
- <span
4
- v-for="customComponent in buttonAreaCustomComponentArr"
5
- :key="customComponent.code"
6
- >
7
- <component
8
- :is="customComponent.code"
9
- :ref="customComponent.code + '_Component'"
10
- :refresh-list="getSystemRef"
11
- @refresh-tab="refreshTab"
12
- />
13
- </span>
14
- </span>
15
- </template>
16
-
17
- <script>
18
- import { $on, $off, $once, $emit } from '../../utils/gogocodeTransfer'
19
- import { getStoreInfo } from './util/common-util'
20
- import eventBus from './util/util'
21
- export default {
22
- name: 'PageCustomComponent',
23
- components: {},
24
- props: {
25
- // 页面编码
26
- pageCode: {
27
- type: String,
28
- default: null,
29
- },
30
- // 工具栏
31
- buttonAreaCustomComponentArr: {
32
- type: Array,
33
- default: null,
34
- },
35
- },
36
- data() {
37
- return {}
38
- },
39
- created() {},
40
- mounted() {},
41
- beforeUnmount() {},
42
- methods: {
43
- getSystemRef(refKey, operation) {
44
- $emit(this, 'getSystemRef', refKey, operation)
45
- },
46
- // 刷新页签内容:列表数据或表单数据
47
- refreshTab(tabCode, entity) {
48
- if (tabCode === undefined || tabCode === null) {
49
- tabCode = getStoreInfo(this.pageCode, '_activeTab')
50
- }
51
- $emit(eventBus, this.pageCode + '-refresh-tab', tabCode, entity)
52
- },
53
- },
54
- emits: ['getSystemRef'],
55
- }
56
- </script>
1
+ <template>
2
+ <span>
3
+ <span
4
+ v-for="customComponent in buttonAreaCustomComponentArr"
5
+ :key="customComponent.code"
6
+ >
7
+ <component
8
+ :is="customComponent.code"
9
+ :ref="customComponent.code + '_Component'"
10
+ :refresh-list="getSystemRef"
11
+ @refresh-tab="refreshTab"
12
+ />
13
+ </span>
14
+ </span>
15
+ </template>
16
+
17
+ <script>
18
+ import { $on, $off, $once, $emit } from '../../utils/gogocodeTransfer'
19
+ import { getStoreInfo } from './util/common-util'
20
+ import eventBus from './util/util'
21
+ export default {
22
+ name: 'PageCustomComponent',
23
+ components: {},
24
+ props: {
25
+ // 页面编码
26
+ pageCode: {
27
+ type: String,
28
+ default: null,
29
+ },
30
+ // 工具栏
31
+ buttonAreaCustomComponentArr: {
32
+ type: Array,
33
+ default: null,
34
+ },
35
+ },
36
+ data() {
37
+ return {}
38
+ },
39
+ created() {},
40
+ mounted() {},
41
+ beforeUnmount() {},
42
+ methods: {
43
+ getSystemRef(refKey, operation) {
44
+ $emit(this, 'getSystemRef', refKey, operation)
45
+ },
46
+ // 刷新页签内容:列表数据或表单数据
47
+ refreshTab(tabCode, entity) {
48
+ if (tabCode === undefined || tabCode === null) {
49
+ tabCode = getStoreInfo(this.pageCode, '_activeTab')
50
+ }
51
+ $emit(eventBus, this.pageCode + '-refresh-tab', tabCode, entity)
52
+ },
53
+ },
54
+ emits: ['getSystemRef'],
55
+ }
56
+ </script>