super-pages 0.0.17-up → 0.0.18-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.css +1 -1
- package/lib/super-pages.js +2432 -2357
- package/lib/super-pages.umd.cjs +14 -14
- package/package.json +1 -1
- package/packages/super-page/src/button-group.vue +1 -1
- package/packages/super-page/src/chart-page.vue +1 -1
- package/packages/super-page/src/chart-query-page.vue +17 -7
- package/packages/super-page/src/common-form-page.vue +2 -2
- package/packages/super-page/src/list-page.vue +7 -5
- package/packages/super-page/src/my-button-base.vue +17 -9
- package/packages/super-page/src/my-button.vue +1 -1
- package/packages/super-page/src/page-custom-component.vue +1 -1
- package/packages/super-page/src/super-page.vue +5 -8
- package/packages/super-page/src/tab-page.vue +1 -1
- package/packages/super-page/src/util/ListButtonEvent.js +14 -3
- package/packages/super-page/src/util/chartButtonEvent.js +88 -0
- package/packages/super-page/src/util/formButtonEvent.js +25 -1
- package/packages/super-page/src/util/util.js +11 -11
- package/packages/super-page/src/util/workflowButtonEvent.js +4 -0
- package/packages/super-page/src/widget-col-page.vue +2 -2
- package/packages/super-page/src/widget-page.vue +16 -0
- package/packages/super-page/src/workflow-button-group.vue +1 -1
- package/packages/super-page/src/workflow-form-page.vue +2 -2
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"
|
|
33
33
|
position="chart"
|
|
34
34
|
:page-code="pageCode"
|
|
35
|
+
:form-data-fun="getSearchForm"
|
|
35
36
|
@click="clickListButton"
|
|
36
37
|
/>
|
|
37
38
|
</el-col>
|
|
@@ -63,6 +64,7 @@
|
|
|
63
64
|
<template v-for="(col, colIndex) in row.colList">
|
|
64
65
|
<el-col
|
|
65
66
|
v-if="isListView"
|
|
67
|
+
:key="colIndex"
|
|
66
68
|
:span="getMyColWidth(col)"
|
|
67
69
|
:class="{
|
|
68
70
|
placeholder:
|
|
@@ -90,6 +92,7 @@
|
|
|
90
92
|
<el-row v-for="(row, rowIndex) in pageSettingList" :key="rowIndex">
|
|
91
93
|
<template v-for="(col, colIndex) in row.colList">
|
|
92
94
|
<el-col
|
|
95
|
+
:key="colIndex"
|
|
93
96
|
v-if="
|
|
94
97
|
!chartQuerySetting ||
|
|
95
98
|
isTabView ||
|
|
@@ -135,6 +138,7 @@
|
|
|
135
138
|
>
|
|
136
139
|
<template v-for="(col, colIndex) in row.colList">
|
|
137
140
|
<el-col
|
|
141
|
+
:key="colIndex"
|
|
138
142
|
v-if="isChartView && col.baseSetting.type !== 'chartQuery'"
|
|
139
143
|
:span="getMyColWidth(col)"
|
|
140
144
|
:class="{
|
|
@@ -164,6 +168,7 @@
|
|
|
164
168
|
<el-row v-for="(row, rowIndex) in pageSettingList" :key="rowIndex">
|
|
165
169
|
<template v-for="(col, colIndex) in row.colList">
|
|
166
170
|
<el-col
|
|
171
|
+
:key="colIndex"
|
|
167
172
|
v-if="
|
|
168
173
|
!chartQuerySetting ||
|
|
169
174
|
isTabView ||
|
|
@@ -216,6 +221,7 @@ import superPageService from './util/super-page'
|
|
|
216
221
|
import TabPage from './tab-page'
|
|
217
222
|
import store from './util/store'
|
|
218
223
|
import WidgetColPage from './widget-col-page'
|
|
224
|
+
import eventBus from './util/eventBus'
|
|
219
225
|
import {
|
|
220
226
|
deleteStoreInfo,
|
|
221
227
|
setStoreInfo,
|
|
@@ -282,6 +288,7 @@ export default {
|
|
|
282
288
|
isTabView: false,
|
|
283
289
|
permissionPrefix: null,
|
|
284
290
|
beanName: null,
|
|
291
|
+
searchForm: {}, // 统计图查询区域信息
|
|
285
292
|
isTabChartView: false,
|
|
286
293
|
// 页面中维护的所有事件和方法
|
|
287
294
|
// pageEvents: {
|
|
@@ -329,6 +336,14 @@ export default {
|
|
|
329
336
|
deep: true,
|
|
330
337
|
}
|
|
331
338
|
)
|
|
339
|
+
|
|
340
|
+
// 获得图表页面查询区域的值
|
|
341
|
+
const that = this
|
|
342
|
+
eventBus.$on(this.pageCode + '_get-chart-page-search-form', (searchForm) => {
|
|
343
|
+
console.log('获得图表页面查询区域的值11===searchForm====', searchForm)
|
|
344
|
+
that.searchForm = that.getParamsByQueryAndEvent(searchForm)
|
|
345
|
+
console.log('获得图表页面查询区域的值22===that.searchForm====', that.searchForm)
|
|
346
|
+
})
|
|
332
347
|
},
|
|
333
348
|
unmounted() {
|
|
334
349
|
if (this.myPageSetting.pageEvents) {
|
|
@@ -341,6 +356,7 @@ export default {
|
|
|
341
356
|
isDestory
|
|
342
357
|
)
|
|
343
358
|
}
|
|
359
|
+
eventBus.$off(this.pageCode + '_get-chart-page-search-form')
|
|
344
360
|
},
|
|
345
361
|
methods: {
|
|
346
362
|
...superPageService,
|
|
@@ -311,7 +311,7 @@ export default {
|
|
|
311
311
|
const that = this
|
|
312
312
|
eventBus.$on(
|
|
313
313
|
jumpPageSetting.pageCode + '-close-dialog',
|
|
314
|
-
(pageCode, successOperation, popEntity, popPageCode)
|
|
314
|
+
function({ pageCode, successOperation, popEntity, popPageCode }) {
|
|
315
315
|
if (pageCode === jumpPageSetting.pageCode) {
|
|
316
316
|
that.closeInPageEvent(
|
|
317
317
|
popEntity,
|
|
@@ -348,7 +348,7 @@ export default {
|
|
|
348
348
|
const that = this
|
|
349
349
|
eventBus.$on(
|
|
350
350
|
that.pageCode + '-close-component-page-dialog',
|
|
351
|
-
(jumpInfo, popEntity, popPageCode)
|
|
351
|
+
function({ jumpInfo, popEntity, popPageCode }) {
|
|
352
352
|
console.log(
|
|
353
353
|
'closeFormPageDialog-workflow------',
|
|
354
354
|
jumpInfo,
|