unTable.js 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const tTable = () => "../../components/t-table/t-table.js";
  4. const tTh = () => "../../components/t-table/t-th.js";
  5. const tTr = () => "../../components/t-table/t-tr.js";
  6. const tTd = () => "../../components/t-table/t-td.js";
  7. const ProgressPlus = () => "../../components/ProgressPlus/ProgressPlus.js";
  8. const _sfc_main = {
  9. props: ["scoresList", "testResult"],
  10. components: {
  11. tTable,
  12. tTh,
  13. tTr,
  14. tTd,
  15. ProgressPlus
  16. },
  17. data() {
  18. return {
  19. colors: [
  20. "#1C82F3",
  21. "#21C9CF",
  22. "#ECB84F",
  23. "#EC6F4F",
  24. "#CF63D6",
  25. "#4F5FEC"
  26. ]
  27. };
  28. },
  29. methods: {
  30. change(e) {
  31. console.log(e.detail);
  32. }
  33. }
  34. };
  35. if (!Array) {
  36. const _component_t_th = common_vendor.resolveComponent("t-th");
  37. const _component_t_tr = common_vendor.resolveComponent("t-tr");
  38. const _component_t_td = common_vendor.resolveComponent("t-td");
  39. const _component_progress_plus = common_vendor.resolveComponent("progress-plus");
  40. const _easycom_t_table2 = common_vendor.resolveComponent("t-table");
  41. (_component_t_th + _component_t_tr + _component_t_td + _component_progress_plus + _easycom_t_table2)();
  42. }
  43. const _easycom_t_table = () => "../../components/t-table/t-table.js";
  44. if (!Math) {
  45. _easycom_t_table();
  46. }
  47. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  48. return {
  49. a: common_vendor.f($props.scoresList, (items, index, i0) => {
  50. return {
  51. a: common_vendor.f(items.colNames, (itemTitle, i, i1) => {
  52. return {
  53. a: common_vendor.t(itemTitle),
  54. b: i,
  55. c: "71dddd3a-2-" + i0 + "-" + i1 + "," + ("71dddd3a-1-" + i0)
  56. };
  57. }),
  58. b: "71dddd3a-1-" + i0 + "," + ("71dddd3a-0-" + i0),
  59. c: common_vendor.f($props.testResult == 2 ? items.newTableContext.result : items.tableContext, (c, p, i1) => {
  60. return common_vendor.e({
  61. a: common_vendor.t(c.name != void 0 ? c.name : "总分"),
  62. b: "71dddd3a-4-" + i0 + "-" + i1 + "," + ("71dddd3a-3-" + i0 + "-" + i1),
  63. c: c.name != void 0 && c.percent == void 0
  64. }, c.name != void 0 && c.percent == void 0 ? {
  65. d: common_vendor.t($props.testResult == 2 ? c.score : c.value[0]),
  66. e: "71dddd3a-5-" + i0 + "-" + i1 + "," + ("71dddd3a-3-" + i0 + "-" + i1)
  67. } : {}, {
  68. f: c.name != void 0 && c.percent != void 0
  69. }, c.name != void 0 && c.percent != void 0 ? {
  70. g: "71dddd3a-7-" + i0 + "-" + i1 + "," + ("71dddd3a-6-" + i0 + "-" + i1),
  71. h: common_vendor.p({
  72. color: $data.colors[p % 6],
  73. percent: c.percent,
  74. score: c.score
  75. }),
  76. i: "71dddd3a-6-" + i0 + "-" + i1 + "," + ("71dddd3a-3-" + i0 + "-" + i1)
  77. } : {}, {
  78. j: p,
  79. k: "71dddd3a-3-" + i0 + "-" + i1 + "," + ("71dddd3a-0-" + i0)
  80. });
  81. }),
  82. d: index,
  83. e: "71dddd3a-0-" + i0
  84. };
  85. }),
  86. b: common_vendor.o($options.change)
  87. };
  88. }
  89. const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-71dddd3a"], ["__file", "E:/psy_web_share/scaleTestResults/components/unTable.vue"]]);
  90. tt.createComponent(Component);