zhaoyun il y a 1 mois
Parent
commit
8864d0e4de
1 fichiers modifiés avec 6 ajouts et 2 suppressions
  1. 6 2
      src/views/modules/load-forecasting-v2/index.vue

+ 6 - 2
src/views/modules/load-forecasting-v2/index.vue

@@ -502,14 +502,18 @@ export default {
     },
     /// 删除
     deleteHandler(id) {
+		var ids = id? [Number(id)]: this.dataListSelections.map(item => {
+			return Number(item.id);
+		});
       this.$confirm('确认删除吗?', '提示', {
         confirmButtonText: '确定',
         cancelButtonText: '取消',
         type: 'warning',
       }).then(() => {
         this.$http({
-          url: `/predict-conf/delete/${id}`,
-          method: 'delete',
+          url: `/predict-conf/delete`,
+          method: "post",
+		  data: ids
         }).then(({ data }) => {
           if (data && data.code === 0) {
             this.$message({