自定义数据

if (_temp.dataView) {
          const _json = JSON.parse(_temp.dataView);
          const _tempArr = [];
          Object.keys(_json).forEach((key, index) => {
            _tempArr.push({
              value: _json[key],
              name: key,
            });
          });
          _this.deviceDataView = [..._tempArr];
        }
原文地址:https://www.cnblogs.com/Byme/p/15268510.html