Ver Fonte

体验卡移除days

shmily1213 há 3 meses atrás
pai
commit
410d5e5932
1 ficheiros alterados com 4 adições e 1 exclusões
  1. 4 1
      back-ui/src/views/dz/cards/components/AssignDialog.vue

+ 4 - 1
back-ui/src/views/dz/cards/components/AssignDialog.vue

@@ -129,8 +129,11 @@ const emit = defineEmits(['refresh'])
 const handleConfirm = () => {
   formRef.value.validate(async (valid) => {
     if (valid) {
-      const { cardType, agentId, begin, end, location, assignExamType, schoolId, days } = form.value;
+      let { cardType, agentId, begin, end, location, assignExamType, schoolId, days } = form.value;
       modalRef.value.showLoading()
+      if (cardType !== '9') {
+        days = undefined;
+      }
       assignCard(cardType, agentId, begin, end, location, assignExamType, schoolId, days).then(res => {
         proxy.$modal.msgSuccess('分配卡成功')
         close();