fix: added Table multiselect control in Field layout
This commit is contained in:
parent
d64c77aef0
commit
aee5048cae
@ -82,7 +82,7 @@ const props = defineProps({
|
||||
required: true,
|
||||
},
|
||||
filters: {
|
||||
type: [Array, String],
|
||||
type: [Array, Object, String],
|
||||
default: [],
|
||||
},
|
||||
modelValue: {
|
||||
@ -133,7 +133,7 @@ watchDebounced(
|
||||
|
||||
const options = createResource({
|
||||
url: 'frappe.desk.search.search_link',
|
||||
cache: [props.doctype, text.value, props.hideMe],
|
||||
cache: [props.doctype, text.value, props.hideMe, props.filters],
|
||||
method: 'POST',
|
||||
params: {
|
||||
txt: text.value,
|
||||
|
||||
@ -39,7 +39,6 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { TextInput } from 'frappe-ui'
|
||||
import { ref, nextTick } from 'vue'
|
||||
|
||||
const props = defineProps({
|
||||
|
||||
@ -81,6 +81,12 @@
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
<TableMultiselectInput
|
||||
v-else-if="field.fieldtype === 'Table MultiSelect'"
|
||||
v-model="data[field.fieldname]"
|
||||
:doctype="field.options"
|
||||
/>
|
||||
|
||||
<Link
|
||||
v-else-if="field.fieldtype === 'User'"
|
||||
class="form-control"
|
||||
@ -177,6 +183,7 @@
|
||||
import EditIcon from '@/components/Icons/EditIcon.vue'
|
||||
import IndicatorIcon from '@/components/Icons/IndicatorIcon.vue'
|
||||
import UserAvatar from '@/components/UserAvatar.vue'
|
||||
import TableMultiselectInput from '@/components/Controls/TableMultiselectInput.vue'
|
||||
import Link from '@/components/Controls/Link.vue'
|
||||
import Grid from '@/components/Controls/Grid.vue'
|
||||
import { getFormat, evaluateDependsOnValue } from '@/utils'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user