super-pages 0.0.18-up → 0.0.21-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 (38) 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 +2164 -2056
  5. package/lib/super-pages.umd.cjs +5 -5
  6. package/package.json +2 -2
  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 +2 -1
  10. package/packages/super-page/src/common-form-page.vue +2 -1
  11. package/packages/super-page/src/export-form-report-dialog.vue +15 -17
  12. package/packages/super-page/src/form-head.vue +74 -74
  13. package/packages/super-page/src/group-tag.vue +21 -21
  14. package/packages/super-page/src/list-page.vue +2 -1
  15. package/packages/super-page/src/list-toolbar-dynamic-source.vue +89 -89
  16. package/packages/super-page/src/list-toolbar-page.vue +377 -377
  17. package/packages/super-page/src/my-button-base.vue +7 -2
  18. package/packages/super-page/src/my-button.vue +3 -1
  19. package/packages/super-page/src/remove-signer-dialog.vue +103 -103
  20. package/packages/super-page/src/sub-tab-page.vue +79 -79
  21. package/packages/super-page/src/task-informition-dialog.vue +82 -82
  22. package/packages/super-page/src/util/api.js +37 -37
  23. package/packages/super-page/src/util/callEvents.js +62 -62
  24. package/packages/super-page/src/util/common-util.js +5 -10
  25. package/packages/super-page/src/util/commonButtonEvent.js +70 -70
  26. package/packages/super-page/src/util/store.js +3 -3
  27. package/packages/super-page/src/util/super-page.js +29 -29
  28. package/packages/super-page/src/util/util.js +95 -36
  29. package/packages/super-page/src/util/workflowButtonEvent.js +16 -0
  30. package/packages/super-page/src/widget-col-page.vue +8 -3
  31. package/packages/super-page/src/widget-sub-tab-pane-page.vue +115 -115
  32. package/packages/super-page/src/widget-tab-pane-page.vue +135 -135
  33. package/packages/super-page/src/workflow-button-group.vue +15 -8
  34. package/packages/super-page/src/workflow-form-page.vue +15 -7
  35. package/packages/super-page-dialog/index.js +9 -9
  36. package/packages/utils/gogocodeTransfer.js +59 -59
  37. package/src/utils/common-util.js +9 -9
  38. package/vite.config.js +36 -36
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "super-pages",
3
3
  "private": false,
4
- "version": "0.0.18-up",
4
+ "version": "0.0.21-up",
5
5
  "type": "module",
6
6
  "main": "./lib/super-pages.js",
7
7
  "scripts": {
@@ -14,7 +14,7 @@
14
14
  "@vitejs/plugin-vue": "^4.2.3",
15
15
  "axios": "^1.6.1",
16
16
  "element-plus": "^2.4.1",
17
- "imatrix-ui": "0.2.7-up",
17
+ "imatrix-ui": "0.2.29-up",
18
18
  "sass": "^1.69.4",
19
19
  "super-charts-new": "0.0.2-up",
20
20
  "super-form-editor": "0.0.5-up",
package/packages/index.js CHANGED
@@ -1,30 +1,30 @@
1
- // 本文件用来整合所有的组件,对外导出,形成一个完整的组件库
2
- import SuperPage from './super-page'
3
- import SuperPageDialog from './super-page-dialog'
4
- // 后续可以import其他的组件
5
-
6
- // 存储组件列表
7
- const components = [SuperPage, SuperPageDialog]
8
-
9
- // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
10
- const install = function (Vue) {
11
- // 判断是否安装
12
- if (install.installed) return
13
- // 遍历注册全局组件
14
- // components.map(component => Vue.component(component.name, component))
15
- components.forEach((component) => {
16
- window.$vueApp.component(component.name, component)
17
- })
18
- }
19
-
20
- // 判断是否是直接引入文件
21
- if (typeof window !== 'undefined' && window.Vue) {
22
- install(window.Vue)
23
- }
24
-
25
- export default {
26
- // 导出的对象必须具有 install,才能被 Vue.use() 方法安装
27
- install,
28
- SuperPage,
29
- SuperPageDialog,
30
- }
1
+ // 本文件用来整合所有的组件,对外导出,形成一个完整的组件库
2
+ import SuperPage from './super-page'
3
+ import SuperPageDialog from './super-page-dialog'
4
+ // 后续可以import其他的组件
5
+
6
+ // 存储组件列表
7
+ const components = [SuperPage, SuperPageDialog]
8
+
9
+ // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
10
+ const install = function (Vue) {
11
+ // 判断是否安装
12
+ if (install.installed) return
13
+ // 遍历注册全局组件
14
+ // components.map(component => Vue.component(component.name, component))
15
+ components.forEach((component) => {
16
+ window.$vueApp.component(component.name, component)
17
+ })
18
+ }
19
+
20
+ // 判断是否是直接引入文件
21
+ if (typeof window !== 'undefined' && window.Vue) {
22
+ install(window.Vue)
23
+ }
24
+
25
+ export default {
26
+ // 导出的对象必须具有 install,才能被 Vue.use() 方法安装
27
+ install,
28
+ SuperPage,
29
+ SuperPageDialog,
30
+ }
@@ -1,9 +1,9 @@
1
- // 本文件用来导出单个组件
2
- import SuperPage from './src/super-page.vue'
3
-
4
- // 每个组件都提供了install方法,这样就可以按需引入单个组件
5
- SuperPage.install = function (Vue) {
6
- window.$vueApp.component(SuperPage.name, SuperPage)
7
- }
8
-
9
- export default SuperPage
1
+ // 本文件用来导出单个组件
2
+ import SuperPage from './src/super-page.vue'
3
+
4
+ // 每个组件都提供了install方法,这样就可以按需引入单个组件
5
+ SuperPage.install = function (Vue) {
6
+ window.$vueApp.component(SuperPage.name, SuperPage)
7
+ }
8
+
9
+ export default SuperPage
@@ -75,6 +75,7 @@
75
75
  @workflowClick="workflowButtonClick"
76
76
  @prohibi-edit="fnProhibitToEdit"
77
77
  @refreshFrom="refreshFrom"
78
+ @getPageParam="getPageParam"
78
79
  />
79
80
  </template>
80
81
  </span>
@@ -289,6 +290,6 @@ export default {
289
290
  : 'form-bottom-button'
290
291
  },
291
292
  },
292
- emits: ['searchGridData', 'getSystemRef', 'prohibi-edit','click'],
293
+ emits: ['searchGridData', 'getSystemRef', 'prohibi-edit','click', 'workflowClick', 'getPageParam'],
293
294
  }
294
295
  </script>
@@ -498,7 +498,8 @@ export default {
498
498
  systemCode: this.system.code,
499
499
  functionCode: this.permissionPrefix + '.get',
500
500
  }
501
- if (!param.id && sessionStorage.getItem(this.$route.query._t_) && sessionStorage.getItem(this.$route.query._t_ + '_id')) {
501
+ if (!param.id &&
502
+ this.$route.query._t_ && sessionStorage.getItem(this.$route.query._t_ + '_id')) {
502
503
  param.id = sessionStorage.getItem(this.$route.query._t_ + '_id')
503
504
  }
504
505
  if (this.ids) {
@@ -12,7 +12,7 @@
12
12
  prop="templateShowPath"
13
13
  >
14
14
  <template v-slot="scope">
15
- {{ formatTemplateShowPath(scope.row.templateShowPath) }}
15
+ {{ scope.row.templateShowPath }}
16
16
  </template>
17
17
  </el-table-column>
18
18
  <el-table-column
@@ -55,23 +55,26 @@ export default {
55
55
  },
56
56
  },
57
57
  data() {
58
- let templateFiles = []
59
- if (this.button.templateFiles && this.button.templateFiles.length > 0) {
60
- templateFiles = packageTemplateFiles(this.button.templateFiles)
61
- } else if (this.button.templateUUID && this.button.templateShowPath) {
62
- templateFiles.push({
63
- templateUUID: this.button.templateUUID,
64
- templateShowPath: this.button.templateShowPath,
65
- })
66
- }
67
58
  return {
68
- templateFiles,
59
+ templateFiles: [],
69
60
  fields: [],
70
61
  prefix: '${',
71
62
  suffix: '}',
72
63
  }
73
64
  },
74
- created() {},
65
+ created () { },
66
+ mounted () {
67
+ if (this.button.templateFiles && this.button.templateFiles.length > 0) {
68
+ this.templateFiles = packageTemplateFiles(this.button.templateFiles)
69
+ } else if (this.button.templateUUID && this.button.templateShowPath) {
70
+ this.templateFiles.push({ templateUUID: this.button.templateUUID, templateShowPath: this.button.templateShowPath })
71
+ }
72
+ this.templateFiles.forEach((item) => {
73
+ if (item && item.templateShowPath) {
74
+ item.templateShowPath = this.formatTemplateShowPath(item.templateShowPath)
75
+ }
76
+ })
77
+ },
75
78
  methods: {
76
79
  getFileds(templateShowPath) {
77
80
  console.log('templateShowPath', templateShowPath)
@@ -126,11 +129,6 @@ export default {
126
129
  return templateShowPath
127
130
  },
128
131
  exportForm(row) {
129
- if (row['templateShowPath']) {
130
- row['templateShowPath'] = this.formatTemplateShowPath(
131
- row['templateShowPath']
132
- )
133
- }
134
132
  $emit(this, 'before-export-form-report', row)
135
133
  },
136
134
  previewExportForm(row) {
@@ -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,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>
@@ -454,7 +454,8 @@ export default {
454
454
  if (that.$refs.grid) {
455
455
  that.$refs.grid.closePageDialog({
456
456
  entity: popEntity,
457
- pageCode: popPageCode,
457
+ pageCode: popPageCode,
458
+ jumpInfo: jumpInfo
458
459
  })
459
460
  }
460
461
  }
@@ -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>