code: function parse(dist) {
    return Object.keys(dist).map((id) => {
      let pid;
  
      if (id.slice(2, 6) === '0000') {
        pid = '';
      } else if (id.slice(4, 6) === '00') {
        pid = `${id.slice(0, 2)}0000`;
      } else {
        pid = `${id.slice(0, 4)}00`;
      }
  
      return { id, pid, name: dist[id] };
    });
  }
docs: 解析数据父节点ID
  
  @param {array} dist
  @returns