Commit 84bc1b0b9ddfd9c71aa16ef16403b63b7eafc093
1 parent
aca375a3
打印样式调整,添加学生钱判断有无班级
Showing
2 changed files
with
6 additions
and
1 deletions
src/utils/index.js
... | ... | @@ -755,7 +755,7 @@ export function tablePrint(id, title) { |
755 | 755 | body{margin:5mm;font-size:8px;}} |
756 | 756 | body{-webkit-print-color-adjust: exact;} |
757 | 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 | 759 | .el-table{width:100%} |
760 | 760 | .el-table,.el-table__body-wrapper{max-height:auto} |
761 | 761 | .el-table .el-table__cell{padding:12px 0} |
... | ... | @@ -782,6 +782,7 @@ export function tablePrint(id, title) { |
782 | 782 | .hui-s.s3{width: 120px;} |
783 | 783 | .info { display: flex;flex-wrap: wrap;border-left: 1px solid #ccc;border-top: 1px solid #ccc;margin-bottom: 12px;} |
784 | 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 | 786 | </style>`; |
786 | 787 | let aDom = divs.cloneNode(true); |
787 | 788 | let aTbody = aDom | ... | ... |
src/views/standard/setUp/student.vue
... | ... | @@ -399,6 +399,10 @@ export default { |
399 | 399 | }, |
400 | 400 | methods: { |
401 | 401 | openAddDia() { |
402 | + if(!formStu.className){ | |
403 | + this.$message.warning('暂无班级信息,请导入班级!') | |
404 | + return | |
405 | + } | |
402 | 406 | this.formStu.studentName = ""; |
403 | 407 | this.formStu.studentCode = ""; |
404 | 408 | this.formStu.shortNumber = ""; | ... | ... |