1.封装表单
<template><div><el-form :model="numberValidateForm" ref="numberValidateForm" label-width="80px" :disabled="type==='click'"><div v-for="item in formConfig" :key="item.id"><el-form-item v-if="item.type==='input'" style="width: 300px;" :label="item.label" :prop="item.name" ><el-input v-model.number="numberValidateForm[item.name]" autocomplete="off" ></el-input></el-form-item><el-form-item v-else-if="item.type==='select'" style="width: 300px;" :label="item.label" :prop="item.name" ><el-select v-model="numberValidateFo