Commit 84bc1b0b9ddfd9c71aa16ef16403b63b7eafc093

Authored by 梁保满
1 parent aca375a3

打印样式调整,添加学生钱判断有无班级

src/utils/index.js
@@ -755,7 +755,7 @@ export function tablePrint(id, title) { @@ -755,7 +755,7 @@ export function tablePrint(id, title) {
755 body{margin:5mm;font-size:8px;}} 755 body{margin:5mm;font-size:8px;}}
756 body{-webkit-print-color-adjust: exact;} 756 body{-webkit-print-color-adjust: exact;}
757 .tit{text-align:center;font-size:20px;color:#333;line-height:24px;font-weight:700;padding:10px 0;margin:0;} 757 .tit{text-align:center;font-size:20px;color:#333;line-height:24px;font-weight:700;padding:10px 0;margin:0;}
758 - .table-box,.el-table,.el-table__body-wrapper,.el-table--border{max-height:99999999px!important;height:auto;width:auto!important} 758 + .table-box,.el-table,.el-table__body-wrapper,.el-table--border{max-height:99999999px!important;height:auto;width:auto!important;max-width:1400px;margin: 0 auto;}
759 .el-table{width:100%} 759 .el-table{width:100%}
760 .el-table,.el-table__body-wrapper{max-height:auto} 760 .el-table,.el-table__body-wrapper{max-height:auto}
761 .el-table .el-table__cell{padding:12px 0} 761 .el-table .el-table__cell{padding:12px 0}
@@ -782,6 +782,7 @@ export function tablePrint(id, title) { @@ -782,6 +782,7 @@ export function tablePrint(id, title) {
782 .hui-s.s3{width: 120px;} 782 .hui-s.s3{width: 120px;}
783 .info { display: flex;flex-wrap: wrap;border-left: 1px solid #ccc;border-top: 1px solid #ccc;margin-bottom: 12px;} 783 .info { display: flex;flex-wrap: wrap;border-left: 1px solid #ccc;border-top: 1px solid #ccc;margin-bottom: 12px;}
784 .info-item {width: 25%;height: 50px;box-sizing: border-box;flex-shrink: 0;background: #f8f8f8;border-right: 1px solid #ccc;border-bottom: 1px solid #ccc;line-height: 50px;text-align: center;} 784 .info-item {width: 25%;height: 50px;box-sizing: border-box;flex-shrink: 0;background: #f8f8f8;border-right: 1px solid #ccc;border-bottom: 1px solid #ccc;line-height: 50px;text-align: center;}
  785 + .el-table__header,.el-table__body{width:100%!important;}
785 </style>`; 786 </style>`;
786 let aDom = divs.cloneNode(true); 787 let aDom = divs.cloneNode(true);
787 let aTbody = aDom 788 let aTbody = aDom
src/views/standard/setUp/student.vue
@@ -399,6 +399,10 @@ export default { @@ -399,6 +399,10 @@ export default {
399 }, 399 },
400 methods: { 400 methods: {
401 openAddDia() { 401 openAddDia() {
  402 + if(!formStu.className){
  403 + this.$message.warning('暂无班级信息,请导入班级!')
  404 + return
  405 + }
402 this.formStu.studentName = ""; 406 this.formStu.studentName = "";
403 this.formStu.studentCode = ""; 407 this.formStu.studentCode = "";
404 this.formStu.shortNumber = ""; 408 this.formStu.shortNumber = "";