renommer ligne.vue + renommer scientifque en données

front
Gwenael PLANCHON 1 year ago
parent 23dff31491
commit 9b5df7d12c

@ -1,7 +1,7 @@
<script> <script>
import { REST_API } from '@/assets/const'; import { REST_API } from '@/assets/const';
import LigneScientifique from './ligne.vue'; import LigneDonnee from './ListeLigne.vue';
export default{ export default{
data() { data() {
@ -51,7 +51,7 @@ export default{
}) })
} }
}, },
components: { LigneScientifique } components: { LigneDonnee }
} }
</script> </script>
@ -70,13 +70,13 @@ export default{
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<LigneScientifique v-for="champ in donnees" <LigneDonnee v-for="champ in donnees"
:champs-init="champ" :champs-init="champ"
></LigneScientifique> ></LigneDonnee>
</tbody> </tbody>
</table> </table>
<button :class="{ invisible: !first }" class="btn btn-secondary" @click="this.getdonnees(this.first)">First</button> <button :class="{ invisible: !first }" class="btn btn-secondary" @click="this.getdonnees(this.first)">First</button>
<button :class="{ invisible: !prev }" class="btn btn-secondary" @click="this.getdonnees(this.prev)">Prev</button> <button :class="{ invisible: !prev }" class="btn btn-secondary" @click="this.getdonnees(this.prev)">Prev</button>
<button :class="{ invisible: !next }" class="btn btn-secondary" @click="this.getdonnees(this.next)">Next</button> <button :class="{ invisible: !next }" class="btn btn-secondary" @click="this.getdonnees(this.next)">Next</button>
<button :class="{ invisible: !last }" class="btn btn-secondary" @click="this.getdonnees(this.last)">Last</button> <button :class="{ invisible: !last }" class="btn btn-secondary" @click="this.getdonnees(this.last)">Last</button>
</template>./ligne.vue </template>
Loading…
Cancel
Save