Преглед на файлове

fix: 考试删除问题

johnsen преди 6 месеца
родител
ревизия
8fd46abd8b
променени са 1 файла, в които са добавени 20 реда и са изтрити 6 реда
  1. 20 6
      src/views/platform/examination/exam/list.vue

+ 20 - 6
src/views/platform/examination/exam/list.vue

@@ -157,7 +157,7 @@ export default {
         page: 1,
         page: 1,
         limit: 20
         limit: 20
       },
       },
-      sorts: {'CREATE_TIME_':'DESC'},
+      sorts: { CREATE_TIME_: 'DESC' },
       showEditDialog: false,
       showEditDialog: false,
       showDetailDialog: false,
       showDetailDialog: false,
       showJudgeDialog: false,
       showJudgeDialog: false,
@@ -752,9 +752,15 @@ export default {
       }
       }
       const examNameDesc = `<div><span style="font-weight: 600;">考试名称:</span><span style="color: #f56c6c;">${examName}</span></div>`
       const examNameDesc = `<div><span style="font-weight: 600;">考试名称:</span><span style="color: #f56c6c;">${examName}</span></div>`
       const bankNameDesc = `<div><span style="font-weight: 600;">考试题库:</span><span style="color: #f56c6c;">${bankName}</span></div>`
       const bankNameDesc = `<div><span style="font-weight: 600;">考试题库:</span><span style="color: #f56c6c;">${bankName}</span></div>`
-      const quesitonCountDesc = `<div><span style="font-weight: 600;">题目数量:</span><span style="color: #f56c6c;">${questionCount || 0}</span></div>`
-      const scoreDesc = `<div><span style="font-weight: 600;">考试总分:</span><span style="color: #f56c6c;">${totalScore || 0}</span></div>`
-      const examineeDesc = `<div><span style="font-weight: 600;">考试人数:</span><span style="color: #f56c6c;">${examinee ? examinee.split(',').length : 0}</span></div>`
+      const quesitonCountDesc = `<div><span style="font-weight: 600;">题目数量:</span><span style="color: #f56c6c;">${
+        questionCount || 0
+      }</span></div>`
+      const scoreDesc = `<div><span style="font-weight: 600;">考试总分:</span><span style="color: #f56c6c;">${
+        totalScore || 0
+      }</span></div>`
+      const examineeDesc = `<div><span style="font-weight: 600;">考试人数:</span><span style="color: #f56c6c;">${
+        examinee ? examinee.split(',').length : 0
+      }</span></div>`
       const limitDateDesc = `<div><span style="font-weight: 600;">限考时间:</span><span style="color: #f56c6c;">${limitDate}</span></div>`
       const limitDateDesc = `<div><span style="font-weight: 600;">限考时间:</span><span style="color: #f56c6c;">${limitDate}</span></div>`
       const limitCountDesc = `<div><span style="font-weight: 600;">限考次数:</span><span style="color: #f56c6c;">${limitCount}</span></div>`
       const limitCountDesc = `<div><span style="font-weight: 600;">限考次数:</span><span style="color: #f56c6c;">${limitCount}</span></div>`
       const temp =
       const temp =
@@ -983,8 +989,16 @@ export default {
           ids: ids.join(',')
           ids: ids.join(',')
         })
         })
           .then(() => {
           .then(() => {
-            ActionUtils.removeSuccessMessage()
-            this.search()
+            // ActionUtils.removeSuccessMessage()
+            this.$common
+              .request('delete', {
+                tableName: 'IBPS_PARTY_USER_CALENDAR',
+                paramWhere: { data_source_id_: ids.join(',') }
+              })
+              .then(() => {
+                this.search()
+                this.$message.success('删除成功!')
+              })
           })
           })
           .catch(() => {})
           .catch(() => {})