動態

詳情 返回 返回

數組轉換 - 動態 詳情

1、場景 :批量新增的時候後台接收的數組對象只需要一兩個參數的信息

image.png

console.log("selectedRows--", selectedRows)
  let arrnew = selectedRows.map((item,index) => {
      return Object.assign({},  {'group_Dr':item.group_Dr,"mapInterface_Dr":item.mapInterface_Dr})})
      console.log("arrnew--",arrnew)

後續迭代》》

user avatar dingtongya 頭像 yinzhixiaxue 頭像 zourongle 頭像 anchen_5c17815319fb5 頭像 hard_heart_603dd717240e2 頭像 shuirong1997 頭像 xiaolei_599661330c0cb 頭像 yqyx36 頭像 zzd41 頭像 assassin 頭像 hyfhao 頭像 yangxiansheng_5a1b9b93a3a44 頭像
點贊 84 用戶, 點贊了這篇動態!
點贊

Add a new 評論

Some HTML is okay.