فهرست منبع

项目管理增加部门筛选

Lijy 2 سال پیش
والد
کامیت
ba4dd97941
1فایلهای تغییر یافته به همراه14 افزوده شده و 1 حذف شده
  1. 14 1
      fhKeeper/formulahousekeeper/timesheet/src/views/project/list.vue

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

@@ -43,6 +43,13 @@
                         <el-option v-for="item in baseClfList" :key="item.id" :label="item.name" :value="item.id" ></el-option>
                     </el-select>
                 </el-form-item>
+                <!-- 部门筛选 -->
+                <el-form-item >
+                    <span style="margin-left:5px;margin-right:5px;color:#606266;">部门</span>
+                    <el-cascader v-model="deptId" :options="departmentList" placeholder="请选择部门"
+                        :props="{ checkStrictly: true }" :show-all-levels="false" clearable filterable @change="searchClfList" size="small"
+                    ></el-cascader>
+                </el-form-item>
                 
                 <!-- 分类条目 -->
                 <!-- <el-form-item style="float:right;"  v-if="permissions.projectClassification">
@@ -1126,7 +1133,8 @@ a {
                 rowid: '',
                 phaseProjectDialog: false, // 项目阶段
                 levelList: [],  // 项目级别
-                departmentList: []
+                departmentList: [],
+                deptId: [],
             };
         },
         // 过滤器
@@ -2851,6 +2859,11 @@ a {
                         parameter.sortOrder = 1
                     }
                 }
+                if(this.deptId.length > 0) {
+                    parameter.deptId = this.deptId[this.deptId.length - 1]
+                }  else {
+                    parameter.deptId = ''
+                }
                 this.http.post(this.port.project.listPage, parameter,
                 res => {
                     this.listLoading = false;