Forráskód Böngészése

调整编辑项目的项目经理情况

Lijy 2 éve
szülő
commit
088d01e171

+ 11 - 13
fhKeeper/formulahousekeeper/timesheet_h5/src/views/project/edit.vue

@@ -228,8 +228,6 @@ export default {
         }else{
             this.getCategoryList()
         }
-
-        
     },
     methods: {
         back() {
@@ -427,13 +425,23 @@ export default {
         
 
         getProjectDetail(){
-            this.editProjectMan = false
+            console.log('发起了请求')
             this.$axios.post("/project/detail", {id: this.projectId})
             .then(res => {
                 if(res.code == "ok") {
+                    console.log('成功')
                     this.projectDetail = res.data
                     let userNames = ''
                     let userId = []
+                    for(let i in this.user.functionList){
+                        if(this.user.functionList[i].name == '编辑负责项目编码和名称' || this.user.functionList[i].name == '管理全部项目'){
+                            this.editCodeAndName = true
+                        }
+                        if(this.user.functionList[i].name == '管理全部项目' || this.user.id == res.data.creatorId){
+                            this.editProjectMan = true
+                        }
+                    }
+
                     for(let i in res.data.participationList){
                         if(res.data.participationList[i].id && res.data.participationList[i].id != 'null'){
                             userNames += res.data.participationList[i].name + ','
@@ -462,16 +470,6 @@ export default {
                         this.projectDetail.levelLabel = this.levelList[this.projectDetail.level - 1].label
                     }
 
-                    
-                    for(let i in this.user.functionList){
-                        if(this.user.functionList[i].name == '编辑负责项目编码和名称' || this.user.functionList[i].name == '管理全部项目'){
-                            this.editCodeAndName = true
-                        }
-                        if(this.user.functionList[i].name == '管理全部项目' || this.user.id == res.data.creatorId){
-                            this.editProjectMan = true
-                        }
-                    }
-
                     if(this.user.id == res.data.creatorId){
                         this.editCodeAndName = true
                         return