Explorar o código

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

zhangjie hai 6 meses
pai
achega
a6b469558b
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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 = aitem.cardId;
           });
           return {
             ...item,