lambo-design-bi 0.0.149 → 0.0.150
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.
|
@@ -6,9 +6,8 @@
|
|
|
6
6
|
<Button @click="goBack" type="primary" class="btn-margin" ghost>返回</Button>
|
|
7
7
|
</template>
|
|
8
8
|
|
|
9
|
-
<LamboIndicatorCardBiSearch v-if="
|
|
10
|
-
<BiSearchForm
|
|
11
|
-
@on-search="doSearch">
|
|
9
|
+
<LamboIndicatorCardBiSearch v-if="shouldShowLamboIndicator" :has-extend="false" :has-title="false">
|
|
10
|
+
<BiSearchForm :widget="childPageWidget.search" @on-search="doSearch">
|
|
12
11
|
</BiSearchForm>
|
|
13
12
|
</LamboIndicatorCardBiSearch>
|
|
14
13
|
|
|
@@ -206,6 +205,20 @@ export default {
|
|
|
206
205
|
this.getConfig()
|
|
207
206
|
}
|
|
208
207
|
}
|
|
208
|
+
},
|
|
209
|
+
computed: {
|
|
210
|
+
shouldShowLamboIndicator() {
|
|
211
|
+
if (!this.childPageWidget ||
|
|
212
|
+
!this.childPageWidget.search ||
|
|
213
|
+
!this.childPageWidget.search.widgets) {
|
|
214
|
+
return false
|
|
215
|
+
}
|
|
216
|
+
// 过滤出searchType不等于'A0'的widgets
|
|
217
|
+
const filteredWidgets = this.childPageWidget.search.widgets.filter(item =>
|
|
218
|
+
item && item.options && item.options.searchType !== 'A0'
|
|
219
|
+
)
|
|
220
|
+
return filteredWidgets.length > 0
|
|
221
|
+
}
|
|
209
222
|
}
|
|
210
223
|
}
|
|
211
224
|
</script>
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
<LamboPageContainer :has-footer="false" :has-header="pageTitle ? true : false">
|
|
4
4
|
<template #page-title>{{ pageTitle }}</template>
|
|
5
5
|
|
|
6
|
-
<LamboIndicatorCardBiSearch v-if="
|
|
7
|
-
<BiSearchForm
|
|
6
|
+
<LamboIndicatorCardBiSearch v-if="shouldShowLamboIndicator" :has-extend="false" :has-title="false">
|
|
7
|
+
<BiSearchForm :widget="pageWidget.search" @on-search="doSearch">
|
|
8
8
|
</BiSearchForm>
|
|
9
9
|
</LamboIndicatorCardBiSearch>
|
|
10
10
|
|
|
@@ -107,6 +107,20 @@ export default {
|
|
|
107
107
|
},
|
|
108
108
|
mounted() {
|
|
109
109
|
|
|
110
|
+
},
|
|
111
|
+
computed: {
|
|
112
|
+
shouldShowLamboIndicator() {
|
|
113
|
+
if (!this.pageWidget ||
|
|
114
|
+
!this.pageWidget.search ||
|
|
115
|
+
!this.pageWidget.search.widgets) {
|
|
116
|
+
return false
|
|
117
|
+
}
|
|
118
|
+
// 过滤出searchType不等于'A0'的widgets
|
|
119
|
+
const filteredWidgets = this.pageWidget.search.widgets.filter(item =>
|
|
120
|
+
item && item.options && item.options.searchType !== 'A0'
|
|
121
|
+
)
|
|
122
|
+
return filteredWidgets.length > 0
|
|
123
|
+
}
|
|
110
124
|
}
|
|
111
125
|
}
|
|
112
126
|
</script>
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div v-if="widget.widgets && widget.widgets.length > 0">
|
|
3
|
-
<LamboQueryFilter :default-rows="3" :label-width="145" :span="8" :hideResetButton="true" @do-search="doSearch"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
<FormItem v-for="(item, index) in widget.widgets" :key="index" :label="item.name">
|
|
3
|
+
<LamboQueryFilter :default-rows="3" :label-width="145" :span="8" :hideResetButton="true" @do-search="doSearch" @on-reset="onReset">
|
|
4
|
+
<div v-for="(item, index) in widget.widgets" :key="index">
|
|
5
|
+
<FormItem v-if="item.options.searchType !== 'A0'" :label="item.name">
|
|
7
6
|
<BiSearchItem :widget="item"></BiSearchItem>
|
|
8
7
|
</FormItem>
|
|
9
|
-
</
|
|
8
|
+
</div>
|
|
10
9
|
</LamboQueryFilter>
|
|
11
10
|
</div>
|
|
12
11
|
</template>
|