add console application
This commit is contained in:
1 parent
6aebeba477
commit
7f3a50e787
21 files changed
+503
-51
No files matched your search
@@ -0,0 +1,59 @@
|
||||
<template>
|
||||
<el-row class="panel">
|
||||
<el-col :span="24">
|
||||
<el-row v-for="(application, applicationId) in applications" :key="applicationId">
|
||||
<el-col :span="24">
|
||||
<application-preview-card :application="application" />
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</template>
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElForm, ElMessage } from 'element-plus';
|
||||
import { applicationOperator, IApplication, IApplicationListResponse } from '@/operators';
|
||||
import ApplicationPreviewCard from '@/components/application/PreviewCard.vue';
|
||||
|
||||
interface IData {
|
||||
applications: IApplication[];
|
||||
loading: boolean;
|
||||
}
|
||||
|
||||
export default defineComponent({
|
||||
name: 'ApplicationList',
|
||||
components: {
|
||||
ApplicationPreviewCard
|
||||
},
|
||||
data(): IData {
|
||||
return {
|
||||
applications: [],
|
||||
loading: false
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
redirect() {
|
||||
return this.$route.query.redirect;
|
||||
}
|
||||
},
|
||||
watch: {},
|
||||
mounted() {
|
||||
this.loading = true;
|
||||
applicationOperator
|
||||
.getAll({
|
||||
userId: this.$store.getters.user.id
|
||||
})
|
||||
.then(({ data: data }: { data: IApplicationListResponse }) => {
|
||||
this.applications = data.items;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
methods: {}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.panel {
|
||||
padding: 30px;
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user