super-pages 0.0.22-up → 0.0.23-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 (32) 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 +679 -580
  5. package/lib/super-pages.umd.cjs +12 -6
  6. package/package.json +5 -5
  7. package/packages/index.js +30 -30
  8. package/packages/super-page/index.js +9 -9
  9. package/packages/super-page/src/common-form-page.vue +3 -2
  10. package/packages/super-page/src/form-head.vue +74 -74
  11. package/packages/super-page/src/group-tag.vue +21 -21
  12. package/packages/super-page/src/list-toolbar-dynamic-source.vue +9 -3
  13. package/packages/super-page/src/list-toolbar-page.vue +2 -0
  14. package/packages/super-page/src/my-button-base.vue +3 -2
  15. package/packages/super-page/src/remove-signer-dialog.vue +103 -103
  16. package/packages/super-page/src/sub-tab-page.vue +79 -79
  17. package/packages/super-page/src/task-informition-dialog.vue +82 -82
  18. package/packages/super-page/src/util/ListButtonEvent.js +6 -6
  19. package/packages/super-page/src/util/api.js +37 -37
  20. package/packages/super-page/src/util/callEvents.js +62 -62
  21. package/packages/super-page/src/util/commonButtonEvent.js +70 -70
  22. package/packages/super-page/src/util/formButtonEvent.js +3 -3
  23. package/packages/super-page/src/util/store.js +3 -3
  24. package/packages/super-page/src/util/super-page.js +29 -29
  25. package/packages/super-page/src/util/util.js +6 -6
  26. package/packages/super-page/src/util/workflowButtonEvent.js +2 -2
  27. package/packages/super-page/src/widget-sub-tab-pane-page.vue +115 -115
  28. package/packages/super-page/src/widget-tab-pane-page.vue +135 -135
  29. package/packages/super-page-dialog/index.js +9 -9
  30. package/packages/utils/gogocodeTransfer.js +59 -59
  31. package/src/utils/common-util.js +9 -9
  32. 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.22-up",
4
+ "version": "0.0.23-up",
5
5
  "type": "module",
6
6
  "main": "./lib/super-pages.js",
7
7
  "scripts": {
@@ -14,15 +14,15 @@
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.30-up",
17
+ "imatrix-ui": "0.2.31-up",
18
18
  "sass": "^1.69.4",
19
- "super-charts-new": "0.0.19-up",
20
- "super-form-editor": "0.0.23-up",
19
+ "super-charts-new": "0.0.2-up",
20
+ "super-form-editor": "0.0.5-up",
21
21
  "vite": "^4.4.5",
22
22
  "vue": "^3.3.4",
23
23
  "vue-i18n": "^9.5.0",
24
24
  "vue-router": "^4.2.5",
25
25
  "vuex": "^4.1.0",
26
- "workflow-editor": "0.0.17-up"
26
+ "workflow-editor": "0.0.2-up"
27
27
  }
28
28
  }
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
@@ -80,6 +80,7 @@
80
80
  ref="superForm"
81
81
  :form-view-code="formViewCode"
82
82
  :form-view-version="formViewVersion"
83
+ :path-query="pathQuery"
83
84
  :is-page-info="
84
85
  isPreview ? isPreview : pageDevMode ? pageDevMode : false
85
86
  "
@@ -264,8 +265,8 @@ export default {
264
265
  if (jumpPageSetting && jumpPageSetting !== null) {
265
266
  const that = this
266
267
  eventBus.$on(
267
- jumpPageSetting.pageCode + '-close-dialog',
268
- function ({ pageCode, successOperation, popEntity, popPageCode }) {
268
+ jumpPageSetting.pageCode + '-close-dialog',
269
+ function ({ pageCode, successOperation, popEntity, popPageCode }) {
269
270
  if (pageCode === jumpPageSetting.pageCode) {
270
271
  that.closeInPageEvent(
271
272
  popEntity,
@@ -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>
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <span>
3
3
  <dynamic-source-select
4
- v-model:value="selectValue"
4
+ v-model:value="selectValue"
5
5
  :base-props="{
6
6
  multiple: toolbar.controlType === 'multiselect' ? true : false,
7
7
  disabled: false,
@@ -54,10 +54,16 @@ export default {
54
54
  mounted() {},
55
55
  beforeUnmount() {},
56
56
  methods: {
57
- multiselectChange() {
57
+ multiselectChange (newValue, item) {
58
+ this.valueSetOptions.forEach((element) => {
59
+ this.modelObj[element.valueField] =
60
+ item[element.columnName]
61
+ })
62
+ console.log('multiselectChange',newValue,item)
58
63
  $emit(this, 'search-grid-data', this.toolbar.controlType)
59
64
  },
60
- setDynamicSourceSelectValue(selectValue) {
65
+ setDynamicSourceSelectValue (selectValue) {
66
+ console.log(selectValue, '------------')
61
67
  this.valueSetOptions.forEach((element) => {
62
68
  this.modelObj[element.valueField] =
63
69
  selectValue.selectedItem[element.columnName]
@@ -3,6 +3,8 @@
3
3
  <span
4
4
  v-for="(toolbar, index) in listToolbarList"
5
5
  :key="index"
6
+ :id="'tb-'+toolbar.propDbName"
7
+ :style="{ width:toolbar.width?toolbar.width + 'px':'150px' }"
6
8
  style="display: inline-block; margin-bottom: 10px"
7
9
  >
8
10
  {{ toolbar.label }}
@@ -46,7 +46,7 @@
46
46
  @click="clickMyButton(button)"
47
47
  >
48
48
  <template v-if="faIcon" #icon>
49
- <i :class="icon"></i>
49
+ <i :class="icon"></i>
50
50
  </template>
51
51
  {{ getButtonLabel(button) }}</el-button>
52
52
  </span>
@@ -163,7 +163,8 @@ export default {
163
163
  let permission = 'true'
164
164
  if (
165
165
  this.button.isPermission === undefined ||
166
- this.button.isPermission === 'true'
166
+ this.button.isPermission === 'true' ||
167
+ this.button.isPermission
167
168
  ) {
168
169
  // 表示按钮受权限保护
169
170
  permission = this.permissionPrefix + '.' + this.button.code
@@ -1,103 +1,103 @@
1
- <template>
2
- <div>
3
- <el-dialog
4
- model-value
5
- :title="$t('superPage.selectRemoveUsers')"
6
- :close-on-click-modal="false"
7
- append-to-body
8
- width="30%"
9
- max-height="400"
10
- @open="$emit('open')"
11
- @opend="$emit('opend')"
12
- @close="$emit('close')"
13
- @closed="$emit('closed')"
14
- >
15
- <el-table
16
- :data="canRemoveTasks"
17
- border
18
- style="width: 100%"
19
- @select="select"
20
- >
21
- <el-table-column type="selection" width="55" />
22
- <el-table-column
23
- prop="transactorName"
24
- :label="$t('superPage.transactorName')"
25
- width="180"
26
- />
27
- <el-table-column
28
- prop="transactor"
29
- :label="$t('superPage.transactor')"
30
- width="180"
31
- />
32
- <el-table-column
33
- prop="trustorName"
34
- :label="$t('superPage.trustorName')"
35
- width="180"
36
- />
37
- </el-table>
38
- <template v-slot:footer>
39
- <div class="dialog-footer">
40
- <el-button type="primary" @click="selectRemoveUsers">
41
- {{ $t('superPageMessage.sure') }}
42
- </el-button>
43
- <el-button @click="$emit('close')">
44
- {{ $t('superPageMessage.cancel') }}
45
- </el-button>
46
- </div>
47
- </template>
48
- </el-dialog>
49
- </div>
50
- </template>
51
-
52
- <script>
53
- import { $on, $off, $once, $emit } from '../../utils/gogocodeTransfer'
54
- export default {
55
- name: 'RemoveSignerDialog',
56
- components: {},
57
- props: {
58
- taskId: {
59
- type: Number,
60
- default: null,
61
- },
62
- // 当前环节所有待办任务集合
63
- activeTasks: {
64
- type: Array,
65
- default: null,
66
- },
67
- },
68
- data() {
69
- const canRemoveTasks = this.getCanRemoveTasks()
70
- return {
71
- selections: [],
72
- canRemoveTasks, // 除当前任务外,所有任务都可移除
73
- }
74
- },
75
- methods: {
76
- select(selection) {
77
- this.selections = selection
78
- },
79
- selectRemoveUsers() {
80
- if (this.selections.length === 0) {
81
- this.$message({
82
- showClose: true,
83
- type: 'warning',
84
- message: this.$t('superPageMessage.pleaseSelectRemoverUsers'),
85
- })
86
- return
87
- }
88
- $emit(this, 'result', this.selections)
89
- },
90
- // 获得可减签的任务集合。除当前任务外,所有任务都可移除
91
- getCanRemoveTasks() {
92
- if (this.activeTasks && this.taskId) {
93
- // 过滤掉当前任务
94
- return this.activeTasks.filter((task) =>
95
- this.taskId !== task.id ? task.id : task.ID ? task.ID : null
96
- )
97
- }
98
- return []
99
- },
100
- },
101
- emits: ['open', 'opend', 'close', 'closed', 'result'],
102
- }
103
- </script>
1
+ <template>
2
+ <div>
3
+ <el-dialog
4
+ model-value
5
+ :title="$t('superPage.selectRemoveUsers')"
6
+ :close-on-click-modal="false"
7
+ append-to-body
8
+ width="30%"
9
+ max-height="400"
10
+ @open="$emit('open')"
11
+ @opend="$emit('opend')"
12
+ @close="$emit('close')"
13
+ @closed="$emit('closed')"
14
+ >
15
+ <el-table
16
+ :data="canRemoveTasks"
17
+ border
18
+ style="width: 100%"
19
+ @select="select"
20
+ >
21
+ <el-table-column type="selection" width="55" />
22
+ <el-table-column
23
+ prop="transactorName"
24
+ :label="$t('superPage.transactorName')"
25
+ width="180"
26
+ />
27
+ <el-table-column
28
+ prop="transactor"
29
+ :label="$t('superPage.transactor')"
30
+ width="180"
31
+ />
32
+ <el-table-column
33
+ prop="trustorName"
34
+ :label="$t('superPage.trustorName')"
35
+ width="180"
36
+ />
37
+ </el-table>
38
+ <template v-slot:footer>
39
+ <div class="dialog-footer">
40
+ <el-button type="primary" @click="selectRemoveUsers">
41
+ {{ $t('superPageMessage.sure') }}
42
+ </el-button>
43
+ <el-button @click="$emit('close')">
44
+ {{ $t('superPageMessage.cancel') }}
45
+ </el-button>
46
+ </div>
47
+ </template>
48
+ </el-dialog>
49
+ </div>
50
+ </template>
51
+
52
+ <script>
53
+ import { $on, $off, $once, $emit } from '../../utils/gogocodeTransfer'
54
+ export default {
55
+ name: 'RemoveSignerDialog',
56
+ components: {},
57
+ props: {
58
+ taskId: {
59
+ type: Number,
60
+ default: null,
61
+ },
62
+ // 当前环节所有待办任务集合
63
+ activeTasks: {
64
+ type: Array,
65
+ default: null,
66
+ },
67
+ },
68
+ data() {
69
+ const canRemoveTasks = this.getCanRemoveTasks()
70
+ return {
71
+ selections: [],
72
+ canRemoveTasks, // 除当前任务外,所有任务都可移除
73
+ }
74
+ },
75
+ methods: {
76
+ select(selection) {
77
+ this.selections = selection
78
+ },
79
+ selectRemoveUsers() {
80
+ if (this.selections.length === 0) {
81
+ this.$message({
82
+ showClose: true,
83
+ type: 'warning',
84
+ message: this.$t('superPageMessage.pleaseSelectRemoverUsers'),
85
+ })
86
+ return
87
+ }
88
+ $emit(this, 'result', this.selections)
89
+ },
90
+ // 获得可减签的任务集合。除当前任务外,所有任务都可移除
91
+ getCanRemoveTasks() {
92
+ if (this.activeTasks && this.taskId) {
93
+ // 过滤掉当前任务
94
+ return this.activeTasks.filter((task) =>
95
+ this.taskId !== task.id ? task.id : task.ID ? task.ID : null
96
+ )
97
+ }
98
+ return []
99
+ },
100
+ },
101
+ emits: ['open', 'opend', 'close', 'closed', 'result'],
102
+ }
103
+ </script>