提交 a17da7e2 authored 作者: matian's avatar matian

代码提交

上级 538b2f88
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
type="text" type="text"
style="font-size: 16px; color: #aa1941; float: right; margin-top: -30px" style="font-size: 16px; color: #aa1941; float: right; margin-top: -30px"
@click="exportScore" @click="exportScore"
:disabled="(count.list.length = 0)" :disabled="count.list.length === 0"
>导出</el-button >导出</el-button
> >
</div> </div>
......
...@@ -29,12 +29,7 @@ ...@@ -29,12 +29,7 @@
</div> </div>
<app-list v-bind="tableOptions" ref="list" @sort-change="sortChange"> <app-list v-bind="tableOptions" ref="list" @sort-change="sortChange">
<template v-slot:title="{ row }"> <template v-slot:title="{ row }">
<a <a class="title_row" type="text" @click="toDetail(row)" v-html="row.title" :title="row.title"></a>
type="text"
style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #c01540"
@click="toDetail(row)"
v-html="row.title"
></a>
</template> </template>
</app-list> </app-list>
</el-card> </el-card>
...@@ -95,7 +90,7 @@ export default { ...@@ -95,7 +90,7 @@ export default {
}, },
columns: [ columns: [
{ label: '排序', prop: 'ranking', align: 'center' }, { label: '排序', prop: 'ranking', align: 'center' },
{ label: '题干简述', prop: 'title', align: 'center', slots: 'title', minWidth: 150 }, { label: '题干简述', prop: 'title', align: 'left', slots: 'title', minWidth: 200 },
{ {
label: '题型', label: '题型',
prop: 'type', prop: 'type',
...@@ -208,10 +203,11 @@ export default { ...@@ -208,10 +203,11 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
::v-deep .table-list-filter {
display: none; ::v-deep {
} .table-list-filter{
::v-deep { display: none;
}
.el-table { .el-table {
th { th {
padding: 0; padding: 0;
...@@ -221,5 +217,20 @@ export default { ...@@ -221,5 +217,20 @@ export default {
height: 46px; height: 46px;
} }
} }
.title_row {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: #c01540;
text-align: left;
p{
text-align: left;
width: 200px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: #c01540;
}
}
} }
</style> </style>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论