喀左大屏改造,追加监控轮播大屏组件
This commit is contained in:
@@ -23,7 +23,7 @@ $--font-path: '~element-ui/lib/theme-chalk/fonts';
|
||||
}
|
||||
}
|
||||
|
||||
@each $v in (8, 10, 12, 14, 16, 20, 24, 32, 48, 56, 64, 80) {
|
||||
@each $v in (8, 10, 12, 14, 16, 20, 24, 27, 32, 48, 56, 64, 80) {
|
||||
//gap
|
||||
.gap-#{$v} {
|
||||
gap: #{$v}px
|
||||
|
||||
@@ -59,7 +59,8 @@ export default {
|
||||
default: () => ({})
|
||||
},
|
||||
filterable: Boolean,
|
||||
disabled: Boolean
|
||||
disabled: Boolean,
|
||||
condition: Function
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -89,11 +90,11 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
getOptions() {
|
||||
this.instance?.post(this.action, null, {
|
||||
this.action && this.instance?.post(this.action, null, {
|
||||
params: {size: 999}
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
this.options = res.data.records || res.data
|
||||
this.options = (res.data.records || res.data || []).filter(e => !this.condition || this.condition(e))
|
||||
}
|
||||
}).then(() => this.handleSelect())
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user