super-pages 0.0.15-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 +2598 -2564
- 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 +46 -10
- 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,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
|
|
@@ -359,9 +359,12 @@ const Util = {
|
|
|
359
359
|
// initWorkflowFormData和getDscFormData中有重新加载表单内容,不需要调用updateFormData方法了
|
|
360
360
|
// this.updateFormData(formData)
|
|
361
361
|
if (formData && (formData.id || formData.ID)) {
|
|
362
|
-
|
|
362
|
+
// dataId 是父组件传过来的字段,直接赋值控制台会报错
|
|
363
|
+
// this.dataId = formData.ID == null ? formData.id : formData.ID
|
|
364
|
+
let dataIdSessio = formData.ID == null ? formData.id : formData.ID
|
|
363
365
|
if (this.$route.query._t_) {
|
|
364
|
-
|
|
366
|
+
// sessionStorage.setItem(this.$route.query._t_ + '_id', this.dataId)
|
|
367
|
+
sessionStorage.setItem(this.$route.query._t_ + '_id', dataIdSessio)
|
|
365
368
|
}
|
|
366
369
|
if (isWorkflowForm) {
|
|
367
370
|
this.initWorkflowFormData()
|
|
@@ -1016,6 +1019,12 @@ const Util = {
|
|
|
1016
1019
|
}
|
|
1017
1020
|
})
|
|
1018
1021
|
},
|
|
1022
|
+
// 弹框显示页面,例如:列表页面super-grid字段的超链接弹框、表单页面子表字段的超链接弹框、表单页面超链接或按钮弹框。
|
|
1023
|
+
// 此处只需要直接弹出来就行了,弹框前事件、跳转页面配置解析已在对应位置(super-grid或super-form)代码解析了
|
|
1024
|
+
popupToPage(jumpPageSetting){
|
|
1025
|
+
this.jumpPageSetting = jumpPageSetting
|
|
1026
|
+
this.isShowContentPageDialog = true
|
|
1027
|
+
},
|
|
1019
1028
|
// 返回按钮 或 自定义按钮配置的是“关闭弹框Dialog”时会走该方法
|
|
1020
1029
|
closePage(pageCode, successOperation, formData) {
|
|
1021
1030
|
// console.log('----closePage---pageCode=', pageCode)
|
|
@@ -1088,15 +1097,20 @@ const Util = {
|
|
|
1088
1097
|
// 页面组件中点击弹框的右上角的关闭'x'按钮关闭弹框
|
|
1089
1098
|
closeInPage(popParams) {
|
|
1090
1099
|
// popParams格式为{ entity, pageCode }
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
}
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1100
|
+
if(this.isShowContentPageDialog){
|
|
1101
|
+
// 关闭表单页面或列表页面内容中的弹框
|
|
1102
|
+
this.closeContentPageDialog(this, popParams)
|
|
1103
|
+
} else {
|
|
1104
|
+
let popEntity
|
|
1105
|
+
if (popParams && popParams.entity) {
|
|
1106
|
+
popEntity = popParams.entity
|
|
1107
|
+
}
|
|
1108
|
+
let popPageCode
|
|
1109
|
+
if (popParams && popParams.pageCode) {
|
|
1110
|
+
popPageCode = popParams.pageCode
|
|
1111
|
+
}
|
|
1112
|
+
this.closeInPageEvent(popEntity, popPageCode, null, this)
|
|
1098
1113
|
}
|
|
1099
|
-
this.closeInPageEvent(popEntity, popPageCode, null, this)
|
|
1100
1114
|
},
|
|
1101
1115
|
// 页面组件中点击按钮等组件关闭弹框调用
|
|
1102
1116
|
closeInPageEvent(popEntity, popPageCode, successOperation, that) {
|
|
@@ -1137,6 +1151,28 @@ const Util = {
|
|
|
1137
1151
|
that.jumpPageSetting = null
|
|
1138
1152
|
}
|
|
1139
1153
|
},
|
|
1154
|
+
// 表单页面或列表页面内部关闭弹框,例如:表单页面超链接或按钮、列表页面字段超链接配置、表单页面子表字段超链接配置
|
|
1155
|
+
closeContentPageDialog(that, popParams){
|
|
1156
|
+
// 关闭弹框
|
|
1157
|
+
if(that.isShowContentPageDialog){
|
|
1158
|
+
that.isShowContentPageDialog = false
|
|
1159
|
+
that.jumpPageSetting = null
|
|
1160
|
+
}
|
|
1161
|
+
// 关闭弹框后事件处理
|
|
1162
|
+
if(that.pageType && that.pageType === 'list'){
|
|
1163
|
+
// 列表页面关闭弹框方法
|
|
1164
|
+
const gridRef = that.$refs.grid
|
|
1165
|
+
if(gridRef){
|
|
1166
|
+
gridRef.closePageDialog(popParams)
|
|
1167
|
+
}
|
|
1168
|
+
}else if(that.pageType && that.pageType === 'form'){
|
|
1169
|
+
// 表单页面关闭弹框方法
|
|
1170
|
+
const superFromRef = that.$refs.superForm
|
|
1171
|
+
if(superFromRef){
|
|
1172
|
+
superFromRef.closePageDialog(popParams)
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
},
|
|
1140
1176
|
// 响应关闭弹框事件
|
|
1141
1177
|
eventBusOnCloseDialog(
|
|
1142
1178
|
pageCode,
|