3d-decorate-platform 1.0.27 → 1.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -7305,35 +7305,35 @@
7305
7305
  }));
7306
7306
  return _saveClassifyDefault.apply(this, arguments);
7307
7307
  }
7308
- function queryModelAssets() {
7309
- return _queryModelAssets.apply(this, arguments);
7308
+ function listModelSkus() {
7309
+ return _listModelSkus.apply(this, arguments);
7310
7310
  }
7311
7311
 
7312
7312
  /*
7313
- * 查询材质素材信息(用于设置默认素材)
7314
- * @param {Object} params
7313
+ * 查询材质 SKU 列表(用于设置默认材质)
7314
+ * @param {Object} params - { skuName }
7315
7315
  * @returns {Promise<Object>}
7316
7316
  */
7317
- function _queryModelAssets() {
7318
- _queryModelAssets = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee27() {
7317
+ function _listModelSkus() {
7318
+ _listModelSkus = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee29() {
7319
7319
  var params,
7320
- _args27 = arguments;
7321
- return _regenerator().w(function (_context27) {
7322
- while (1) switch (_context27.n) {
7320
+ _args29 = arguments;
7321
+ return _regenerator().w(function (_context29) {
7322
+ while (1) switch (_context29.n) {
7323
7323
  case 0:
7324
- params = _args27.length > 0 && _args27[0] !== undefined ? _args27[0] : {};
7325
- return _context27.a(2, http({
7326
- url: "/vbim-decoration-server/modelAssets/queryModelAssets",
7324
+ params = _args29.length > 0 && _args29[0] !== undefined ? _args29[0] : {};
7325
+ return _context29.a(2, http({
7326
+ url: "/vbim-decoration-server/goodMaterialMap/listModelSkus",
7327
7327
  method: "post",
7328
7328
  data: params
7329
7329
  }));
7330
7330
  }
7331
- }, _callee27);
7331
+ }, _callee29);
7332
7332
  }));
7333
- return _queryModelAssets.apply(this, arguments);
7333
+ return _listModelSkus.apply(this, arguments);
7334
7334
  }
7335
- function queryTextureAssets() {
7336
- return _queryTextureAssets.apply(this, arguments);
7335
+ function listTextureSkus() {
7336
+ return _listTextureSkus.apply(this, arguments);
7337
7337
  }
7338
7338
 
7339
7339
  /*
@@ -7341,23 +7341,23 @@
7341
7341
  * @param {Object} params
7342
7342
  * @returns {Promise<Object>}
7343
7343
  */
7344
- function _queryTextureAssets() {
7345
- _queryTextureAssets = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee28() {
7344
+ function _listTextureSkus() {
7345
+ _listTextureSkus = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee30() {
7346
7346
  var params,
7347
- _args28 = arguments;
7348
- return _regenerator().w(function (_context28) {
7349
- while (1) switch (_context28.n) {
7347
+ _args30 = arguments;
7348
+ return _regenerator().w(function (_context30) {
7349
+ while (1) switch (_context30.n) {
7350
7350
  case 0:
7351
- params = _args28.length > 0 && _args28[0] !== undefined ? _args28[0] : {};
7352
- return _context28.a(2, http({
7353
- url: "/vbim-decoration-server/textureAssets/queryTextureAssets",
7351
+ params = _args30.length > 0 && _args30[0] !== undefined ? _args30[0] : {};
7352
+ return _context30.a(2, http({
7353
+ url: "/vbim-decoration-server/goodMaterialMap/listTextureSkus",
7354
7354
  method: "post",
7355
7355
  data: params
7356
7356
  }));
7357
7357
  }
7358
- }, _callee28);
7358
+ }, _callee30);
7359
7359
  }));
7360
- return _queryTextureAssets.apply(this, arguments);
7360
+ return _listTextureSkus.apply(this, arguments);
7361
7361
  }
7362
7362
  function getUnclassifiedTextures() {
7363
7363
  return _getUnclassifiedTextures.apply(this, arguments);
@@ -7369,20 +7369,20 @@
7369
7369
  * @returns {Promise<Object>}
7370
7370
  */
7371
7371
  function _getUnclassifiedTextures() {
7372
- _getUnclassifiedTextures = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee29() {
7372
+ _getUnclassifiedTextures = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee31() {
7373
7373
  var params,
7374
- _args29 = arguments;
7375
- return _regenerator().w(function (_context29) {
7376
- while (1) switch (_context29.n) {
7374
+ _args31 = arguments;
7375
+ return _regenerator().w(function (_context31) {
7376
+ while (1) switch (_context31.n) {
7377
7377
  case 0:
7378
- params = _args29.length > 0 && _args29[0] !== undefined ? _args29[0] : {};
7379
- return _context29.a(2, http({
7378
+ params = _args31.length > 0 && _args31[0] !== undefined ? _args31[0] : {};
7379
+ return _context31.a(2, http({
7380
7380
  url: "/vbim-decoration-server/textureAssets/pageUnclassifiedTextures",
7381
7381
  method: "post",
7382
7382
  data: params
7383
7383
  }));
7384
7384
  }
7385
- }, _callee29);
7385
+ }, _callee31);
7386
7386
  }));
7387
7387
  return _getUnclassifiedTextures.apply(this, arguments);
7388
7388
  }
@@ -7396,20 +7396,20 @@
7396
7396
  * @returns {Promise<Object>}
7397
7397
  */
7398
7398
  function _getClassifiedTextureAssetsList() {
7399
- _getClassifiedTextureAssetsList = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee30() {
7399
+ _getClassifiedTextureAssetsList = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee32() {
7400
7400
  var params,
7401
- _args30 = arguments;
7402
- return _regenerator().w(function (_context30) {
7403
- while (1) switch (_context30.n) {
7401
+ _args32 = arguments;
7402
+ return _regenerator().w(function (_context32) {
7403
+ while (1) switch (_context32.n) {
7404
7404
  case 0:
7405
- params = _args30.length > 0 && _args30[0] !== undefined ? _args30[0] : {};
7406
- return _context30.a(2, http({
7405
+ params = _args32.length > 0 && _args32[0] !== undefined ? _args32[0] : {};
7406
+ return _context32.a(2, http({
7407
7407
  url: "/vbim-decoration-server/textureAssets/pageClassifiedTextures",
7408
7408
  method: "post",
7409
7409
  data: params
7410
7410
  }));
7411
7411
  }
7412
- }, _callee30);
7412
+ }, _callee32);
7413
7413
  }));
7414
7414
  return _getClassifiedTextureAssetsList.apply(this, arguments);
7415
7415
  }
@@ -7422,20 +7422,20 @@
7422
7422
  * @returns {Promise<Object>}
7423
7423
  */
7424
7424
  function _saveSkuApi() {
7425
- _saveSkuApi = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee32() {
7425
+ _saveSkuApi = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee34() {
7426
7426
  var params,
7427
- _args32 = arguments;
7428
- return _regenerator().w(function (_context32) {
7429
- while (1) switch (_context32.n) {
7427
+ _args34 = arguments;
7428
+ return _regenerator().w(function (_context34) {
7429
+ while (1) switch (_context34.n) {
7430
7430
  case 0:
7431
- params = _args32.length > 0 && _args32[0] !== undefined ? _args32[0] : {};
7432
- return _context32.a(2, http({
7431
+ params = _args34.length > 0 && _args34[0] !== undefined ? _args34[0] : {};
7432
+ return _context34.a(2, http({
7433
7433
  url: "/vbim-decoration-server/goodMaterialMap/saveSku",
7434
7434
  method: "post",
7435
7435
  data: params
7436
7436
  }));
7437
7437
  }
7438
- }, _callee32);
7438
+ }, _callee34);
7439
7439
  }));
7440
7440
  return _saveSkuApi.apply(this, arguments);
7441
7441
  }
@@ -7443,20 +7443,20 @@
7443
7443
  return _getClassifyTreeApi.apply(this, arguments);
7444
7444
  }
7445
7445
  function _getClassifyTreeApi() {
7446
- _getClassifyTreeApi = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee33() {
7446
+ _getClassifyTreeApi = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee35() {
7447
7447
  var params,
7448
- _args33 = arguments;
7449
- return _regenerator().w(function (_context33) {
7450
- while (1) switch (_context33.n) {
7448
+ _args35 = arguments;
7449
+ return _regenerator().w(function (_context35) {
7450
+ while (1) switch (_context35.n) {
7451
7451
  case 0:
7452
- params = _args33.length > 0 && _args33[0] !== undefined ? _args33[0] : {};
7453
- return _context33.a(2, http({
7452
+ params = _args35.length > 0 && _args35[0] !== undefined ? _args35[0] : {};
7453
+ return _context35.a(2, http({
7454
7454
  url: "/vbim-decoration-server/goodMaterialMap/listClassifyTree",
7455
7455
  method: "post",
7456
7456
  data: params
7457
7457
  }));
7458
7458
  }
7459
- }, _callee33);
7459
+ }, _callee35);
7460
7460
  }));
7461
7461
  return _getClassifyTreeApi.apply(this, arguments);
7462
7462
  }
@@ -7470,20 +7470,20 @@
7470
7470
  * @returns {Promise<Object>}
7471
7471
  */
7472
7472
  function _saveTextureAssets() {
7473
- _saveTextureAssets = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee34() {
7473
+ _saveTextureAssets = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee36() {
7474
7474
  var params,
7475
- _args34 = arguments;
7476
- return _regenerator().w(function (_context34) {
7477
- while (1) switch (_context34.n) {
7475
+ _args36 = arguments;
7476
+ return _regenerator().w(function (_context36) {
7477
+ while (1) switch (_context36.n) {
7478
7478
  case 0:
7479
- params = _args34.length > 0 && _args34[0] !== undefined ? _args34[0] : {};
7480
- return _context34.a(2, http({
7479
+ params = _args36.length > 0 && _args36[0] !== undefined ? _args36[0] : {};
7480
+ return _context36.a(2, http({
7481
7481
  url: "/vbim-decoration-server/textureAssets/saveTextureAssets",
7482
7482
  method: "post",
7483
7483
  data: params
7484
7484
  }));
7485
7485
  }
7486
- }, _callee34);
7486
+ }, _callee36);
7487
7487
  }));
7488
7488
  return _saveTextureAssets.apply(this, arguments);
7489
7489
  }
@@ -7497,14 +7497,14 @@
7497
7497
  * @returns {Promise<Object>}
7498
7498
  */
7499
7499
  function _generateTextureAssetIds() {
7500
- _generateTextureAssetIds = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee35() {
7500
+ _generateTextureAssetIds = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee37() {
7501
7501
  var params,
7502
- _args35 = arguments;
7503
- return _regenerator().w(function (_context35) {
7504
- while (1) switch (_context35.n) {
7502
+ _args37 = arguments;
7503
+ return _regenerator().w(function (_context37) {
7504
+ while (1) switch (_context37.n) {
7505
7505
  case 0:
7506
- params = _args35.length > 0 && _args35[0] !== undefined ? _args35[0] : {};
7507
- return _context35.a(2, http({
7506
+ params = _args37.length > 0 && _args37[0] !== undefined ? _args37[0] : {};
7507
+ return _context37.a(2, http({
7508
7508
  url: "/vbim-decoration-server/textureAssets/generateTextureAssetIds",
7509
7509
  method: "post",
7510
7510
  data: params,
@@ -7519,7 +7519,7 @@
7519
7519
  }]
7520
7520
  }));
7521
7521
  }
7522
- }, _callee35);
7522
+ }, _callee37);
7523
7523
  }));
7524
7524
  return _generateTextureAssetIds.apply(this, arguments);
7525
7525
  }
@@ -7533,20 +7533,20 @@
7533
7533
  * @returns {Promise<Object>}
7534
7534
  */
7535
7535
  function _uploadTextureZip() {
7536
- _uploadTextureZip = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee36() {
7536
+ _uploadTextureZip = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee38() {
7537
7537
  var params,
7538
- _args36 = arguments;
7539
- return _regenerator().w(function (_context36) {
7540
- while (1) switch (_context36.n) {
7538
+ _args38 = arguments;
7539
+ return _regenerator().w(function (_context38) {
7540
+ while (1) switch (_context38.n) {
7541
7541
  case 0:
7542
- params = _args36.length > 0 && _args36[0] !== undefined ? _args36[0] : {};
7543
- return _context36.a(2, http({
7542
+ params = _args38.length > 0 && _args38[0] !== undefined ? _args38[0] : {};
7543
+ return _context38.a(2, http({
7544
7544
  url: "/vbim-decoration-server/textureAssets/uploadTextureZip",
7545
7545
  method: "post",
7546
7546
  data: params
7547
7547
  }));
7548
7548
  }
7549
- }, _callee36);
7549
+ }, _callee38);
7550
7550
  }));
7551
7551
  return _uploadTextureZip.apply(this, arguments);
7552
7552
  }
@@ -7560,20 +7560,20 @@
7560
7560
  * @returns {Promise<Object>}
7561
7561
  */
7562
7562
  function _uploadTextureFolder() {
7563
- _uploadTextureFolder = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee37() {
7563
+ _uploadTextureFolder = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee39() {
7564
7564
  var params,
7565
- _args37 = arguments;
7566
- return _regenerator().w(function (_context37) {
7567
- while (1) switch (_context37.n) {
7565
+ _args39 = arguments;
7566
+ return _regenerator().w(function (_context39) {
7567
+ while (1) switch (_context39.n) {
7568
7568
  case 0:
7569
- params = _args37.length > 0 && _args37[0] !== undefined ? _args37[0] : {};
7570
- return _context37.a(2, http({
7569
+ params = _args39.length > 0 && _args39[0] !== undefined ? _args39[0] : {};
7570
+ return _context39.a(2, http({
7571
7571
  url: "/vbim-decoration-server/textureAssets/uploadTextureFolder",
7572
7572
  method: "post",
7573
7573
  data: params
7574
7574
  }));
7575
7575
  }
7576
- }, _callee37);
7576
+ }, _callee39);
7577
7577
  }));
7578
7578
  return _uploadTextureFolder.apply(this, arguments);
7579
7579
  }
@@ -7587,20 +7587,20 @@
7587
7587
  * @returns {Promise<Object>}
7588
7588
  */
7589
7589
  function _batchSaveTextureAssets() {
7590
- _batchSaveTextureAssets = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee38() {
7590
+ _batchSaveTextureAssets = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee40() {
7591
7591
  var params,
7592
- _args38 = arguments;
7593
- return _regenerator().w(function (_context38) {
7594
- while (1) switch (_context38.n) {
7592
+ _args40 = arguments;
7593
+ return _regenerator().w(function (_context40) {
7594
+ while (1) switch (_context40.n) {
7595
7595
  case 0:
7596
- params = _args38.length > 0 && _args38[0] !== undefined ? _args38[0] : {};
7597
- return _context38.a(2, http({
7596
+ params = _args40.length > 0 && _args40[0] !== undefined ? _args40[0] : {};
7597
+ return _context40.a(2, http({
7598
7598
  url: "/vbim-decoration-server/textureAssets/batchSaveTextureAssets",
7599
7599
  method: "post",
7600
7600
  data: params
7601
7601
  }));
7602
7602
  }
7603
- }, _callee38);
7603
+ }, _callee40);
7604
7604
  }));
7605
7605
  return _batchSaveTextureAssets.apply(this, arguments);
7606
7606
  }
@@ -7614,20 +7614,20 @@
7614
7614
  * @returns {Promise<Object>}
7615
7615
  */
7616
7616
  function _queryTextureAssetsRelations() {
7617
- _queryTextureAssetsRelations = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee39() {
7617
+ _queryTextureAssetsRelations = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee41() {
7618
7618
  var params,
7619
- _args39 = arguments;
7620
- return _regenerator().w(function (_context39) {
7621
- while (1) switch (_context39.n) {
7619
+ _args41 = arguments;
7620
+ return _regenerator().w(function (_context41) {
7621
+ while (1) switch (_context41.n) {
7622
7622
  case 0:
7623
- params = _args39.length > 0 && _args39[0] !== undefined ? _args39[0] : {};
7624
- return _context39.a(2, http({
7623
+ params = _args41.length > 0 && _args41[0] !== undefined ? _args41[0] : {};
7624
+ return _context41.a(2, http({
7625
7625
  url: "/vbim-decoration-server/textureAssets/queryTextureAssetsRelations",
7626
7626
  method: "post",
7627
7627
  data: params
7628
7628
  }));
7629
7629
  }
7630
- }, _callee39);
7630
+ }, _callee41);
7631
7631
  }));
7632
7632
  return _queryTextureAssetsRelations.apply(this, arguments);
7633
7633
  }
@@ -7641,20 +7641,20 @@
7641
7641
  * @returns {Promise<Object>}
7642
7642
  */
7643
7643
  function _deleteTextureAssets() {
7644
- _deleteTextureAssets = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee40() {
7644
+ _deleteTextureAssets = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee42() {
7645
7645
  var params,
7646
- _args40 = arguments;
7647
- return _regenerator().w(function (_context40) {
7648
- while (1) switch (_context40.n) {
7646
+ _args42 = arguments;
7647
+ return _regenerator().w(function (_context42) {
7648
+ while (1) switch (_context42.n) {
7649
7649
  case 0:
7650
- params = _args40.length > 0 && _args40[0] !== undefined ? _args40[0] : {};
7651
- return _context40.a(2, http({
7650
+ params = _args42.length > 0 && _args42[0] !== undefined ? _args42[0] : {};
7651
+ return _context42.a(2, http({
7652
7652
  url: "/vbim-decoration-server/textureAssets/deleteTextureAssets",
7653
7653
  method: "post",
7654
7654
  data: params
7655
7655
  }));
7656
7656
  }
7657
- }, _callee40);
7657
+ }, _callee42);
7658
7658
  }));
7659
7659
  return _deleteTextureAssets.apply(this, arguments);
7660
7660
  }
@@ -7668,20 +7668,20 @@
7668
7668
  * @returns {Promise<Object>}
7669
7669
  */
7670
7670
  function _getSkuDetail() {
7671
- _getSkuDetail = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee41() {
7671
+ _getSkuDetail = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee43() {
7672
7672
  var params,
7673
- _args41 = arguments;
7674
- return _regenerator().w(function (_context41) {
7675
- while (1) switch (_context41.n) {
7673
+ _args43 = arguments;
7674
+ return _regenerator().w(function (_context43) {
7675
+ while (1) switch (_context43.n) {
7676
7676
  case 0:
7677
- params = _args41.length > 0 && _args41[0] !== undefined ? _args41[0] : {};
7678
- return _context41.a(2, http({
7677
+ params = _args43.length > 0 && _args43[0] !== undefined ? _args43[0] : {};
7678
+ return _context43.a(2, http({
7679
7679
  url: "/vbim-decoration-server/goodMaterialMap/detailSku",
7680
7680
  method: "post",
7681
7681
  data: params
7682
7682
  }));
7683
7683
  }
7684
- }, _callee41);
7684
+ }, _callee43);
7685
7685
  }));
7686
7686
  return _getSkuDetail.apply(this, arguments);
7687
7687
  }
@@ -7694,20 +7694,20 @@
7694
7694
  * 返回 value: [{ skuId, mode }]
7695
7695
  */
7696
7696
  function _saveSkuDetail() {
7697
- _saveSkuDetail = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee42() {
7697
+ _saveSkuDetail = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee44() {
7698
7698
  var params,
7699
- _args42 = arguments;
7700
- return _regenerator().w(function (_context42) {
7701
- while (1) switch (_context42.n) {
7699
+ _args44 = arguments;
7700
+ return _regenerator().w(function (_context44) {
7701
+ while (1) switch (_context44.n) {
7702
7702
  case 0:
7703
- params = _args42.length > 0 && _args42[0] !== undefined ? _args42[0] : {};
7704
- return _context42.a(2, http({
7703
+ params = _args44.length > 0 && _args44[0] !== undefined ? _args44[0] : {};
7704
+ return _context44.a(2, http({
7705
7705
  url: "/vbim-decoration-server/goodMaterialMap/saveSkuDetail",
7706
7706
  method: "post",
7707
7707
  data: params
7708
7708
  }));
7709
7709
  }
7710
- }, _callee42);
7710
+ }, _callee44);
7711
7711
  }));
7712
7712
  return _saveSkuDetail.apply(this, arguments);
7713
7713
  }
@@ -7715,20 +7715,20 @@
7715
7715
  return _getUnboundSkuListApi.apply(this, arguments);
7716
7716
  }
7717
7717
  function _getUnboundSkuListApi() {
7718
- _getUnboundSkuListApi = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee43() {
7718
+ _getUnboundSkuListApi = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee45() {
7719
7719
  var params,
7720
- _args43 = arguments;
7721
- return _regenerator().w(function (_context43) {
7722
- while (1) switch (_context43.n) {
7720
+ _args45 = arguments;
7721
+ return _regenerator().w(function (_context45) {
7722
+ while (1) switch (_context45.n) {
7723
7723
  case 0:
7724
- params = _args43.length > 0 && _args43[0] !== undefined ? _args43[0] : {};
7725
- return _context43.a(2, http({
7724
+ params = _args45.length > 0 && _args45[0] !== undefined ? _args45[0] : {};
7725
+ return _context45.a(2, http({
7726
7726
  url: "/vbim-decoration-server/goodMaterialMap/listUnboundSkus",
7727
7727
  method: "post",
7728
7728
  data: params
7729
7729
  }));
7730
7730
  }
7731
- }, _callee43);
7731
+ }, _callee45);
7732
7732
  }));
7733
7733
  return _getUnboundSkuListApi.apply(this, arguments);
7734
7734
  }
@@ -7763,14 +7763,14 @@
7763
7763
  * 返回 value: { successCount, failCount }
7764
7764
  */
7765
7765
  function _batchBindModelApi() {
7766
- _batchBindModelApi = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee44() {
7766
+ _batchBindModelApi = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee46() {
7767
7767
  var params,
7768
- _args44 = arguments;
7769
- return _regenerator().w(function (_context44) {
7770
- while (1) switch (_context44.n) {
7768
+ _args46 = arguments;
7769
+ return _regenerator().w(function (_context46) {
7770
+ while (1) switch (_context46.n) {
7771
7771
  case 0:
7772
- params = _args44.length > 0 && _args44[0] !== undefined ? _args44[0] : {};
7773
- return _context44.a(2, http({
7772
+ params = _args46.length > 0 && _args46[0] !== undefined ? _args46[0] : {};
7773
+ return _context46.a(2, http({
7774
7774
  url: "/vbim-decoration-server/goodMaterialMap/bindMaterialBatch",
7775
7775
  method: "post",
7776
7776
  data: serializeBindMaterialBatch(params.bindList),
@@ -7779,7 +7779,7 @@
7779
7779
  }
7780
7780
  }));
7781
7781
  }
7782
- }, _callee44);
7782
+ }, _callee46);
7783
7783
  }));
7784
7784
  return _batchBindModelApi.apply(this, arguments);
7785
7785
  }
@@ -7787,11 +7787,11 @@
7787
7787
  return _autoBindSkuMaterialsApi.apply(this, arguments);
7788
7788
  }
7789
7789
  function _autoBindSkuMaterialsApi() {
7790
- _autoBindSkuMaterialsApi = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee45() {
7791
- return _regenerator().w(function (_context45) {
7792
- while (1) switch (_context45.n) {
7790
+ _autoBindSkuMaterialsApi = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee47() {
7791
+ return _regenerator().w(function (_context47) {
7792
+ while (1) switch (_context47.n) {
7793
7793
  case 0:
7794
- return _context45.a(2, http({
7794
+ return _context47.a(2, http({
7795
7795
  url: "/vbim-decoration-server/goodMaterialMap/autoBind",
7796
7796
  method: "post",
7797
7797
  data: {},
@@ -7800,7 +7800,7 @@
7800
7800
  }
7801
7801
  }));
7802
7802
  }
7803
- }, _callee45);
7803
+ }, _callee47);
7804
7804
  }));
7805
7805
  return _autoBindSkuMaterialsApi.apply(this, arguments);
7806
7806
  }
@@ -9896,7 +9896,6 @@
9896
9896
  var visible = _ref.visible,
9897
9897
  currentMaterial = _ref.currentMaterial,
9898
9898
  onClose = _ref.onClose,
9899
- onConfirm = _ref.onConfirm,
9900
9899
  onSuccess = _ref.onSuccess,
9901
9900
  onError = _ref.onError;
9902
9901
  var _useState = React.useState(null),
@@ -9919,89 +9918,52 @@
9919
9918
  _useState0 = _slicedToArray(_useState9, 2),
9920
9919
  materialList = _useState0[0],
9921
9920
  setMaterialList = _useState0[1];
9922
- var prevKeywordRef = React.useRef('');
9923
- var isMountingRef = React.useRef(true);
9924
- var getSearchParams = function getSearchParams(keyword) {
9925
- var trimmed = keyword === null || keyword === void 0 ? void 0 : keyword.trim();
9926
- if (!trimmed) return {};
9927
- if (/^\d+$/.test(trimmed)) {
9928
- return {
9929
- id: trimmed
9930
- };
9931
- }
9932
- return {
9933
- name: trimmed
9934
- };
9935
- };
9936
- var fetchList = /*#__PURE__*/function () {
9937
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(keyword) {
9938
- var params, res, _t;
9921
+ React.useEffect(function () {
9922
+ if (!visible) return;
9923
+ setSelectedIndex(null);
9924
+ setSearchKeyword('');
9925
+ setMaterialList([]);
9926
+ }, [visible]);
9927
+
9928
+ // 按 SKU 名称防抖查询,忽略过期请求的结果
9929
+ React.useEffect(function () {
9930
+ if (!visible) return;
9931
+ var active = true;
9932
+ setLoading(true);
9933
+ var skuName = searchKeyword.trim();
9934
+ var timer = setTimeout(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
9935
+ var res, _t;
9939
9936
  return _regenerator().w(function (_context) {
9940
9937
  while (1) switch (_context.p = _context.n) {
9941
9938
  case 0:
9942
- setLoading(true);
9943
- _context.p = 1;
9944
- params = getSearchParams(keyword);
9945
- _context.n = 2;
9946
- return queryTextureAssets(params);
9947
- case 2:
9939
+ _context.p = 0;
9940
+ _context.n = 1;
9941
+ return listTextureSkus(skuName ? {
9942
+ skuName: skuName
9943
+ } : {});
9944
+ case 1:
9948
9945
  res = _context.v;
9949
- if (res && res.data && res.data.success) {
9946
+ if (active && res && res.data && res.data.success) {
9950
9947
  setMaterialList(res.data.value || []);
9951
9948
  }
9952
- _context.n = 4;
9949
+ _context.n = 3;
9953
9950
  break;
9954
- case 3:
9955
- _context.p = 3;
9951
+ case 2:
9952
+ _context.p = 2;
9956
9953
  _t = _context.v;
9957
9954
  console.error(_t);
9955
+ case 3:
9956
+ _context.p = 3;
9957
+ if (active) setLoading(false);
9958
+ return _context.f(3);
9958
9959
  case 4:
9959
- _context.p = 4;
9960
- setLoading(false);
9961
- return _context.f(4);
9962
- case 5:
9963
9960
  return _context.a(2);
9964
9961
  }
9965
- }, _callee, null, [[1, 3, 4, 5]]);
9966
- }));
9967
- return function fetchList(_x) {
9968
- return _ref2.apply(this, arguments);
9969
- };
9970
- }();
9971
- React.useEffect(function () {
9972
- if (!visible) return;
9973
- isMountingRef.current = true;
9974
- setSelectedIndex(null);
9975
- setSearchKeyword('');
9976
- prevKeywordRef.current = '';
9977
- setMaterialList([]);
9978
- fetchList('');
9979
- var timer = setTimeout(function () {
9980
- var current = '';
9981
- if (prevKeywordRef.current !== current) {
9982
- prevKeywordRef.current = current;
9983
- fetchList(current);
9984
- }
9985
- }, 300);
9962
+ }, _callee, null, [[0, 2, 3, 4]]);
9963
+ })), skuName ? 300 : 0);
9986
9964
  return function () {
9987
- return clearTimeout(timer);
9988
- };
9989
- }, [visible]);
9990
- React.useEffect(function () {
9991
- if (!visible) return;
9992
- if (isMountingRef.current) {
9993
- isMountingRef.current = false;
9994
- return;
9995
- }
9996
- var timer = setTimeout(function () {
9997
- var current = searchKeyword;
9998
- if (prevKeywordRef.current !== current) {
9999
- prevKeywordRef.current = current;
10000
- fetchList(current);
10001
- }
10002
- }, 300);
10003
- return function () {
10004
- return clearTimeout(timer);
9965
+ active = false;
9966
+ clearTimeout(timer);
10005
9967
  };
10006
9968
  }, [searchKeyword, visible]);
10007
9969
  var handleMaterialSelect = function handleMaterialSelect(index) {
@@ -10029,7 +9991,7 @@
10029
9991
  _context2.n = 3;
10030
9992
  return saveClassifyDefault({
10031
9993
  classify3Id: currentMaterial && currentMaterial._raw ? currentMaterial._raw.classify3Id : undefined,
10032
- defaultMaterialId: selected ? selected.id : undefined
9994
+ defaultSkuEntityId: selected ? selected.id : undefined
10033
9995
  });
10034
9996
  case 3:
10035
9997
  res = _context2.v;
@@ -10038,11 +10000,6 @@
10038
10000
  type: 'success',
10039
10001
  message: '设置成功'
10040
10002
  });
10041
- if (typeof onConfirm === 'function') onConfirm({
10042
- materialId: selected ? selected.id : '',
10043
- name: selected ? selected.name : '',
10044
- url: selected ? selected.url : ''
10045
- });
10046
10003
  } else {
10047
10004
  onError && onError({
10048
10005
  type: 'error',
@@ -10097,13 +10054,14 @@
10097
10054
  className: styles$d.searchLabel
10098
10055
  }, isEditMode ? '搜索新材质' : '搜索材质素材'), /*#__PURE__*/React__default['default'].createElement(_Input__default['default'], {
10099
10056
  className: styles$d.searchInput,
10100
- placeholder: "\u8F93\u5165\u6750\u8D28\u540D\u79F0\u6216ID\u641C\u7D22...",
10057
+ placeholder: "\u8F93\u5165SKU\u540D\u79F0\u641C\u7D22...",
10101
10058
  prefix: /*#__PURE__*/React__default['default'].createElement(icons.SearchOutlined, {
10102
10059
  className: styles$d.searchIcon
10103
10060
  }),
10104
10061
  value: searchKeyword,
10105
10062
  onChange: function onChange(e) {
10106
- return setSearchKeyword(e.target.value);
10063
+ setSearchKeyword(e.target.value);
10064
+ setSelectedIndex(null);
10107
10065
  }
10108
10066
  }), /*#__PURE__*/React__default['default'].createElement("div", {
10109
10067
  className: styles$d.materialListWrap
@@ -10123,7 +10081,7 @@
10123
10081
  }, materialList.map(function (material, idx) {
10124
10082
  var isSelected = selectedIndex === idx;
10125
10083
  return /*#__PURE__*/React__default['default'].createElement("div", {
10126
- key: material.id,
10084
+ key: material.skuId,
10127
10085
  className: "".concat(styles$d.materialCard, " ").concat(isSelected ? styles$d.materialCardSelected : ''),
10128
10086
  onClick: function onClick() {
10129
10087
  return handleMaterialSelect(idx);
@@ -10132,13 +10090,13 @@
10132
10090
  className: styles$d.materialIcon
10133
10091
  }, material.referenceImage ? /*#__PURE__*/React__default['default'].createElement(LazyImage, {
10134
10092
  src: material.referenceImage,
10135
- alt: material.name
10093
+ alt: material.skuName
10136
10094
  }) : '贴图'), /*#__PURE__*/React__default['default'].createElement("div", {
10137
10095
  className: styles$d.materialInfo
10138
10096
  }, /*#__PURE__*/React__default['default'].createElement("div", {
10139
10097
  className: styles$d.materialName,
10140
- title: material.name
10141
- }, material.name), /*#__PURE__*/React__default['default'].createElement("div", {
10098
+ title: material.skuName
10099
+ }, material.skuName), /*#__PURE__*/React__default['default'].createElement("div", {
10142
10100
  className: styles$d.materialMeta,
10143
10101
  title: material.resolution || '-'
10144
10102
  }, material.resolution || '-')));
@@ -10628,7 +10586,9 @@
10628
10586
  };
10629
10587
  _this.handleTextureSelectSuccess = function (_ref4) {
10630
10588
  var message = _ref4.message;
10589
+ _this.showToast(message || '设置成功', 'success');
10631
10590
  _this.fetchDefault();
10591
+ _this.handleCloseTextureSelect();
10632
10592
  };
10633
10593
  _this.handleTextureSelectError = function (_ref5) {
10634
10594
  var type = _ref5.type,
@@ -10822,59 +10782,6 @@
10822
10782
  }
10823
10783
  });
10824
10784
  };
10825
- // 确认选择材质
10826
- _this.handleConfirmTextureSelect = /*#__PURE__*/function () {
10827
- var _ref8 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(data) {
10828
- var selectRecord, _ref9, _raw, payload, _res$data5, res, _res$data6, _t3;
10829
- return _regenerator().w(function (_context3) {
10830
- while (1) switch (_context3.p = _context3.n) {
10831
- case 0:
10832
- selectRecord = _this.state.selectRecord;
10833
- _ref9 = selectRecord || {}, _raw = _ref9._raw;
10834
- if (_raw) {
10835
- _context3.n = 1;
10836
- break;
10837
- }
10838
- return _context3.a(2);
10839
- case 1:
10840
- payload = {
10841
- classify1Id: _raw.classify1Id,
10842
- classify2Id: _raw.classify2Id,
10843
- classify3Id: _raw.classify3Id,
10844
- defaultMaterialId: data.materialId,
10845
- defaultMaterialName: data.name
10846
- };
10847
- _context3.p = 2;
10848
- _context3.n = 3;
10849
- return _this.props.dispatch({
10850
- type: 'materialTextures/saveDefault',
10851
- payload: payload
10852
- });
10853
- case 3:
10854
- res = _context3.v;
10855
- if (res === null || res === void 0 ? void 0 : (_res$data5 = res.data) === null || _res$data5 === void 0 ? void 0 : _res$data5.success) {
10856
- _this.showToast(data.name ? '默认材质已设置' : '默认材质已更换', 'success');
10857
- _this.fetchDefault();
10858
- _this.handleCloseTextureSelect();
10859
- } else {
10860
- _this.showToast((res === null || res === void 0 ? void 0 : (_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : _res$data6.message) || '保存失败', 'error');
10861
- }
10862
- _context3.n = 5;
10863
- break;
10864
- case 4:
10865
- _context3.p = 4;
10866
- _t3 = _context3.v;
10867
- console.error('保存失败', _t3);
10868
- _this.showToast('保存失败', 'error');
10869
- case 5:
10870
- return _context3.a(2);
10871
- }
10872
- }, _callee3, null, [[2, 4]]);
10873
- }));
10874
- return function (_x2) {
10875
- return _ref8.apply(this, arguments);
10876
- };
10877
- }();
10878
10785
  _this.showToast = function (payload) {
10879
10786
  var fallbackType = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'success';
10880
10787
  var message = payload;
@@ -11415,7 +11322,6 @@
11415
11322
  visible: this.state.textureSelectVisible,
11416
11323
  currentMaterial: this.state.selectRecord,
11417
11324
  onClose: this.handleCloseTextureSelect,
11418
- onConfirm: this.handleConfirmTextureSelect,
11419
11325
  onSuccess: this.handleTextureSelectSuccess,
11420
11326
  onError: this.handleTextureSelectError
11421
11327
  }), /*#__PURE__*/React__default['default'].createElement(TextureDeleteModal, {
@@ -60489,93 +60395,52 @@
60489
60395
  _useState0 = _slicedToArray(_useState9, 2),
60490
60396
  materialList = _useState0[0],
60491
60397
  setMaterialList = _useState0[1];
60492
- var prevKeywordRef = React.useRef('');
60493
- var isMountingRef = React.useRef(true);
60494
- var getSearchParams = function getSearchParams(keyword) {
60495
- var trimmed = keyword === null || keyword === void 0 ? void 0 : keyword.trim();
60496
- if (!trimmed) return {};
60497
- if (/^\d+$/.test(trimmed)) {
60498
- return {
60499
- id: trimmed
60500
- };
60501
- }
60502
- return {
60503
- name: trimmed
60504
- };
60505
- };
60506
- var fetchList = /*#__PURE__*/function () {
60507
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(keyword) {
60508
- var params, res, _t;
60398
+ React.useEffect(function () {
60399
+ if (!visible) return;
60400
+ setSelectedIndex(null);
60401
+ setSearchKeyword('');
60402
+ setMaterialList([]);
60403
+ }, [visible]);
60404
+
60405
+ // 按 SKU 名称防抖查询,忽略过期请求的结果
60406
+ React.useEffect(function () {
60407
+ if (!visible) return;
60408
+ var active = true;
60409
+ setLoading(true);
60410
+ var skuName = searchKeyword.trim();
60411
+ var timer = setTimeout(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
60412
+ var res, _t;
60509
60413
  return _regenerator().w(function (_context) {
60510
60414
  while (1) switch (_context.p = _context.n) {
60511
60415
  case 0:
60512
- setLoading(true);
60513
- _context.p = 1;
60514
- params = getSearchParams(keyword);
60515
- _context.n = 2;
60516
- return queryModelAssets(params);
60517
- case 2:
60416
+ _context.p = 0;
60417
+ _context.n = 1;
60418
+ return listModelSkus(skuName ? {
60419
+ skuName: skuName
60420
+ } : {});
60421
+ case 1:
60518
60422
  res = _context.v;
60519
- if (res && res.data && res.data.success) {
60423
+ if (active && res && res.data && res.data.success) {
60520
60424
  setMaterialList(res.data.value || []);
60521
60425
  }
60522
- _context.n = 4;
60426
+ _context.n = 3;
60523
60427
  break;
60524
- case 3:
60525
- _context.p = 3;
60428
+ case 2:
60429
+ _context.p = 2;
60526
60430
  _t = _context.v;
60527
60431
  console.error(_t);
60432
+ case 3:
60433
+ _context.p = 3;
60434
+ if (active) setLoading(false);
60435
+ return _context.f(3);
60528
60436
  case 4:
60529
- _context.p = 4;
60530
- setLoading(false);
60531
- return _context.f(4);
60532
- case 5:
60533
60437
  return _context.a(2);
60534
60438
  }
60535
- }, _callee, null, [[1, 3, 4, 5]]);
60536
- }));
60537
- return function fetchList(_x) {
60538
- return _ref2.apply(this, arguments);
60539
- };
60540
- }();
60541
-
60542
- // 打开时立即加载全部,输入时防抖实时搜索
60543
- React.useEffect(function () {
60544
- if (!visible) return;
60545
- isMountingRef.current = true;
60546
- setSelectedIndex(null);
60547
- setSearchKeyword('');
60548
- prevKeywordRef.current = '';
60549
- setMaterialList([]);
60550
- fetchList('');
60551
- var timer = setTimeout(function () {
60552
- var current = '';
60553
- if (prevKeywordRef.current !== current) {
60554
- prevKeywordRef.current = current;
60555
- fetchList(current);
60556
- }
60557
- }, 300);
60558
- return function () {
60559
- return clearTimeout(timer);
60560
- };
60561
- }, [visible]);
60562
-
60563
- // 关键词变化时防抖搜索
60564
- React.useEffect(function () {
60565
- if (!visible) return;
60566
- if (isMountingRef.current) {
60567
- isMountingRef.current = false;
60568
- return;
60569
- }
60570
- var timer = setTimeout(function () {
60571
- var current = searchKeyword;
60572
- if (prevKeywordRef.current !== current) {
60573
- prevKeywordRef.current = current;
60574
- fetchList(current);
60575
- }
60576
- }, 300);
60439
+ }, _callee, null, [[0, 2, 3, 4]]);
60440
+ })), skuName ? 300 : 0);
60577
60441
  return function () {
60578
- return clearTimeout(timer);
60442
+ active = false;
60443
+ clearTimeout(timer);
60579
60444
  };
60580
60445
  }, [searchKeyword, visible]);
60581
60446
  var handleMaterialSelect = function handleMaterialSelect(index) {
@@ -60603,7 +60468,7 @@
60603
60468
  _context2.n = 3;
60604
60469
  return saveClassifyDefault({
60605
60470
  classify3Id: currentMaterial && currentMaterial._raw ? currentMaterial._raw.classify3Id : undefined,
60606
- defaultModelId: selected ? selected.id : undefined
60471
+ defaultSkuEntityId: selected ? selected.id : undefined
60607
60472
  });
60608
60473
  case 3:
60609
60474
  res = _context2.v;
@@ -60613,7 +60478,7 @@
60613
60478
  message: '设置成功'
60614
60479
  });
60615
60480
  if (typeof onConfirm === 'function') onConfirm({
60616
- modelName: selected ? selected.name : '',
60481
+ modelName: selected ? selected.skuName : '',
60617
60482
  modelUrl: selected ? selected.url : '',
60618
60483
  modelId: selected ? selected.id : ''
60619
60484
  });
@@ -60683,13 +60548,14 @@
60683
60548
  className: styles$j.searchLabel
60684
60549
  }, isEditMode ? '搜索新素材' : '搜索模型素材'), /*#__PURE__*/React__default['default'].createElement(_Input__default['default'], {
60685
60550
  className: styles$j.searchInput,
60686
- placeholder: "\u8F93\u5165\u6A21\u578B\u540D\u79F0\u6216ID\u641C\u7D22...",
60551
+ placeholder: "\u8F93\u5165SKU\u540D\u79F0\u641C\u7D22...",
60687
60552
  prefix: /*#__PURE__*/React__default['default'].createElement(icons.SearchOutlined, {
60688
60553
  className: styles$j.searchIcon
60689
60554
  }),
60690
60555
  value: searchKeyword,
60691
60556
  onChange: function onChange(e) {
60692
- return setSearchKeyword(e.target.value);
60557
+ setSearchKeyword(e.target.value);
60558
+ setSelectedIndex(null);
60693
60559
  }
60694
60560
  }), /*#__PURE__*/React__default['default'].createElement("div", {
60695
60561
  className: styles$j.materialListWrap
@@ -60707,10 +60573,10 @@
60707
60573
  className: styles$j.materialGrid
60708
60574
  }, materialList.map(function (material, idx) {
60709
60575
  var isSelected = selectedIndex === idx;
60710
- var fileFormat = getFileFormat(material.url);
60576
+ var fileFormat = material.format ? material.format.toUpperCase() : getFileFormat(material.url);
60711
60577
  var fileSize = formatFileSize(material.size);
60712
60578
  return /*#__PURE__*/React__default['default'].createElement("div", {
60713
- key: material.id,
60579
+ key: material.skuId,
60714
60580
  className: "".concat(styles$j.materialCard, " ").concat(isSelected ? styles$j.materialCardSelected : ''),
60715
60581
  onClick: function onClick() {
60716
60582
  return handleMaterialSelect(idx);
@@ -60727,10 +60593,10 @@
60727
60593
  className: styles$j.materialInfo
60728
60594
  }, /*#__PURE__*/React__default['default'].createElement("div", {
60729
60595
  className: styles$j.materialName,
60730
- title: material.name
60731
- }, material.name), /*#__PURE__*/React__default['default'].createElement("div", {
60596
+ title: material.skuName
60597
+ }, material.skuName), /*#__PURE__*/React__default['default'].createElement("div", {
60732
60598
  className: styles$j.materialMeta,
60733
- title: "".concat(material.modelName || '-').concat(fileSize ? " \xB7 ".concat(fileFormat, " \xB7 ").concat(fileSize) : " \xB7 ".concat(fileFormat))
60599
+ title: "".concat(material.space || '-').concat(fileSize ? " \xB7 ".concat(fileFormat, " \xB7 ").concat(fileSize) : " \xB7 ".concat(fileFormat))
60734
60600
  }, fileSize ? "".concat(fileFormat, "/").concat(fileSize) : "".concat(fileFormat))));
60735
60601
  })), /*#__PURE__*/React__default['default'].createElement("div", {
60736
60602
  className: styles$j.resultCount
@@ -72816,12 +72682,12 @@
72816
72682
  tree.forEach(function (c1) {
72817
72683
  (c1.children || []).forEach(function (c2) {
72818
72684
  (c2.children || []).forEach(function (c3) {
72819
- var hasValue = !!(c3.defaultMaterialId || c3.defaultMaterialName);
72685
+ var hasValue = !!(c3.id || c3.skuId || c3.skuName);
72820
72686
  flatRows.push({
72821
72687
  primaryCategory: c1.classify1Name,
72822
72688
  secondaryCategory: c2.classify2Name,
72823
72689
  tertiaryCategory: c3.classify3Name,
72824
- defaultValue: c3.defaultMaterialName,
72690
+ defaultValue: c3.skuName,
72825
72691
  hasValue: hasValue,
72826
72692
  _raw: c3
72827
72693
  });
@@ -72840,29 +72706,11 @@
72840
72706
  }
72841
72707
  }, _callee5);
72842
72708
  })();
72843
- },
72844
- saveDefault: function saveDefault(_ref10, _ref11) {
72845
- var _ref10$payload = _ref10.payload,
72846
- payload = _ref10$payload === void 0 ? {} : _ref10$payload;
72847
- var call = _ref11.call;
72848
- return /*#__PURE__*/_regenerator().m(function _callee6() {
72849
- var res;
72850
- return _regenerator().w(function (_context6) {
72851
- while (1) switch (_context6.n) {
72852
- case 0:
72853
- _context6.n = 1;
72854
- return call(saveClassifyDefault, payload);
72855
- case 1:
72856
- res = _context6.v;
72857
- return _context6.a(2, res);
72858
- }
72859
- }, _callee6);
72860
- })();
72861
72709
  }
72862
72710
  },
72863
72711
  reducers: {
72864
- updateState: function updateState(state, _ref12) {
72865
- var payload = _ref12.payload;
72712
+ updateState: function updateState(state, _ref10) {
72713
+ var payload = _ref10.payload;
72866
72714
  return _objectSpread2(_objectSpread2({}, state), payload);
72867
72715
  }
72868
72716
  }
@@ -73261,12 +73109,12 @@
73261
73109
  tree.forEach(function (c1) {
73262
73110
  (c1.children || []).forEach(function (c2) {
73263
73111
  (c2.children || []).forEach(function (c3) {
73264
- var hasValue = !!(c3.defaultModelId || c3.defaultModelName);
73112
+ var hasValue = !!(c3.id || c3.skuId || c3.skuName);
73265
73113
  flatRows.push({
73266
73114
  primaryCategory: c1.classify1Name,
73267
73115
  secondaryCategory: c2.classify2Name,
73268
73116
  tertiaryCategory: c3.classify3Name,
73269
- defaultValue: c3.defaultModelName,
73117
+ defaultValue: c3.skuName,
73270
73118
  hasValue: hasValue,
73271
73119
  _raw: c3
73272
73120
  });