super-pages 0.0.21-up → 0.0.22-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 +2339 -2432
- package/lib/super-pages.umd.cjs +6 -12
- package/package.json +5 -5
- package/packages/index.js +30 -30
- package/packages/super-page/index.js +9 -9
- package/packages/super-page/src/form-head.vue +74 -74
- package/packages/super-page/src/group-tag.vue +21 -21
- 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/remove-signer-dialog.vue +103 -103
- package/packages/super-page/src/sub-tab-page.vue +79 -79
- package/packages/super-page/src/task-informition-dialog.vue +82 -82
- 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/commonButtonEvent.js +70 -70
- 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/widget-sub-tab-pane-page.vue +115 -115
- package/packages/super-page/src/widget-tab-pane-page.vue +135 -135
- package/packages/super-page-dialog/index.js +9 -9
- package/packages/utils/gogocodeTransfer.js +59 -59
- package/src/utils/common-util.js +9 -9
- package/vite.config.js +36 -36
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
const callFormEvents = {
|
|
2
|
-
// 调用点击前回调方法,返回true表示继续执行,否则false表示不执行点击事件
|
|
3
|
-
// buttonEventPrefix: 表单编码/列表编码__按钮编码
|
|
4
|
-
callBeforeClickButton(events, buttonEventPrefix, params) {
|
|
5
|
-
let result = true
|
|
6
|
-
if (events) {
|
|
7
|
-
const beforeClick = events[buttonEventPrefix + '__beforeClick']
|
|
8
|
-
if (beforeClick) {
|
|
9
|
-
result = beforeClick.call(this, params)
|
|
10
|
-
if (result === undefined) {
|
|
11
|
-
result = true
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
return result
|
|
16
|
-
},
|
|
17
|
-
// 调用点击后回调方法
|
|
18
|
-
// buttonEventPrefix: 表单编码/列表编码__按钮编码
|
|
19
|
-
callAfterClickButton(events, buttonEventPrefix, params) {
|
|
20
|
-
if (events) {
|
|
21
|
-
const afterClick = events[buttonEventPrefix + '__afterClick']
|
|
22
|
-
if (afterClick) {
|
|
23
|
-
afterClick.call(this, params)
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
// 调用表单组件元素的事件
|
|
28
|
-
callFormItemEvent(formOptions, eventName, formData, eventParams) {
|
|
29
|
-
if (!eventName) {
|
|
30
|
-
return
|
|
31
|
-
}
|
|
32
|
-
if (formOptions && formOptions.customEvents) {
|
|
33
|
-
const formItemEventFun = this.getEventFunction(
|
|
34
|
-
formOptions,
|
|
35
|
-
'customEvents',
|
|
36
|
-
eventName
|
|
37
|
-
)
|
|
38
|
-
if (formItemEventFun) {
|
|
39
|
-
const params = {
|
|
40
|
-
params: formOptions.additionalParamMap,
|
|
41
|
-
additionalParamMap: formOptions.additionalParamMap,
|
|
42
|
-
entity: formData,
|
|
43
|
-
}
|
|
44
|
-
if (eventParams) {
|
|
45
|
-
params.eventParams = eventParams
|
|
46
|
-
}
|
|
47
|
-
return formItemEventFun.call(this, params)
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
getEventFunction(formOptions, eventType, eventName) {
|
|
52
|
-
if (
|
|
53
|
-
formOptions &&
|
|
54
|
-
formOptions[eventType] &&
|
|
55
|
-
formOptions[eventType][eventName] &&
|
|
56
|
-
typeof formOptions[eventType][eventName] === 'function'
|
|
57
|
-
) {
|
|
58
|
-
return formOptions[eventType][eventName]
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
}
|
|
62
|
-
export default callFormEvents
|
|
1
|
+
const callFormEvents = {
|
|
2
|
+
// 调用点击前回调方法,返回true表示继续执行,否则false表示不执行点击事件
|
|
3
|
+
// buttonEventPrefix: 表单编码/列表编码__按钮编码
|
|
4
|
+
callBeforeClickButton(events, buttonEventPrefix, params) {
|
|
5
|
+
let result = true
|
|
6
|
+
if (events) {
|
|
7
|
+
const beforeClick = events[buttonEventPrefix + '__beforeClick']
|
|
8
|
+
if (beforeClick) {
|
|
9
|
+
result = beforeClick.call(this, params)
|
|
10
|
+
if (result === undefined) {
|
|
11
|
+
result = true
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return result
|
|
16
|
+
},
|
|
17
|
+
// 调用点击后回调方法
|
|
18
|
+
// buttonEventPrefix: 表单编码/列表编码__按钮编码
|
|
19
|
+
callAfterClickButton(events, buttonEventPrefix, params) {
|
|
20
|
+
if (events) {
|
|
21
|
+
const afterClick = events[buttonEventPrefix + '__afterClick']
|
|
22
|
+
if (afterClick) {
|
|
23
|
+
afterClick.call(this, params)
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
// 调用表单组件元素的事件
|
|
28
|
+
callFormItemEvent(formOptions, eventName, formData, eventParams) {
|
|
29
|
+
if (!eventName) {
|
|
30
|
+
return
|
|
31
|
+
}
|
|
32
|
+
if (formOptions && formOptions.customEvents) {
|
|
33
|
+
const formItemEventFun = this.getEventFunction(
|
|
34
|
+
formOptions,
|
|
35
|
+
'customEvents',
|
|
36
|
+
eventName
|
|
37
|
+
)
|
|
38
|
+
if (formItemEventFun) {
|
|
39
|
+
const params = {
|
|
40
|
+
params: formOptions.additionalParamMap,
|
|
41
|
+
additionalParamMap: formOptions.additionalParamMap,
|
|
42
|
+
entity: formData,
|
|
43
|
+
}
|
|
44
|
+
if (eventParams) {
|
|
45
|
+
params.eventParams = eventParams
|
|
46
|
+
}
|
|
47
|
+
return formItemEventFun.call(this, params)
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
getEventFunction(formOptions, eventType, eventName) {
|
|
52
|
+
if (
|
|
53
|
+
formOptions &&
|
|
54
|
+
formOptions[eventType] &&
|
|
55
|
+
formOptions[eventType][eventName] &&
|
|
56
|
+
typeof formOptions[eventType][eventName] === 'function'
|
|
57
|
+
) {
|
|
58
|
+
return formOptions[eventType][eventName]
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
}
|
|
62
|
+
export default callFormEvents
|
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
const buttonEvents = {
|
|
2
|
-
// 按钮组件的操作
|
|
3
|
-
clickButtonEvent(buttonSetting, system) {
|
|
4
|
-
const jsContent = buttonSetting.options.jsContent
|
|
5
|
-
if (
|
|
6
|
-
typeof jsContent !== 'undefined' &&
|
|
7
|
-
jsContent !== null &&
|
|
8
|
-
jsContent !== ''
|
|
9
|
-
) {
|
|
10
|
-
// 将js文本转换为函数,并运行
|
|
11
|
-
// eslint-disable-next-line no-eval
|
|
12
|
-
const buttonFun = eval('(' + jsContent + ')')
|
|
13
|
-
// 运行方法
|
|
14
|
-
const request = buttonFun(this, system)
|
|
15
|
-
if (request) {
|
|
16
|
-
request.then((data) => {
|
|
17
|
-
this.$message({
|
|
18
|
-
showClose: true,
|
|
19
|
-
type: 'success',
|
|
20
|
-
message: this.$t('superPageMessage.successfulOperation'),
|
|
21
|
-
})
|
|
22
|
-
})
|
|
23
|
-
}
|
|
24
|
-
} else {
|
|
25
|
-
if (buttonSetting.options.operationType === 'inner') {
|
|
26
|
-
// 内置操作时
|
|
27
|
-
this.jumpToPage(
|
|
28
|
-
buttonSetting.options.jumpPage,
|
|
29
|
-
system,
|
|
30
|
-
null,
|
|
31
|
-
null,
|
|
32
|
-
this.additionalParamMap,
|
|
33
|
-
null,
|
|
34
|
-
null,
|
|
35
|
-
this.pageCode
|
|
36
|
-
)
|
|
37
|
-
} else if (buttonSetting.options.operationType === 'custom') {
|
|
38
|
-
// 自定义操作时
|
|
39
|
-
const path = this.getRealRestApiPath(
|
|
40
|
-
buttonSetting.options.restfulApiPat,
|
|
41
|
-
system
|
|
42
|
-
)
|
|
43
|
-
const config = { url: path }
|
|
44
|
-
const apiMethod = buttonSetting.options.restfulApiMethod
|
|
45
|
-
if (apiMethod) {
|
|
46
|
-
config.method = apiMethod
|
|
47
|
-
}
|
|
48
|
-
const params = buttonSetting.options.restfulApiParameters
|
|
49
|
-
if (params) {
|
|
50
|
-
config.data = params
|
|
51
|
-
}
|
|
52
|
-
if (buttonSetting.options.logSetting) {
|
|
53
|
-
config.logSettingText = buttonSetting.options.logSetting
|
|
54
|
-
}
|
|
55
|
-
if (!config.systemCode) {
|
|
56
|
-
config.systemCode = system.code
|
|
57
|
-
}
|
|
58
|
-
this.$http.request(config).then((data) => {
|
|
59
|
-
// console.log('clickButtonEvent', data)
|
|
60
|
-
this.$message({
|
|
61
|
-
showClose: true,
|
|
62
|
-
type: 'success',
|
|
63
|
-
message: this.$t('superPageMessage.successfulOperation'),
|
|
64
|
-
})
|
|
65
|
-
})
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
}
|
|
70
|
-
export default buttonEvents
|
|
1
|
+
const buttonEvents = {
|
|
2
|
+
// 按钮组件的操作
|
|
3
|
+
clickButtonEvent(buttonSetting, system) {
|
|
4
|
+
const jsContent = buttonSetting.options.jsContent
|
|
5
|
+
if (
|
|
6
|
+
typeof jsContent !== 'undefined' &&
|
|
7
|
+
jsContent !== null &&
|
|
8
|
+
jsContent !== ''
|
|
9
|
+
) {
|
|
10
|
+
// 将js文本转换为函数,并运行
|
|
11
|
+
// eslint-disable-next-line no-eval
|
|
12
|
+
const buttonFun = eval('(' + jsContent + ')')
|
|
13
|
+
// 运行方法
|
|
14
|
+
const request = buttonFun(this, system)
|
|
15
|
+
if (request) {
|
|
16
|
+
request.then((data) => {
|
|
17
|
+
this.$message({
|
|
18
|
+
showClose: true,
|
|
19
|
+
type: 'success',
|
|
20
|
+
message: this.$t('superPageMessage.successfulOperation'),
|
|
21
|
+
})
|
|
22
|
+
})
|
|
23
|
+
}
|
|
24
|
+
} else {
|
|
25
|
+
if (buttonSetting.options.operationType === 'inner') {
|
|
26
|
+
// 内置操作时
|
|
27
|
+
this.jumpToPage(
|
|
28
|
+
buttonSetting.options.jumpPage,
|
|
29
|
+
system,
|
|
30
|
+
null,
|
|
31
|
+
null,
|
|
32
|
+
this.additionalParamMap,
|
|
33
|
+
null,
|
|
34
|
+
null,
|
|
35
|
+
this.pageCode
|
|
36
|
+
)
|
|
37
|
+
} else if (buttonSetting.options.operationType === 'custom') {
|
|
38
|
+
// 自定义操作时
|
|
39
|
+
const path = this.getRealRestApiPath(
|
|
40
|
+
buttonSetting.options.restfulApiPat,
|
|
41
|
+
system
|
|
42
|
+
)
|
|
43
|
+
const config = { url: path }
|
|
44
|
+
const apiMethod = buttonSetting.options.restfulApiMethod
|
|
45
|
+
if (apiMethod) {
|
|
46
|
+
config.method = apiMethod
|
|
47
|
+
}
|
|
48
|
+
const params = buttonSetting.options.restfulApiParameters
|
|
49
|
+
if (params) {
|
|
50
|
+
config.data = params
|
|
51
|
+
}
|
|
52
|
+
if (buttonSetting.options.logSetting) {
|
|
53
|
+
config.logSettingText = buttonSetting.options.logSetting
|
|
54
|
+
}
|
|
55
|
+
if (!config.systemCode) {
|
|
56
|
+
config.systemCode = system.code
|
|
57
|
+
}
|
|
58
|
+
this.$http.request(config).then((data) => {
|
|
59
|
+
// console.log('clickButtonEvent', data)
|
|
60
|
+
this.$message({
|
|
61
|
+
showClose: true,
|
|
62
|
+
type: 'success',
|
|
63
|
+
message: this.$t('superPageMessage.successfulOperation'),
|
|
64
|
+
})
|
|
65
|
+
})
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
}
|
|
70
|
+
export default buttonEvents
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
// 用于存放表单数据、是否是预览状态、系统信息
|
|
2
|
-
const store = new Map()
|
|
3
|
-
export default store
|
|
1
|
+
// 用于存放表单数据、是否是预览状态、系统信息
|
|
2
|
+
const store = new Map()
|
|
3
|
+
export default store
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import * as Vue from 'vue'
|
|
2
|
-
const superPageService = {
|
|
3
|
-
getPageSetting(code) {
|
|
4
|
-
return this.$http.get(
|
|
5
|
-
window.$vueApp.config.globalProperties.baseAPI +
|
|
6
|
-
'/component/super-pages/' +
|
|
7
|
-
code
|
|
8
|
-
)
|
|
9
|
-
},
|
|
10
|
-
getSystemWatermark(code) {
|
|
11
|
-
return this.$http.get(
|
|
12
|
-
window.$vueApp.config.globalProperties.baseAPI +
|
|
13
|
-
'/component/super-pages/getWatermark/' +
|
|
14
|
-
code
|
|
15
|
-
)
|
|
16
|
-
},
|
|
17
|
-
getPageSettingTest() {
|
|
18
|
-
// return this.$http.get('http://localhost:8080/test/list-page.json')
|
|
19
|
-
// return this.$http.get('http://localhost:8080/test/form-page.json')
|
|
20
|
-
// return this.$http.get('http://localhost:8080/test/workflow-form-page.json')
|
|
21
|
-
// return this.$http.get('http://localhost:8080/test/chart-page.json')
|
|
22
|
-
// return this.$http.get('http://localhost:8080/test/tab-page.json')
|
|
23
|
-
// return this.$http.get('http://localhost:8080/test/workflow-history-page.json')
|
|
24
|
-
return this.$http.get(
|
|
25
|
-
'http://localhost:8080/test/other-component-page.json'
|
|
26
|
-
)
|
|
27
|
-
},
|
|
28
|
-
}
|
|
29
|
-
export default superPageService
|
|
1
|
+
import * as Vue from 'vue'
|
|
2
|
+
const superPageService = {
|
|
3
|
+
getPageSetting(code) {
|
|
4
|
+
return this.$http.get(
|
|
5
|
+
window.$vueApp.config.globalProperties.baseAPI +
|
|
6
|
+
'/component/super-pages/' +
|
|
7
|
+
code
|
|
8
|
+
)
|
|
9
|
+
},
|
|
10
|
+
getSystemWatermark(code) {
|
|
11
|
+
return this.$http.get(
|
|
12
|
+
window.$vueApp.config.globalProperties.baseAPI +
|
|
13
|
+
'/component/super-pages/getWatermark/' +
|
|
14
|
+
code
|
|
15
|
+
)
|
|
16
|
+
},
|
|
17
|
+
getPageSettingTest() {
|
|
18
|
+
// return this.$http.get('http://localhost:8080/test/list-page.json')
|
|
19
|
+
// return this.$http.get('http://localhost:8080/test/form-page.json')
|
|
20
|
+
// return this.$http.get('http://localhost:8080/test/workflow-form-page.json')
|
|
21
|
+
// return this.$http.get('http://localhost:8080/test/chart-page.json')
|
|
22
|
+
// return this.$http.get('http://localhost:8080/test/tab-page.json')
|
|
23
|
+
// return this.$http.get('http://localhost:8080/test/workflow-history-page.json')
|
|
24
|
+
return this.$http.get(
|
|
25
|
+
'http://localhost:8080/test/other-component-page.json'
|
|
26
|
+
)
|
|
27
|
+
},
|
|
28
|
+
}
|
|
29
|
+
export default superPageService
|
|
@@ -1,115 +1,115 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<template
|
|
4
|
-
v-if="
|
|
5
|
-
pageSettingList &&
|
|
6
|
-
pageSettingList !== null &&
|
|
7
|
-
pageSettingList.length > 0
|
|
8
|
-
"
|
|
9
|
-
>
|
|
10
|
-
<el-row v-for="(row, rowIndex) in pageSettingList" :key="rowIndex">
|
|
11
|
-
<template v-for="(col, colIndex) in row.colList" :key="colIndex">
|
|
12
|
-
<el-col
|
|
13
|
-
:span="
|
|
14
|
-
col.options && col.options.colWidth ? col.options.colWidth : 24
|
|
15
|
-
"
|
|
16
|
-
:class="{
|
|
17
|
-
placeholder:
|
|
18
|
-
col.baseSetting.type === 'placeholder' ||
|
|
19
|
-
col.baseSetting.type === 'enter',
|
|
20
|
-
}"
|
|
21
|
-
>
|
|
22
|
-
<widget-col-page
|
|
23
|
-
:col="col"
|
|
24
|
-
:data-id="dataId"
|
|
25
|
-
:workflow-id="workflowId"
|
|
26
|
-
:task-id="taskId"
|
|
27
|
-
:page-code="pageCode"
|
|
28
|
-
:field-permissions="fieldPermissions"
|
|
29
|
-
:chart-query-setting="chartQuerySetting"
|
|
30
|
-
@update-value="updateValues"
|
|
31
|
-
@prohibi-edit="fnProhibitToEdit"
|
|
32
|
-
@export="exportReport"
|
|
33
|
-
/>
|
|
34
|
-
</el-col>
|
|
35
|
-
</template>
|
|
36
|
-
</el-row>
|
|
37
|
-
</template>
|
|
38
|
-
</div>
|
|
39
|
-
</template>
|
|
40
|
-
|
|
41
|
-
<script>
|
|
42
|
-
import { $on, $off, $once, $emit } from '../../utils/gogocodeTransfer'
|
|
43
|
-
import WidgetColPage from './widget-col-page'
|
|
44
|
-
import { getStoreInfo } from './util/common-util'
|
|
45
|
-
export default {
|
|
46
|
-
name: 'WidgetSubTabPage',
|
|
47
|
-
components: {
|
|
48
|
-
WidgetColPage,
|
|
49
|
-
},
|
|
50
|
-
props: {
|
|
51
|
-
// 页面编码
|
|
52
|
-
pageCode: {
|
|
53
|
-
type: String,
|
|
54
|
-
default: null,
|
|
55
|
-
},
|
|
56
|
-
// 表单页面修改记录时记录id
|
|
57
|
-
dataId: {
|
|
58
|
-
type: Number,
|
|
59
|
-
default: null,
|
|
60
|
-
},
|
|
61
|
-
// 流程表单页面办理任务时任务id
|
|
62
|
-
taskId: {
|
|
63
|
-
type: Number,
|
|
64
|
-
default: null,
|
|
65
|
-
},
|
|
66
|
-
// 1个页签的内容配置
|
|
67
|
-
oneTabContent: {
|
|
68
|
-
type: Array,
|
|
69
|
-
default: null,
|
|
70
|
-
},
|
|
71
|
-
// 流程实例id
|
|
72
|
-
workflowId: {
|
|
73
|
-
type: Number,
|
|
74
|
-
default: null,
|
|
75
|
-
},
|
|
76
|
-
// 图表查询组件配置col
|
|
77
|
-
chartQuerySetting: {
|
|
78
|
-
type: Object,
|
|
79
|
-
default: null,
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
data() {
|
|
83
|
-
const system = getStoreInfo(this.pageCode, '_systemInfo')
|
|
84
|
-
return {
|
|
85
|
-
pageSettingList: [],
|
|
86
|
-
system,
|
|
87
|
-
fieldPermissions: {},
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
created() {
|
|
91
|
-
if (this.oneTabContent) {
|
|
92
|
-
// 表示是页签页面
|
|
93
|
-
this.pageSettingList = this.oneTabContent
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
methods: {
|
|
97
|
-
updateValues(sourceModel, sourceTableName, targetRowIndex) {
|
|
98
|
-
$emit(this, 'update-value', sourceModel, sourceTableName, targetRowIndex)
|
|
99
|
-
},
|
|
100
|
-
fnProhibitToEdit(entity) {
|
|
101
|
-
this.fieldPermissions = entity
|
|
102
|
-
},
|
|
103
|
-
// chartQuery组件,导出报告
|
|
104
|
-
exportReport(beanName) {
|
|
105
|
-
// 向父页面传递
|
|
106
|
-
$emit(this, 'export', beanName)
|
|
107
|
-
},
|
|
108
|
-
},
|
|
109
|
-
emits: ['update-value', 'export'],
|
|
110
|
-
}
|
|
111
|
-
</script>
|
|
112
|
-
|
|
113
|
-
<style lang="scss" scoped>
|
|
114
|
-
@import '../../../src/styles/index';
|
|
115
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<template
|
|
4
|
+
v-if="
|
|
5
|
+
pageSettingList &&
|
|
6
|
+
pageSettingList !== null &&
|
|
7
|
+
pageSettingList.length > 0
|
|
8
|
+
"
|
|
9
|
+
>
|
|
10
|
+
<el-row v-for="(row, rowIndex) in pageSettingList" :key="rowIndex">
|
|
11
|
+
<template v-for="(col, colIndex) in row.colList" :key="colIndex">
|
|
12
|
+
<el-col
|
|
13
|
+
:span="
|
|
14
|
+
col.options && col.options.colWidth ? col.options.colWidth : 24
|
|
15
|
+
"
|
|
16
|
+
:class="{
|
|
17
|
+
placeholder:
|
|
18
|
+
col.baseSetting.type === 'placeholder' ||
|
|
19
|
+
col.baseSetting.type === 'enter',
|
|
20
|
+
}"
|
|
21
|
+
>
|
|
22
|
+
<widget-col-page
|
|
23
|
+
:col="col"
|
|
24
|
+
:data-id="dataId"
|
|
25
|
+
:workflow-id="workflowId"
|
|
26
|
+
:task-id="taskId"
|
|
27
|
+
:page-code="pageCode"
|
|
28
|
+
:field-permissions="fieldPermissions"
|
|
29
|
+
:chart-query-setting="chartQuerySetting"
|
|
30
|
+
@update-value="updateValues"
|
|
31
|
+
@prohibi-edit="fnProhibitToEdit"
|
|
32
|
+
@export="exportReport"
|
|
33
|
+
/>
|
|
34
|
+
</el-col>
|
|
35
|
+
</template>
|
|
36
|
+
</el-row>
|
|
37
|
+
</template>
|
|
38
|
+
</div>
|
|
39
|
+
</template>
|
|
40
|
+
|
|
41
|
+
<script>
|
|
42
|
+
import { $on, $off, $once, $emit } from '../../utils/gogocodeTransfer'
|
|
43
|
+
import WidgetColPage from './widget-col-page'
|
|
44
|
+
import { getStoreInfo } from './util/common-util'
|
|
45
|
+
export default {
|
|
46
|
+
name: 'WidgetSubTabPage',
|
|
47
|
+
components: {
|
|
48
|
+
WidgetColPage,
|
|
49
|
+
},
|
|
50
|
+
props: {
|
|
51
|
+
// 页面编码
|
|
52
|
+
pageCode: {
|
|
53
|
+
type: String,
|
|
54
|
+
default: null,
|
|
55
|
+
},
|
|
56
|
+
// 表单页面修改记录时记录id
|
|
57
|
+
dataId: {
|
|
58
|
+
type: Number,
|
|
59
|
+
default: null,
|
|
60
|
+
},
|
|
61
|
+
// 流程表单页面办理任务时任务id
|
|
62
|
+
taskId: {
|
|
63
|
+
type: Number,
|
|
64
|
+
default: null,
|
|
65
|
+
},
|
|
66
|
+
// 1个页签的内容配置
|
|
67
|
+
oneTabContent: {
|
|
68
|
+
type: Array,
|
|
69
|
+
default: null,
|
|
70
|
+
},
|
|
71
|
+
// 流程实例id
|
|
72
|
+
workflowId: {
|
|
73
|
+
type: Number,
|
|
74
|
+
default: null,
|
|
75
|
+
},
|
|
76
|
+
// 图表查询组件配置col
|
|
77
|
+
chartQuerySetting: {
|
|
78
|
+
type: Object,
|
|
79
|
+
default: null,
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
data() {
|
|
83
|
+
const system = getStoreInfo(this.pageCode, '_systemInfo')
|
|
84
|
+
return {
|
|
85
|
+
pageSettingList: [],
|
|
86
|
+
system,
|
|
87
|
+
fieldPermissions: {},
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
created() {
|
|
91
|
+
if (this.oneTabContent) {
|
|
92
|
+
// 表示是页签页面
|
|
93
|
+
this.pageSettingList = this.oneTabContent
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
methods: {
|
|
97
|
+
updateValues(sourceModel, sourceTableName, targetRowIndex) {
|
|
98
|
+
$emit(this, 'update-value', sourceModel, sourceTableName, targetRowIndex)
|
|
99
|
+
},
|
|
100
|
+
fnProhibitToEdit(entity) {
|
|
101
|
+
this.fieldPermissions = entity
|
|
102
|
+
},
|
|
103
|
+
// chartQuery组件,导出报告
|
|
104
|
+
exportReport(beanName) {
|
|
105
|
+
// 向父页面传递
|
|
106
|
+
$emit(this, 'export', beanName)
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
emits: ['update-value', 'export'],
|
|
110
|
+
}
|
|
111
|
+
</script>
|
|
112
|
+
|
|
113
|
+
<style lang="scss" scoped>
|
|
114
|
+
@import '../../../src/styles/index';
|
|
115
|
+
</style>
|