代码拉取完成,页面将自动刷新
有子表的情况下,data中添加{reRenderSubformKey:0}
template中,对应子表处 添加 :key="reRenderSubformKey"
像这样 <avue-form ... :key="reRenderSubformKey">
需要在对应的子表option添加finaceFormIdList(财务组件formId集合),对应的column中,修改插槽formslot: true
子表中,在新增,或者删除的时候,要更新整个子表数据(修改对应的子表option配置中的rowadd,rowdel中方法)
在template中添加,对应子表插槽,注意formId和子表字段名
<template>
<avue-form ...>
<!-- 添加开始 -->
<template slot-scope="{row}" slot="对应的子表字段名">
<AvueFinance :index="row.$index" v-model="row['对应的子表字段名']" :formId="对应的formId"
:conf="getTableItemConfConfig(对应的formId)" @changeTableFinaceData="changeTableFinaceData"
>
</AvueFinance>
</template>
<!-- 添加结束 -->
</avue-form>
</template>
在config文件formFieldsMap中,添加对应的formId需要的数据,主要信息有