sunyadv пре 5 година
родитељ
комит
3c25edd2eb
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      ys_vue/src/views/project/staff.vue

+ 2 - 2
ys_vue/src/views/project/staff.vue

@@ -41,7 +41,7 @@
                 <template slot-scope="scope">
                     <span class="info" v-for="(item, index) in scope.row.projects">
                         {{item.projectName}}
-                        <span v-if="index != scope.row.projects.length-1">、</span>
+                        <span v-if="scope.row.projects != null && index != scope.row.projects.length-1">、</span>
                     </span>
                 </template>
 			</el-table-column>
@@ -52,7 +52,7 @@
 				<template slot-scope="scope" v-if="user.id == scope.row.parentId || user.isManager == 1 || (user.parentId == 1 && user.subordinateType == 0)">
 					<el-button size="small" @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
 					<el-button type="danger" size="small" @click="handleDel(scope.$index, scope.row)">删除</el-button>
-                    <el-button type="primary" size="small" @click="invite(scope.$index, scope.row)" v-if="user.id != 1 && scope.row.projects.length == 1">邀请</el-button>
+                    <el-button type="primary" size="small" @click="invite(scope.$index, scope.row)" v-if="user.id != 1 && scope.row.projects != null && scope.row.projects.length == 1">邀请</el-button>
 				</template>
 			</el-table-column>
 		</el-table>