Yi.Vue2.x.Vuetify/src/views/Pan.vue
(完整代码) 1KB<template>
<v-row>
<v-col cols="12">
<material-card color="primary" icon="mdi-account-outline">
<template #title>
企业云盘 — <small class="text-body-1">选择你的角色空间</small>
</template>
</material-card>
</v-col>
<v-col cols="6" xl="1" sm="3" v-for="item in roleNameList" :key="item" class="text-center" @click="toInfo(item.id,item.file_path)">
<v-card>
<v-icon size="100">mdi-briefcase-account</v-icon>
</v-card>
<v-chip class="ma-2" color="primary" text-color="white">
{{item.role_name}}
</v-chip>
</v-col>
<v-col cols="6">
<v-card> </v-card>
</v-col>
</v-row>
</template>
<script>
import userApi from "../api/userApi";
export default {
created() {
this.init();
},
methods: {
toInfo(roleId,filePath)
{
this.$store.dispatch("Set_BasePath", filePath);
this.$router.push(`/paninfo?roleId=${roleId}`);
},
init(){
userApi.GetUserInRolesByHttpUser().then(response=>{
const resp=response.data;
this.roleNameList=resp.roles
})
}
},
data: () => ({
roleNameList:[],
selected: [],
}),
};
</script>
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
