mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-11 13:39:48 +08:00
* feat: Add operators comparison to advanced search. * Set is null and not null operator. * Add multiple values to IN and NOT IN operators. * Add component render to set values to IN and NOT IN operators. * Add IN and NOT IN operators in date component. * Fix attribute comparison (isAdvancedQuery).
35 lines
682 B
Vue
35 lines
682 B
Vue
<template>
|
|
<el-select
|
|
v-model="value"
|
|
multiple
|
|
filterable
|
|
allow-create
|
|
:placeholder="metadata.help"
|
|
class="custom-field-select custom-field-select-multiple"
|
|
@change="preHandleChange"
|
|
>
|
|
<el-option
|
|
v-for="(option, key) in value"
|
|
:key="key"
|
|
:value="option"
|
|
/>
|
|
</el-select>
|
|
</template>
|
|
|
|
<script>
|
|
import { fieldMixin } from '@/components/ADempiere/Field/FieldMixin'
|
|
|
|
/**
|
|
* This component is a list type field, for IN and NOT IN search with advanced query
|
|
*/
|
|
export default {
|
|
name: 'FieldSelectMultiple',
|
|
mixins: [fieldMixin],
|
|
methods: {
|
|
preHandleChange(value) {
|
|
this.handleChange(value)
|
|
}
|
|
}
|
|
}
|
|
</script>
|