Ver código fonte

fix:批量录单-导入学员excel漏洞

Tang 3 anos atrás
pai
commit
c4bc89ab1f

+ 5 - 3
src/views/Marketing/order/offlineOrder/batchRecord/firstStep/index.vue

@@ -257,7 +257,11 @@ export default {
     uploadList(arr) {
       let ays = JSON.parse(JSON.stringify(arr));
       ays.forEach((item) => {
-        item.subjectIds = item.subjectIds.split(",").map(Number);
+        if(item.subjectIds){
+          item.subjectIds = item.subjectIds.split(",").map(Number);
+        }else{
+          item.subjectIds = []
+        }
       });
       let newObjs = this.tableData.concat(ays);
       this.tableData = this.$methodsTools.uniqueFunc(newObjs, "userId");
@@ -413,8 +417,6 @@ export default {
 }
 .rowSty {
   display: flex;
-  .ulSty {
-  }
   .spanSty {
     width: 50px;
     flex-shrink: 0;