lambo-design-bi 0.0.138 → 0.0.139
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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
<!-- eslint-disable -->
|
|
1
2
|
<template>
|
|
2
3
|
<LamboPageContainer :has-footer="false" :has-header="true">
|
|
3
4
|
<template #page-title>{{ pageTitle || '' }}</template>
|
|
@@ -11,7 +12,13 @@
|
|
|
11
12
|
</BiSearchForm>
|
|
12
13
|
</LamboIndicatorCardBiSearch>
|
|
13
14
|
|
|
14
|
-
<
|
|
15
|
+
<template v-for="(item, index) in childPageWidget.widgets">
|
|
16
|
+
<component :is="getWidgetName(item)" :widget="item" :key="index" :params="params">
|
|
17
|
+
<template v-for="slot in Object.keys($scopedSlots)" v-slot:[slot]="scope">
|
|
18
|
+
<slot :name="slot" v-bind="scope" />
|
|
19
|
+
</template>
|
|
20
|
+
</component>
|
|
21
|
+
</template>
|
|
15
22
|
|
|
16
23
|
</LamboPageContainer>
|
|
17
24
|
</template>
|
|
@@ -19,15 +26,15 @@
|
|
|
19
26
|
import LamboPageContainer from '@lambo-design/page-container'
|
|
20
27
|
import BiSearchForm from '../search/search-form.vue'
|
|
21
28
|
import LamboIndicatorCardBiSearch from '../container/card/comps/indicator-card/src/indicator-card-bi-search.vue'
|
|
22
|
-
import BiPage from './index.vue'
|
|
23
29
|
import { getPageConfig } from '../api/config'
|
|
24
30
|
import { deepCopy } from "@lambo-design/shared/utils/assist"
|
|
25
31
|
import { SEARCH_DICT, DATE_RANGE_PFIX } from '../../../util/constants'
|
|
26
32
|
import moment from "moment/moment"
|
|
33
|
+
import { getWidgetName } from '../util/widget-map'
|
|
27
34
|
|
|
28
35
|
export default {
|
|
29
36
|
name: 'BiChildPageTm',
|
|
30
|
-
components: { LamboPageContainer, BiSearchForm, LamboIndicatorCardBiSearch
|
|
37
|
+
components: { LamboPageContainer, BiSearchForm, LamboIndicatorCardBiSearch },
|
|
31
38
|
props: {},
|
|
32
39
|
data() {
|
|
33
40
|
return {
|
|
@@ -38,6 +45,7 @@ export default {
|
|
|
38
45
|
}
|
|
39
46
|
},
|
|
40
47
|
methods: {
|
|
48
|
+
getWidgetName,
|
|
41
49
|
getConfig() {
|
|
42
50
|
// 从路由参数中获取pageId
|
|
43
51
|
console.log("child-page-tm getConfig this.$route.query:", this.$route.query)
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
<!-- eslint-disable -->
|
|
1
2
|
<template>
|
|
2
3
|
<LamboPageContainer :has-footer="false" :has-header="pageTitle ? true : false">
|
|
3
4
|
<template #page-title>{{ pageTitle }}</template>
|
|
@@ -7,21 +8,28 @@
|
|
|
7
8
|
</BiSearchForm>
|
|
8
9
|
</LamboIndicatorCardBiSearch>
|
|
9
10
|
|
|
10
|
-
<
|
|
11
|
+
<template v-for="(item, index) in pageWidget.widgets">
|
|
12
|
+
<component :is="getWidgetName(item)" :widget="item" :key="index" :params="params">
|
|
13
|
+
<template v-for="slot in Object.keys($scopedSlots)" v-slot:[slot]="scope">
|
|
14
|
+
<slot :name="slot" v-bind="scope" />
|
|
15
|
+
</template>
|
|
16
|
+
</component>
|
|
17
|
+
</template>
|
|
18
|
+
|
|
11
19
|
</LamboPageContainer>
|
|
12
20
|
</template>
|
|
13
21
|
<script>
|
|
14
22
|
import LamboPageContainer from '@lambo-design/page-container'
|
|
15
23
|
import BiSearchForm from '../search/search-form.vue'
|
|
16
24
|
import LamboIndicatorCardBiSearch from '../container/card/comps/indicator-card/src/indicator-card-bi-search.vue'
|
|
17
|
-
import BiPage from './index.vue'
|
|
18
25
|
import { getPageConfig } from '../api/config'
|
|
19
26
|
import { deepCopy } from "@lambo-design/shared/utils/assist"
|
|
20
27
|
import { SEARCH_DICT, DATE_RANGE_PFIX } from '../../../util/constants'
|
|
28
|
+
import { getWidgetName } from '../util/widget-map'
|
|
21
29
|
|
|
22
30
|
export default {
|
|
23
31
|
name: 'BiIndexPageTm',
|
|
24
|
-
components: { LamboPageContainer, BiSearchForm, LamboIndicatorCardBiSearch
|
|
32
|
+
components: { LamboPageContainer, BiSearchForm, LamboIndicatorCardBiSearch },
|
|
25
33
|
props: {},
|
|
26
34
|
data() {
|
|
27
35
|
return {
|
|
@@ -32,6 +40,7 @@ export default {
|
|
|
32
40
|
}
|
|
33
41
|
},
|
|
34
42
|
methods: {
|
|
43
|
+
getWidgetName,
|
|
35
44
|
getConfig() {
|
|
36
45
|
// 从路由参数中获取pageId
|
|
37
46
|
console.log("index-page-tm getConfig this.$route.query:", this.$route.query)
|
package/bi/widget/page/index.vue
CHANGED