diff --git a/resources/assets/js/pages/manage/components/ProjectList.vue b/resources/assets/js/pages/manage/components/ProjectList.vue
index d491177d2..13cbd25c9 100644
--- a/resources/assets/js/pages/manage/components/ProjectList.vue
+++ b/resources/assets/js/pages/manage/components/ProjectList.vue
@@ -16,17 +16,15 @@
{{$L('项目负责人')}}
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
@@ -590,15 +588,22 @@ export default {
},
projectUser() {
- const {projectData} = this;
+ const {projectData, windowWidth} = this;
if (!projectData.project_user) {
return [];
}
- return projectData.project_user.filter(({userid}) => userid != projectData.owner_userid)
- },
-
- projectUserShowNum() {
- return this.windowWidth > 1200 ? 8 : 3;
+ let max = windowWidth > 1200 ? 8 : 3
+ let list = projectData.project_user.filter(({userid}) => userid != projectData.owner_userid)
+ if (list.length <= max) {
+ return list
+ }
+ let array = list.slice(0, max - 1);
+ array.push({
+ userid: -1,
+ count: list.length
+ })
+ array.push(list[list.length - 1])
+ return array;
},
allTask() {