123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <template>
- <div id="index">
- <el-row>
- <el-col :span="24" class="main">
- <el-col :span="24" class="one">
- <el-form label-position="top" ref="ruleFormRef" :model="form" :rules="rules" label-width="80px" class="form">
- <el-row :gutter="20">
- <el-col :span="12">
- <el-form-item label="姓名" prop="name">
- <el-input size="large" clearable v-model="form.name" placeholder="请输入姓名"> </el-input>
- </el-form-item>
- </el-col>
- <el-col :span="12">
- <el-form-item label="电话号" prop="phone">
- <el-input size="large" clearable v-model="form.phone" placeholder="请输入电话号"> </el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row :gutter="20">
- <el-col :span="12">
- <el-form-item label="证件类型" prop="cardType">
- <el-select clearable v-model="form.cardType" placeholder="请选择证件类型">
- <el-option v-for="(item, index) in cardTypeList" :key="index" :label="item.label" :value="item.value" />
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="12">
- <el-form-item label="证件号码" prop="card">
- <el-input size="large" clearable v-model="form.card" placeholder="请输入证件号码"> </el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row :gutter="20">
- <el-col :span="12">
- <el-form-item label="微信/QQ" prop="communication">
- <el-input size="large" clearable v-model="form.communication" placeholder="请输入微信/QQ"> </el-input>
- </el-form-item>
- </el-col>
- <el-col :span="12">
- <el-form-item label="电子邮箱" prop="email">
- <el-input size="large" clearable v-model="form.email" placeholder="请输入电子邮箱"> </el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-form-item label="备注" prop="brief">
- <el-input size="large" v-model="form.remark" :autosize="{ minRows: 2, maxRows: 8 }" type="textarea" placeholder="请输入备注" />
- </el-form-item>
- <el-form-item>
- <el-col :span="24" class="button">
- <el-button type="primary" @click="submitForm(ruleFormRef)">确定</el-button>
- </el-col>
- </el-form-item>
- </el-form>
- </el-col>
- </el-col>
- </el-row>
- </div>
- </template>
- <script setup>
- const ruleFormRef = inject('ruleFormRef')
- const form = inject('form')
- const rules = inject('rules')
- const cardTypeList = inject('cardTypeList')
- const submitForm = inject('submitForm')
- </script>
- <style scoped lang="scss">
- .main {
- .one {
- .button {
- text-align: center;
- }
- }
- }
- </style>
|