Commit 26c72671 by wangzhihui

```

feat(longCourse): 调整课程分配组件表格列宽和滚动条样式

- 调整allocation.vue中课程名称列宽度从162px改为159px
- 调整allocation.vue中时长列宽度从94改为92
- 在allocation.vue中添加透明滚动条样式
- 调整couseAllocation.vue中最大高度从350改为360
- 增加课程名称显示长度从17个字符扩展到21个字符
- 调整couseAllocation.vue中表格各列宽度:课程名称从260px改为315px,
  课程状态从80px改为88px,类型从88px改为60px
- 将时长列宽度统一为字符串格式"94px"
- 调整右侧容器宽度从580px改为629px
- 在couseAllocation.vue中添加透明滚动条样式
```
1 parent 9d2a41e9
......@@ -281,7 +281,7 @@ export default {
{
label: "课程名称",
prop: "courseName",
width: "162px",
width: "159px",
addHtml: "courseName"
},
{
......@@ -306,7 +306,7 @@ export default {
{
label: "时长/分钟",
prop: "courseTotalDuration",
width: 94
width: 92
}
]
},
......@@ -730,6 +730,24 @@ export default {
border: 1px solid #2cca74;
}
}
// 修改滚动条样式为透明
&::-webkit-scrollbar {
width: 1px;
height: 1px;
}
&::-webkit-scrollbar-thumb {
background-color: transparent;
border-radius: 1px;
}
&::-webkit-scrollbar-track {
background-color: transparent;
}
&::-webkit-scrollbar-corner {
background-color: transparent;
}
}
.tools-gltip {
......
......@@ -29,14 +29,14 @@
:table-params="tableParams"
:hasPage="hasPage"
:hasNum="hasNum"
:maxHeight="350"
:maxHeight="360"
@selectionTable="handleCheckedChange('left', $event)"
>
<!-- 课程名称 -->
<div slot="courseName" slot-scope="scope">
<template v-if="scope.scope.courseName">
<span v-if="scope.scope.courseName.length < 17">{{
scope.scope.courseName.slice(0, 17)
<span v-if="scope.scope.courseName.length < 21">{{
scope.scope.courseName.slice(0, 21)
}}</span>
<div v-else>
<el-tooltip
......@@ -46,7 +46,7 @@
placement="top-start"
>
<span>
{{ scope.scope.courseName.slice(0, 17) }}...</span
{{ scope.scope.courseName.slice(0, 21) }}...</span
>
</el-tooltip>
</div>
......@@ -286,25 +286,25 @@ export default {
hasNum: false,
tableParams: {
tableOption: {
width: "50"
width: "60"
},
tableColumns: [
{
label: "课程名称",
prop: "courseName",
width: "260px",
width: "315px",
addHtml: "courseName"
},
{
label: "课程状态",
prop: "courseStatus",
width: "80px",
width: "88px",
addHtml: "statusHtml"
},
{
label: "类型",
prop: "positionName",
width: "88px",
width: "60px",
formatter: (row) => {
return this.getStatusItem(
this.baseData,
......@@ -317,7 +317,7 @@ export default {
{
label: "时长/分钟",
prop: "courseTotalDuration",
width: 94
width: "94px"
}
]
}
......@@ -702,7 +702,7 @@ export default {
color: #ffffff;
}
.right {
width: 580px;
width: 629px;
}
.right {
.title-type {
......@@ -726,7 +726,7 @@ export default {
}
}
.select-list {
width: 580px;
width: 629px;
// min-height: 365px;
margin-top: -4px;
overflow-y: auto;
......@@ -750,6 +750,24 @@ export default {
}
}
}
// 修改滚动条样式为透明
&::-webkit-scrollbar {
width: 1px;
height: 1px;
}
&::-webkit-scrollbar-thumb {
background-color: transparent;
border-radius: 1px;
}
&::-webkit-scrollbar-track {
background-color: transparent;
}
&::-webkit-scrollbar-corner {
background-color: transparent;
}
}
::v-deep {
.cell {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!