lambo-design-bi 0.0.108 → 0.0.111
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,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<LamboPageContainer :has-footer="false" :has-header="true">
|
|
3
|
-
<template #page-title>{{
|
|
3
|
+
<template #page-title>{{ pageTitle || '' }}</template>
|
|
4
4
|
<template #page-extend>
|
|
5
5
|
<Button @click="goBack" type="primary" class="btn-margin" ghost>返回</Button>
|
|
6
6
|
</template>
|
|
@@ -22,9 +22,8 @@ import LamboIndicatorCardBiSearch from '../container/card/comps/indicator-card/s
|
|
|
22
22
|
import BiPage from './index.vue'
|
|
23
23
|
import { getPageConfig } from '../api/config'
|
|
24
24
|
import { deepCopy } from "@lambo-design/shared/utils/assist"
|
|
25
|
-
import { SEARCH_DICT } from '
|
|
25
|
+
import { SEARCH_DICT, DATE_RANGE_PFIX } from '../../../util/constants'
|
|
26
26
|
import moment from "moment/moment"
|
|
27
|
-
import { DATE_RANGE_PFIX } from '@/components/lambo/util/constants'
|
|
28
27
|
|
|
29
28
|
export default {
|
|
30
29
|
name: 'BiChildPageTm',
|
|
@@ -32,6 +31,7 @@ export default {
|
|
|
32
31
|
props: {},
|
|
33
32
|
data() {
|
|
34
33
|
return {
|
|
34
|
+
pageTitle: '',
|
|
35
35
|
childPageWidget: {},
|
|
36
36
|
params: {},
|
|
37
37
|
pageId: ''
|
|
@@ -54,6 +54,7 @@ export default {
|
|
|
54
54
|
} else {
|
|
55
55
|
if (res.data.data) {
|
|
56
56
|
let pageWidgetTree = deepCopy(res.data.data)
|
|
57
|
+
this.pageTitle = pageWidgetTree.options.title || ''
|
|
57
58
|
console.log("获取页面配置 1:", pageWidgetTree)
|
|
58
59
|
this.setRouteConfig2Search(pageWidgetTree)
|
|
59
60
|
console.log("获取页面配置 2:", pageWidgetTree)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<LamboPageContainer :has-footer="false" :has-header="
|
|
3
|
-
<template #page-title>{{
|
|
2
|
+
<LamboPageContainer :has-footer="false" :has-header="pageTitle ? true : false">
|
|
3
|
+
<template #page-title>{{ pageTitle }}</template>
|
|
4
4
|
|
|
5
5
|
<LamboIndicatorCardBiSearch v-if="pageWidget && pageWidget.search" :has-extend="false" :has-title="false">
|
|
6
6
|
<BiSearchForm v-if="pageWidget && pageWidget.search" :widget="pageWidget.search" @on-search="doSearch">
|
|
@@ -17,8 +17,7 @@ import LamboIndicatorCardBiSearch from '../container/card/comps/indicator-card/s
|
|
|
17
17
|
import BiPage from './index.vue'
|
|
18
18
|
import { getPageConfig } from '../api/config'
|
|
19
19
|
import { deepCopy } from "@lambo-design/shared/utils/assist"
|
|
20
|
-
import { SEARCH_DICT } from '
|
|
21
|
-
import { DATE_RANGE_PFIX } from '@/components/lambo/util/constants'
|
|
20
|
+
import { SEARCH_DICT, DATE_RANGE_PFIX } from '../../../util/constants'
|
|
22
21
|
|
|
23
22
|
export default {
|
|
24
23
|
name: 'BiIndexPageTm',
|
|
@@ -26,6 +25,7 @@ export default {
|
|
|
26
25
|
props: {},
|
|
27
26
|
data() {
|
|
28
27
|
return {
|
|
28
|
+
pageTitle: '',
|
|
29
29
|
pageWidget: {},
|
|
30
30
|
params: {},
|
|
31
31
|
pageId: ''
|
|
@@ -49,6 +49,7 @@ export default {
|
|
|
49
49
|
let pageWidgetTree = res.data.data
|
|
50
50
|
if (pageWidgetTree) {
|
|
51
51
|
this.pageWidget = deepCopy(pageWidgetTree)
|
|
52
|
+
this.pageTitle = this.pageWidget.options.title || ''
|
|
52
53
|
console.log("获取页面配置成功:", this.pageWidget)
|
|
53
54
|
} else {
|
|
54
55
|
console.error("获取页面配置[" + this.pageId + "]失败:配置数据为空")
|