Browse Source

fix: 命题任务题卡编辑问题

zhangjie 6 months ago
parent
commit
03be4513b7
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/modules/exam/components/taskApply/TaskPaper.vue

+ 3 - 1
src/modules/exam/components/taskApply/TaskPaper.vue

@@ -295,7 +295,8 @@
                     :disabled="
                       !attachment.cardId ||
                       attachment.cardType === 'GENERIC' ||
-                      !(!attachment.used && attachment.createId === user.id)
+                      (attachment.cardId !== attachment.originCardId &&
+                        attachment.used)
                     "
                     @click="toEditCard(attachment)"
                     >编辑</el-button
@@ -578,6 +579,7 @@ export default {
             : [];
           paperAttachmentIds.forEach((aitem) => {
             aitem.serialNumber = item.serialNumber;
+            aitem.originCardId = item.cardId;
           });
           return {
             ...item,