|
@@ -8,11 +8,57 @@
|
|
|
</route>
|
|
|
|
|
|
<template>
|
|
|
- <view class="management-directory">团队通讯录</view>
|
|
|
+ <view class="management-directory">
|
|
|
+ <GroupList :list="groupList" />
|
|
|
+ <footer-button-card position="center">
|
|
|
+ <uv-button class="w-full" type="primary" @click="toGroupManage" text="分组管理"></uv-button>
|
|
|
+ </footer-button-card>
|
|
|
+ </view>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
+import type { IGroup } from '@/types/types'
|
|
|
+import GroupList from './components/group-list.vue'
|
|
|
//
|
|
|
+const groupList = ref<IGroup[]>([
|
|
|
+ {
|
|
|
+ groupName: '我的团队',
|
|
|
+ id: 1,
|
|
|
+ members: [
|
|
|
+ {
|
|
|
+ avatar: 'https://img.yzcdn.cn/vant/cat.jpeg',
|
|
|
+ id: 1,
|
|
|
+ name: '张三',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ avatar: 'https://img.yzcdn.cn/vant/cat.jpeg',
|
|
|
+ id: 2,
|
|
|
+ name: '李四',
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ groupName: '我的组员',
|
|
|
+ id: 1,
|
|
|
+ members: [
|
|
|
+ {
|
|
|
+ avatar: 'https://img.yzcdn.cn/vant/cat.jpeg',
|
|
|
+ id: 3,
|
|
|
+ name: '王二',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ avatar: 'https://img.yzcdn.cn/vant/cat.jpeg',
|
|
|
+ id: 4,
|
|
|
+ name: '麻子',
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+])
|
|
|
+const toGroupManage = () => {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/team-managent/directory/group-manage',
|
|
|
+ })
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|