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.
@@ -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,
@@ -556,6 +556,6 @@ export default {
556
556
  $emit(this, 'prohibi-edit', data)
557
557
  },
558
558
  },
559
- emits: ['workflowClick', 'prohibi-edit'],
559
+ emits: ['workflowClick', 'prohibi-edit','click'],
560
560
  }
561
561
  </script>
@@ -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,