let newarr = friendTableSource.filter(function(item, index, arr0) {
      return item.code !== val;
    });