actualizacion de modal
This commit is contained in:
@@ -7,17 +7,29 @@
|
|||||||
</b-col>
|
</b-col>
|
||||||
</b-row>
|
</b-row>
|
||||||
<b-row>
|
<b-row>
|
||||||
<b-col >
|
<b-col sm="3">
|
||||||
<p class="my-4">Actual: {{value}}</p>
|
<h4>Actual: </h4>
|
||||||
|
</b-col>
|
||||||
|
<b-col sm="9">
|
||||||
|
<h4><strong>{{campo}}</strong></h4>
|
||||||
</b-col>
|
</b-col>
|
||||||
|
|
||||||
</b-row>
|
</b-row>
|
||||||
<b-row>
|
<b-row>
|
||||||
<b-col >
|
<b-col sm="3">
|
||||||
<label for="changeValue">Actualizar: </label>
|
<label for="changeValue">Actualizar: </label>
|
||||||
|
</b-col>
|
||||||
|
<b-col sm="9">
|
||||||
<b-form-input id="changeValue" placeholder="Actualizar campo"></b-form-input>
|
<b-form-input id="changeValue" placeholder="Actualizar campo"></b-form-input>
|
||||||
</b-col>
|
</b-col>
|
||||||
</b-row>
|
</b-row>
|
||||||
|
<b-row>
|
||||||
|
<b-col>
|
||||||
|
<div style="margin-top: 2rem;">
|
||||||
|
<b-button class="btn btn-outline-success float-right" @click="enviarFicha()" style="width: 30%; ">Enviar</b-button>
|
||||||
|
<b-button @click="$bvModal.hide('fichaDeposito')" variant="outline-danger" class="btn float-left" style="width: 30%; ">Cancelar</b-button>
|
||||||
|
</div>
|
||||||
|
</b-col>
|
||||||
|
</b-row>
|
||||||
</b-container>
|
</b-container>
|
||||||
</b-modal>
|
</b-modal>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -3,48 +3,33 @@
|
|||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th v-for="item in pcHeaders" v-bind:key="item.nombre" scope="col">
|
<th v-for="item in pcHeaders" v-bind:key="item.nombre" scope="col">
|
||||||
<div class="dropdown">
|
<div class="dropdown">
|
||||||
<button class="btn nav-link dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
<button class="btn nav-link dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
{{item.nombre}}
|
{{item.nombre}}
|
||||||
</button>
|
</button>
|
||||||
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
|
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
|
||||||
<b-dropdown-form>
|
<b-dropdown-form>
|
||||||
<b-form-checkbox v-for="type in item.data" v-bind:key="type" scope="col"><a>{{type.nombre}}</a></b-form-checkbox>
|
<b-form-checkbox v-for="type in item.data" v-bind:key="type" scope="col"><a>{{type.nombre}}</a></b-form-checkbox>
|
||||||
</b-dropdown-form>
|
</b-dropdown-form>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</th>
|
||||||
</th>
|
</tr>
|
||||||
</tr>
|
</thead>
|
||||||
</thead>
|
<tbody>
|
||||||
<tbody>
|
<tr v-for="pc in pcData" v-bind:key="pc.index">
|
||||||
<tr v-for="item in pcData" v-bind:key="item.index">
|
<td v-for="(pcCampo,key) in pc" v-bind:key="pcCampo" v-b-modal.actualizarCampo @click="campo=pcCampo ,valueCampo = pcHeaders[key].nombre" >
|
||||||
<td v-b-modal.actualizarCampo class="text-primary">{{ item.noInventario }}</td>
|
{{pcCampo}}
|
||||||
<td v-b-modal.actualizarCampo >{{ item.activoFijo }}</td>
|
</td>
|
||||||
<td v-b-modal.actualizarCampo>{{ item.modelo }}</td>
|
</tr>
|
||||||
<td v-b-modal.actualizarCampo>{{ item.marca }}</td>
|
</tbody>
|
||||||
<td v-b-modal.actualizarCampo>{{ item.noSerie }}</td>
|
|
||||||
<td v-b-modal.actualizarCampo>{{ item.procesador }}</td>
|
|
||||||
<td v-b-modal.actualizarCampo>{{ item.vProcesador }}</td>
|
|
||||||
<td v-b-modal.actualizarCampo>{{ item.hdd }}</td>
|
|
||||||
<td v-b-modal.actualizarCampo>{{ item.memoriasz }}</td>
|
|
||||||
<td v-b-modal.actualizarCampo>{{ item.memoria }}</td>
|
|
||||||
<td v-b-modal.actualizarCampo>{{ item.vMemoria }}</td>
|
|
||||||
<td v-b-modal.actualizarCampo>{{ item.graficos }}</td>
|
|
||||||
<td v-b-modal.actualizarCampo>{{ item.osname }}</td>
|
|
||||||
<td v-b-modal.actualizarCampo>{{ item.noResguardo }}</td>
|
|
||||||
<td v-b-modal.actualizarCampo>{{ item.uResponsable }}</td>
|
|
||||||
<td v-b-modal.actualizarCampo>{{ item.nombreResponsable }}</td>
|
|
||||||
<td v-b-modal.actualizarCampo>{{ item.ubicacion }}</td>
|
|
||||||
<td v-b-modal.actualizarCampo>{{ item.uso }}</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Modal capo="uno" vale="dos" />
|
<Modal v-bind:campo="campo" v-bind:value="valueCampo" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -58,26 +43,28 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
campo:"",
|
||||||
pcHeaders: [
|
valueCampo:"",
|
||||||
{nombre: "Inventario", data: []},
|
pcHeaders: {
|
||||||
{nombre: "Tipo", data: [{nombre: "compu", value: true}, {nombre: "dos", value: true}]},
|
noInventario: {nombre: "Inventario", data: []},
|
||||||
{nombre: "Modelo", data: []},
|
activoFijo: {nombre: "Tipo", data: [{nombre: "compu", value: true}, {nombre: "dos", value: true}]},
|
||||||
{nombre: "Marca", data: []},
|
modelo: {nombre: "Modelo", data: []},
|
||||||
{nombre: "Serie", data: []},
|
marca: {nombre: "Marca", data: []},
|
||||||
{nombre: "Procesador", data: []},
|
noSerie: {nombre: "Serie", data: []},
|
||||||
{nombre: "Velocidad de procesador (MHz)", data: []},
|
procesador: {nombre: "Procesador", data: []},
|
||||||
{nombre: "ROM (GB)", data: []},
|
vProcesador: {nombre: "Velocidad de procesador (MHz)", data: []},
|
||||||
{nombre: "RAM (MB)", data: []},
|
hdd: {nombre: "ROM (GB)", data: []},
|
||||||
{nombre: "Tipo de memoria", data: []},
|
memoriasz: {nombre: "RAM (MB)", data: []},
|
||||||
{nombre: "Velocidad de memoria (MHz)", data: []},
|
memoria: {nombre: "Tipo de memoria", data: []},
|
||||||
{nombre: "Gráficos", data: []},
|
vMemoria: {nombre: "Velocidad de memoria (MHz)", data: []},
|
||||||
{nombre: "Sistema operativo", data: []},
|
graficos:{nombre: "Gráficos", data: []},
|
||||||
{nombre: "Resguardo", data: []},
|
osname: {nombre: "Sistema operativo", data: []},
|
||||||
{nombre: "Unidad responsable", data: []},
|
noResguardo: {nombre: "Resguardo", data: []},
|
||||||
{nombre: "Responsable", data: []},
|
uResponsable: {nombre: "Unidad responsable", data: []},
|
||||||
{nombre: "Ubicación", data: []},
|
nombreResponsable: {nombre: "Responsable", data: []},
|
||||||
{nombre: "Uso", data: []}],
|
ubicacion: {nombre: "Ubicación", data: []},
|
||||||
|
uso: {nombre: "Uso", data: []}
|
||||||
|
},
|
||||||
pcData: [
|
pcData: [
|
||||||
{ noInventario: "Inventario",
|
{ noInventario: "Inventario",
|
||||||
activoFijo: "Tipo",
|
activoFijo: "Tipo",
|
||||||
@@ -101,7 +88,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
@@ -3,62 +3,62 @@
|
|||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th v-for="item in printerHeaders" v-bind:key="item.nombre" scope="col">
|
<th v-for="item in printerHeaders" v-bind:key="item.nombre" scope="col">
|
||||||
<div class="dropdown">
|
<div class="dropdown">
|
||||||
<button class="btn nav-link dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
<button class="btn nav-link dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
{{item.nombre}}
|
{{item.nombre}}
|
||||||
</button>
|
</button>
|
||||||
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
|
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
|
||||||
<b-dropdown-form>
|
<b-dropdown-form>
|
||||||
<b-form-checkbox v-for="type in item.data" v-bind:key="type" scope="col"><a>{{type.nombre}}</a></b-form-checkbox>
|
<b-form-checkbox v-for="type in item.data" v-bind:key="type" scope="col"><a>{{type.nombre}}</a></b-form-checkbox>
|
||||||
</b-dropdown-form>
|
</b-dropdown-form>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</th>
|
||||||
</th>
|
</tr>
|
||||||
</tr>
|
</thead>
|
||||||
</thead>
|
<tbody>
|
||||||
<tbody>
|
<tr v-for="pc in printerData" v-bind:key="pc.index">
|
||||||
<tr v-for="item in printerData" v-bind:key="item.index">
|
<td v-for="(pcCampo,key) in pc" v-bind:key="pcCampo" v-b-modal.actualizarCampo @click="campo=pcCampo ,valueCampo = pcHeaders[key].nombre" >
|
||||||
<td class="text-primary">{{ item.noInventario }}</td>
|
{{pcCampo}}
|
||||||
<td>{{ item.activoFijo }}</td>
|
</td>
|
||||||
<td>{{ item.modelo }}</td>
|
</tr>
|
||||||
<td>{{ item.marca }}</td>
|
</tbody>
|
||||||
<td>{{ item.noSerie }}</td>
|
|
||||||
<td>{{ item.descripcion }}</td>
|
|
||||||
<td>{{ item.noResguardo }}</td>
|
|
||||||
<td>{{ item.uResponsable }}</td>
|
|
||||||
<td>{{ item.nombreResponsable }}</td>
|
|
||||||
<td>{{ item.ubicacion }}</td>
|
|
||||||
<td>{{ item.uso }}</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<Modal v-bind:campo="campo" v-bind:value="valueCampo" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
import Modal from './modalActualizar.vue'
|
||||||
export default {
|
export default {
|
||||||
name: "home",
|
name: "printersTable",
|
||||||
|
components: {
|
||||||
|
Modal,
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
printerHeaders: [
|
campo:"",
|
||||||
{nombre: "Inventario", data: []},
|
valueCampo:"",
|
||||||
{nombre: "Tipo", data: [{nombre: "compu", value: true}, {nombre: "dos", value: true}]},
|
printerHeaders: {
|
||||||
{nombre: "Modelo", data: []},
|
noInventario: {nombre: "Inventario", data: []},
|
||||||
{nombre: "Marca", data: []},
|
activoFijo: {nombre: "Tipo", data: [{nombre: "compu", value: true}, {nombre: "dos", value: true}]},
|
||||||
{nombre: "Serie", data: []},
|
modelo: {nombre: "Modelo", data: []},
|
||||||
{nombre: "Descripción adicional", data: []},
|
marca: {nombre: "Marca", data: []},
|
||||||
{nombre: "Resguardo", data: []},
|
noSerie: {nombre: "Serie", data: []},
|
||||||
{nombre: "Unidad responsable", data: []},
|
descripcion: {nombre: "Descripción adicional", data: []},
|
||||||
{nombre: "Responsable", data: []},
|
noResguardo: {nombre: "Resguardo", data: []},
|
||||||
{nombre: "Ubicación", data: []},
|
uResponsable: {nombre: "Unidad responsable", data: []},
|
||||||
{nombre: "Uso", data: []}
|
nombreResponsable: {nombre: "Responsable", data: []},
|
||||||
],
|
ubicacion: {nombre: "Ubicación", data: []},
|
||||||
|
uso: {nombre: "Uso", data: []}
|
||||||
|
},
|
||||||
printerData:[{
|
printerData:[{
|
||||||
noInventario: "Inventario",
|
noInventario: "Inventario",
|
||||||
activoFijo: "Tipo",
|
activoFijo: "Tipo",
|
||||||
@@ -72,7 +72,6 @@ export default {
|
|||||||
ubicacion: "Ubicación",
|
ubicacion: "Ubicación",
|
||||||
uso: "Uso"
|
uso: "Uso"
|
||||||
},]
|
},]
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<h1>Sistema de Censo</h1>
|
<h1 class="mt-5 mb-5">Sistema de Censo</h1>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row mb-5">
|
||||||
<div class="col-sm">
|
<div class="col-sm">
|
||||||
<b-input-group size="sm" class="mb-2">
|
<b-input-group size="sm" class="mb-2">
|
||||||
<b-input-group-prepend is-text>
|
<b-input-group-prepend is-text>
|
||||||
|
|||||||
Reference in New Issue
Block a user