super-pages 0.0.21-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.
- package/lib/super-pages.js +1931 -1925
- package/lib/super-pages.umd.cjs +5 -5
- package/package.json +2 -2
- package/packages/super-page/src/common-form-page.vue +3 -2
- package/packages/super-page/src/list-toolbar-dynamic-source.vue +95 -89
- package/packages/super-page/src/list-toolbar-page.vue +379 -377
- package/packages/super-page/src/my-button-base.vue +3 -2
- package/packages/super-page/src/util/ListButtonEvent.js +6 -6
- package/packages/super-page/src/util/formButtonEvent.js +3 -3
- package/packages/super-page/src/util/util.js +6 -6
- package/packages/super-page/src/util/workflowButtonEvent.js +2 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-pages",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.23-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.
|
|
17
|
+
"imatrix-ui": "0.2.31-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",
|
|
@@ -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
|
-
|
|
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,89 +1,95 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<span>
|
|
3
|
-
<dynamic-source-select
|
|
4
|
-
|
|
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
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
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 (newValue, item) {
|
|
58
|
+
this.valueSetOptions.forEach((element) => {
|
|
59
|
+
this.modelObj[element.valueField] =
|
|
60
|
+
item[element.columnName]
|
|
61
|
+
})
|
|
62
|
+
console.log('multiselectChange',newValue,item)
|
|
63
|
+
$emit(this, 'search-grid-data', this.toolbar.controlType)
|
|
64
|
+
},
|
|
65
|
+
setDynamicSourceSelectValue (selectValue) {
|
|
66
|
+
console.log(selectValue, '------------')
|
|
67
|
+
this.valueSetOptions.forEach((element) => {
|
|
68
|
+
this.modelObj[element.valueField] =
|
|
69
|
+
selectValue.selectedItem[element.columnName]
|
|
70
|
+
})
|
|
71
|
+
console.log(this.modelObj, '------------')
|
|
72
|
+
},
|
|
73
|
+
loadCompleted(dynamicDataSourceDto) {
|
|
74
|
+
if (
|
|
75
|
+
dynamicDataSourceDto.defaultSelect &&
|
|
76
|
+
dynamicDataSourceDto.options &&
|
|
77
|
+
dynamicDataSourceDto.options.length > 0
|
|
78
|
+
) {
|
|
79
|
+
this.setDynamicSourceSelectValue({
|
|
80
|
+
selectedItem: dynamicDataSourceDto.options[0],
|
|
81
|
+
})
|
|
82
|
+
// this.modelObj[this.toolbar.propDbName] = dynamicDataSourceDto.options[0][dynamicDataSourceDto.valueAttribute]
|
|
83
|
+
this.selectValue =
|
|
84
|
+
dynamicDataSourceDto.options[0][dynamicDataSourceDto.valueAttribute]
|
|
85
|
+
$emit(this, 'dynamic-source-onload', dynamicDataSourceDto, this.toolbar)
|
|
86
|
+
} else {
|
|
87
|
+
this.modelObj[this.toolbar.propDbName] = null
|
|
88
|
+
$emit(this, 'dynamic-source-onload', dynamicDataSourceDto, this.toolbar)
|
|
89
|
+
}
|
|
90
|
+
this.dymLoadCompleted = true
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
emits: ['search-grid-data', 'dynamic-source-onload'],
|
|
94
|
+
}
|
|
95
|
+
</script>
|