diff --git a/resources/assets/js/components/ImgUpload.vue b/resources/assets/js/components/ImgUpload.vue index 3d102109..3b6d209a 100755 --- a/resources/assets/js/components/ImgUpload.vue +++ b/resources/assets/js/components/ImgUpload.vue @@ -43,7 +43,7 @@ - +
{{$L('加载中...')}}
@@ -66,7 +66,7 @@
- +
diff --git a/resources/assets/js/components/TEditor.vue b/resources/assets/js/components/TEditor.vue index 2fb50569..f78a0015 100755 --- a/resources/assets/js/components/TEditor.vue +++ b/resources/assets/js/components/TEditor.vue @@ -34,7 +34,7 @@
{{$L('正在上传文件...')}}
- +
diff --git a/resources/assets/js/pages/manage.vue b/resources/assets/js/pages/manage.vue index a44b911a..05f98e89 100644 --- a/resources/assets/js/pages/manage.vue +++ b/resources/assets/js/pages/manage.vue @@ -73,8 +73,7 @@ + :mask-closable="false">
@@ -101,6 +100,14 @@
+ + + + + @@ -156,7 +163,7 @@ export default { }, computed: { - ...mapState(['userId', 'userInfo', 'dialogMsgUnread', 'projectList']), + ...mapState(['userId', 'userInfo', 'dialogMsgUnread', 'projectList', 'projectTask']), }, watch: { diff --git a/resources/assets/js/pages/manage/components/ProjectList.vue b/resources/assets/js/pages/manage/components/ProjectList.vue index a0a0e694..cfce5282 100644 --- a/resources/assets/js/pages/manage/components/ProjectList.vue +++ b/resources/assets/js/pages/manage/components/ProjectList.vue @@ -122,72 +122,75 @@
-
-
{{item.name}}
-
- - - - -
- {{$L('标记未完成')}} -
-
- -
- {{$L('完成')}} -
-
- -
- {{$L('归档')}} -
-
- -
- {{$L('删除')}} -
-
- {{$L('背景色')}} - -
- {{$L(c.name)}} -
-
-
-
+ :style="item.color ? {backgroundColor: item.color} : {}" + @click="$store.commit('openTask', item)"> +
+
{{item.name}}
+
+
+ + + + +
+ {{$L('标记未完成')}} +
+
+ +
+ {{$L('完成')}} +
+
+ +
+ {{$L('归档')}} +
+
+ +
+ {{$L('删除')}} +
+
+ {{$L('背景色')}} + +
+ {{$L(c.name)}} +
+
+
+
+
+
+
+
+ {{tag.name}} +
+
+
    +
  • + +
  • +
+
{{item.file_num}}
+
{{item.msg_num}}
+
+
+
{{item.sub_complete}}/{{item.sub_num}}
+ + +
{{ expiresFormat(item.end_at) }}
+
+
+
-
-
- {{tag.name}} -
-
-
    -
  • - -
  • -
-
{{item.file_num}}
-
{{item.msg_num}}
-
-
-
{{item.sub_complete}}/{{item.sub_num}}
- - -
{{ expiresFormat(item.end_at) }}
-
-
- -
+ :mask-closable="false">
@@ -304,8 +306,7 @@ + :mask-closable="false"> @@ -324,8 +325,7 @@ + :mask-closable="false"> @@ -341,8 +341,7 @@ + :mask-closable="false"> diff --git a/resources/assets/js/pages/manage/components/TaskRow.vue b/resources/assets/js/pages/manage/components/TaskRow.vue index 07e74071..e8516e1b 100644 --- a/resources/assets/js/pages/manage/components/TaskRow.vue +++ b/resources/assets/js/pages/manage/components/TaskRow.vue @@ -50,7 +50,7 @@ -
{{item.name}}
+
{{item.name}}
{{item.sub_complete}}/{{item.sub_num}} diff --git a/resources/assets/js/store/mutations.js b/resources/assets/js/store/mutations.js index 06e5d718..2c155418 100644 --- a/resources/assets/js/store/mutations.js +++ b/resources/assets/js/store/mutations.js @@ -199,6 +199,15 @@ export default { } }, + /** + * 打开任务详情页 + * @param state + * @param task + */ + openTask(state, task) { + state.projectTask = Object.assign({_show:true}, task); + }, + /** * 获取用户基本信息 * @param state diff --git a/resources/assets/js/store/state.js b/resources/assets/js/store/state.js index 9803520a..f11d23e8 100644 --- a/resources/assets/js/store/state.js +++ b/resources/assets/js/store/state.js @@ -184,6 +184,7 @@ state.wsReadWaitList = []; state.projectLoad = 0; state.projectList = state.cacheProjectList; state.projectDetail = {id: 0, project_column: [], project_user: []}; +state.projectTask = {_show: false, id: 0, task_user: [], task_tag: []}; // 会话消息 state.dialogId = 0; diff --git a/resources/assets/sass/pages/components/project-list.scss b/resources/assets/sass/pages/components/project-list.scss index 1ea75fa0..2aa70133 100644 --- a/resources/assets/sass/pages/components/project-list.scss +++ b/resources/assets/sass/pages/components/project-list.scss @@ -285,7 +285,7 @@ flex-direction: column; } .task-item { - list-style: none; + cursor: pointer; margin: 0 10px 16px; background-color: #ffffff; border-radius: 12px; @@ -312,26 +312,30 @@ word-wrap: break-word; } } - .loading, - .ivu-icon { + .task-menu { + margin-left: 8px; width: 22px; height: 22px; - display: flex; - align-items: center; - justify-content: center; - margin-left: 8px; - .common-loading { - width: 16px; - height: 16px; - margin: 0; + .loading, + .ivu-icon { + width: 22px; + height: 22px; + display: flex; + align-items: center; + justify-content: center; + .common-loading { + width: 16px; + height: 16px; + margin: 0; + } } - } - .ivu-icon { - font-size: 22px; - color: #666666; - cursor: pointer; - &:hover { - color: #555555; + .ivu-icon { + font-size: 22px; + color: #777777; + cursor: pointer; + &:hover { + color: #555555; + } } } &.has-desc { @@ -551,6 +555,7 @@ } } .ivu-icon { + cursor: pointer; font-size: 16px; color: #cccccc; margin-right: 8px; @@ -573,6 +578,7 @@ .item-title { flex: 1; padding: 0 22px 0 0; + cursor: pointer; } .item-sub-num { flex-shrink: 0;