|
|
|
@ -89,8 +89,8 @@ |
|
|
|
type="select" :item="sItem" v-model="formFields[key]" @copy="onCopy(sItem, key)" |
|
|
|
@change="(e, type) => onSelectChange(key, e, type)" :error="errors[key]" |
|
|
|
@update:error="errors[key] = false" :orange-bg="orangeBgFields[key]" /> |
|
|
|
<div v-show="isShowOther(formFields[key])" class="flex flex1"> |
|
|
|
<div class="other-title" v-if="isShowOtherTitle(sItem)">{{ sItem.otherLabel ? $t(sItem.otherLabel) : |
|
|
|
<div v-show="isShowOther(formFields[key])" class="flex flex1 ml-10"> |
|
|
|
<div class="other-title" v-if="isShowOtherLabel(sItem)">{{ sItem.otherLabel ? $t(sItem.otherLabel) : |
|
|
|
$t("template.common.other") }}</div> |
|
|
|
<div class="flex"> |
|
|
|
<HandleFormItem :field-item-label="fieldItemLabel" |
|
|
|
@ -191,8 +191,8 @@ |
|
|
|
@copy="onCopy(sItem, key)" @change="(e, type) => onSelectChange(key, e, type)" |
|
|
|
:error="errors[key]" @update:error="errors[key] = false" |
|
|
|
:orange-bg="orangeBgFields[key]" /> |
|
|
|
<div v-show="isShowOther(formFields[key])" class="flex flex1"> |
|
|
|
<div class="other-title" v-if="isShowOtherTitle(sItem)">{{ sItem.otherLabel ? $t(sItem.otherLabel) : |
|
|
|
<div v-show="isShowOther(formFields[key])" class="flex flex1 ml-10"> |
|
|
|
<div class="other-title" v-if="isShowOtherLabel(sItem)">{{ sItem.otherLabel ? $t(sItem.otherLabel) : |
|
|
|
$t("template.common.other") }}</div> |
|
|
|
<div class="flex"> |
|
|
|
<HandleFormItem :field-item-label="fieldItemLabel" |
|
|
|
@ -240,8 +240,8 @@ |
|
|
|
@onRegentSubmit="(data, inputValue) => onRegentSubmit(data, inputValue, sItem.subKey, sItem)" |
|
|
|
:error="errors[sItem.subKey]" @update:error="errors[sItem.subKey] = false" |
|
|
|
:value="formFields[sItem.subKey]" /> |
|
|
|
<div v-show="isShowOther(formFields[sItem.subKey])" class="flex flex1"> |
|
|
|
<div class="other-title" v-if="isShowOtherTitle(sItem)">{{ sItem.otherLabel ? $t(sItem.otherLabel) : |
|
|
|
<div v-show="isShowOther(formFields[sItem.subKey])" class="flex flex1 ml-10"> |
|
|
|
<div class="other-title" v-if="isShowOtherLabel(sItem)">{{ sItem.otherLabel ? $t(sItem.otherLabel) : |
|
|
|
$t("template.common.other") }}</div> |
|
|
|
<div class="flex flex1"> |
|
|
|
<HandleFormItem :field-item-label="fieldItemLabel" |
|
|
|
@ -408,7 +408,7 @@ export default { |
|
|
|
this.formFields[key] = e; |
|
|
|
}, |
|
|
|
//是否显示其他输入框的标题 |
|
|
|
isShowOtherTitle(sItem){ |
|
|
|
isShowOtherLabel(sItem){ |
|
|
|
if (sItem.hasOwnProperty("showOtherLabel")) { |
|
|
|
return sItem.showOtherLabel |
|
|
|
} |
|
|
|
|