|
|
@ -173,13 +173,14 @@ |
|
|
@copy="onCopy(sItem, key)" @change="(e, type) => onSelectChange(key, e, type)" |
|
|
@copy="onCopy(sItem, key)" @change="(e, type) => onSelectChange(key, e, type)" |
|
|
:error="errors[key]" @update:error="errors[key] = false" |
|
|
:error="errors[key]" @update:error="errors[key] = false" |
|
|
:orange-bg="orangeBgFields[key]" /> |
|
|
:orange-bg="orangeBgFields[key]" /> |
|
|
<div v-show="isShowOther(formFields[key])" class="flex flex1 ml-10"> |
|
|
|
|
|
<div class="other-title" v-if="isShowOtherLabel(sItem)">{{ sItem.otherLabel ? $t(sItem.otherLabel) : |
|
|
|
|
|
|
|
|
<div v-show="isShowOther(formFields[key]) || isShowRadioSelect(formFields[key])" class="flex flex1 ml-10"> |
|
|
|
|
|
<div class="other-title" v-if="isShowOtherLabel(sItem) && isShowOther(formFields[key])">{{ sItem.otherLabel ? $t(sItem.otherLabel) : |
|
|
$t("template.common.other") }}</div> |
|
|
$t("template.common.other") }}</div> |
|
|
<div class="flex flex1"> |
|
|
<div class="flex flex1"> |
|
|
<HandleFormItem :field-item-label="fieldItemLabel" |
|
|
<HandleFormItem :field-item-label="fieldItemLabel" |
|
|
:field-key="prefixKey + '_' + sItem.otherCode" @blur="onBlur(key, $event)" |
|
|
:field-key="prefixKey + '_' + sItem.otherCode" @blur="onBlur(key, $event)" |
|
|
:item="getOtherItem(sItem)" v-model="formFields[sItem.otherCode]" |
|
|
:item="getOtherItem(sItem)" v-model="formFields[sItem.otherCode]" |
|
|
|
|
|
:type = "isShowOther(formFields[key]) ? 'input' : 'select'" |
|
|
@copy="onCopy(sItem, key)" :error="errors[sItem.otherCode]" |
|
|
@copy="onCopy(sItem, key)" :error="errors[sItem.otherCode]" |
|
|
@update:error="errors[sItem.otherCode] = false" |
|
|
@update:error="errors[sItem.otherCode] = false" |
|
|
:orange-bg="orangeBgFields[sItem.otherCode]" /> |
|
|
:orange-bg="orangeBgFields[sItem.otherCode]" /> |
|
|
@ -396,6 +397,11 @@ export default { |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
//是否显示radio后的select |
|
|
|
|
|
isShowRadioSelect(value){ |
|
|
|
|
|
const arr = ["动物种属","细胞系"]; |
|
|
|
|
|
return arr.includes(value) |
|
|
|
|
|
}, |
|
|
onBeforeReagentSubmit(data, callback, key) { |
|
|
onBeforeReagentSubmit(data, callback, key) { |
|
|
this.$emit('beforeReagentSubmit', { selectData: data, callback, key, formFields: this.formFields }) |
|
|
this.$emit('beforeReagentSubmit', { selectData: data, callback, key, formFields: this.formFields }) |
|
|
}, |
|
|
}, |
|
|
|