Commit c3cdce9c8378e750566fe256b405eda1f37b777d

Authored by 梁保满
1 parent af0d559b

bug

src/api/apis/apis.js
@@ -745,6 +745,14 @@ export default { @@ -745,6 +745,14 @@ export default {
745 data, 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,6 +185,8 @@ export default {
185 studentChangeClass: "/api_html/school/manager/studentChangeClass", 185 studentChangeClass: "/api_html/school/manager/studentChangeClass",
186 // 升级年级 186 // 升级年级
187 upgradeGrade: "/api_html/school/manager/upgradeGrade", 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,6 +769,7 @@ export function tablePrint(id, title) {
769 .el-table__fixed{display:none!important} 769 .el-table__fixed{display:none!important}
770 .el-table .el-table__cell.is-center{text-align:center!important} 770 .el-table .el-table__cell.is-center{text-align:center!important}
771 .el-table .el-table__cell.is-hidden>*{visibility: inherit;} 771 .el-table .el-table__cell.is-hidden>*{visibility: inherit;}
  772 + .el-table__cell.gutter{display:none}
772 ul,li{margin:0;padding:0;list-style:none} 773 ul,li{margin:0;padding:0;list-style:none}
773 .hui-box{display: flex;text-align: center;} 774 .hui-box{display: flex;text-align: center;}
774 .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} 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,6 +794,6 @@ export function tablePrint(id, title) {
793 awin.document.body.append(pTit) 794 awin.document.body.append(pTit)
794 } 795 }
795 awin.document.body.append(aDom); 796 awin.document.body.append(aDom);
796 - awin.print();  
797 - awin.close() 797 + // awin.print();
  798 + // awin.close()
798 } 799 }
799 \ No newline at end of file 800 \ No newline at end of file
src/views/examinationPaper/archiving.vue
@@ -183,6 +183,7 @@ export default { @@ -183,6 +183,7 @@ export default {
183 183
184 const { data, status, info } = await fetchTypeNames({ 184 const { data, status, info } = await fetchTypeNames({
185 classId: this.query.classId, 185 classId: this.query.classId,
  186 + status:1,
186 type: 0, 187 type: 0,
187 }); 188 });
188 if (status === 0) { 189 if (status === 0) {
src/views/examinationPaper/index.vue
@@ -269,6 +269,10 @@ export default { @@ -269,6 +269,10 @@ export default {
269 }); 269 });
270 }, 270 },
271 toAdd(query) { 271 toAdd(query) {
  272 + if (!this.query.classId) {
  273 + this.$message.warning("没有任课班级,请先设置。");
  274 + return;
  275 + }
272 let routerItem = { 276 let routerItem = {
273 path: "/examinationPaperAdd", 277 path: "/examinationPaperAdd",
274 }; 278 };
src/views/standard/ask/archiving.vue
@@ -514,18 +514,18 @@ export default { @@ -514,18 +514,18 @@ export default {
514 activated() { 514 activated() {
515 const that = this; 515 const that = this;
516 BusEvent.$on("keepAlive", async function () { 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 methods: { 531 methods: {
@@ -707,6 +707,9 @@ export default { @@ -707,6 +707,9 @@ export default {
707 } 707 }
708 }, 708 },
709 async _QueryData() { 709 async _QueryData() {
  710 + if (!this.query.classId) {
  711 + return;
  712 + }
710 if (this.tabIndex == 1) { 713 if (this.tabIndex == 1) {
711 this.periodReportList(); 714 this.periodReportList();
712 } else if (this.tabIndex == 2) { 715 } else if (this.tabIndex == 2) {
src/views/standard/ask/index.vue
@@ -550,18 +550,18 @@ export default { @@ -550,18 +550,18 @@ export default {
550 activated() { 550 activated() {
551 const that = this; 551 const that = this;
552 BusEvent.$on("keepAlive", async function () { 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 methods: { 567 methods: {
@@ -753,6 +753,9 @@ export default { @@ -753,6 +753,9 @@ export default {
753 } 753 }
754 }, 754 },
755 async _QueryData() { 755 async _QueryData() {
  756 + if (!this.query.classId) {
  757 + return;
  758 + }
756 if (this.tabIndex == 1) { 759 if (this.tabIndex == 1) {
757 this.periodReportList(); 760 this.periodReportList();
758 } else if (this.tabIndex == 2) { 761 } else if (this.tabIndex == 2) {
src/views/standard/setUp/school.vue
@@ -175,8 +175,8 @@ @@ -175,8 +175,8 @@
175 <el-checkbox-group v-model="formSchool.sections"> 175 <el-checkbox-group v-model="formSchool.sections">
176 <el-checkbox 176 <el-checkbox
177 v-for="item in sectionsList" 177 v-for="item in sectionsList"
178 - :label="item.id"  
179 - :key="item.id" 178 + :label="item.code"
  179 + :key="item.code"
180 >{{ item.name }}</el-checkbox 180 >{{ item.name }}</el-checkbox
181 > 181 >
182 </el-checkbox-group> 182 </el-checkbox-group>
@@ -330,13 +330,7 @@ export default { @@ -330,13 +330,7 @@ export default {
330 ], 330 ],
331 }, 331 },
332 subjectName: "", 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 subjectList: [], 334 subjectList: [],
341 diaUpgradeGrade: false, //班级升级 335 diaUpgradeGrade: false, //班级升级
342 }; 336 };
@@ -346,6 +340,7 @@ export default { @@ -346,6 +340,7 @@ export default {
346 this._QueryDataSchool(); 340 this._QueryDataSchool();
347 this._QueryDataGrade(); 341 this._QueryDataGrade();
348 this._QuerySubject(); 342 this._QuerySubject();
  343 + this._QuerySectionList();
349 }, 344 },
350 methods: { 345 methods: {
351 upSuccess(res) { 346 upSuccess(res) {
@@ -456,6 +451,16 @@ export default { @@ -456,6 +451,16 @@ export default {
456 this.$message.error(info); 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 async _QueryDataSchool() { 464 async _QueryDataSchool() {
460 //学校详情 465 //学校详情
461 this.loading = true; 466 this.loading = true;
@@ -569,9 +574,9 @@ export default { @@ -569,9 +574,9 @@ export default {
569 cursor: pointer; 574 cursor: pointer;
570 font-size: 14px; 575 font-size: 14px;
571 color: #999; 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 &:hover { 581 &:hover {
577 color: #f30; 582 color: #f30;
src/views/standard/setUp/student.vue
@@ -67,18 +67,22 @@ @@ -67,18 +67,22 @@
67 @click="classDetail(item)" 67 @click="classDetail(item)"
68 > 68 >
69 <template v-if="!code && role !== 'ROLE_PERSONAL'"> 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 </template> 86 </template>
83 {{ item.className }}({{ item.studentCount }}) 87 {{ item.className }}({{ item.studentCount }})
84 </li> 88 </li>
@@ -524,6 +528,7 @@ export default { @@ -524,6 +528,7 @@ export default {
524 this.$message.success("归档成功"); 528 this.$message.success("归档成功");
525 this.classList.splice(index, 1); 529 this.classList.splice(index, 1);
526 this.setClass(this.classList[index]); 530 this.setClass(this.classList[index]);
  531 + this._QueryArchivedNum();
527 this.diaClass = false; 532 this.diaClass = false;
528 } else { 533 } else {
529 this.$message.error(info); 534 this.$message.error(info);
src/views/standard/test/analysis.vue
@@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
5 <span>单卷分析</span> 5 <span>单卷分析</span>
6 </template> 6 </template>
7 </back-box> 7 </back-box>
8 - <div class="tips" v-if="paperModifyLog.modifiedTime || status"> 8 + <div class="tips" v-if="paperModifyLog.modifiedTime && status">
9 <p class="tips-p"> 9 <p class="tips-p">
10 <i class="fa fa-bell-o"></i> 10 <i class="fa fa-bell-o"></i>
11 {{ 11 {{
@@ -257,6 +257,7 @@ @@ -257,6 +257,7 @@
257 label="学号" 257 label="学号"
258 fixed 258 fixed
259 align="center" 259 align="center"
  260 + width="120"
260 ></el-table-column> 261 ></el-table-column>
261 <el-table-column 262 <el-table-column
262 prop="studentName" 263 prop="studentName"
src/views/standard/test/archiving.vue
@@ -463,18 +463,18 @@ export default { @@ -463,18 +463,18 @@ export default {
463 activated() { 463 activated() {
464 const that = this; 464 const that = this;
465 BusEvent.$on("keepAlive", async function () { 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 methods: { 480 methods: {
@@ -647,6 +647,9 @@ export default { @@ -647,6 +647,9 @@ export default {
647 }, 647 },
648 async _QueryData() { 648 async _QueryData() {
649 this.tableData = []; 649 this.tableData = [];
  650 + if (!this.query.classId) {
  651 + return;
  652 + }
650 if (this.tabIndex == 1) { 653 if (this.tabIndex == 1) {
651 this.examReportList(); 654 this.examReportList();
652 } else { 655 } else {
src/views/standard/test/index.vue
@@ -801,6 +801,9 @@ export default { @@ -801,6 +801,9 @@ export default {
801 } 801 }
802 }, 802 },
803 async _QueryData() { 803 async _QueryData() {
  804 + if (!this.query.classId) {
  805 + return;
  806 + }
804 this.tableData = []; 807 this.tableData = [];
805 if (this.tabIndex == 1) { 808 if (this.tabIndex == 1) {
806 this.examReportList(); 809 this.examReportList();