vue表格嵌套表格校验

<el-table-column label="单位负责人" prop="governancePower" width="118">
             <!--     <template slot-scope="scope2">
                    <asp-user v-model="scope2.row.cmpResponseId" :isRequire="true" :multi="false" v-on:changeGetUserName="cmResponseChange(scope2.row, ...arguments)" :parentUserNames="scope2.row.cmpResponseName" ></asp-user>
                  </template>-->

                  <template slot-scope="scope2">
                    <el-form-item
                      label-width="0px"
                      style="margin-bottom: 0px"
                      :prop="'setVoList.' +scope.$index+ '.projects.' + scope2.$index + '.cmpResponseId'"
                      :rules="{required: true, message: '不能为空', trigger: 'blur'}">
                      <asp-user v-model="form.setVoList[scope.$index].projects[scope2.$index].cmpResponseId" :multi="false" v-on:changeGetUserName="cmResponseChange(scope2.row, ...arguments)" :parentUserNames="scope2.row.cmpResponseName" :disabled="dataReadonly"></asp-user>
                    </el-form-item>
                  </template>
                </el-table-column>

你可能感兴趣的:(vue,表格嵌套表格,校验)