|
@ -23,9 +23,6 @@ |
|
|
<TimeLine :tasks="task.task" @getTasks="getTasksHook.getTasks" class="flex-1 overflow-hidden" /> |
|
|
<TimeLine :tasks="task.task" @getTasks="getTasksHook.getTasks" class="flex-1 overflow-hidden" /> |
|
|
</swiper-item> |
|
|
</swiper-item> |
|
|
</swiper> |
|
|
</swiper> |
|
|
|
|
|
|
|
|
<!-- TODO: DEBUG: --> |
|
|
|
|
|
<!-- <u-button @click="$store.commit('setTheme', 'theme-test')">测试切换主题</u-button> --> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<!-- 点击切换时间轴样式 --> |
|
|
<!-- 点击切换时间轴样式 --> |
|
@ -47,13 +44,13 @@ const getTasksHook = useGetTasks(); |
|
|
const store = useStore(); |
|
|
const store = useStore(); |
|
|
const projectId = computed(() => store.getters['project/projectId']); |
|
|
const projectId = computed(() => store.getters['project/projectId']); |
|
|
const userInfo = computed(() => store.state.user.user); |
|
|
const userInfo = computed(() => store.state.user.user); |
|
|
const userId = computed(() => store.getters['user/userId']); |
|
|
// const userId = computed(() => store.getters['user/userId']); |
|
|
const roleId = computed(() => store.state.role.roleId); // 当前展示查看的角色id |
|
|
const roleId = computed(() => store.state.role.roleId); // 当前展示查看的角色id |
|
|
const roleIndex = computed(() => store.state.role.roleIndex); // 时间轴角色索引 |
|
|
const roleIndex = computed(() => store.state.role.roleIndex); // 时间轴角色索引 |
|
|
const visibleRoles = computed(() => store.state.role.visibleRoles); // 展示的角色信息 |
|
|
const visibleRoles = computed(() => store.state.role.visibleRoles); // 展示的角色信息 |
|
|
const timeNode = computed(() => store.state.task.timeNode); // 时间基准点 |
|
|
const timeNode = computed(() => store.state.task.timeNode); // 时间基准点 |
|
|
const timeUnit = computed(() => store.state.task.timeUnit); // 时间颗粒度 |
|
|
const timeUnit = computed(() => store.state.task.timeUnit); // 时间颗粒度 |
|
|
const newProjectInfo = computed(() => store.state.task.newProjectInfo); |
|
|
// const newProjectInfo = computed(() => store.state.task.newProjectInfo); |
|
|
const showScrollTo = computed(() => store.state.task.showScrollTo); // 是否可以设置时间轴自动滚动的位置 |
|
|
const showScrollTo = computed(() => store.state.task.showScrollTo); // 是否可以设置时间轴自动滚动的位置 |
|
|
const allTasks = computed(() => store.state.task.allTasks); // 所有任务 |
|
|
const allTasks = computed(() => store.state.task.allTasks); // 所有任务 |
|
|
const globals = computed(() => store.getters['task/globals']); // 所有的日常任务 永久 + 可变 日常任务 |
|
|
const globals = computed(() => store.getters['task/globals']); // 所有的日常任务 永久 + 可变 日常任务 |
|
@ -70,12 +67,11 @@ if (!userInfo.value) { |
|
|
store.commit('user/setUser', JSON.parse(res)); |
|
|
store.commit('user/setUser', JSON.parse(res)); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
console.log('项目详情页打开了么'); |
|
|
onMounted(() => { |
|
|
onMounted(() => { |
|
|
const system = uni.getSystemInfoSync(); |
|
|
const system = uni.getSystemInfoSync(); |
|
|
height.value = `${system.screenHeight}px`; |
|
|
height.value = `${system.screenHeight}px`; |
|
|
console.log('项目详情onMounted') |
|
|
console.log('项目详情onMounted'); |
|
|
// initHook.init(); |
|
|
|
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
onUnmounted(() => { |
|
|
onUnmounted(() => { |
|
|