瀏覽代碼

项目增加研究中心

Lijy 2 年之前
父節點
當前提交
a8698ac3ff
共有 1 個文件被更改,包括 13 次插入1 次删除
  1. 13 1
      fhKeeper/formulahousekeeper/timesheet/src/views/project/list.vue

+ 13 - 1
fhKeeper/formulahousekeeper/timesheet/src/views/project/list.vue

@@ -254,6 +254,14 @@
                 </div>
             </template>
             </el-table-column>
+            <!-- 研究中心 -->
+            <el-table-column prop="associateDegreeNames" :label="centerNameDegree" min-width="190" v-if="user.timeType.isCro == 1" sortable="custom">
+                <template slot-scope="scope">
+                    <div>
+                        {{scope.row.associateDegreeNames}}
+                    </div>
+                </template>
+            </el-table-column>
             <!-- 级别 -->
             <el-table-column :prop="user.timeType.projectLevelState == 1 ? 'levelName' : 'level'" label="级别" min-width="190"   v-if="user.company.packageProject == 1">
                 <template slot-scope="scope">
@@ -1135,6 +1143,7 @@ a {
                 levelList: [],  // 项目级别
                 departmentList: [],
                 deptId: [],
+                centerNameDegree: ''
             };
         },
         // 过滤器
@@ -1365,7 +1374,7 @@ a {
                 console.log(this.addForm)
             },
             tableSort({column, prop, order}){
-                if(prop == 'inchargerName' || prop == 'customerName' || prop == 'projectCode' || prop == 'categoryName' || prop == 'projectName' || prop == 'status' || prop == 'currentStage' || prop == 'departmentName'){
+                if(prop == 'inchargerName' || prop == 'customerName' || prop == 'projectCode' || prop == 'categoryName' || prop == 'projectName' || prop == 'status' || prop == 'currentStage' || prop == 'departmentName' || prop == 'associateDegreeNames'){
                     this.sortOrder = order
                     this.sortProp = prop
                     this.getList()
@@ -2853,6 +2862,8 @@ a {
                         parameter.sortProp = 'current_stage_name'
                     }else if(this.sortProp == 'departmentName'){
                         parameter.sortProp = 'dept_id'
+                    }else if(this.sortProp == 'associateDegreeNames'){
+                        parameter.sortProp = 'associate_degrees'
                     }
 
                     if(this.sortOrder == 'descending'){
@@ -2882,6 +2893,7 @@ a {
                             }
                             list[i].userNames = str;
                         }
+                        this.centerNameDegree = res.data.degrees
                         this.showColumnWidth = this.showColumn(list)
                         this.list = list;
                         this.total = res.data.total;