Explorar o código

调整所属部门的用户体验

Lijy %!s(int64=2) %!d(string=hai) anos
pai
achega
1a865eef52

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

@@ -293,7 +293,7 @@
 
                 <el-form-item label="所属部门" v-if="user.timeType.projectWithDept">
                     <el-cascader v-model="addForm.deptId" :options="departmentList" placeholder="请选择部门"
-                        :props="{ checkStrictly: true }" clearable filterable @change="cascaderChange"
+                        :props="{ checkStrictly: true, expandTrigger: 'hover' }" clearable filterable @change="cascaderChange"
                     ></el-cascader>
                 </el-form-item>
 

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

@@ -47,7 +47,7 @@
                 <el-form-item v-if="user.timeType.projectWithDept">
                     <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"
+                        :props="{ checkStrictly: true, expandTrigger: 'hover' }" :show-all-levels="false" clearable filterable @change="searchClfList" size="small"
                     ></el-cascader>
                 </el-form-item>
                 
@@ -383,7 +383,7 @@
 
                 <el-form-item label="所属部门" v-if="user.timeType.projectWithDept">
                     <el-cascader v-model="addForm.deptId" :options="departmentList" placeholder="请选择部门"
-                        :props="{ checkStrictly: true }" clearable filterable @change="cascaderChange" style="width: 100%"
+                        :props="{ checkStrictly: true, expandTrigger: 'hover' }" clearable filterable @change="cascaderChange" style="width: 100%"
                     ></el-cascader>
                 </el-form-item>
 

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

@@ -29,7 +29,7 @@
                 <el-form-item label="所属部门" v-if="user.timeType.projectWithDept">
                     <!-- <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="hiddens"
+                        :props="{ checkStrictly: true, expandTrigger: 'hover' }" :show-all-levels="false" clearable filterable @change="hiddens"
                     ></el-cascader>
                 </el-form-item>