<el-form ref="formRef":model="ruleForm"label-width="120px"class="demo-dynamic":rules="rules"><el-table:data="ruleForm.tableData"borderstyle="width: 100%;margin: 0 auto;"@cell-click="editRow"><el-table-columnlabel="序号"align="center"width="100"><template#default="scope"><span>{...
<template><div><el-form:model="forms"ref="forms":rules="rules"><el-table:data="forms.voList"><el-table-columnlabel="商品名称"><templateslot-scope="scope"><el-form-item:prop="'voList.'+scope.$index+'.goodsName'"><el-inputv-model="scope.row.goodsName"></el-input></el-form-item...
<el-table-column label="设备名称" width="100px" show-overflow-tooltip prop="AssetName" /><el-table-column label="策略名称" prop="RuleName"> <template slot-scope="{row,$index}"> <el-form-item v-if="showEdit[$index]['RuleName']" class="el-form-item-class" :prop=" 'dataTable....
在el-form中嵌套el-table时, 对某个字段使用el-form-item加校验, 前面没有写el-form-item且没有配置校验会影响后面配置过的 <!-- 供应商预估金额 --> <el-table-column width="200" :label="'供应商预估金额'"> <template slot-scope="scope"> <el-input v-model.trim="scope.row.supplierEstimatedA...
</el-table> </el-form> </div> </template> <script> export default { name: "SpaceImport", data(){ return { forms:{ id:1, documentNo:null, buyerName:"服务技术", buyerDp:"42118XXXXXXXXXX72X", buyerBankAccount:"招商银行4890284", ...