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 { ...@@ -281,7 +281,7 @@ export default {
{ {
label: "课程名称", label: "课程名称",
prop: "courseName", prop: "courseName",
width: "162px", width: "159px",
addHtml: "courseName" addHtml: "courseName"
}, },
{ {
...@@ -306,7 +306,7 @@ export default { ...@@ -306,7 +306,7 @@ export default {
{ {
label: "时长/分钟", label: "时长/分钟",
prop: "courseTotalDuration", prop: "courseTotalDuration",
width: 94 width: 92
} }
] ]
}, },
...@@ -730,6 +730,24 @@ export default { ...@@ -730,6 +730,24 @@ export default {
border: 1px solid #2cca74; 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 { .tools-gltip {
......
...@@ -29,14 +29,14 @@ ...@@ -29,14 +29,14 @@
:table-params="tableParams" :table-params="tableParams"
:hasPage="hasPage" :hasPage="hasPage"
:hasNum="hasNum" :hasNum="hasNum"
:maxHeight="350" :maxHeight="360"
@selectionTable="handleCheckedChange('left', $event)" @selectionTable="handleCheckedChange('left', $event)"
> >
<!-- 课程名称 --> <!-- 课程名称 -->
<div slot="courseName" slot-scope="scope"> <div slot="courseName" slot-scope="scope">
<template v-if="scope.scope.courseName"> <template v-if="scope.scope.courseName">
<span v-if="scope.scope.courseName.length < 17">{{ <span v-if="scope.scope.courseName.length < 21">{{
scope.scope.courseName.slice(0, 17) scope.scope.courseName.slice(0, 21)
}}</span> }}</span>
<div v-else> <div v-else>
<el-tooltip <el-tooltip
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
placement="top-start" placement="top-start"
> >
<span> <span>
{{ scope.scope.courseName.slice(0, 17) }}...</span {{ scope.scope.courseName.slice(0, 21) }}...</span
> >
</el-tooltip> </el-tooltip>
</div> </div>
...@@ -286,25 +286,25 @@ export default { ...@@ -286,25 +286,25 @@ export default {
hasNum: false, hasNum: false,
tableParams: { tableParams: {
tableOption: { tableOption: {
width: "50" width: "60"
}, },
tableColumns: [ tableColumns: [
{ {
label: "课程名称", label: "课程名称",
prop: "courseName", prop: "courseName",
width: "260px", width: "315px",
addHtml: "courseName" addHtml: "courseName"
}, },
{ {
label: "课程状态", label: "课程状态",
prop: "courseStatus", prop: "courseStatus",
width: "80px", width: "88px",
addHtml: "statusHtml" addHtml: "statusHtml"
}, },
{ {
label: "类型", label: "类型",
prop: "positionName", prop: "positionName",
width: "88px", width: "60px",
formatter: (row) => { formatter: (row) => {
return this.getStatusItem( return this.getStatusItem(
this.baseData, this.baseData,
...@@ -317,7 +317,7 @@ export default { ...@@ -317,7 +317,7 @@ export default {
{ {
label: "时长/分钟", label: "时长/分钟",
prop: "courseTotalDuration", prop: "courseTotalDuration",
width: 94 width: "94px"
} }
] ]
} }
...@@ -702,7 +702,7 @@ export default { ...@@ -702,7 +702,7 @@ export default {
color: #ffffff; color: #ffffff;
} }
.right { .right {
width: 580px; width: 629px;
} }
.right { .right {
.title-type { .title-type {
...@@ -726,7 +726,7 @@ export default { ...@@ -726,7 +726,7 @@ export default {
} }
} }
.select-list { .select-list {
width: 580px; width: 629px;
// min-height: 365px; // min-height: 365px;
margin-top: -4px; margin-top: -4px;
overflow-y: auto; overflow-y: auto;
...@@ -750,6 +750,24 @@ export default { ...@@ -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 { ::v-deep {
.cell { .cell {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!