|
|
@ -40,7 +40,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
<div class="p-l-20"> |
|
|
<div class="p-l-20"> |
|
|
<div v-show="isShowOther(formFields[key])"> |
|
|
<div v-show="isShowOther(formFields[key])"> |
|
|
<div class="form-title">{{ sItem.otherLabel ? $t(sItem.otherLabel) : |
|
|
|
|
|
|
|
|
<div class="form-title" >{{ 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" |
|
|
@ -90,7 +90,7 @@ |
|
|
@change="(e, type) => onSelectChange(key, e, type)" :error="errors[key]" |
|
|
@change="(e, type) => onSelectChange(key, e, type)" :error="errors[key]" |
|
|
@update:error="errors[key] = false" :orange-bg="orangeBgFields[key]" /> |
|
|
@update:error="errors[key] = false" :orange-bg="orangeBgFields[key]" /> |
|
|
<div v-show="isShowOther(formFields[key])" class="flex flex1"> |
|
|
<div v-show="isShowOther(formFields[key])" class="flex flex1"> |
|
|
<div class="other-title">{{ sItem.otherLabel ? $t(sItem.otherLabel) : |
|
|
|
|
|
|
|
|
<div class="other-title" v-if="isShowOtherTitle(sItem)">{{ sItem.otherLabel ? $t(sItem.otherLabel) : |
|
|
$t("template.common.other") }}</div> |
|
|
$t("template.common.other") }}</div> |
|
|
<div class="flex"> |
|
|
<div class="flex"> |
|
|
<HandleFormItem :field-item-label="fieldItemLabel" |
|
|
<HandleFormItem :field-item-label="fieldItemLabel" |
|
|
@ -192,7 +192,7 @@ |
|
|
: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"> |
|
|
<div v-show="isShowOther(formFields[key])" class="flex flex1"> |
|
|
<div class="other-title">{{ sItem.otherLabel ? $t(sItem.otherLabel) : |
|
|
|
|
|
|
|
|
<div class="other-title" v-if="isShowOtherTitle(sItem)">{{ sItem.otherLabel ? $t(sItem.otherLabel) : |
|
|
$t("template.common.other") }}</div> |
|
|
$t("template.common.other") }}</div> |
|
|
<div class="flex"> |
|
|
<div class="flex"> |
|
|
<HandleFormItem :field-item-label="fieldItemLabel" |
|
|
<HandleFormItem :field-item-label="fieldItemLabel" |
|
|
@ -241,7 +241,7 @@ |
|
|
:error="errors[sItem.subKey]" @update:error="errors[sItem.subKey] = false" |
|
|
:error="errors[sItem.subKey]" @update:error="errors[sItem.subKey] = false" |
|
|
:value="formFields[sItem.subKey]" /> |
|
|
:value="formFields[sItem.subKey]" /> |
|
|
<div v-show="isShowOther(formFields[sItem.subKey])" class="flex flex1"> |
|
|
<div v-show="isShowOther(formFields[sItem.subKey])" class="flex flex1"> |
|
|
<div class="other-title">{{ sItem.otherLabel ? $t(sItem.otherLabel) : |
|
|
|
|
|
|
|
|
<div class="other-title" v-if="isShowOtherTitle(sItem)">{{ 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" |
|
|
@ -406,7 +406,14 @@ export default { |
|
|
onFqyqChange(key, e) { |
|
|
onFqyqChange(key, e) { |
|
|
console.log(e, key, 'fqyq'); |
|
|
console.log(e, key, 'fqyq'); |
|
|
this.formFields[key] = e; |
|
|
this.formFields[key] = e; |
|
|
} |
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
//是否显示其他输入框的标题 |
|
|
|
|
|
isShowOtherTitle(sItem){ |
|
|
|
|
|
if (sItem.hasOwnProperty("showOtherLabel")) { |
|
|
|
|
|
return sItem.showOtherLabel |
|
|
|
|
|
} |
|
|
|
|
|
return true |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|