diff --git a/project/xumu/components/AiEartagPicker.vue b/project/xumu/components/AiEartagPicker.vue index faf2e86f..cafaf8ac 100644 --- a/project/xumu/components/AiEartagPicker.vue +++ b/project/xumu/components/AiEartagPicker.vue @@ -3,8 +3,8 @@ export default { name: "AiEartagPicker", props: { instance: Function, - value: {default: () => []}, - action: {default: "/api/breed/earTag/getEarTagByPenId"}, + value: { default: () => [] }, + action: { default: "/api/breed/earTag/getEarTagByPenId" }, penId: String }, model: { @@ -39,7 +39,7 @@ export default { getEartag() { !/undefined/.test(this.api) && this.instance.post(this.api).then(res => { if (res?.data) { - this.list = res.data + this.list = res.data?.map(v => ({ key: v, label: v })) || [] } }) }, @@ -54,15 +54,16 @@ export default { @@ -84,7 +85,7 @@ export default { right: 0; z-index: 999; - & > div { + &>div { height: 100%; } }