fix: 修复bug

This commit is contained in:
沈昭朝 2024-06-21 14:38:13 +08:00
parent a87c690293
commit fe60927baf
2 changed files with 18 additions and 13 deletions

View File

@ -65,7 +65,6 @@
v-model="departmentId" v-model="departmentId"
placeholder="所在部门" placeholder="所在部门"
clearable clearable
@change="getTableDataByDept(year, month)"
> >
<el-option <el-option
v-for="(dep, index) in departmentList" v-for="(dep, index) in departmentList"
@ -2185,22 +2184,23 @@ export default {
} }
} }
.el-form { // .el-form {
display: flex; // display: flex;
flex-wrap: nowrap; /* 防止下拉框换行 */ // flex-wrap: nowrap; /* */
} // }
.el-form-item { .el-form-item {
// margin-right: 10px; /* */ // margin-right: 10px; /* */
margin-left: 20px; margin-left: 20px;
} }
/* 如果需要,可以添加媒体查询来调整响应式布局 */ // /* */
@media (max-width: 600px) { // @media (max-width: 600px) {
.el-form-item { // .el-form-item {
flex-direction: column; // flex-direction: column;
} // }
} // }
.table-header{ .table-header{
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;

View File

@ -121,7 +121,7 @@
<el-table-column prop="gid" label="工程师GID" width="110" align="center" class-name="leave-alone" /> <el-table-column prop="gid" label="工程师GID" width="110" align="center" class-name="leave-alone" />
<el-table-column prop="phone" label="联系方式" width="120" align="center" class-name="leave-alone" /> <el-table-column prop="phone" label="联系方式" width="120" align="center" class-name="leave-alone" />
<el-table-column prop="workPlace" label="工作地" width="110" align="center" class-name="leave-alone" /> <el-table-column prop="workPlace" label="工作地" width="110" align="center" class-name="leave-alone" />
<el-table-column prop="userSkill" label="技能详情" width="auto" align="center" class-name="leave-alone"> <el-table-column prop="userSkill" label="技能详情" width="auto" align="left">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<div v-for="(skill, index) in row.userSkill" :key="index" class="emphasis-box" :style="{ border: '2px solid ' + skillColor(skill.skilltypeId).border, color: skillColor(skill.skilltypeId).text }" @mouseover="$event.target.style.backgroundColor = skillColor(skill.skilltypeId).hover" @mouseout="$event.target.style.backgroundColor = ''"> <div v-for="(skill, index) in row.userSkill" :key="index" class="emphasis-box" :style="{ border: '2px solid ' + skillColor(skill.skilltypeId).border, color: skillColor(skill.skilltypeId).text }" @mouseover="$event.target.style.backgroundColor = skillColor(skill.skilltypeId).hover" @mouseout="$event.target.style.backgroundColor = ''">
{{ skill.name }} {{ skill.name }}
@ -183,7 +183,12 @@
@removeBtn="remove" @removeBtn="remove"
> >
<!--此处可以解决左侧数据显示不全的bug--> <!--此处可以解决左侧数据显示不全的bug-->
<div slot="left-footer">左下角</div> <div slot="left-footer">
<div style="width: 100%;height: 20px;" />
</div>
<div slot="right-footer">
<div style="width: 100%;height: 20px;" />
</div>
</tree-transfer> </tree-transfer>
<div slot="footer"> <div slot="footer">
<el-button type="primary" :loading="loadingOfSaveUserSkillButton" @click="saveButtonOfEditDialog()"> </el-button> <el-button type="primary" :loading="loadingOfSaveUserSkillButton" @click="saveButtonOfEditDialog()"> </el-button>