index.js 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752
  1. System.register("chunks:///_virtual/module_extra", ['./TableUtil.ts', './table_idiom.ts', './table_idiom_order.ts', './table_idiom_unorder_1_3.ts', './table_idiom_unorder_2_2.ts', './table_idiom_unorder_3_1.ts', './table_level.ts', './table_level_2.ts', './table_store.ts', './table_task.ts'], function () {
  2. return {
  3. setters: [null, null, null, null, null, null, null, null, null, null],
  4. execute: function () {}
  5. };
  6. });
  7. System.register("chunks:///_virtual/table_idiom_order.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './TableUtil.ts'], function (exports) {
  8. var _createClass, cclegacy, _decorator, TableUtil;
  9. return {
  10. setters: [function (module) {
  11. _createClass = module.createClass;
  12. }, function (module) {
  13. cclegacy = module.cclegacy;
  14. _decorator = module._decorator;
  15. }, function (module) {
  16. TableUtil = module.TableUtil;
  17. }],
  18. execute: function () {
  19. var _dec, _class, _class2;
  20. cclegacy._RF.push({}, "97c6a85yyRAh4ofP1Hv8lu1", "table_idiom_order", undefined);
  21. var ccclass = _decorator.ccclass,
  22. property = _decorator.property;
  23. var table_idiom_order = exports('table_idiom_order', (_dec = ccclass('table_idiom_order'), _dec(_class = (_class2 = /*#__PURE__*/function () {
  24. function table_idiom_order() {
  25. this.data = void 0;
  26. /** 编号【KEY】 */
  27. this.id = 0;
  28. }
  29. table_idiom_order.get = function get(id) {
  30. return TableUtil.getTable(table_idiom_order, id);
  31. };
  32. table_idiom_order.getList = function getList() {
  33. return TableUtil.getTables(table_idiom_order, 3846);
  34. };
  35. var _proto = table_idiom_order.prototype;
  36. _proto.init = function init(id) {
  37. var table = TableUtil.get(table_idiom_order.TableName);
  38. this.data = table[id];
  39. if (!this.data) console.error("配置表" + table_idiom_order.TableName + "没有ID:" + id);
  40. this.id = id;
  41. };
  42. _createClass(table_idiom_order, [{
  43. key: "idiom",
  44. get: function get() {
  45. return this.data.idiom;
  46. }
  47. }, {
  48. key: "idiom_type",
  49. get: function get() {
  50. return this.data.idiom_type;
  51. }
  52. }, {
  53. key: "difficulty",
  54. get: function get() {
  55. return this.data.difficulty;
  56. }
  57. }, {
  58. key: "piece_1_word",
  59. get: function get() {
  60. return this.data.piece_1_word;
  61. }
  62. }, {
  63. key: "piece_2_word",
  64. get: function get() {
  65. return this.data.piece_2_word;
  66. }
  67. }]);
  68. return table_idiom_order;
  69. }(), _class2.TableName = "idiom_order", _class2)) || _class));
  70. cclegacy._RF.pop();
  71. }
  72. };
  73. });
  74. System.register("chunks:///_virtual/table_idiom_unorder_1_3.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './TableUtil.ts'], function (exports) {
  75. var _createClass, cclegacy, _decorator, TableUtil;
  76. return {
  77. setters: [function (module) {
  78. _createClass = module.createClass;
  79. }, function (module) {
  80. cclegacy = module.cclegacy;
  81. _decorator = module._decorator;
  82. }, function (module) {
  83. TableUtil = module.TableUtil;
  84. }],
  85. execute: function () {
  86. var _dec, _class, _class2;
  87. cclegacy._RF.push({}, "8605bqfWytGnZGReZWpVTwf", "table_idiom_unorder_1_3", undefined);
  88. var ccclass = _decorator.ccclass,
  89. property = _decorator.property;
  90. var table_idiom_unorder_1_3 = exports('table_idiom_unorder_1_3', (_dec = ccclass('table_idiom_unorder_1_3'), _dec(_class = (_class2 = /*#__PURE__*/function () {
  91. function table_idiom_unorder_1_3() {
  92. this.data = void 0;
  93. /** 编号【KEY】 */
  94. this.id = 0;
  95. }
  96. table_idiom_unorder_1_3.get = function get(id) {
  97. return TableUtil.getTable(table_idiom_unorder_1_3, id);
  98. };
  99. table_idiom_unorder_1_3.getList = function getList() {
  100. return TableUtil.getTables(table_idiom_unorder_1_3, 771);
  101. };
  102. var _proto = table_idiom_unorder_1_3.prototype;
  103. _proto.init = function init(id) {
  104. var table = TableUtil.get(table_idiom_unorder_1_3.TableName);
  105. this.data = table[id];
  106. if (!this.data) console.error("配置表" + table_idiom_unorder_1_3.TableName + "没有ID:" + id);
  107. this.id = id;
  108. };
  109. _createClass(table_idiom_unorder_1_3, [{
  110. key: "idiom",
  111. get: function get() {
  112. return this.data.idiom;
  113. }
  114. }, {
  115. key: "idiom_type",
  116. get: function get() {
  117. return this.data.idiom_type;
  118. }
  119. }, {
  120. key: "difficulty",
  121. get: function get() {
  122. return this.data.difficulty;
  123. }
  124. }, {
  125. key: "piece_1_word",
  126. get: function get() {
  127. return this.data.piece_1_word;
  128. }
  129. }, {
  130. key: "piece_2_word",
  131. get: function get() {
  132. return this.data.piece_2_word;
  133. }
  134. }]);
  135. return table_idiom_unorder_1_3;
  136. }(), _class2.TableName = "idiom_unorder_1+3", _class2)) || _class));
  137. cclegacy._RF.pop();
  138. }
  139. };
  140. });
  141. System.register("chunks:///_virtual/table_idiom_unorder_2_2.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './TableUtil.ts'], function (exports) {
  142. var _createClass, cclegacy, _decorator, TableUtil;
  143. return {
  144. setters: [function (module) {
  145. _createClass = module.createClass;
  146. }, function (module) {
  147. cclegacy = module.cclegacy;
  148. _decorator = module._decorator;
  149. }, function (module) {
  150. TableUtil = module.TableUtil;
  151. }],
  152. execute: function () {
  153. var _dec, _class, _class2;
  154. cclegacy._RF.push({}, "2ab01P7D1xC+4sm5gCBL6Hr", "table_idiom_unorder_2_2", undefined);
  155. var ccclass = _decorator.ccclass,
  156. property = _decorator.property;
  157. var table_idiom_unorder_2_2 = exports('table_idiom_unorder_2_2', (_dec = ccclass('table_idiom_unorder_2_2'), _dec(_class = (_class2 = /*#__PURE__*/function () {
  158. function table_idiom_unorder_2_2() {
  159. this.data = void 0;
  160. /** 编号【KEY】 */
  161. this.id = 0;
  162. }
  163. table_idiom_unorder_2_2.get = function get(id) {
  164. return TableUtil.getTable(table_idiom_unorder_2_2, id);
  165. };
  166. table_idiom_unorder_2_2.getList = function getList() {
  167. return TableUtil.getTables(table_idiom_unorder_2_2, 1604);
  168. };
  169. var _proto = table_idiom_unorder_2_2.prototype;
  170. _proto.init = function init(id) {
  171. var table = TableUtil.get(table_idiom_unorder_2_2.TableName);
  172. this.data = table[id];
  173. if (!this.data) console.error("配置表" + table_idiom_unorder_2_2.TableName + "没有ID:" + id);
  174. this.id = id;
  175. };
  176. _createClass(table_idiom_unorder_2_2, [{
  177. key: "idiom",
  178. get: function get() {
  179. return this.data.idiom;
  180. }
  181. }, {
  182. key: "idiom_type",
  183. get: function get() {
  184. return this.data.idiom_type;
  185. }
  186. }, {
  187. key: "difficulty",
  188. get: function get() {
  189. return this.data.difficulty;
  190. }
  191. }, {
  192. key: "piece_1_word",
  193. get: function get() {
  194. return this.data.piece_1_word;
  195. }
  196. }, {
  197. key: "piece_2_word",
  198. get: function get() {
  199. return this.data.piece_2_word;
  200. }
  201. }]);
  202. return table_idiom_unorder_2_2;
  203. }(), _class2.TableName = "idiom_unorder_2+2", _class2)) || _class));
  204. cclegacy._RF.pop();
  205. }
  206. };
  207. });
  208. System.register("chunks:///_virtual/table_idiom_unorder_3_1.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './TableUtil.ts'], function (exports) {
  209. var _createClass, cclegacy, _decorator, TableUtil;
  210. return {
  211. setters: [function (module) {
  212. _createClass = module.createClass;
  213. }, function (module) {
  214. cclegacy = module.cclegacy;
  215. _decorator = module._decorator;
  216. }, function (module) {
  217. TableUtil = module.TableUtil;
  218. }],
  219. execute: function () {
  220. var _dec, _class, _class2;
  221. cclegacy._RF.push({}, "54823q7ByBEUbgNpRVPsQMe", "table_idiom_unorder_3_1", undefined);
  222. var ccclass = _decorator.ccclass,
  223. property = _decorator.property;
  224. var table_idiom_unorder_3_1 = exports('table_idiom_unorder_3_1', (_dec = ccclass('table_idiom_unorder_3_1'), _dec(_class = (_class2 = /*#__PURE__*/function () {
  225. function table_idiom_unorder_3_1() {
  226. this.data = void 0;
  227. /** 编号【KEY】 */
  228. this.id = 0;
  229. }
  230. table_idiom_unorder_3_1.get = function get(id) {
  231. return TableUtil.getTable(table_idiom_unorder_3_1, id);
  232. };
  233. table_idiom_unorder_3_1.getList = function getList() {
  234. return TableUtil.getTables(table_idiom_unorder_3_1, 738);
  235. };
  236. var _proto = table_idiom_unorder_3_1.prototype;
  237. _proto.init = function init(id) {
  238. var table = TableUtil.get(table_idiom_unorder_3_1.TableName);
  239. this.data = table[id];
  240. if (!this.data) console.error("配置表" + table_idiom_unorder_3_1.TableName + "没有ID:" + id);
  241. this.id = id;
  242. };
  243. _createClass(table_idiom_unorder_3_1, [{
  244. key: "idiom",
  245. get: function get() {
  246. return this.data.idiom;
  247. }
  248. }, {
  249. key: "idiom_type",
  250. get: function get() {
  251. return this.data.idiom_type;
  252. }
  253. }, {
  254. key: "difficulty",
  255. get: function get() {
  256. return this.data.difficulty;
  257. }
  258. }, {
  259. key: "piece_1_word",
  260. get: function get() {
  261. return this.data.piece_1_word;
  262. }
  263. }, {
  264. key: "piece_2_word",
  265. get: function get() {
  266. return this.data.piece_2_word;
  267. }
  268. }]);
  269. return table_idiom_unorder_3_1;
  270. }(), _class2.TableName = "idiom_unorder_3+1", _class2)) || _class));
  271. cclegacy._RF.pop();
  272. }
  273. };
  274. });
  275. System.register("chunks:///_virtual/table_idiom.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './TableUtil.ts'], function (exports) {
  276. var _createClass, cclegacy, _decorator, TableUtil;
  277. return {
  278. setters: [function (module) {
  279. _createClass = module.createClass;
  280. }, function (module) {
  281. cclegacy = module.cclegacy;
  282. _decorator = module._decorator;
  283. }, function (module) {
  284. TableUtil = module.TableUtil;
  285. }],
  286. execute: function () {
  287. var _dec, _class, _class2;
  288. cclegacy._RF.push({}, "66b6actiV5OT5PfIK2+fbca", "table_idiom", undefined);
  289. var ccclass = _decorator.ccclass,
  290. property = _decorator.property;
  291. var table_idiom = exports('table_idiom', (_dec = ccclass('table_idiom'), _dec(_class = (_class2 = /*#__PURE__*/function () {
  292. function table_idiom() {
  293. this.data = void 0;
  294. /** 编号【KEY】 */
  295. this.id = 0;
  296. }
  297. table_idiom.get = function get(id) {
  298. return TableUtil.getTable(table_idiom, id);
  299. };
  300. table_idiom.getList = function getList() {
  301. return TableUtil.getTables(table_idiom, 2052);
  302. };
  303. var _proto = table_idiom.prototype;
  304. _proto.init = function init(id) {
  305. var table = TableUtil.get(table_idiom.TableName);
  306. this.data = table[id];
  307. if (!this.data) console.error("配置表" + table_idiom.TableName + "没有ID:" + id);
  308. this.id = id;
  309. };
  310. _createClass(table_idiom, [{
  311. key: "idiom",
  312. get: function get() {
  313. return this.data.idiom;
  314. }
  315. }, {
  316. key: "idiom_type",
  317. get: function get() {
  318. return this.data.idiom_type;
  319. }
  320. }, {
  321. key: "difficulty",
  322. get: function get() {
  323. return this.data.difficulty;
  324. }
  325. }, {
  326. key: "piece_1_word",
  327. get: function get() {
  328. return this.data.piece_1_word;
  329. }
  330. }, {
  331. key: "piece_2_word",
  332. get: function get() {
  333. return this.data.piece_2_word;
  334. }
  335. }]);
  336. return table_idiom;
  337. }(), _class2.TableName = "idiom", _class2.IdList = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], _class2)) || _class));
  338. cclegacy._RF.pop();
  339. }
  340. };
  341. });
  342. System.register("chunks:///_virtual/table_level_2.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './TableUtil.ts'], function (exports) {
  343. var _createClass, cclegacy, _decorator, TableUtil;
  344. return {
  345. setters: [function (module) {
  346. _createClass = module.createClass;
  347. }, function (module) {
  348. cclegacy = module.cclegacy;
  349. _decorator = module._decorator;
  350. }, function (module) {
  351. TableUtil = module.TableUtil;
  352. }],
  353. execute: function () {
  354. var _dec, _class, _class2;
  355. cclegacy._RF.push({}, "2983aKPOFdAWo81NNDemlLK", "table_level_2", undefined);
  356. var ccclass = _decorator.ccclass,
  357. property = _decorator.property;
  358. var table_level_2 = exports('table_level_2', (_dec = ccclass('table_level_2'), _dec(_class = (_class2 = /*#__PURE__*/function () {
  359. function table_level_2() {
  360. this.data = void 0;
  361. /** 编号【KEY】 */
  362. this.id = 0;
  363. }
  364. table_level_2.get = function get(id) {
  365. return TableUtil.getTable(table_level_2, id);
  366. };
  367. table_level_2.getList = function getList() {
  368. return TableUtil.getTables(table_level_2, 40);
  369. };
  370. var _proto = table_level_2.prototype;
  371. _proto.init = function init(id) {
  372. var table = TableUtil.get(table_level_2.TableName);
  373. this.data = table[id];
  374. if (!this.data) console.error("配置表" + table_level_2.TableName + "没有ID:" + id);
  375. this.id = id;
  376. };
  377. _createClass(table_level_2, [{
  378. key: "idiom",
  379. get: function get() {
  380. return this.data.idiom;
  381. }
  382. }]);
  383. return table_level_2;
  384. }(), _class2.TableName = "level_2", _class2)) || _class));
  385. cclegacy._RF.pop();
  386. }
  387. };
  388. });
  389. System.register("chunks:///_virtual/table_level.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './TableUtil.ts'], function (exports) {
  390. var _createClass, cclegacy, _decorator, TableUtil;
  391. return {
  392. setters: [function (module) {
  393. _createClass = module.createClass;
  394. }, function (module) {
  395. cclegacy = module.cclegacy;
  396. _decorator = module._decorator;
  397. }, function (module) {
  398. TableUtil = module.TableUtil;
  399. }],
  400. execute: function () {
  401. var _dec, _class, _class2;
  402. cclegacy._RF.push({}, "33e66OI3mpIHbkpOTa5qoBr", "table_level", undefined);
  403. var ccclass = _decorator.ccclass,
  404. property = _decorator.property;
  405. var table_level = exports('table_level', (_dec = ccclass('table_level'), _dec(_class = (_class2 = /*#__PURE__*/function () {
  406. function table_level() {
  407. this.data = void 0;
  408. /** 编号【KEY】 */
  409. this.id = 0;
  410. }
  411. table_level.get = function get(id) {
  412. return TableUtil.getTable(table_level, id);
  413. };
  414. table_level.getList = function getList() {
  415. return TableUtil.getTables(table_level, 5);
  416. };
  417. var _proto = table_level.prototype;
  418. _proto.init = function init(id) {
  419. var table = TableUtil.get(table_level.TableName);
  420. this.data = table[id];
  421. if (!this.data) console.error("配置表" + table_level.TableName + "没有ID:" + id);
  422. this.id = id;
  423. };
  424. _createClass(table_level, [{
  425. key: "time",
  426. get: function get() {
  427. return parseInt(this.data.time);
  428. }
  429. }, {
  430. key: "different_grade_level",
  431. get: function get() {
  432. return this.data.different_grade_level;
  433. }
  434. }, {
  435. key: "idiom_type_1",
  436. get: function get() {
  437. return this.data.idiom_type_1;
  438. }
  439. }, {
  440. key: "idiom_type_2",
  441. get: function get() {
  442. return this.data.idiom_type_2;
  443. }
  444. }, {
  445. key: "count",
  446. get: function get() {
  447. return parseInt(this.data.count);
  448. }
  449. // "time": "195",
  450. // "different_grade_level": "New User Guide",
  451. // "idiom_type_1": "",
  452. // "idiom_type_2": "见如故_通八达_往往",
  453. // "count": "0",
  454. // "easy_1_3": "0",
  455. // "hard_1_3": "0",
  456. // "easy_3_1": "0",
  457. // "hard_3_1": "0",
  458. // "easy_2_2": "0",
  459. // "hard_2_2": "3",
  460. // "total": "3"
  461. }, {
  462. key: "easy_1_3",
  463. get: function get() {
  464. return parseInt(this.data.easy_1_3);
  465. }
  466. }, {
  467. key: "hard_1_3",
  468. get: function get() {
  469. return parseInt(this.data.hard_1_3);
  470. }
  471. }, {
  472. key: "easy_3_1",
  473. get: function get() {
  474. return parseInt(this.data.easy_3_1);
  475. }
  476. }, {
  477. key: "hard_3_1",
  478. get: function get() {
  479. return parseInt(this.data.hard_3_1);
  480. }
  481. }, {
  482. key: "easy_2_2",
  483. get: function get() {
  484. return parseInt(this.data.easy_2_2);
  485. }
  486. }, {
  487. key: "hard_2_2",
  488. get: function get() {
  489. return parseInt(this.data.hard_2_2);
  490. }
  491. }, {
  492. key: "total",
  493. get: function get() {
  494. return parseInt(this.data.total);
  495. }
  496. }]);
  497. return table_level;
  498. }(), _class2.TableName = "level", _class2.IdList = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], _class2)) || _class));
  499. cclegacy._RF.pop();
  500. }
  501. };
  502. });
  503. System.register("chunks:///_virtual/table_store.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './TableUtil.ts'], function (exports) {
  504. var _createClass, cclegacy, _decorator, TableUtil;
  505. return {
  506. setters: [function (module) {
  507. _createClass = module.createClass;
  508. }, function (module) {
  509. cclegacy = module.cclegacy;
  510. _decorator = module._decorator;
  511. }, function (module) {
  512. TableUtil = module.TableUtil;
  513. }],
  514. execute: function () {
  515. var _dec, _class, _class2;
  516. cclegacy._RF.push({}, "99137Yt4d1L6JBAI6/xf5DC", "table_store", undefined);
  517. var ccclass = _decorator.ccclass,
  518. property = _decorator.property;
  519. var table_store = exports('table_store', (_dec = ccclass('table_store'), _dec(_class = (_class2 = /*#__PURE__*/function () {
  520. function table_store() {
  521. this.data = void 0;
  522. /** 编号【KEY】 */
  523. this.id = 0;
  524. }
  525. table_store.get = function get(id) {
  526. return TableUtil.getTable(table_store, id);
  527. };
  528. table_store.getList = function getList() {
  529. return TableUtil.getTables(table_store, 5);
  530. };
  531. var _proto = table_store.prototype;
  532. _proto.init = function init(id) {
  533. var table = TableUtil.get(table_store.TableName);
  534. this.data = table[id];
  535. if (!this.data) console.error("配置表" + table_store.TableName + "没有ID:" + id);
  536. this.id = id;
  537. };
  538. _createClass(table_store, [{
  539. key: "type",
  540. get: function get() {
  541. return this.data.type;
  542. }
  543. }, {
  544. key: "cost",
  545. get: function get() {
  546. return this.data.cost;
  547. }
  548. }, {
  549. key: "num",
  550. get: function get() {
  551. return this.data.num;
  552. }
  553. }, {
  554. key: "name",
  555. get: function get() {
  556. return this.data.name;
  557. }
  558. }]);
  559. return table_store;
  560. }(), _class2.TableName = "store", _class2)) || _class));
  561. cclegacy._RF.pop();
  562. }
  563. };
  564. });
  565. System.register("chunks:///_virtual/table_task.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './TableUtil.ts'], function (exports) {
  566. var _createClass, cclegacy, _decorator, TableUtil;
  567. return {
  568. setters: [function (module) {
  569. _createClass = module.createClass;
  570. }, function (module) {
  571. cclegacy = module.cclegacy;
  572. _decorator = module._decorator;
  573. }, function (module) {
  574. TableUtil = module.TableUtil;
  575. }],
  576. execute: function () {
  577. var _dec, _class, _class2;
  578. cclegacy._RF.push({}, "f4c45qg9AdKhq8rlGES1Urw", "table_task", undefined);
  579. var ccclass = _decorator.ccclass,
  580. property = _decorator.property;
  581. var table_task = exports('table_task', (_dec = ccclass('table_task'), _dec(_class = (_class2 = /*#__PURE__*/function () {
  582. function table_task() {
  583. this.data = void 0;
  584. /** 编号【KEY】 */
  585. this.id = 0;
  586. }
  587. table_task.get = function get(id) {
  588. return TableUtil.getTable(table_task, id);
  589. };
  590. table_task.getList = function getList() {
  591. return TableUtil.getTables(table_task, 5);
  592. };
  593. var _proto = table_task.prototype;
  594. _proto.init = function init(id) {
  595. var table = TableUtil.get(table_task.TableName);
  596. this.data = table[id];
  597. if (!this.data) console.error("配置表" + table_task.TableName + "没有ID:" + id);
  598. this.id = id;
  599. };
  600. _createClass(table_task, [{
  601. key: "goal",
  602. get: function get() {
  603. return this.data.goal;
  604. }
  605. }, {
  606. key: "type",
  607. get: function get() {
  608. return this.data.type;
  609. }
  610. }, {
  611. key: "num",
  612. get: function get() {
  613. return this.data.num;
  614. }
  615. }, {
  616. key: "name",
  617. get: function get() {
  618. return this.data.name;
  619. }
  620. }]);
  621. return table_task;
  622. }(), _class2.TableName = "task", _class2)) || _class));
  623. cclegacy._RF.pop();
  624. }
  625. };
  626. });
  627. System.register("chunks:///_virtual/TableUtil.ts", ['cc'], function (exports) {
  628. var cclegacy;
  629. return {
  630. setters: [function (module) {
  631. cclegacy = module.cclegacy;
  632. }],
  633. execute: function () {
  634. cclegacy._RF.push({}, "182a4n6HudPVq+xaUH+atf/", "TableUtil", undefined);
  635. /** 由编辑器生成
  636. * 不要修改
  637. * 数据表缓存 */
  638. var data = new Map();
  639. var tables = new Map();
  640. var TableUtil = exports('TableUtil', /*#__PURE__*/function () {
  641. function TableUtil() {}
  642. /**获取一个表集*/
  643. TableUtil.getTables = function getTables(type, ids) {
  644. var map = tables.get(type);
  645. if (!map) {
  646. map = new Map();
  647. tables.set(type, map);
  648. }
  649. var ts = [];
  650. if (ids instanceof Array) {
  651. for (var i = 0; i < ids.length; i++) {
  652. var t = map.get(ids[i]);
  653. if (!t) {
  654. t = new type();
  655. t.init(ids[i]);
  656. map.set(ids[i], t);
  657. }
  658. ts.push(t);
  659. }
  660. } else if (typeof ids === "number") {
  661. for (var _i = 0; _i < ids; _i++) {
  662. var _t = map.get(_i);
  663. if (!_t) {
  664. _t = new type();
  665. _t.init(_i);
  666. map.set(_i, _t);
  667. }
  668. ts.push(_t);
  669. }
  670. }
  671. return ts;
  672. }
  673. /**获取一个数据表id的数据
  674. * @param type 表类型
  675. * @param id 主key
  676. */;
  677. TableUtil.getTable = function getTable(type, id) {
  678. var map = tables.get(type);
  679. if (!map) {
  680. map = new Map();
  681. tables.set(type, map);
  682. }
  683. var t = map.get(id);
  684. if (!t) {
  685. t = new type();
  686. t.init(id);
  687. map.set(id, t);
  688. }
  689. return t;
  690. }
  691. /**
  692. * 通知资源名从缓存中获取一个Json数据表 没有初始化
  693. * @param name 资源名
  694. */;
  695. TableUtil.get = function get(name) {
  696. if (data.has(name)) {
  697. return data.get(name);
  698. } else {
  699. console.error("没有加载的资源:" + name);
  700. return null;
  701. }
  702. };
  703. TableUtil.set = function set(name, json) {
  704. data.set(name, json);
  705. };
  706. TableUtil.has = function has(name) {
  707. return data.has(name);
  708. };
  709. TableUtil["delete"] = function _delete(name) {
  710. data["delete"](name);
  711. };
  712. TableUtil.clean = function clean() {
  713. data.clear();
  714. tables.clear();
  715. };
  716. return TableUtil;
  717. }());
  718. cclegacy._RF.pop();
  719. }
  720. };
  721. });
  722. (function(r) {
  723. r('virtual:///prerequisite-imports/module_extra', 'chunks:///_virtual/module_extra');
  724. })(function(mid, cid) {
  725. System.register(mid, [cid], function (_export, _context) {
  726. return {
  727. setters: [function(_m) {
  728. var _exportObj = {};
  729. for (var _key in _m) {
  730. if (_key !== "default" && _key !== "__esModule") _exportObj[_key] = _m[_key];
  731. }
  732. _export(_exportObj);
  733. }],
  734. execute: function () { }
  735. };
  736. });
  737. });