|
|
@@ -35,8 +35,8 @@
|
|
|
:data="studentListData"
|
|
|
border
|
|
|
v-loading="tableLoading"
|
|
|
- element-loading-text="加载中……"
|
|
|
- element-loading-spinner="el-icon-loading"
|
|
|
+ element-loading-text="加载中..."
|
|
|
+ :element-loading-spinner="loadingSvgIcon"
|
|
|
element-loading-background="#ffffff"
|
|
|
>
|
|
|
<el-table-column
|
|
|
@@ -153,6 +153,7 @@ import {
|
|
|
GetExcelFileName,
|
|
|
studentListStaticHeaderData,
|
|
|
} from "@/utils/exportExcel";
|
|
|
+import {loadingSvgIcon} from "@/utils/common";
|
|
|
import { useAnalysisStore } from "@/store/analysis";
|
|
|
const analysisStore = useAnalysisStore();
|
|
|
const filterObject = computed(() => analysisStore.filterObject || {});
|
|
|
@@ -189,7 +190,6 @@ const pageData = reactive({
|
|
|
const exportLoading = ref(false);
|
|
|
const isAssign = ref(0);
|
|
|
const tableLoading = ref(true);
|
|
|
-
|
|
|
const studentListData = computed(() => {
|
|
|
const tableData = studentList.value;
|
|
|
const { pageSize, pageNum } = pageData;
|
|
|
@@ -323,11 +323,6 @@ const ChangePage = (val) => {
|
|
|
th.el-table__cell {
|
|
|
border-right: 1px solid #e9e9e9;
|
|
|
}
|
|
|
-
|
|
|
- th.el-table__cell:nth-last-child(2) {
|
|
|
- border-right: none; // 去掉最后一个单元格的右侧边框 最右边还有个滚动条的 所以要去掉倒数第二个
|
|
|
- }
|
|
|
-
|
|
|
.el-table th.el-table__cell.is-leaf,
|
|
|
.el-table td.el-table__cell {
|
|
|
border-bottom: 1px solid #e9e9e9;
|
|
|
@@ -335,109 +330,7 @@ const ChangePage = (val) => {
|
|
|
|
|
|
.el-table {
|
|
|
min-height: 463px;
|
|
|
- border-radius: 8px;
|
|
|
border: 0px;
|
|
|
-
|
|
|
- .el-table__body-wrapper {
|
|
|
- table {
|
|
|
- tr {
|
|
|
- td {
|
|
|
- border-right: 1px solid #e9e9e9;
|
|
|
- }
|
|
|
-
|
|
|
- td:last-child,
|
|
|
- th:last-child {
|
|
|
- border-right: 0px solid green;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .el-table__empty-block {
|
|
|
- min-height: 120px;
|
|
|
- background-image: url("../assets/bg/table_no_data.png");
|
|
|
- background-size: 64px 72px;
|
|
|
- background-position: 50% 50%;
|
|
|
- background-repeat: no-repeat;
|
|
|
-
|
|
|
- .el-table__empty-text {
|
|
|
- display: none;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- //表格加载动画字体
|
|
|
- .el-loading-spinner .el-loading-text {
|
|
|
- font-size: 14px;
|
|
|
- }
|
|
|
-
|
|
|
- .el-loading-spinner i {
|
|
|
- font-size: 20px;
|
|
|
- color: #2e64fa;
|
|
|
- }
|
|
|
-
|
|
|
- //表格里的输入框 选择框样式覆盖
|
|
|
- .el-input__inner {
|
|
|
- height: 36px !important;
|
|
|
- line-height: 36px !important;
|
|
|
- }
|
|
|
-
|
|
|
- // 下拉选择框 中间箭头上下居中
|
|
|
- .el-select .el-input .el-select__caret {
|
|
|
- height: 36px;
|
|
|
- }
|
|
|
-
|
|
|
- // 下拉选择框 中间箭头上下居中
|
|
|
- .el-input__icon {
|
|
|
- line-height: 36px;
|
|
|
- }
|
|
|
-
|
|
|
- //去掉滚动条后的表格整体宽度
|
|
|
- .el-table__body {
|
|
|
- width: 100% !important;
|
|
|
- }
|
|
|
- //标题栏背景色
|
|
|
- .el-table tr th.el-table__cell {
|
|
|
- // background-color: #F0F2F5;
|
|
|
- background-color: #f4f6f8 !important;
|
|
|
- font-size: 16px;
|
|
|
- color: #333;
|
|
|
- font-weight: 600;
|
|
|
- // padding-left: 8px;
|
|
|
- }
|
|
|
-
|
|
|
- // 表格标题行背景
|
|
|
- .el-table tr th.el-table__cell .cell {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- }
|
|
|
-
|
|
|
- // 表格内容行背景
|
|
|
- .el-table .cell {
|
|
|
- padding: 0 5px !important;
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- // color:#666;
|
|
|
- }
|
|
|
-
|
|
|
- .el-table thead {
|
|
|
- color: #333 !important;
|
|
|
- font-weight: 500;
|
|
|
- font-size: 14px;
|
|
|
- height: 52px;
|
|
|
-
|
|
|
- .is-left {
|
|
|
- padding-left: 10px; //靠左的标题加10边距
|
|
|
- }
|
|
|
- }
|
|
|
- .el-table .el-table__cell {
|
|
|
- padding: 0;
|
|
|
- height: 52px;
|
|
|
- color: #666;
|
|
|
}
|
|
|
}
|
|
|
//表格42行高
|
|
|
@@ -523,93 +416,4 @@ const ChangePage = (val) => {
|
|
|
color: #666;
|
|
|
}
|
|
|
}
|
|
|
-// 分页公共样式
|
|
|
-:deep(.page_pagination) {
|
|
|
- width: 100%;
|
|
|
- height: 30px;
|
|
|
- margin-top: 18px;
|
|
|
- margin-bottom: 2px;
|
|
|
-
|
|
|
- display: flex;
|
|
|
- justify-content: flex-end;
|
|
|
- align-items: center;
|
|
|
-
|
|
|
- &.space_between {
|
|
|
- justify-content: space-between;
|
|
|
- }
|
|
|
-
|
|
|
- .page_total {
|
|
|
- font-size: 14px;
|
|
|
- color: #666666;
|
|
|
-
|
|
|
- span {
|
|
|
- margin: 0 4px;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .el-pagination {
|
|
|
- padding: 0 !important;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
-
|
|
|
- .el-input__suffix {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .el-input--mini .el-input__inner {
|
|
|
- height: 30px !important;
|
|
|
- line-height: 30 !important;
|
|
|
- }
|
|
|
-
|
|
|
- // 上一页
|
|
|
- .el-pagination .btn-prev {
|
|
|
- width: 30px !important;
|
|
|
- height: 30px;
|
|
|
- padding: 0 !important;
|
|
|
- background: #f3f3f3;
|
|
|
- border-radius: 4px 4px 4px 4px;
|
|
|
- }
|
|
|
-
|
|
|
- // 下一页
|
|
|
- .el-pagination .btn-next {
|
|
|
- width: 30px !important;
|
|
|
- height: 30px;
|
|
|
- padding: 0 !important;
|
|
|
- background: #f3f3f3;
|
|
|
- border-radius: 4px 4px 4px 4px;
|
|
|
- margin-left: 8px;
|
|
|
- }
|
|
|
-
|
|
|
- .el-pagination span:not([class*="suffix"]),
|
|
|
- .el-pagination button {
|
|
|
- min-width: 30px;
|
|
|
- }
|
|
|
-
|
|
|
- .el-pager {
|
|
|
- display: flex;
|
|
|
- }
|
|
|
- .el-pager li {
|
|
|
- min-width: 30px;
|
|
|
- height: 30px;
|
|
|
- width: 30px;
|
|
|
- line-height: 30px;
|
|
|
- background: #f3f3f3;
|
|
|
- border-radius: 4px 4px 4px 4px;
|
|
|
- padding: 0 !important;
|
|
|
- margin-left: 8px;
|
|
|
-
|
|
|
- font-weight: 400;
|
|
|
- font-size: 14px;
|
|
|
- color: #666;
|
|
|
- }
|
|
|
-
|
|
|
- .el-pager li.is-active {
|
|
|
- background: #2f51ff;
|
|
|
- font-weight: 400;
|
|
|
- font-size: 14px;
|
|
|
- color: #ffffff;
|
|
|
- }
|
|
|
-}
|
|
|
</style>
|