I'm trying to fetch some data in a table, When I send data to create a new item it shows me Failed to load resource: the server responded with a status of 405 (Method Not Allowed)
I'm working with an element ui
form. I don't know if there's a way to change the request method
This is my form code:
<el-dialog :title="formTitle" :visible.sync="supplierFormVisible">
<div class="form-container">
<el-form ref="supplierForm" :model="currentSupplier" label-position="left" label-width="150px" style="max-width: 500px;">
<el-form-item label="Proveedor" prop="proveedor">
<el-input v-model="currentSupplier.proveedor" />
</el-form-item>
<el-form-item label="Marca" prop="marca">
<el-input v-model="currentSupplier.marca" />
</el-form-item>
<el-form-item label="Contacto" prop="contacto">
<el-input v-model="currentSupplier.contacto" />
</el-form-item>
<el-form-item label="Telefono" prop="telefono">
<el-input v-model="currentSupplier.telefono" />
</el-form-item>
<el-form-item label="Email" prop="email">
<el-input v-model="currentSupplier.email" />
</el-form-item>
<el-form-item label="Pais" prop="pais">
<el-input v-model="currentSupplier.pais" />
</el-form-item>
<el-form-item label="Direccion" prop="direccion">
<el-input v-model="currentSupplier.direccion" />
</el-form-item>
<el-form-item label="Calidad" prop="calidad">
<el-input v-model="currentSupplier.calidad" />
</el-form-item>
<el-form-item label="Pedidos" prop="pedidos">
<el-input v-model="currentSupplier.pedidos" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="supplierFormVisible = false">
Cancel
</el-button>
<el-button type="primary" @click="handleSubmit()">
Confirm
</el-button>
</div>
</div>
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire