-
+
-
+
-
-
-
-
+
+
+
+
+
+
+
默认关联全部过滤组件
-
-
-
+
+
+
-
确定
取消
@@ -35,7 +37,7 @@ export default {
props: {
widgetInfo: {
type: Object,
- default: null,
+ default: null
},
element: {
type: Object,
@@ -45,35 +47,30 @@ export default {
data() {
return {
form: {
-
+
},
currentElement: null,
widget: null,
myAttrs: null
}
},
- created() {
- this.widget = this.widgetInfo
- this.currentElement = JSON.parse(JSON.stringify(this.element))
- this.myAttrs = this.currentElement.options.attrs
- },
+
computed: {
-
+
...mapState([
'componentData'
]),
filters() {
const datas = this.componentData.filter(item => item.type === 'custom')
datas.forEach(item => {
-
const serviceName = item.serviceName
const widget = ApplicationContext.getService(serviceName)
const showName = widget.initLeftPanel().label
let result = ''
- if(showName) {
+ if (showName) {
result = this.$t(showName)
}
- if(item.options.attrs.title) {
+ if (item.options.attrs.title) {
result += '【' + item.options.attrs.title + '】'
}
@@ -82,6 +79,11 @@ export default {
return datas
}
},
+ created() {
+ this.widget = this.widgetInfo
+ this.currentElement = JSON.parse(JSON.stringify(this.element))
+ this.myAttrs = this.currentElement.options.attrs
+ },
methods: {
sure() {
this.$emit('sure-handler')
@@ -94,7 +96,10 @@ export default {
},
customRangeChange(val) {
this.myAttrs.filterIds = []
+ },
+ autoTriggerChange(val) {
+
}
}
}
-
\ No newline at end of file
+
diff --git a/frontend/src/views/panel/filter/index.vue b/frontend/src/views/panel/filter/index.vue
index c10dbf2962..394c37dc9c 100644
--- a/frontend/src/views/panel/filter/index.vue
+++ b/frontend/src/views/panel/filter/index.vue
@@ -9,7 +9,7 @@
v-for="(widget, index) in item"
:key="widget.widgetName+index"
:data-id="widget.widgetName"
- draggable
+ :draggable="widget.widgetName !== 'buttonSureWidget' || !searchButtonExist"
:data-index="index"
:class="'filter-widget '+ (widget.defaultClass || '')"
>
@@ -27,7 +27,7 @@