Explorar o código

考试管理-删除按钮改动-还原

ZhuJiaHao hai 6 meses
pai
achega
0f40e47e0f
Modificáronse 1 ficheiros con 1 adicións e 41 borrados
  1. 1 41
      src/views/platform/examination/exam/list.vue

+ 1 - 41
src/views/platform/examination/exam/list.vue

@@ -715,7 +715,7 @@ export default {
          * 删除考试
          * 删除考试
          */
          */
         handleRemove (ids) {
         handleRemove (ids) {
-            /*
+            
             if (!ids || !ids.length) {
             if (!ids || !ids.length) {
                 return this.$message.warning('请选择要删除的考试!')
                 return this.$message.warning('请选择要删除的考试!')
             }
             }
@@ -743,46 +743,6 @@ export default {
                 //     this.search()
                 //     this.search()
                 // })
                 // })
             })
             })
-            */
-          
-         
-          
-          if (!ids || !ids.length) {
-            return this.$message.warning('请选择要删除的考试!')
-          }
-          this.$confirm(
-            '将删除所选考试及已产生的试卷数据,数据删除后无法恢复,确定要继续吗?',
-            '提示',
-            {
-              confirmButtonText: '确认',
-              cancelButtonText: '取消',
-              type: 'warning',
-              showClose: false,
-              closeOnClickModal: false
-            }
-          ).then(() => {
-            removeFormData({
-              formKey: 'examForDelete',
-              ids: ids.join(',')
-            })
-              .then(() => {
-                Promise.all([
-                  this.$common.request('delete', {
-                    tableName: 'IBPS_PARTY_USER_CALENDAR',
-                    paramWhere: { data_source_id_: ids.join(',') }
-                  }),
-                  this.$common.request('delete', {
-                    tableName: 'IBPS_MSG_INNER',
-                    paramWhere: { wai_jian_: ids.join(',') }
-                  })
-                ]).then((res) => {
-                  this.search()
-                  this.$message.success('删除成功!')
-                })
-              })
-              .catch(() => {})
-          })
-        
 
 
         },
         },
         transformUser (userId) {
         transformUser (userId) {