Sfoglia il codice sorgente

修复通知的部分bug

lideyin 5 anni fa
parent
commit
88890d52ed
1 ha cambiato i file con 7 aggiunte e 2 eliminazioni
  1. 7 2
      src/modules/examwork/view/notice.vue

+ 7 - 2
src/modules/examwork/view/notice.vue

@@ -241,7 +241,7 @@
                   <el-tag
                     style="margin-left:5px;margin-top:5px;"
                     v-for="tag in selectedExam"
-                    :closable="true"
+                    :closable="false"
                     :close-transition="false"
                     @close="examTagClose(tag)"
                     type="info"
@@ -257,7 +257,7 @@
                   <el-tag
                     style="margin-left:5px;margin-top:5px;"
                     v-for="tag in selectedMark"
-                    :closable="true"
+                    :closable="false"
                     :close-transition="false"
                     @close="markTagClose(tag)"
                     type="info"
@@ -363,6 +363,7 @@
                   @size-change="handleExamSizeChange"
                   :current-page="examCurrentPage"
                   :page-size="examPageSize"
+                  :page-sizes="[10]"
                   layout="total, sizes, prev, pager, next, jumper"
                   :total="examTotal"
                 ></el-pagination>
@@ -458,6 +459,7 @@
                   @size-change="handleMarkSizeChange"
                   :current-page="markCurrentPage"
                   :page-size="markPageSize"
+                  :page-sizes="[10]"
                   layout="total, sizes, prev, pager, next, jumper"
                   :total="markTotal"
                 ></el-pagination>
@@ -744,8 +746,11 @@ export default {
       this.noticeForm = {};
     },
     editNoticeDialog(row) {
+      debugger;
       this.operateType = "edit";
       this.noticeForm = Object.assign({}, row);
+      this.selectedExam = [];
+      this.selectedMark = [];
       if (row.publishObject && row.publishObject.length > 0) {
         if (row.ruleType == "STUDENTS_OF_EXAM") {
           this.selectedExam = row.publishObject;