super-pages 0.0.14-up → 0.0.16-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/README.md +7 -7
- package/index.html +13 -13
- package/lib/super-pages.css +1 -1
- package/lib/super-pages.js +2190 -2066
- package/lib/super-pages.umd.cjs +14 -14
- package/package.json +1 -1
- package/packages/index.js +30 -30
- package/packages/super-page/index.js +9 -9
- package/packages/super-page/src/button-group.vue +294 -294
- package/packages/super-page/src/chart-page.vue +215 -215
- package/packages/super-page/src/chart-query-page.vue +163 -163
- package/packages/super-page/src/common-form-page.vue +5 -1
- package/packages/super-page/src/export-form-report-dialog.vue +145 -145
- package/packages/super-page/src/form-head.vue +74 -74
- package/packages/super-page/src/form-page.vue +107 -107
- package/packages/super-page/src/group-tag.vue +21 -21
- package/packages/super-page/src/list-page.vue +3 -1
- package/packages/super-page/src/list-toolbar-dynamic-source.vue +89 -89
- package/packages/super-page/src/list-toolbar-page.vue +377 -377
- package/packages/super-page/src/my-button-base.vue +438 -438
- package/packages/super-page/src/my-button.vue +196 -196
- package/packages/super-page/src/page-custom-component.vue +56 -56
- package/packages/super-page/src/remove-signer-dialog.vue +103 -103
- package/packages/super-page/src/sub-tab-page.vue +79 -79
- package/packages/super-page/src/super-page-component.vue +86 -86
- package/packages/super-page/src/super-page.vue +162 -162
- package/packages/super-page/src/tab-page.vue +154 -154
- package/packages/super-page/src/task-informition-dialog.vue +82 -82
- package/packages/super-page/src/util/ListButtonEvent.js +896 -896
- package/packages/super-page/src/util/api.js +37 -37
- package/packages/super-page/src/util/callEvents.js +62 -62
- package/packages/super-page/src/util/chartButtonEvent.js +60 -60
- package/packages/super-page/src/util/common-util.js +102 -102
- package/packages/super-page/src/util/commonButtonEvent.js +70 -70
- package/packages/super-page/src/util/formButtonEvent.js +509 -509
- package/packages/super-page/src/util/store.js +3 -3
- package/packages/super-page/src/util/super-page.js +29 -29
- package/packages/super-page/src/util/util.js +47 -11
- package/packages/super-page/src/util/workflowButtonEvent.js +1729 -1729
- package/packages/super-page/src/widget-col-page.vue +339 -339
- package/packages/super-page/src/widget-page.vue +703 -703
- package/packages/super-page/src/widget-sub-tab-pane-page.vue +115 -115
- package/packages/super-page/src/widget-tab-pane-page.vue +135 -135
- package/packages/super-page/src/workflow-button-group.vue +561 -561
- package/packages/super-page/src/workflow-form-page.vue +5 -2
- package/packages/super-page-dialog/index.js +9 -9
- package/packages/super-page-dialog/src/super-page-dialog.vue +200 -200
- package/packages/utils/gogocodeTransfer.js +59 -59
- package/src/i18n/langs/cn.js +65 -65
- package/src/i18n/langs/en.js +68 -68
- package/src/utils/common-util.js +9 -9
- package/vite.config.js +36 -36
|
@@ -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>
|
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<el-tabs v-model="activeName" type="card" @tab-click="handleClick">
|
|
4
|
-
<el-tab-pane
|
|
5
|
-
v-for="tab in colSetting.options.tabContent"
|
|
6
|
-
:key="tab.code"
|
|
7
|
-
:label="tab.label"
|
|
8
|
-
:name="tab.code"
|
|
9
|
-
>
|
|
10
|
-
<widget-sub-tab-pane-page
|
|
11
|
-
:page-code="pageCode"
|
|
12
|
-
:data-id="dataId"
|
|
13
|
-
:one-tab-content="tab.list ? tab.list : []"
|
|
14
|
-
:workflow-id="workflowId"
|
|
15
|
-
:task-id="taskId"
|
|
16
|
-
@update-value="updateValues"
|
|
17
|
-
/>
|
|
18
|
-
</el-tab-pane>
|
|
19
|
-
</el-tabs>
|
|
20
|
-
</div>
|
|
21
|
-
</template>
|
|
22
|
-
|
|
23
|
-
<script>
|
|
24
|
-
import { $on, $off, $once, $emit } from '../../utils/gogocodeTransfer'
|
|
25
|
-
import WidgetSubTabPanePage from './widget-sub-tab-pane-page'
|
|
26
|
-
import util from './util/util'
|
|
27
|
-
import eventBus from './util/eventBus'
|
|
28
|
-
export default {
|
|
29
|
-
name: 'SubTabPage',
|
|
30
|
-
components: {
|
|
31
|
-
WidgetSubTabPanePage,
|
|
32
|
-
},
|
|
33
|
-
props: {
|
|
34
|
-
// 页面编码
|
|
35
|
-
pageCode: {
|
|
36
|
-
type: String,
|
|
37
|
-
default: null,
|
|
38
|
-
},
|
|
39
|
-
// 表单页面修改记录id
|
|
40
|
-
dataId: {
|
|
41
|
-
type: Number,
|
|
42
|
-
default: null,
|
|
43
|
-
},
|
|
44
|
-
// 流程表单页面办理任务时任务id
|
|
45
|
-
taskId: {
|
|
46
|
-
type: Number,
|
|
47
|
-
default: null,
|
|
48
|
-
},
|
|
49
|
-
colSetting: {
|
|
50
|
-
type: Object,
|
|
51
|
-
default: null,
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
data() {
|
|
55
|
-
let activeName = ''
|
|
56
|
-
const tabContent = this.colSetting.options.tabContent
|
|
57
|
-
if (tabContent && tabContent.length > 0) {
|
|
58
|
-
activeName = tabContent[0].code
|
|
59
|
-
}
|
|
60
|
-
return {
|
|
61
|
-
activeName,
|
|
62
|
-
workflowId: null, // 流程实例id,第1个子页签是流转历史时需要该参数
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
created() {},
|
|
66
|
-
mounted() {},
|
|
67
|
-
methods: {
|
|
68
|
-
handleClick(tab, event) {
|
|
69
|
-
// 先清空实例id,为了更新显示流转历史
|
|
70
|
-
this.workflowId = util.getWorkflowId(this.pageCode)
|
|
71
|
-
$emit(eventBus, 'refreshHistory')
|
|
72
|
-
},
|
|
73
|
-
updateValues(sourceModel, sourceTableName, targetRowIndex) {
|
|
74
|
-
$emit(this, 'update-value', sourceModel, sourceTableName, targetRowIndex)
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
emits: ['update-value', 'refreshHistory'],
|
|
78
|
-
}
|
|
79
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<el-tabs v-model="activeName" type="card" @tab-click="handleClick">
|
|
4
|
+
<el-tab-pane
|
|
5
|
+
v-for="tab in colSetting.options.tabContent"
|
|
6
|
+
:key="tab.code"
|
|
7
|
+
:label="tab.label"
|
|
8
|
+
:name="tab.code"
|
|
9
|
+
>
|
|
10
|
+
<widget-sub-tab-pane-page
|
|
11
|
+
:page-code="pageCode"
|
|
12
|
+
:data-id="dataId"
|
|
13
|
+
:one-tab-content="tab.list ? tab.list : []"
|
|
14
|
+
:workflow-id="workflowId"
|
|
15
|
+
:task-id="taskId"
|
|
16
|
+
@update-value="updateValues"
|
|
17
|
+
/>
|
|
18
|
+
</el-tab-pane>
|
|
19
|
+
</el-tabs>
|
|
20
|
+
</div>
|
|
21
|
+
</template>
|
|
22
|
+
|
|
23
|
+
<script>
|
|
24
|
+
import { $on, $off, $once, $emit } from '../../utils/gogocodeTransfer'
|
|
25
|
+
import WidgetSubTabPanePage from './widget-sub-tab-pane-page'
|
|
26
|
+
import util from './util/util'
|
|
27
|
+
import eventBus from './util/eventBus'
|
|
28
|
+
export default {
|
|
29
|
+
name: 'SubTabPage',
|
|
30
|
+
components: {
|
|
31
|
+
WidgetSubTabPanePage,
|
|
32
|
+
},
|
|
33
|
+
props: {
|
|
34
|
+
// 页面编码
|
|
35
|
+
pageCode: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: null,
|
|
38
|
+
},
|
|
39
|
+
// 表单页面修改记录id
|
|
40
|
+
dataId: {
|
|
41
|
+
type: Number,
|
|
42
|
+
default: null,
|
|
43
|
+
},
|
|
44
|
+
// 流程表单页面办理任务时任务id
|
|
45
|
+
taskId: {
|
|
46
|
+
type: Number,
|
|
47
|
+
default: null,
|
|
48
|
+
},
|
|
49
|
+
colSetting: {
|
|
50
|
+
type: Object,
|
|
51
|
+
default: null,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
data() {
|
|
55
|
+
let activeName = ''
|
|
56
|
+
const tabContent = this.colSetting.options.tabContent
|
|
57
|
+
if (tabContent && tabContent.length > 0) {
|
|
58
|
+
activeName = tabContent[0].code
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
activeName,
|
|
62
|
+
workflowId: null, // 流程实例id,第1个子页签是流转历史时需要该参数
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
created() {},
|
|
66
|
+
mounted() {},
|
|
67
|
+
methods: {
|
|
68
|
+
handleClick(tab, event) {
|
|
69
|
+
// 先清空实例id,为了更新显示流转历史
|
|
70
|
+
this.workflowId = util.getWorkflowId(this.pageCode)
|
|
71
|
+
$emit(eventBus, 'refreshHistory')
|
|
72
|
+
},
|
|
73
|
+
updateValues(sourceModel, sourceTableName, targetRowIndex) {
|
|
74
|
+
$emit(this, 'update-value', sourceModel, sourceTableName, targetRowIndex)
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
emits: ['update-value', 'refreshHistory'],
|
|
78
|
+
}
|
|
79
|
+
</script>
|
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="app-container no-margin">
|
|
3
|
-
<widget-page
|
|
4
|
-
:page-code="code"
|
|
5
|
-
:data-id="dataId"
|
|
6
|
-
:task-id="taskId"
|
|
7
|
-
:page-setting="pageSetting"
|
|
8
|
-
@update-value="updateValues"
|
|
9
|
-
/>
|
|
10
|
-
</div>
|
|
11
|
-
</template>
|
|
12
|
-
|
|
13
|
-
<script>
|
|
14
|
-
import { $on, $off, $once, $emit } from '../../utils/gogocodeTransfer'
|
|
15
|
-
import WidgetPage from './widget-page'
|
|
16
|
-
import { setStoreInfo } from './util/common-util'
|
|
17
|
-
export default {
|
|
18
|
-
name: 'SuperPageComponent',
|
|
19
|
-
components: {
|
|
20
|
-
WidgetPage,
|
|
21
|
-
},
|
|
22
|
-
props: {
|
|
23
|
-
// 页面编码
|
|
24
|
-
code: {
|
|
25
|
-
type: String,
|
|
26
|
-
default: null,
|
|
27
|
-
},
|
|
28
|
-
// 表单页面修改记录时记录id
|
|
29
|
-
dataId: {
|
|
30
|
-
type: Number,
|
|
31
|
-
default: null,
|
|
32
|
-
},
|
|
33
|
-
// 流程表单页面办理任务时任务id
|
|
34
|
-
taskId: {
|
|
35
|
-
type: Number,
|
|
36
|
-
default: null,
|
|
37
|
-
},
|
|
38
|
-
// 页面布局信息
|
|
39
|
-
pageSetting: {
|
|
40
|
-
type: Object,
|
|
41
|
-
default: null,
|
|
42
|
-
},
|
|
43
|
-
// 是否是预览
|
|
44
|
-
preview: {
|
|
45
|
-
type: Boolean,
|
|
46
|
-
default: false,
|
|
47
|
-
},
|
|
48
|
-
// 是否是dsc系统中调用该组件。影响列表组件和表单组件数据显示
|
|
49
|
-
isDsc: {
|
|
50
|
-
type: Boolean,
|
|
51
|
-
default: null,
|
|
52
|
-
},
|
|
53
|
-
// 弹框高度
|
|
54
|
-
height: {
|
|
55
|
-
type: String,
|
|
56
|
-
default: null,
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
created() {
|
|
60
|
-
setStoreInfo(this.code, '_pageCode', this.code)
|
|
61
|
-
setStoreInfo(this.code, '_pagePreview', this.preview)
|
|
62
|
-
setStoreInfo(this.code, '_pageIsDsc', this.isDsc)
|
|
63
|
-
setStoreInfo(this.code, '_pageHeight', this.height)
|
|
64
|
-
console.log(
|
|
65
|
-
'super-page-component--this.isDsc=',
|
|
66
|
-
this.isDsc,
|
|
67
|
-
'this.code=',
|
|
68
|
-
this.code,
|
|
69
|
-
'this.height=',
|
|
70
|
-
this.height
|
|
71
|
-
)
|
|
72
|
-
},
|
|
73
|
-
methods: {
|
|
74
|
-
updateValues(sourceModel, sourceTableName, targetRowIndex) {
|
|
75
|
-
console.log(
|
|
76
|
-
'update-value33---',
|
|
77
|
-
sourceModel,
|
|
78
|
-
sourceTableName,
|
|
79
|
-
targetRowIndex
|
|
80
|
-
)
|
|
81
|
-
$emit(this, 'update-value', sourceModel, sourceTableName, targetRowIndex)
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
emits: ['update-value'],
|
|
85
|
-
}
|
|
86
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="app-container no-margin">
|
|
3
|
+
<widget-page
|
|
4
|
+
:page-code="code"
|
|
5
|
+
:data-id="dataId"
|
|
6
|
+
:task-id="taskId"
|
|
7
|
+
:page-setting="pageSetting"
|
|
8
|
+
@update-value="updateValues"
|
|
9
|
+
/>
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script>
|
|
14
|
+
import { $on, $off, $once, $emit } from '../../utils/gogocodeTransfer'
|
|
15
|
+
import WidgetPage from './widget-page'
|
|
16
|
+
import { setStoreInfo } from './util/common-util'
|
|
17
|
+
export default {
|
|
18
|
+
name: 'SuperPageComponent',
|
|
19
|
+
components: {
|
|
20
|
+
WidgetPage,
|
|
21
|
+
},
|
|
22
|
+
props: {
|
|
23
|
+
// 页面编码
|
|
24
|
+
code: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: null,
|
|
27
|
+
},
|
|
28
|
+
// 表单页面修改记录时记录id
|
|
29
|
+
dataId: {
|
|
30
|
+
type: Number,
|
|
31
|
+
default: null,
|
|
32
|
+
},
|
|
33
|
+
// 流程表单页面办理任务时任务id
|
|
34
|
+
taskId: {
|
|
35
|
+
type: Number,
|
|
36
|
+
default: null,
|
|
37
|
+
},
|
|
38
|
+
// 页面布局信息
|
|
39
|
+
pageSetting: {
|
|
40
|
+
type: Object,
|
|
41
|
+
default: null,
|
|
42
|
+
},
|
|
43
|
+
// 是否是预览
|
|
44
|
+
preview: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: false,
|
|
47
|
+
},
|
|
48
|
+
// 是否是dsc系统中调用该组件。影响列表组件和表单组件数据显示
|
|
49
|
+
isDsc: {
|
|
50
|
+
type: Boolean,
|
|
51
|
+
default: null,
|
|
52
|
+
},
|
|
53
|
+
// 弹框高度
|
|
54
|
+
height: {
|
|
55
|
+
type: String,
|
|
56
|
+
default: null,
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
created() {
|
|
60
|
+
setStoreInfo(this.code, '_pageCode', this.code)
|
|
61
|
+
setStoreInfo(this.code, '_pagePreview', this.preview)
|
|
62
|
+
setStoreInfo(this.code, '_pageIsDsc', this.isDsc)
|
|
63
|
+
setStoreInfo(this.code, '_pageHeight', this.height)
|
|
64
|
+
console.log(
|
|
65
|
+
'super-page-component--this.isDsc=',
|
|
66
|
+
this.isDsc,
|
|
67
|
+
'this.code=',
|
|
68
|
+
this.code,
|
|
69
|
+
'this.height=',
|
|
70
|
+
this.height
|
|
71
|
+
)
|
|
72
|
+
},
|
|
73
|
+
methods: {
|
|
74
|
+
updateValues(sourceModel, sourceTableName, targetRowIndex) {
|
|
75
|
+
console.log(
|
|
76
|
+
'update-value33---',
|
|
77
|
+
sourceModel,
|
|
78
|
+
sourceTableName,
|
|
79
|
+
targetRowIndex
|
|
80
|
+
)
|
|
81
|
+
$emit(this, 'update-value', sourceModel, sourceTableName, targetRowIndex)
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
emits: ['update-value'],
|
|
85
|
+
}
|
|
86
|
+
</script>
|