多维表格
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

91 lines
2.0 KiB

<template>
<v-container class="text-center">
<v-row>
<v-col cols="12">
<v-card v-for="u in users1" :key="u.users_id">
<v-card-title primary-title>
<router-link :to="{ path: '/user/admin/user/' + u.users_id }">
{{ u.username }}
</router-link>
<v-btn color="info">
Edit
</v-btn>
<v-btn color="error">
Delete
</v-btn>
</v-card-title>
<hr>
</v-card>
</v-col>
</v-row>
</v-container>
</template>
<script>
export default {
directives: {},
components: {},
validate({ params }) {
return true
},
props: {},
data() {
return {
users: this.$store.state.users
}
},
head() {
return {}
},
computed: {
users1() {
// console.log(this.$store.state);
return this.$store.state.creator.users
}
},
watch: {},
created() {
},
mounted() {
this.$store.dispatch('admin/ActGetUsers')
},
beforeDestroy() {
},
methods: {},
beforeCreated() {
},
destroy() {
}
}
</script>
<style scoped>
</style>
<!--
/**
* @copyright Copyright (c) 2021, Xgene Cloud Ltd
*
* @author Naveen MR <oof1lab@gmail.com>
* @author Pranav C Balan <pranavxc@gmail.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-->