Browse Source

私有wbs增加项目名称

duy 2 years ago
parent
commit
3743278600
2 changed files with 10 additions and 3 deletions
  1. 3 1
      src/views/manager/projectinfo/list.vue
  2. 7 2
      src/views/manager/projectinfo/tree.vue

+ 3 - 1
src/views/manager/projectinfo/list.vue

@@ -149,6 +149,7 @@ import { getProjectList, removeProject } from "@/api/manager/projectinfo";
 import { findContractByProjectId, removeContractInfo } from "@/api/manager/contractinfo";
 import { findContractByProjectId, removeContractInfo } from "@/api/manager/contractinfo";
 // import {getDictionary} from "@/api/system/dict";
 // import {getDictionary} from "@/api/system/dict";
 import { mapGetters } from "vuex";
 import { mapGetters } from "vuex";
+import { getStore, setStore } from "@/util/store";
 export default {
 export default {
   data () {
   data () {
     return {
     return {
@@ -268,7 +269,8 @@ export default {
         path: '/project/tree',
         path: '/project/tree',
         query: {
         query: {
           pid: this.curProjiect.id,
           pid: this.curProjiect.id,
-          wbsid: this.curProjiect.referenceWbsTemplateId
+          wbsid: this.curProjiect.referenceWbsTemplateId,
+          projectName:this.curProjiect.projectName
         }
         }
       });
       });
     },
     },

+ 7 - 2
src/views/manager/projectinfo/tree.vue

@@ -2,9 +2,10 @@
   <div style="height: 100%;">
   <div style="height: 100%;">
     <basic-container v-show="showType == 1" >
     <basic-container v-show="showType == 1" >
        <el-row class="titlerow"> 
        <el-row class="titlerow"> 
+     
           <el-col >
           <el-col >
               <div style="position:relative" >
               <div style="position:relative" >
-           
+                <span style="float: left; margin-top: 15px;color: white;">{{projectName }}</span>
                   <!-- 同步按钮 -->
                   <!-- 同步按钮 -->
                       <el-button
                       <el-button
                       size="medium"
                       size="medium"
@@ -1841,7 +1842,8 @@ export default {
         },
         },
       ],
       ],
       menuvalue: '',
       menuvalue: '',
-      isshowSyncbtn:false
+      isshowSyncbtn:false,
+      projectName:''
       
       
     };
     };
   },
   },
@@ -1878,6 +1880,9 @@ export default {
       this.getOwnerTypelist();
       this.getOwnerTypelist();
 
 
       this.defaultExpandedKeys = getStore({ name: this.expandName });
       this.defaultExpandedKeys = getStore({ name: this.expandName });
+      this.projectName=this.$route.query.projectName
+    
+      
     },
     },
     loadNode(node, resolve) {
     loadNode(node, resolve) {
       let pid = 0;
       let pid = 0;