mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-23 01:36:47 +08:00
讲师管理bug
This commit is contained in:
@@ -76,8 +76,8 @@ const drawerContent = ref(null)
|
||||
const customRow = (record) => {
|
||||
return {
|
||||
style:{
|
||||
backgroundColor: searchTrue.value && searchList.value.some(item => item.id === record.id) ? '#b1ffbd !important' : '',
|
||||
}
|
||||
backgroundColor: searchTrue.value && searchList.value.some(item => item.id === record.id) ? '#a6dff9' : '',
|
||||
},
|
||||
};
|
||||
};
|
||||
watch(()=>props.visible,(val)=>{
|
||||
@@ -91,12 +91,15 @@ watch(()=>props.visible,(val)=>{
|
||||
}
|
||||
loading.value = false
|
||||
}).catch(err=>{
|
||||
message.error(err.data.msg)
|
||||
loading.value = false
|
||||
tableData.value = []
|
||||
message.error(err.data.msg)
|
||||
})
|
||||
}else{
|
||||
selectedRowKeys.value = []
|
||||
selectsData.value = []
|
||||
drawerContent.value.scrollTo({top:0,behavior: 'smooth'})
|
||||
resetData()
|
||||
}
|
||||
})
|
||||
const nameUserNo = ref(null)
|
||||
@@ -112,7 +115,7 @@ const searchData = (val) => {
|
||||
// drawerContent.value.scrollTo({top:200,behavior: 'smooth'})
|
||||
searchTrue.value = val
|
||||
if(!nameUserNo.value&&!dateValue.value){
|
||||
searchList.value = tableData.value;
|
||||
// searchList.value = tableData.value;
|
||||
return
|
||||
}
|
||||
//搜索 数组expenseList.value 参数名字或者工号:nameUserNo.value 日期:dateValue.value
|
||||
@@ -298,6 +301,7 @@ const columns = [
|
||||
align: 'center',
|
||||
fixed: 'right',
|
||||
width: 100,
|
||||
customCell:()=>{return {style:{background:'#fff'}}},
|
||||
slots: { customRender: "action" },
|
||||
},
|
||||
]
|
||||
@@ -318,6 +322,34 @@ const queryDrawer = () => {
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.ant-table-wrapper{
|
||||
border-right: 1px solid #ecf5ff;
|
||||
}
|
||||
/* 重置表格行的悬停效果 */
|
||||
::v-deep .ant-table-tbody > tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) > td {
|
||||
background: none;
|
||||
}
|
||||
// 选中鼠标划入
|
||||
::v-deep .ant-table-tbody > tr.ant-table-row-selected:hover > td{
|
||||
background: none ;
|
||||
}
|
||||
/* 未选中行的鼠标划入样式 */
|
||||
::v-deep .ant-table-tbody > tr:not(.ant-table-row-selected):hover > td {
|
||||
background: none;
|
||||
}
|
||||
/* 未选中行的鼠标划出样式 */
|
||||
::v-deep .ant-table-tbody > tr:not(.ant-table-row-selected):not(:hover) > td {
|
||||
background: none;
|
||||
}
|
||||
// 选中
|
||||
::v-deep .ant-table-tbody > tr.ant-table-row-selected > td{
|
||||
background: none ;
|
||||
}
|
||||
/* 重置表格行的选中效果 */
|
||||
::v-deep .ant-table-row-selected td {
|
||||
// background: none !important;
|
||||
}
|
||||
|
||||
|
||||
.largeDrawerInside {
|
||||
.drawerMains {
|
||||
|
||||
Reference in New Issue
Block a user