From 31436559200262f9fba55e8d686b91b6abcaff08 Mon Sep 17 00:00:00 2001 From: 梁保满 Date: Thu, 19 Oct 2023 16:10:46 +0800 Subject: [PATCH] 多班级样式问题,成绩登记设置问题 --- package.json | 5 +++-- src/main.js | 3 +++ src/views/standard/test/analysis.vue | 5 +++-- src/views/standard/test/contrast.vue | 9 ++++++--- src/views/standard/test/index.vue | 65 +++++++++++++++++++++++++++++++++++++++-------------------------- 5 files changed, 54 insertions(+), 33 deletions(-) diff --git a/package.json b/package.json index 814e581..9e2115a 100755 --- a/package.json +++ b/package.json @@ -20,9 +20,10 @@ "script-ext-html-webpack-plugin": "^2.1.5", "vue": "^2.6.11", "vue-i18n": "^8.4.0", + "vue-masonry": "^0.16.0", "vue-router": "^3.5.1", - "vuex": "^3.6.2", - "vuedraggable": "^2.24.3" + "vuedraggable": "^2.24.3", + "vuex": "^3.6.2" }, "devDependencies": { "@vue/cli-plugin-babel": "~4.5.0", diff --git a/src/main.js b/src/main.js index b36367a..e7a2f78 100755 --- a/src/main.js +++ b/src/main.js @@ -20,10 +20,13 @@ import "@/router/permission" import "@/assets/css/base.css" import "@/assets/css/index.scss" +import { VueMasonryPlugin } from 'vue-masonry' + Vue.config.productionTip = false Vue.use(ElementUI) Vue.use(globalPlugin) Vue.use(permission) +Vue.use(VueMasonryPlugin) NProgress.inc(0.2) NProgress.configure({ easing: "ease", speed: 500, showSpinner: false }) diff --git a/src/views/standard/test/analysis.vue b/src/views/standard/test/analysis.vue index 2e5d0db..1989746 100644 --- a/src/views/standard/test/analysis.vue +++ b/src/views/standard/test/analysis.vue @@ -39,6 +39,7 @@ > - 全选 +

+ 全选 +

+
+
+

已考试卷信息

+
+

-
+

已考试卷信息

- 共筛选出{{ classTableLen }}个班级的已考试卷,不同班级请选择同一份试卷进行对比

@@ -552,10 +561,17 @@
-
    +
    -

    +

    生成对比报表

@@ -681,21 +697,12 @@ export default { answerList: [], //设置多卷内容供tableStage表格数据用 page: 1, size: 20, - total: 0, + total: null, multipleSelection: [], //选中的试卷ID classTable: [], //多班级数据 classAll: false, //搜索条件多班全选 }; }, - computed: { - classTableLen: function () { - let len = 0; - this.classTable?.map((item) => { - item.length ? (len += 1) : ""; - }); - return len; - }, - }, async created() { this.code = localStorage.getItem("csCode") || ""; this.role = @@ -718,6 +725,7 @@ export default { const that = this; BusEvent.$on("keepAlive", async function () { // if (that.$route.path == "/test") { + that.multipleSelection = []; that.query.subjectNames = that.role == "ROLE_BANZHUREN" ? [] : ""; that._QueryClassList2(); await that._QueryClassList(); @@ -745,6 +753,7 @@ export default { } else { this.query.classIds.push(this.classList[0].value); } + this.changeclass(this.query.classIds); }, // 多班级选择同一试卷 checkboxDisabled(obj) { @@ -1053,8 +1062,6 @@ export default { }, //单卷测练 async examReportList(msg) { - this.multipleSelection = []; - this.loading = true; let query = {}; for (let key in this.query) { if (this.query[key] != "") { @@ -1079,6 +1086,9 @@ export default { return; } } + this.classTable = []; + this.multipleSelection = []; + this.loading = true; if (this.query.classIds.length == 1) { query.classId = query.classIds[0]; query.page = this.page; @@ -1301,6 +1311,7 @@ div::-webkit-scrollbar-thumb { padding: 16px; background: #f8f8f8; border-radius: 5px; + min-height: 300px; :deep(.fa-arrow-right) { padding-left: 2px; } @@ -1399,5 +1410,7 @@ div::-webkit-scrollbar-thumb { } .select-all { padding-left: 16px; + padding-bottom: 10px; + border-bottom: 1px solid #e2e2e2; } \ No newline at end of file -- libgit2 0.21.4