|
|
@ -321,6 +321,9 @@ export default { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
validateFormData(){ |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
getFormData() { |
|
|
getFormData() { |
|
|
const { formFields, allFieldsConfig } = this; |
|
|
const { formFields, allFieldsConfig } = this; |
|
|
const { templateStatus } = this.$store.state.template; |
|
|
const { templateStatus } = this.$store.state.template; |
|
|
@ -332,6 +335,7 @@ export default { |
|
|
for (const key in allFieldsConfig) { |
|
|
for (const key in allFieldsConfig) { |
|
|
if (!formFields[key]) { |
|
|
if (!formFields[key]) { |
|
|
const o = allFieldsConfig[key]; |
|
|
const o = allFieldsConfig[key]; |
|
|
|
|
|
// 其他字段需要判断是否显示再校验 |
|
|
if (o.label === "其他" && !this.isShowOther(formFields[o.parentKey])) { |
|
|
if (o.label === "其他" && !this.isShowOther(formFields[o.parentKey])) { |
|
|
continue |
|
|
continue |
|
|
} |
|
|
} |
|
|
|