zhangjie hace 3 años
padre
commit
aeb9db03ca

+ 1 - 1
src/assets/styles/iview-custom.less

@@ -158,7 +158,7 @@
   &-item {
     border-radius: @box-border-radius-small;
     height: 32px;
-    width: 32px;
+    min-width: 32px;
     line-height: 30px;
     min-width: 32px;
     a {

+ 10 - 1
src/modules/main/PaperManage.vue

@@ -86,8 +86,9 @@
     </div>
 
     <image-action-list
+      v-if="papers.length"
       :data="papers"
-      :actions="['rotate', 'absent']"
+      :actions="actions"
       @on-review="toReview"
       ref="ImageActionList"
     ></image-action-list>
@@ -139,6 +140,7 @@ export default {
       SORT_RULE_TYPE,
       CAFA_EXCEPTION_TYPE: {},
       paperType: "9",
+      confirmPaperType: "9",
       current: 1,
       size: this.GLOBAL.pageSize,
       total: 0,
@@ -150,6 +152,11 @@ export default {
       curPaperIndex: 0
     };
   },
+  computed: {
+    actions() {
+      return this.confirmPaperType === "1" ? [] : ["rotate", "absent"];
+    }
+  },
   mounted() {
     this.CAFA_EXCEPTION_TYPE = { ...CAFA_EXCEPTION_TYPE, 9: "全部" };
     this.initData();
@@ -172,6 +179,7 @@ export default {
         page: this.current - 1,
         size: this.size
       };
+      this.papers = [];
       const data = await paperPageList(datas);
       this.papers = data.data.map(paper => {
         const title = paper.manual
@@ -196,6 +204,7 @@ export default {
         this.$Message.error("请选择科目和考区!");
         return;
       }
+      this.confirmPaperType = this.paperType;
       this.current = page;
       this.getList();
     },

+ 2 - 0
src/modules/quality/Quality.vue

@@ -106,6 +106,7 @@
           </div>
 
           <image-action-list
+            v-if="papers.length"
             :data="papers"
             :column-number="4"
             :actions="imageListActions"
@@ -220,6 +221,7 @@ export default {
         page: this.current - 1,
         size: this.size
       };
+      this.papers = [];
       const data = await paperPageList(datas);
       this.papers = data.data.map(paper => {
         return {