要将form1的'acTaxPiIncomeReportingDetail'传给form的'acTaxPiIncomeReportingDetail',可以使用Vue的双向绑定功能。在el-input元素上添加'v-model'指令,将'form1.acTaxPiIncomeReportingDetail'的相应属性绑定到el-input的'value'属性上。例如:

<el-input
  v-model="form1.acTaxPiIncomeReportingDetail.domesticWorkDays"
  placeholder="请输入天数"
  style="width: 60px"
></el-input>

然后,将'form1.acTaxPiIncomeReportingDetail'直接赋值给'form.acTaxPiIncomeReportingDetail'。例如:

this.form.acTaxPiIncomeReportingDetail = this.form1.acTaxPiIncomeReportingDetail;

这样就可以将'form1.acTaxPiIncomeReportingDetail'传给'form.acTaxPiIncomeReportingDetail'了。

如何将form1的acTaxPiIncomeReportingDetail传给form的acTaxPiIncomeReportingDetail

原文地址: https://www.cveoy.top/t/topic/peNs 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录