Commit c3cdce9c8378e750566fe256b405eda1f37b777d

Authored by 梁保满
1 parent af0d559b

bug

src/api/apis/apis.js
... ... @@ -745,6 +745,14 @@ export default {
745 745 data,
746 746 });
747 747 },
  748 + // 学校学段
  749 + sectionList(data) {
  750 + return service({
  751 + url: setUpUrls.sectionList,
  752 + method: "POST",
  753 + data,
  754 + });
  755 + },
748 756  
749 757 /**
750 758 * 集团管理员-学校管理
... ...
src/api/urls/apis.js
... ... @@ -185,6 +185,8 @@ export default {
185 185 studentChangeClass: "/api_html/school/manager/studentChangeClass",
186 186 // 升级年级
187 187 upgradeGrade: "/api_html/school/manager/upgradeGrade",
  188 + // 学校学段
  189 + sectionList: "/api_html/school/manager/sectionList",
188 190  
189 191  
190 192 // 查询区域列表
... ...
src/utils/index.js
... ... @@ -769,6 +769,7 @@ export function tablePrint(id, title) {
769 769 .el-table__fixed{display:none!important}
770 770 .el-table .el-table__cell.is-center{text-align:center!important}
771 771 .el-table .el-table__cell.is-hidden>*{visibility: inherit;}
  772 + .el-table__cell.gutter{display:none}
772 773 ul,li{margin:0;padding:0;list-style:none}
773 774 .hui-box{display: flex;text-align: center;}
774 775 .hui-box .s-txt{width: 60px;line-height: 144px;background: #ccc;font-size: 16px;color: #fff;font-weight: 700;border:1px solid #ccc;box-sizing:border-box}
... ... @@ -793,6 +794,6 @@ export function tablePrint(id, title) {
793 794 awin.document.body.append(pTit)
794 795 }
795 796 awin.document.body.append(aDom);
796   - awin.print();
797   - awin.close()
  797 + // awin.print();
  798 + // awin.close()
798 799 }
799 800 \ No newline at end of file
... ...
src/views/examinationPaper/archiving.vue
... ... @@ -183,6 +183,7 @@ export default {
183 183  
184 184 const { data, status, info } = await fetchTypeNames({
185 185 classId: this.query.classId,
  186 + status:1,
186 187 type: 0,
187 188 });
188 189 if (status === 0) {
... ...
src/views/examinationPaper/index.vue
... ... @@ -269,6 +269,10 @@ export default {
269 269 });
270 270 },
271 271 toAdd(query) {
  272 + if (!this.query.classId) {
  273 + this.$message.warning("没有任课班级,请先设置。");
  274 + return;
  275 + }
272 276 let routerItem = {
273 277 path: "/examinationPaperAdd",
274 278 };
... ...
src/views/standard/ask/archiving.vue
... ... @@ -514,18 +514,18 @@ export default {
514 514 activated() {
515 515 const that = this;
516 516 BusEvent.$on("keepAlive", async function () {
517   - that.query.subjectNames = that.role == "ROLE_BANZHUREN" ? [] : "";
518   - await that._QueryClassList();
519   - if (!that.query.classId) {
520   - return;
521   - }
522   - await that._QuerySubjectList();
523   - await that.setDate(1);
524   - let startDay = that.query?.startDay;
525   - if (!startDay) {
526   - that.query.startDay = new Date();
527   - that.query.endDay = new Date();
528   - }
  517 + that.query.subjectNames = that.role == "ROLE_BANZHUREN" ? [] : "";
  518 + await that._QueryClassList();
  519 + if (!that.query.classId) {
  520 + return;
  521 + }
  522 + await that._QuerySubjectList();
  523 + await that.setDate(1);
  524 + let startDay = that.query?.startDay;
  525 + if (!startDay) {
  526 + that.query.startDay = new Date();
  527 + that.query.endDay = new Date();
  528 + }
529 529 });
530 530 },
531 531 methods: {
... ... @@ -707,6 +707,9 @@ export default {
707 707 }
708 708 },
709 709 async _QueryData() {
  710 + if (!this.query.classId) {
  711 + return;
  712 + }
710 713 if (this.tabIndex == 1) {
711 714 this.periodReportList();
712 715 } else if (this.tabIndex == 2) {
... ...
src/views/standard/ask/index.vue
... ... @@ -550,18 +550,18 @@ export default {
550 550 activated() {
551 551 const that = this;
552 552 BusEvent.$on("keepAlive", async function () {
553   - that.query.subjectNames = that.role == "ROLE_BANZHUREN" ? [] : "";
554   - await that._QueryClassList();
555   - if (!that.query.classId) {
556   - return;
557   - }
558   - await that._QuerySubjectList();
559   - await that.setDate(1);
560   - let startDay = that.query?.startDay;
561   - if (!startDay) {
562   - that.query.startDay = new Date();
563   - that.query.endDay = new Date();
564   - }
  553 + that.query.subjectNames = that.role == "ROLE_BANZHUREN" ? [] : "";
  554 + await that._QueryClassList();
  555 + if (!that.query.classId) {
  556 + return;
  557 + }
  558 + await that._QuerySubjectList();
  559 + await that.setDate(1);
  560 + let startDay = that.query?.startDay;
  561 + if (!startDay) {
  562 + that.query.startDay = new Date();
  563 + that.query.endDay = new Date();
  564 + }
565 565 });
566 566 },
567 567 methods: {
... ... @@ -753,6 +753,9 @@ export default {
753 753 }
754 754 },
755 755 async _QueryData() {
  756 + if (!this.query.classId) {
  757 + return;
  758 + }
756 759 if (this.tabIndex == 1) {
757 760 this.periodReportList();
758 761 } else if (this.tabIndex == 2) {
... ...
src/views/standard/setUp/school.vue
... ... @@ -175,8 +175,8 @@
175 175 <el-checkbox-group v-model="formSchool.sections">
176 176 <el-checkbox
177 177 v-for="item in sectionsList"
178   - :label="item.id"
179   - :key="item.id"
  178 + :label="item.code"
  179 + :key="item.code"
180 180 >{{ item.name }}</el-checkbox
181 181 >
182 182 </el-checkbox-group>
... ... @@ -330,13 +330,7 @@ export default {
330 330 ],
331 331 },
332 332 subjectName: "",
333   - sectionsList: [
334   - { id: "1", name: "小学" },
335   - { id: "2", name: "初中" },
336   - { id: "3", name: "高中" },
337   - { id: "4", name: "大学" },
338   - { id: "7", name: "高补" },
339   - ],
  333 + sectionsList: [],
340 334 subjectList: [],
341 335 diaUpgradeGrade: false, //班级升级
342 336 };
... ... @@ -346,6 +340,7 @@ export default {
346 340 this._QueryDataSchool();
347 341 this._QueryDataGrade();
348 342 this._QuerySubject();
  343 + this._QuerySectionList();
349 344 },
350 345 methods: {
351 346 upSuccess(res) {
... ... @@ -456,6 +451,16 @@ export default {
456 451 this.$message.error(info);
457 452 }
458 453 },
  454 + async _QuerySectionList() {
  455 + //学校学段
  456 + const { data, status, info } = await this.$request.sectionList();
  457 + console.log(status);
  458 + if (status === 0) {
  459 + this.sectionsList = data?.list || [];
  460 + } else {
  461 + this.$message.error(info);
  462 + }
  463 + },
459 464 async _QueryDataSchool() {
460 465 //学校详情
461 466 this.loading = true;
... ... @@ -569,9 +574,9 @@ export default {
569 574 cursor: pointer;
570 575 font-size: 14px;
571 576 color: #999;
572   - .fa-level-up{
573   - font-size:16px;
574   - padding-left:2px;
  577 + .fa-level-up {
  578 + font-size: 16px;
  579 + padding-left: 2px;
575 580 }
576 581 &:hover {
577 582 color: #f30;
... ...
src/views/standard/setUp/student.vue
... ... @@ -67,18 +67,22 @@
67 67 @click="classDetail(item)"
68 68 >
69 69 <template v-if="!code && role !== 'ROLE_PERSONAL'">
70   - <div class="popconfirm-box">
71   - <el-popconfirm
72   - title="确定要将该班级归档吗?"
73   - @confirm="archivingClass(item, index)"
74   - >
75   - <i slot="reference" class="fa fa-file-archive-o"></i>
76   - </el-popconfirm>
77   - </div>
78   - <i
79   - class="el-icon-edit-outline"
80   - @click.stop="setClass(item)"
81   - ></i>
  70 + <el-tooltip effect="dark" content="班级归档" placement="top">
  71 + <div class="popconfirm-box">
  72 + <el-popconfirm
  73 + title="确定要将该班级归档吗?"
  74 + @confirm="archivingClass(item, index)"
  75 + >
  76 + <i slot="reference" class="fa fa-file-archive-o"></i>
  77 + </el-popconfirm>
  78 + </div>
  79 + </el-tooltip>
  80 + <el-tooltip effect="dark" content="修改班级" placement="top">
  81 + <i
  82 + class="el-icon-edit-outline"
  83 + @click.stop="setClass(item)"
  84 + ></i>
  85 + </el-tooltip>
82 86 </template>
83 87 {{ item.className }}({{ item.studentCount }})
84 88 </li>
... ... @@ -524,6 +528,7 @@ export default {
524 528 this.$message.success("归档成功");
525 529 this.classList.splice(index, 1);
526 530 this.setClass(this.classList[index]);
  531 + this._QueryArchivedNum();
527 532 this.diaClass = false;
528 533 } else {
529 534 this.$message.error(info);
... ...
src/views/standard/test/analysis.vue
... ... @@ -5,7 +5,7 @@
5 5 <span>单卷分析</span>
6 6 </template>
7 7 </back-box>
8   - <div class="tips" v-if="paperModifyLog.modifiedTime || status">
  8 + <div class="tips" v-if="paperModifyLog.modifiedTime && status">
9 9 <p class="tips-p">
10 10 <i class="fa fa-bell-o"></i>
11 11 {{
... ... @@ -257,6 +257,7 @@
257 257 label="学号"
258 258 fixed
259 259 align="center"
  260 + width="120"
260 261 ></el-table-column>
261 262 <el-table-column
262 263 prop="studentName"
... ...
src/views/standard/test/archiving.vue
... ... @@ -463,18 +463,18 @@ export default {
463 463 activated() {
464 464 const that = this;
465 465 BusEvent.$on("keepAlive", async function () {
466   - that.query.subjectNames = that.role == "ROLE_BANZHUREN" ? [] : "";
467   - await that._QueryClassList();
468   - if (!that.query.classId) {
469   - return;
470   - }
471   - await that._QuerySubjectList();
472   - await that.setDate(1);
473   - let startDay = that.query?.startDay;
474   - if (!startDay) {
475   - that.query.startDay = new Date();
476   - that.query.endDay = new Date();
477   - }
  466 + that.query.subjectNames = that.role == "ROLE_BANZHUREN" ? [] : "";
  467 + await that._QueryClassList();
  468 + if (!that.query.classId) {
  469 + return;
  470 + }
  471 + await that._QuerySubjectList();
  472 + await that.setDate(1);
  473 + let startDay = that.query?.startDay;
  474 + if (!startDay) {
  475 + that.query.startDay = new Date();
  476 + that.query.endDay = new Date();
  477 + }
478 478 });
479 479 },
480 480 methods: {
... ... @@ -647,6 +647,9 @@ export default {
647 647 },
648 648 async _QueryData() {
649 649 this.tableData = [];
  650 + if (!this.query.classId) {
  651 + return;
  652 + }
650 653 if (this.tabIndex == 1) {
651 654 this.examReportList();
652 655 } else {
... ...
src/views/standard/test/index.vue
... ... @@ -801,6 +801,9 @@ export default {
801 801 }
802 802 },
803 803 async _QueryData() {
  804 + if (!this.query.classId) {
  805 + return;
  806 + }
804 807 this.tableData = [];
805 808 if (this.tabIndex == 1) {
806 809 this.examReportList();
... ...