Browse Source

fix: 1.时间轴上下滑动页面有更新感bug修复 2.没有定位在当天的任务上bug修复

develop
song 4 years ago
parent
commit
b423ce77ce
  1. 1
      CHANGELOG.md
  2. 15
      src/pagesProject/project/project.vue

1
CHANGELOG.md

@ -39,6 +39,7 @@
- | 完善家属成员接口 | [dcd8110](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/dcd8110)
- | 定期任务面板骨架屏添加 | [b2698c0](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/b2698c0)
富文本插件 | 富文本插件demo测试 | [ed3d644](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/ed3d644)
- | 对接引导页接口 | [80c3fc7](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/80c3fc7)
- | 对接测评相关api | [21451e0](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/21451e0)
- | 导入wbs | [1224fcb](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/1224fcb)
- | 导入项目,更新项目 | [5e06adf](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/5e06adf)

15
src/pagesProject/project/project.vue

@ -48,16 +48,7 @@ export default {
computed: {
...mapState('user', ['user', 'token']),
...mapState('role', ['visibleRoles', 'roleId']),
...mapState('task', [
'timeNode',
'timeUnit',
'tasks',
'regularTask',
'newProjectInfo',
'showSkeleton',
'showScrollTo',
'scrollToTaskId',
]),
...mapState('task', ['timeNode', 'timeUnit', 'tasks', 'regularTask', 'newProjectInfo', 'showSkeleton', 'showScrollTo']),
...mapState('project', ['project']),
...mapGetters('task', ['timeGranularity']),
...mapGetters('project', ['projectId']),
@ -127,6 +118,7 @@ export default {
onUnload() {
this.clearTasksData();
this.setRoleId('');
this.setScrollToTaskId('');
},
methods: {
@ -147,6 +139,7 @@ export default {
'setTopEnd',
'setBottomEnd',
'setShowScrollTo',
'setScrollToTaskId',
]),
back() {
@ -190,7 +183,7 @@ export default {
* @param {number} query.queryType 0向上查找 1向下查找(默认) 下查包含自己上查不包含
*/
getTasks(query) {
this.setShowSkeleton(true);
// this.setShowSkeleton(true);
const params = this.generateGetTaskParam(query);
this.$t.$q.getRegularTask(params, (err, data) => {
this.setShowSkeleton(false);

Loading…
Cancel
Save