Переглянути джерело

调整项目阶段的判断

Lijy 2 роки тому
батько
коміт
986e7bde97

+ 7 - 9
fhKeeper/formulahousekeeper/timesheet/src/views/project/list.vue

@@ -1337,16 +1337,14 @@ a {
             },
             clickCell(row,column) {
                 console.log('can can need',row,column)
+                this.currentCell = row.index + ',' + column.index;
+                this.phaseProjectValie = row.currentStageId  ? row.currentStageId : ''
                 if(this.permissions.projectManagement || this.user.id==row.inchargerId || this.user.id==row.creatorId) {
-                    if(this.permissions.projectManagement || this.user.id==row.inchargerId || this.user.id==row.creatorId) {
-                        this.phaseProjectValie = row.currentStageId  ? row.currentStageId : ''
-                        this.currentCell = row.index + ',' + column.index;
-                        this.phaseProjectId = row.id
-                        setTimeout(() => {
-                            // 获得焦点
-                            this.$refs[row.index + ',' + column.index].focus();
-                        })
-                    }
+                    this.phaseProjectId = row.id
+                    setTimeout(() => {
+                        // 获得焦点
+                        this.$refs[row.index + ',' + column.index].focus();
+                    })
                 }
             },
             selectChange() {