agilebuilder-ui 1.1.65-tmp26 → 1.1.65-tmp28

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.
Files changed (151) hide show
  1. package/dist/index.full.min.js +1381 -1349
  2. package/dist/style.css +42 -22
  3. package/es/IntervalSelection/src/sectionDate.vue.mjs +8 -8
  4. package/es/chat-embed/src/chat-addition-data.vue2.mjs +14 -11
  5. package/es/chat-embed/src/chat-ai-answer-tip.vue2.mjs +8 -8
  6. package/es/chat-embed/src/chat-bubble-footer.vue2.mjs +5 -5
  7. package/es/chat-embed/src/chat-sender.vue2.mjs +41 -41
  8. package/es/chat-embed/src/components/answer-auto-chart.vue2.mjs +1 -2
  9. package/es/chat-embed/src/components/answer-interaction-data.vue2.mjs +6 -7
  10. package/es/chat-embed/src/components/history-detail.vue2.mjs +18 -18
  11. package/es/chat-embed/src/header.vue2.mjs +16 -16
  12. package/es/chat-embed/src/index.vue2.mjs +161 -161
  13. package/es/chat-embed/src/recommendation-message.vue2.mjs +9 -6
  14. package/es/chat-embed/src/sidebar-item.vue2.mjs +65 -65
  15. package/es/chat-embed/src/voice/voice.vue.mjs +36 -35
  16. package/es/date-picker-range/index.vue2.mjs +39 -39
  17. package/es/department-tree-mobile/src/department-tree-app.vue.mjs +8 -7
  18. package/es/department-tree-mobile/src/department-tree-inline-app.vue.mjs +54 -54
  19. package/es/department-tree-mobile/src/dept-path.vue.mjs +7 -6
  20. package/es/department-tree-mobile/src/dept-result.vue.mjs +7 -6
  21. package/es/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.mjs +5 -5
  22. package/es/department-user-tree-mobile/src/department-user-tree-app.vue.mjs +10 -9
  23. package/es/department-user-tree-mobile/src/department-user-tree-inline-app.vue.mjs +64 -64
  24. package/es/department-user-tree-mobile/src/dept-path.vue.mjs +7 -6
  25. package/es/department-user-tree-mobile/src/dept-result.vue.mjs +4 -3
  26. package/es/empty-state/index.vue.mjs +2 -2
  27. package/es/fs-upload/src/fs-upload-multi.vue.mjs +1 -1
  28. package/es/fs-upload-list/src/fs-upload-list.vue.mjs +1 -1
  29. package/es/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.mjs +12 -12
  30. package/es/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.mjs +24 -24
  31. package/es/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.mjs +17 -17
  32. package/es/fs-upload-new/src/file-upload-mobile/file-upload.vue.mjs +12 -12
  33. package/es/fs-upload-new/src/fs-button-upload.vue2.mjs +23 -23
  34. package/es/fs-upload-new/src/fs-drag-upload.vue2.mjs +23 -23
  35. package/es/fs-upload-new/src/fs-preview-new.vue2.mjs +34 -34
  36. package/es/fs-upload-new/src/fs-upload-new.vue.mjs +15 -15
  37. package/es/json-view/json-view-dialog.vue.mjs +5 -5
  38. package/es/multipart-upload/src/multipart-upload-form.vue.mjs +1 -1
  39. package/es/multipart-upload/src/multipart-upload-list.vue.mjs +5 -5
  40. package/es/row-form/index.vue2.mjs +31 -31
  41. package/es/row-form/operation.vue.mjs +13 -13
  42. package/es/secret-info/index.vue.mjs +1 -1
  43. package/es/src/components/Affix/index.vue2.mjs +26 -26
  44. package/es/src/components/Scrollbar/index.vue.mjs +22 -22
  45. package/es/src/views/error-page/401.vue.mjs +8 -8
  46. package/es/src/views/error-page/404.vue.mjs +8 -8
  47. package/es/src/views/layout/components/Menubar/Item.vue.mjs +1 -1
  48. package/es/src/views/layout/components/Menubar/Item.vue2.mjs +2 -2
  49. package/es/src/views/super-icon/index.mjs +7 -0
  50. package/es/src/views/super-icon/src/index.vue.mjs +7 -0
  51. package/es/src/views/super-icon/src/index.vue2.mjs +13 -0
  52. package/es/src/views/super-icon/src/index.vue3.mjs +4 -0
  53. package/es/src/views/svg-icon/src/svg-icon.vue2.mjs +14 -0
  54. package/es/style.css +907 -887
  55. package/es/super-grid/src/columns-config.vue.mjs +1 -1
  56. package/es/super-grid/src/components/grid-radio-input.vue.mjs +5 -5
  57. package/es/super-grid/src/components/select-input.vue.mjs +55 -55
  58. package/es/super-grid/src/row-detail.vue.mjs +1 -1
  59. package/es/super-grid/src/search-form-advancedQuery.vue.mjs +1 -1
  60. package/es/super-grid/src/search-form-number.vue.mjs +4 -5
  61. package/es/super-grid/src/super-grid.vue.mjs +1 -1
  62. package/es/super-nine-grid/src/search-form-number.vue.mjs +4 -5
  63. package/es/super-nine-grid/src/search-form.vue.mjs +1 -1
  64. package/es/super-nine-grid/src/super-nine-grid.vue.mjs +1 -1
  65. package/es/workgroup-tree-inline/src/workgroup-tree-inline.vue.mjs +8 -8
  66. package/es/workgroup-tree-mobile/src/dept-result.vue.mjs +4 -3
  67. package/es/workgroup-tree-mobile/src/workgroup-tree-app.vue.mjs +8 -7
  68. package/es/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.mjs +51 -51
  69. package/es/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.mjs +5 -5
  70. package/es/workgroup-user-tree-mobile/src/dept-path.vue.mjs +7 -6
  71. package/es/workgroup-user-tree-mobile/src/dept-result.vue.mjs +4 -3
  72. package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.mjs +7 -6
  73. package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.mjs +65 -65
  74. package/es/year-range-picker/src/year-range-picker.vue.mjs +1 -1
  75. package/lib/IntervalSelection/src/sectionDate.vue.cjs +6 -6
  76. package/lib/chat-embed/src/chat-addition-data.vue2.cjs +13 -10
  77. package/lib/chat-embed/src/chat-ai-answer-tip.vue2.cjs +8 -8
  78. package/lib/chat-embed/src/chat-bubble-footer.vue2.cjs +5 -5
  79. package/lib/chat-embed/src/chat-sender.vue2.cjs +20 -20
  80. package/lib/chat-embed/src/components/answer-auto-chart.vue2.cjs +1 -2
  81. package/lib/chat-embed/src/components/answer-interaction-data.vue2.cjs +5 -6
  82. package/lib/chat-embed/src/components/history-detail.vue2.cjs +18 -18
  83. package/lib/chat-embed/src/header.vue2.cjs +17 -17
  84. package/lib/chat-embed/src/index.vue2.cjs +123 -123
  85. package/lib/chat-embed/src/recommendation-message.vue2.cjs +7 -4
  86. package/lib/chat-embed/src/sidebar-item.vue2.cjs +35 -35
  87. package/lib/chat-embed/src/voice/voice.vue.cjs +36 -35
  88. package/lib/date-picker-range/index.vue2.cjs +11 -11
  89. package/lib/department-tree-mobile/src/department-tree-app.vue.cjs +7 -6
  90. package/lib/department-tree-mobile/src/department-tree-inline-app.vue.cjs +53 -53
  91. package/lib/department-tree-mobile/src/dept-path.vue.cjs +6 -6
  92. package/lib/department-tree-mobile/src/dept-result.vue.cjs +7 -6
  93. package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.cjs +5 -5
  94. package/lib/department-user-tree-mobile/src/department-user-tree-app.vue.cjs +9 -8
  95. package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue.cjs +61 -61
  96. package/lib/department-user-tree-mobile/src/dept-path.vue.cjs +6 -6
  97. package/lib/department-user-tree-mobile/src/dept-result.vue.cjs +4 -3
  98. package/lib/empty-state/index.vue.cjs +2 -2
  99. package/lib/fs-upload/src/fs-upload-multi.vue.cjs +1 -1
  100. package/lib/fs-upload-list/src/fs-upload-list.vue.cjs +1 -1
  101. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.cjs +12 -12
  102. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.cjs +24 -24
  103. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.cjs +17 -17
  104. package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue.cjs +12 -12
  105. package/lib/fs-upload-new/src/fs-button-upload.vue2.cjs +23 -23
  106. package/lib/fs-upload-new/src/fs-drag-upload.vue2.cjs +23 -23
  107. package/lib/fs-upload-new/src/fs-preview-new.vue2.cjs +36 -36
  108. package/lib/fs-upload-new/src/fs-upload-new.vue.cjs +15 -15
  109. package/lib/json-view/json-view-dialog.vue.cjs +6 -6
  110. package/lib/multipart-upload/src/multipart-upload-form.vue.cjs +1 -1
  111. package/lib/multipart-upload/src/multipart-upload-list.vue.cjs +5 -5
  112. package/lib/row-form/index.vue2.cjs +31 -31
  113. package/lib/row-form/operation.vue.cjs +13 -13
  114. package/lib/secret-info/index.vue.cjs +1 -1
  115. package/lib/src/components/Affix/index.vue2.cjs +28 -28
  116. package/lib/src/components/Scrollbar/index.vue.cjs +22 -22
  117. package/lib/src/views/error-page/401.vue.cjs +7 -7
  118. package/lib/src/views/error-page/404.vue.cjs +4 -4
  119. package/lib/src/views/layout/components/Menubar/Item.vue.cjs +1 -1
  120. package/lib/src/views/layout/components/Menubar/Item.vue2.cjs +2 -2
  121. package/lib/src/views/super-icon/index.cjs +5 -0
  122. package/lib/src/views/super-icon/src/index.vue.cjs +5 -0
  123. package/lib/src/views/super-icon/src/index.vue2.cjs +10 -0
  124. package/lib/src/views/super-icon/src/index.vue3.cjs +2 -0
  125. package/lib/src/views/svg-icon/src/svg-icon.vue2.cjs +12 -0
  126. package/lib/style.css +920 -900
  127. package/lib/super-grid/src/columns-config.vue.cjs +1 -1
  128. package/lib/super-grid/src/components/grid-radio-input.vue.cjs +5 -5
  129. package/lib/super-grid/src/components/select-input.vue.cjs +56 -56
  130. package/lib/super-grid/src/row-detail.vue.cjs +1 -1
  131. package/lib/super-grid/src/search-form-advancedQuery.vue.cjs +1 -1
  132. package/lib/super-grid/src/search-form-number.vue.cjs +6 -6
  133. package/lib/super-grid/src/super-grid.vue.cjs +1 -1
  134. package/lib/super-nine-grid/src/search-form-number.vue.cjs +6 -6
  135. package/lib/super-nine-grid/src/search-form.vue.cjs +1 -1
  136. package/lib/super-nine-grid/src/super-nine-grid.vue.cjs +1 -1
  137. package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue.cjs +5 -5
  138. package/lib/workgroup-tree-mobile/src/dept-result.vue.cjs +4 -3
  139. package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue.cjs +9 -8
  140. package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.cjs +48 -48
  141. package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.cjs +5 -5
  142. package/lib/workgroup-user-tree-mobile/src/dept-path.vue.cjs +6 -6
  143. package/lib/workgroup-user-tree-mobile/src/dept-result.vue.cjs +4 -3
  144. package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.cjs +9 -8
  145. package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.cjs +63 -63
  146. package/lib/year-range-picker/src/year-range-picker.vue.cjs +1 -1
  147. package/package.json +2 -2
  148. package/src/views/layout/components/Menubar/Item.vue +1 -1
  149. package/src/views/super-icon/index.js +6 -0
  150. package/src/views/super-icon/src/index.vue +52 -0
  151. package/src/views/svg-icon/src/svg-icon.vue +5 -8
@@ -8,126 +8,126 @@ import { ElMessage as C } from "element-plus";
8
8
  import { useI18n as $ } from "vue-i18n";
9
9
  import V from "../../utils/utils.mjs";
10
10
  import O from "../../src/assets/nonemessage.png.mjs";
11
- const P = { style: { display: "flex" } }, J = { style: { flex: "0 0 20%", "text-align": "left" } }, M = { style: { flex: "0 0 80%", "text-align": "right" } }, j = { class: "item-row" }, H = { key: 0, class: "item-label" }, K = { style: { color: "#999" } }, A = ["onClick"], D = ["onClick"], q = { style: { display: "flex" } }, z = { class: "select-result" }, B = { key: 0 }, F = { key: 1 }, G = { key: 2 }, Z = { key: 3, style: { "padding-left": "10px" } }, L = { key: 1 }, Q = { style: { color: "#999" } }, W = { class: "button-area" }, X = e({ __name: "workgroup-user-tree-inline-app", props: { multiple: {}, branchInfo: {}, selectUserInfo: {}, searchField: {}, separator: {} }, emits: ["close"], setup(e2, { emit: X2 }) {
12
- const Y = e2, ee = l(null);
13
- let le = l(null), te = l(false), ne = l(null), ae = l([]);
11
+ const P = { style: { display: "flex" } }, J = { style: { flex: "0 0 20%", "text-align": "left" } }, M = { style: { flex: "0 0 80%", "text-align": "right" } }, j = { class: "item-row" }, H = { key: 0, class: "item-label" }, A = { style: { color: "#999" } }, D = ["onClick"], K = ["onClick"], q = { style: { display: "flex" } }, z = { class: "select-result" }, B = { key: 0 }, F = { key: 1 }, G = { key: 2 }, Z = { key: 3, style: { "padding-left": "10px" } }, L = { key: 1 }, Q = { style: { color: "#999" } }, W = { class: "button-area" }, X = e({ __name: "workgroup-user-tree-inline-app", props: { multiple: {}, branchInfo: {}, selectUserInfo: {}, searchField: {}, separator: {} }, emits: ["close"], setup(e2, { emit: X2 }) {
12
+ const Y = e2, ee = X2, le = l(null);
13
+ let te = l(null), ne = l(false), ae = l(null), se = l([]);
14
14
  l([]);
15
- let se = l([]), oe = l([]);
15
+ let oe = l([]), re = l([]);
16
16
  l([]);
17
- let re = l([]), ue = l([]), ie = l(null), ce = l(false), de = l({ searchValue: null, treeType: "MAN_GROUP_TREE", departmentInfo: null }), pe = l({ disabled: "disable" }), me = l(false);
18
- const { t: fe } = $();
19
- function he() {
17
+ let ue = l([]), ie = l([]), ce = l(null), de = l(false), pe = l({ searchValue: null, treeType: "MAN_GROUP_TREE", departmentInfo: null }), me = l({ disabled: "disable" }), fe = l(false);
18
+ const { t: he } = $();
19
+ function ve() {
20
20
  V.canShowOrgTree().then((e3) => {
21
21
  e3 ? k(Y.branchInfo, "-1").then((e4) => {
22
- ae.value = e4, U(se.value, ue.value);
23
- }) : ae.value = [];
22
+ se.value = e4, U(oe.value, ie.value);
23
+ }) : se.value = [];
24
24
  });
25
25
  }
26
- function ve(e3, l2, t2) {
27
- Y.multiple && (l2 ? Y.multiple && ye(e3) : (Y.multiple || e3.nodeType && "USER" === e3.nodeType) && Ie(e3));
26
+ function ge(e3, l2, t2) {
27
+ Y.multiple && (l2 ? Y.multiple && Ie(e3) : (Y.multiple || e3.nodeType && "USER" === e3.nodeType) && ke(e3));
28
28
  }
29
- function ge(e3, l2, t2, n2) {
30
- !Y.multiple && e3.nodeType && "USER" === e3.nodeType && (se.value = [e3]);
29
+ function ye(e3, l2, t2, n2) {
30
+ !Y.multiple && e3.nodeType && "USER" === e3.nodeType && (oe.value = [e3]);
31
31
  }
32
- function ye(e3) {
32
+ function Ie(e3) {
33
33
  if (e3.nodeType && "USER" === e3.nodeType) {
34
- const l2 = se.value.filter((l3) => l3.nodeId === e3.nodeId);
35
- l2 && 0 !== l2.length || se.value.push(JSON.parse(JSON.stringify(e3)));
36
- } else {
37
34
  const l2 = oe.value.filter((l3) => l3.nodeId === e3.nodeId);
38
35
  l2 && 0 !== l2.length || oe.value.push(JSON.parse(JSON.stringify(e3)));
36
+ } else {
37
+ const l2 = re.value.filter((l3) => l3.nodeId === e3.nodeId);
38
+ l2 && 0 !== l2.length || re.value.push(JSON.parse(JSON.stringify(e3)));
39
39
  }
40
40
  }
41
- function Ie(e3) {
41
+ function ke(e3) {
42
42
  if (e3.nodeType && "USER" === e3.nodeType) {
43
- const l2 = se.value.findIndex((l3) => l3.nodeId === e3.nodeId);
44
- se.value.splice(l2, 1);
45
- } else {
46
43
  const l2 = oe.value.findIndex((l3) => l3.nodeId === e3.nodeId);
47
44
  oe.value.splice(l2, 1);
45
+ } else {
46
+ const l2 = re.value.findIndex((l3) => l3.nodeId === e3.nodeId);
47
+ re.value.splice(l2, 1);
48
48
  }
49
- ce.value = false;
49
+ de.value = false;
50
50
  }
51
- function ke(e3) {
51
+ function Ue(e3) {
52
52
  if (Y.multiple)
53
53
  if (e3) {
54
- const e4 = ae.value.map((e5) => e5.nodeId);
55
- ee.value.setCheckedKeys(e4, false), ae.value.forEach((e5) => {
56
- ye(e5);
54
+ const e4 = se.value.map((e5) => e5.nodeId);
55
+ le.value.setCheckedKeys(e4, false), se.value.forEach((e5) => {
56
+ Ie(e5);
57
57
  });
58
58
  } else
59
- ae.value.forEach((e4) => {
60
- Ie(e4);
61
- }), ee.value.setCheckedKeys([], false);
59
+ se.value.forEach((e4) => {
60
+ ke(e4);
61
+ }), le.value.setCheckedKeys([], false);
62
62
  }
63
- function Ue(e3) {
63
+ function Te(e3) {
64
64
  w(Y.branchInfo, e3.id).then((e4) => {
65
- ae.value = e4, U(se.value, ue.value);
65
+ se.value = e4, U(oe.value, ie.value);
66
66
  });
67
67
  }
68
- function Te(e3, l2) {
69
- re.value.push(e3), Ue(e3);
68
+ function we(e3, l2) {
69
+ ue.value.push(e3), Te(e3);
70
70
  }
71
- function we(e3, l2, t2) {
72
- l2 ? (re.value = [], he()) : (re.value.splice(t2 + 1, re.value.length - (t2 + 1)), Ue(e3));
71
+ function Re(e3, l2, t2) {
72
+ l2 ? (ue.value = [], ve()) : (ue.value.splice(t2 + 1, ue.value.length - (t2 + 1)), Te(e3));
73
73
  }
74
- function Re() {
75
- ie.value.showResult();
74
+ function be() {
75
+ ce.value.showResult();
76
76
  }
77
- function be(e3) {
78
- const l2 = ae.value.filter((l3) => l3.nodeId === e3.nodeId);
77
+ function xe(e3) {
78
+ const l2 = se.value.filter((l3) => l3.nodeId === e3.nodeId);
79
79
  if (l2 && l2.length > 0) {
80
80
  const l3 = [];
81
- se.value.forEach((t2) => {
81
+ oe.value.forEach((t2) => {
82
82
  t2.nodeId !== e3.nodeId && l3.push(t2.nodeId);
83
- }), oe.value.forEach((t2) => {
83
+ }), re.value.forEach((t2) => {
84
84
  t2.nodeId !== e3.nodeId && l3.push(t2.nodeId);
85
- }), ee.value.setCheckedKeys(l3, true);
85
+ }), le.value.setCheckedKeys(l3, true);
86
86
  }
87
- Ie(e3);
87
+ ke(e3);
88
88
  }
89
- function xe() {
90
- if (0 !== oe.value.length || 0 !== se.value.length)
89
+ function Ne() {
90
+ if (0 !== re.value.length || 0 !== oe.value.length)
91
91
  if (Y.multiple) {
92
92
  const e3 = { userIds: [], userNames: [], loginNames: [], userZhNames: [], userEnNames: [], emails: [], telephones: [], users: [] }, l2 = [];
93
- oe.value.forEach((e4) => {
93
+ re.value.forEach((e4) => {
94
94
  l2.push(e4.id);
95
- }), se.value.forEach((l3) => {
95
+ }), oe.value.forEach((l3) => {
96
96
  const t2 = JSON.parse(l3.data);
97
- N(e3, t2, te.value);
98
- }), me.value = true, l2.length > 0 ? T(l2).then((l3) => {
97
+ N(e3, t2, ne.value);
98
+ }), fe.value = true, l2.length > 0 ? T(l2).then((l3) => {
99
99
  l3 && l3.forEach((l4) => {
100
- N(e3, l4, te.value);
101
- }), me.value = false, e3.userIds.length > 0 ? X2("close", e3) : C({ message: fe("imatrixUIMessage.pleaseSelectPersonnel"), type: "warning" });
100
+ N(e3, l4, ne.value);
101
+ }), fe.value = false, e3.userIds.length > 0 ? ee("close", e3) : C({ message: he("imatrixUIMessage.pleaseSelectPersonnel"), type: "warning" });
102
102
  }).catch(() => {
103
- me.value = false;
104
- }) : (me.value = false, e3.userIds.length > 0 ? X2("close", e3) : C({ message: fe("imatrixUIMessage.pleaseSelectPersonnel"), type: "warning" }));
103
+ fe.value = false;
104
+ }) : (fe.value = false, e3.userIds.length > 0 ? ee("close", e3) : C({ message: he("imatrixUIMessage.pleaseSelectPersonnel"), type: "warning" }));
105
105
  } else {
106
- const e3 = JSON.parse(se.value[0].data), l2 = S(e3, te.value);
107
- X2("close", l2);
106
+ const e3 = JSON.parse(oe.value[0].data), l2 = S(e3, ne.value);
107
+ ee("close", l2);
108
108
  }
109
109
  else
110
- C({ message: fe("imatrixUIMessage.pleaseSelectPersonnel"), type: "warning" });
110
+ C({ message: he("imatrixUIMessage.pleaseSelectPersonnel"), type: "warning" });
111
111
  }
112
- function Ne() {
113
- de.value.searchValue ? (de.value.searchValue = de.value.searchValue.trim(), de.value.departmentInfo = Y.branchInfo, window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/organization-trees/search-users-mobile", de.value).then((e3) => {
114
- e3 ? (0 === e3.length && C({ message: fe("imatrixUIMessage.queryResultIsEmpty"), type: "warning" }), ae.value = e3) : C({ message: fe("imatrixUIMessage.queryResultIsEmpty"), type: "warning" });
115
- })) : he();
112
+ function Se() {
113
+ pe.value.searchValue ? (pe.value.searchValue = pe.value.searchValue.trim(), pe.value.departmentInfo = Y.branchInfo, window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/organization-trees/search-users-mobile", pe.value).then((e3) => {
114
+ e3 ? (0 === e3.length && C({ message: he("imatrixUIMessage.queryResultIsEmpty"), type: "warning" }), se.value = e3) : C({ message: he("imatrixUIMessage.queryResultIsEmpty"), type: "warning" });
115
+ })) : ve();
116
116
  }
117
117
  return t(() => {
118
118
  R(Y.searchField, Y.selectUserInfo, Y.separator).then((e3) => {
119
- se.value = e3, I().then((e4) => {
119
+ oe.value = e3, I().then((e4) => {
120
120
  const l2 = e4[0].data;
121
- le.value = JSON.parse(l2), te.value = e4[0].containBranch, ne.value = e4[0].name, he();
121
+ te.value = JSON.parse(l2), ne.value = e4[0].containBranch, ae.value = e4[0].name, ve();
122
122
  });
123
123
  }), function() {
124
124
  const e3 = document.querySelector(".org-tree");
125
125
  let l2 = b();
126
126
  l2 = l2 - 110 - 60 - 60 - 60, e3.style.height = l2 + "px", e3.style.minHeight = "300px";
127
127
  }();
128
- }), (e3, l2) => {
129
- const t2 = n("el-checkbox"), I2 = n("el-icon"), k2 = n("el-input"), U2 = n("el-col"), T2 = n("el-row"), w2 = n("el-card"), R2 = n("el-empty"), b2 = n("el-tree"), N2 = n("el-button");
130
- return a(), s("div", null, [o(w2, { class: "card-content", style: { height: "50px" } }, { default: r(() => [o(T2, { class: "item-row item-row-all" }, { default: r(() => [o(U2, { style: { width: "100%" } }, { default: r(() => [u("div", P, [u("div", J, [e3.multiple ? (a(), i(t2, { key: 0, modelValue: c(ce), "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => d(ce) ? ce.value = e4 : ce = e4), label: e3.$t("departmentTreeInline.allCheck"), value: "all", onChange: ke }, null, 8, ["modelValue", "label"])) : p("", true)]), u("div", M, [o(k2, { modelValue: c(de).searchValue, "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => c(de).searchValue = e4), placeholder: e3.$t("departmentUserTree.pleaseEnterUserInformation"), onClear: Ne, onKeyup: m(Ne, ["enter"]), onBlur: Ne, clearable: "" }, { suffix: r(() => [o(I2, { onClick: Ne }, { default: r(() => [o(c(v))]), _: 1 })]), _: 1 }, 8, ["modelValue", "placeholder", "onKeyup"])])])]), _: 1 })]), _: 1 })]), _: 1 }), c(ne) ? (a(), i(w2, { key: 0, class: "card-content" }, { default: r(() => [o(T2, { class: "item-row item-row-all" }, { default: r(() => [o(U2, { class: "item-label dept-path" }, { default: r(() => [o(_, { tenantName: c(ne), clickDepts: c(re), onClickBreadcrumb: we }, null, 8, ["tenantName", "clickDepts"])]), _: 1 })]), _: 1 })]), _: 1 })) : p("", true), o(w2, { class: "card-content org-tree", style: { overflow: "auto" } }, { default: r(() => [c(ae).length ? (a(), i(b2, { key: 1, ref_key: "orgTreeRef", ref: ee, data: c(ae), "show-checkbox": e3.multiple, "node-key": "nodeId", props: c(pe), "default-checked-keys": c(ue), onCheckChange: ve, onNodeClick: ge }, { default: r(({ node: e4, data: l3 }) => [u("div", j, [l3.nodeType && "USER" === l3.nodeType ? (a(), s("div", H, [f(h(l3.showName) + " ", 1), u("span", K, "(" + h(l3.loginName) + h(c(x)(l3) ? "/" + c(x)(l3) : "") + ")", 1)])) : (a(), s("div", { key: 1, class: "item-label", onClick: (e5) => Te(l3) }, h(l3.name), 9, A)), l3.nodeType && "USER" === l3.nodeType ? p("", true) : (a(), s("div", { key: 2, class: "item-side", onClick: (e5) => Te(l3) }, [o(I2, null, { default: r(() => [o(c(g))]), _: 1 })], 8, D))])]), _: 1 }, 8, ["data", "show-checkbox", "props", "default-checked-keys"])) : (a(), i(R2, { key: 0, image: c(O) }, null, 8, ["image"]))]), _: 1 }), o(w2, { class: "card-footer" }, { default: r(() => [u("div", q, [u("div", z, [e3.multiple ? (a(), s("span", { key: 0, onClick: Re }, [c(se).length > 0 && c(oe).length > 0 ? (a(), s("span", B, h(e3.$t("departmentTreeInline.selectResultInfoHasSelect")) + h(e3.$t("departmentUserTree.selectUserResultInfo", { userNum: c(se).length })) + ", " + h(e3.$t("departmentUserTree.selectDeptResultInfo", { deptNum: c(oe).length })), 1)) : c(se).length > 0 ? (a(), s("span", F, h(e3.$t("departmentTreeInline.selectResultInfoHasSelect")) + h(e3.$t("departmentUserTree.selectUserResultInfo", { userNum: c(se).length })), 1)) : c(oe).length > 0 ? (a(), s("span", G, h(e3.$t("departmentTreeInline.selectResultInfoHasSelect")) + h(e3.$t("departmentUserTree.selectDeptResultInfo", { deptNum: c(oe).length })), 1)) : p("", true), c(se).length > 0 || c(oe).length > 0 ? (a(), s("span", Z, [o(I2, null, { default: r(() => [o(c(y))]), _: 1 })])) : p("", true)])) : c(se).length > 0 ? (a(), s("span", L, [f(h(e3.$t("departmentTreeInline.selectResultInfoHasSelect")) + h(c(se)[0].showName), 1), u("span", Q, "(" + h(c(se)[0].loginName) + h(c(x)(c(se)[0]) ? "/" + c(x)(c(se)[0]) : "") + ")", 1)])) : p("", true)]), u("div", W, [o(N2, { size: "large", type: "primary", onClick: xe }, { default: r(() => [f(h(e3.$t("imatrixUIPublicModel.sure")), 1)]), _: 1 })])])]), _: 1 }), o(E, { ref_key: "deptResultRef", ref: ie, selectUsers: c(se).concat(c(oe)), onRemoveResult: be }, null, 8, ["selectUsers"])]);
128
+ }), (l2, t2) => {
129
+ const I2 = n("el-checkbox"), k2 = n("el-icon"), U2 = n("el-input"), T2 = n("el-col"), w2 = n("el-row"), R2 = n("el-card"), b2 = n("el-empty"), N2 = n("el-tree"), S2 = n("el-button");
130
+ return a(), s("div", null, [o(R2, { class: "card-content", style: { height: "50px" } }, { default: r(() => [o(w2, { class: "item-row item-row-all" }, { default: r(() => [o(T2, { style: { width: "100%" } }, { default: r(() => [u("div", P, [u("div", J, [e2.multiple ? (a(), i(I2, { key: 0, modelValue: c(de), "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => d(de) ? de.value = e3 : de = e3), label: l2.$t("departmentTreeInline.allCheck"), value: "all", onChange: Ue }, null, 8, ["modelValue", "label"])) : p("", true)]), u("div", M, [o(U2, { modelValue: c(pe).searchValue, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => c(pe).searchValue = e3), placeholder: l2.$t("departmentUserTree.pleaseEnterUserInformation"), onClear: Se, onKeyup: m(Se, ["enter"]), onBlur: Se, clearable: "" }, { suffix: r(() => [o(k2, { onClick: Se }, { default: r(() => [o(c(v))]), _: 1 })]), _: 1 }, 8, ["modelValue", "placeholder"])])])]), _: 1 })]), _: 1 })]), _: 1 }), c(ae) ? (a(), i(R2, { key: 0, class: "card-content" }, { default: r(() => [o(w2, { class: "item-row item-row-all" }, { default: r(() => [o(T2, { class: "item-label dept-path" }, { default: r(() => [o(_, { tenantName: c(ae), clickDepts: c(ue), onClickBreadcrumb: Re }, null, 8, ["tenantName", "clickDepts"])]), _: 1 })]), _: 1 })]), _: 1 })) : p("", true), o(R2, { class: "card-content org-tree", style: { overflow: "auto" } }, { default: r(() => [c(se).length ? (a(), i(N2, { key: 1, ref_key: "orgTreeRef", ref: le, data: c(se), "show-checkbox": e2.multiple, "node-key": "nodeId", props: c(me), "default-checked-keys": c(ie), onCheckChange: ge, onNodeClick: ye }, { default: r(({ node: e3, data: l3 }) => [u("div", j, [l3.nodeType && "USER" === l3.nodeType ? (a(), s("div", H, [f(h(l3.showName) + " ", 1), u("span", A, "(" + h(l3.loginName) + h(c(x)(l3) ? "/" + c(x)(l3) : "") + ")", 1)])) : (a(), s("div", { key: 1, class: "item-label", onClick: (e4) => we(l3) }, h(l3.name), 9, D)), l3.nodeType && "USER" === l3.nodeType ? p("", true) : (a(), s("div", { key: 2, class: "item-side", onClick: (e4) => we(l3) }, [o(k2, null, { default: r(() => [o(c(g))]), _: 1 })], 8, K))])]), _: 1 }, 8, ["data", "show-checkbox", "props", "default-checked-keys"])) : (a(), i(b2, { key: 0, image: c(O) }, null, 8, ["image"]))]), _: 1 }), o(R2, { class: "card-footer" }, { default: r(() => [u("div", q, [u("div", z, [e2.multiple ? (a(), s("span", { key: 0, onClick: be }, [c(oe).length > 0 && c(re).length > 0 ? (a(), s("span", B, h(l2.$t("departmentTreeInline.selectResultInfoHasSelect")) + h(l2.$t("departmentUserTree.selectUserResultInfo", { userNum: c(oe).length })) + ", " + h(l2.$t("departmentUserTree.selectDeptResultInfo", { deptNum: c(re).length })), 1)) : c(oe).length > 0 ? (a(), s("span", F, h(l2.$t("departmentTreeInline.selectResultInfoHasSelect")) + h(l2.$t("departmentUserTree.selectUserResultInfo", { userNum: c(oe).length })), 1)) : c(re).length > 0 ? (a(), s("span", G, h(l2.$t("departmentTreeInline.selectResultInfoHasSelect")) + h(l2.$t("departmentUserTree.selectDeptResultInfo", { deptNum: c(re).length })), 1)) : p("", true), c(oe).length > 0 || c(re).length > 0 ? (a(), s("span", Z, [o(k2, null, { default: r(() => [o(c(y))]), _: 1 })])) : p("", true)])) : c(oe).length > 0 ? (a(), s("span", L, [f(h(l2.$t("departmentTreeInline.selectResultInfoHasSelect")) + h(c(oe)[0].showName), 1), u("span", Q, "(" + h(c(oe)[0].loginName) + h(c(x)(c(oe)[0]) ? "/" + c(x)(c(oe)[0]) : "") + ")", 1)])) : p("", true)]), u("div", W, [o(S2, { size: "large", type: "primary", onClick: Ne }, { default: r(() => [f(h(l2.$t("imatrixUIPublicModel.sure")), 1)]), _: 1 })])])]), _: 1 }), o(E, { ref_key: "deptResultRef", ref: ce, selectUsers: c(oe).concat(c(re)), onRemoveResult: xe }, null, 8, ["selectUsers"])]);
131
131
  };
132
132
  } });
133
133
  export {
@@ -7,7 +7,7 @@ const u = n({ name: "YearRangePicker", props: { value: { type: Array, default: (
7
7
  this.value[1] = a2, e(this, "change", this.value);
8
8
  } }, emits: ["change", "update:value", , "update:value"] }, [["render", function(e2, n2, u2, d, h, s) {
9
9
  const i = a("el-date-picker");
10
- return l(), t("div", null, [r(i, { modelValue: u2.value[0], "onUpdate:modelValue": n2[0] || (n2[0] = (e3) => u2.value[0] = e3), style: { width: "47%" }, "value-format": "YYYY", type: "year", placeholder: e2.$t("imatrixUIMessage.selectYear"), onChange: s.changeStart }, null, 8, ["modelValue", "placeholder", "onChange"]), o(" - "), r(i, { modelValue: u2.value[1], "onUpdate:modelValue": n2[1] || (n2[1] = (e3) => u2.value[1] = e3), style: { width: "47%" }, "value-format": "YYYY", type: "year", placeholder: e2.$t("imatrixUIMessage.selectYear"), onChange: s.changeEnd }, null, 8, ["modelValue", "placeholder", "onChange"])]);
10
+ return l(), t("div", null, [r(i, { modelValue: u2.value[0], "onUpdate:modelValue": n2[0] || (n2[0] = (e3) => u2.value[0] = e3), style: { width: "47%" }, "value-format": "YYYY", type: "year", placeholder: e2.$t("imatrixUIMessage.selectYear"), onChange: s.changeStart }, null, 8, ["modelValue", "placeholder", "onChange"]), n2[2] || (n2[2] = o(" - ", -1)), r(i, { modelValue: u2.value[1], "onUpdate:modelValue": n2[1] || (n2[1] = (e3) => u2.value[1] = e3), style: { width: "47%" }, "value-format": "YYYY", type: "year", placeholder: e2.$t("imatrixUIMessage.selectYear"), onChange: s.changeEnd }, null, 8, ["modelValue", "placeholder", "onChange"])]);
11
11
  }]]);
12
12
  export {
13
13
  u as default
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  const e = require("../../utils/gogocodeTransfer.cjs"), t = require("../../src/utils/range-selector.cjs"), a = require("vue");
3
3
  require("./sectionDate.vue2.cjs");
4
- const l = require("../../_virtual/_plugin-vue_export-helper.cjs"), i = { name: "SectionDate", components: {}, props: { colFieldSetting: { type: Object, default: null } }, data: () => ({ modelValue: {}, startDate: "", endDate: "", weekStareDate: "", weekDate: "", monthStareDate: "", monthDate: "", datStareDate: [], yearStartDate: "", yearDate: "", ScopeStartDate: "", ScopeEndDate: "", pickerOptions: { disabledDate: (e2) => e2.getFullYear() < 2e3 }, fordateParams: "" }), watch: { datStareDate: { handler(e2) {
4
+ const l = require("../../_virtual/_plugin-vue_export-helper.cjs"), i = { key: 0, class: "select" }, o = { key: 1, class: "select" }, n = { key: 2, class: "select" }, s = { key: 3, style: { width: "100%", height: "100%" } };
5
+ const r = l({ name: "SectionDate", components: {}, props: { colFieldSetting: { type: Object, default: null } }, data: () => ({ modelValue: {}, startDate: "", endDate: "", weekStareDate: "", weekDate: "", monthStareDate: "", monthDate: "", datStareDate: [], yearStartDate: "", yearDate: "", ScopeStartDate: "", ScopeEndDate: "", pickerOptions: { disabledDate: (e2) => e2.getFullYear() < 2e3 }, fordateParams: "" }), watch: { datStareDate: { handler(e2) {
5
6
  this.startDate = this.formatTimefn(this.colFieldSetting.options.format, e2[0]), this.endDate = this.formatTimefn(this.colFieldSetting.options.format, e2[1]);
6
7
  }, immediate: false, deep: true } }, created() {
7
8
  this.setTimeScope();
@@ -37,9 +38,8 @@ const l = require("../../_virtual/_plugin-vue_export-helper.cjs"), i = { name: "
37
38
  "" !== this.monthStareDate && null !== this.monthStareDate && void 0 !== this.monthStareDate && (this.startDate = this.formatTimefn(this.colFieldSetting.options.format, this.monthStareDate)), e2 % 4 == 0 && e2 % 100 != 0 || e2 % 400 == 0 ? 2 === t2 ? this.forTimeParams = new Date(this.monthDate).getTime() + 24192e5 : -1 !== a2.indexOf(t2) ? this.forTimeParams = new Date(this.monthDate).getTime() + 2592e6 : this.forTimeParams = new Date(this.monthDate).getTime() + 25056e5 : 2 === t2 ? this.forTimeParams = new Date(this.monthDate).getTime() + 23328e5 : -1 !== a2.indexOf(t2) ? this.forTimeParams = new Date(this.monthDate).getTime() + 2592e6 : this.forTimeParams = new Date(this.monthDate).getTime() + 25056e5, this.endDate = this.formatTimefn(this.colFieldSetting.options.format, this.forTimeParams), this.changeForm();
38
39
  }, monthStatChange() {
39
40
  this.startDate = this.formatTimefn(this.colFieldSetting.options.format, this.monthStareDate), this.changeForm();
40
- } }, emits: ["SectionDateTransfer"] }, o = (e2) => (a.pushScopeId("data-v-52983a24"), e2 = e2(), a.popScopeId(), e2), n = { key: 0, class: "select" }, s = o(() => a.createElementVNode("div", { class: "intervalCenter" }, "-", -1)), r = { key: 1, class: "select" }, d = o(() => a.createElementVNode("div", { class: "intervalCenter" }, "-", -1)), c = { key: 2, class: "select" }, h = o(() => a.createElementVNode("div", { class: "intervalCenter" }, "-", -1)), p = { key: 3, style: { width: "100%", height: "100%" } };
41
- const m = l(i, [["render", function(e2, t2, l2, i2, o2, m2) {
42
- const g = a.resolveComponent("el-date-picker");
43
- return a.openBlock(), a.createElementBlock("div", null, ["year" === l2.colFieldSetting.options.showType ? (a.openBlock(), a.createElementBlock("div", n, [a.createVNode(g, { shortcuts: o2.pickerOptions && o2.pickerOptions.shortcuts, "disabled-date": o2.pickerOptions && o2.pickerOptions.disabledDate, "cell-class-name": o2.pickerOptions && o2.pickerOptions.cellClassName, modelValue: o2.yearStartDate, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => o2.yearStartDate = e3), type: "year", placeholder: l2.colFieldSetting.options.startPlaceholder, disabled: l2.colFieldSetting.options.disabled, clearable: l2.colFieldSetting.options.clearable, size: l2.colFieldSetting.options.size ? l2.colFieldSetting.options.size : "small", onChange: m2.onChangeStatYear }, null, 8, ["shortcuts", "disabled-date", "cell-class-name", "modelValue", "placeholder", "disabled", "clearable", "size", "onChange"]), s, a.createVNode(g, { shortcuts: o2.pickerOptions && o2.pickerOptions.shortcuts, "disabled-date": o2.pickerOptions && o2.pickerOptions.disabledDate, "cell-class-name": o2.pickerOptions && o2.pickerOptions.cellClassName, modelValue: o2.yearDate, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => o2.yearDate = e3), type: "year", placeholder: l2.colFieldSetting.options.endPlaceholder, disabled: l2.colFieldSetting.options.disabled, clearable: l2.colFieldSetting.options.clearable, size: l2.colFieldSetting.options.size ? l2.colFieldSetting.options.size : "small", onChange: m2.onChangeEndYear }, null, 8, ["shortcuts", "disabled-date", "cell-class-name", "modelValue", "placeholder", "disabled", "clearable", "size", "onChange"])])) : "week" === l2.colFieldSetting.options.showType ? (a.openBlock(), a.createElementBlock("div", r, [a.createVNode(g, { shortcuts: { firstDayOfWeek: 1 } && { firstDayOfWeek: 1 }.shortcuts, "disabled-date": { firstDayOfWeek: 1 } && { firstDayOfWeek: 1 }.disabledDate, "cell-class-name": { firstDayOfWeek: 1 } && { firstDayOfWeek: 1 }.cellClassName, modelValue: o2.weekStareDate, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => o2.weekStareDate = e3), type: l2.colFieldSetting.options.showType, "is-range": l2.colFieldSetting.options.range, placeholder: l2.colFieldSetting.options.placeholder, "start-placeholder": l2.colFieldSetting.options.startPlaceholder, "end-placeholder": l2.colFieldSetting.options.endPlaceholder, readonly: l2.colFieldSetting.options.readonly, disabled: l2.colFieldSetting.options.disabled, editable: l2.colFieldSetting.options.editable, size: l2.colFieldSetting.options.size ? l2.colFieldSetting.options.size : "small", clearable: l2.colFieldSetting.options.clearable, format: "YYYY" + e2.$t("IntervalSelection.auxiliary") + "WW" + e2.$t("IntervalSelection.week"), onChange: m2.weekStatChange }, null, 8, ["shortcuts", "disabled-date", "cell-class-name", "modelValue", "type", "is-range", "placeholder", "start-placeholder", "end-placeholder", "readonly", "disabled", "editable", "size", "clearable", "format", "onChange"]), d, a.createVNode(g, { shortcuts: { firstDayOfWeek: 1 } && { firstDayOfWeek: 1 }.shortcuts, "disabled-date": { firstDayOfWeek: 1 } && { firstDayOfWeek: 1 }.disabledDate, "cell-class-name": { firstDayOfWeek: 1 } && { firstDayOfWeek: 1 }.cellClassName, modelValue: o2.weekDate, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => o2.weekDate = e3), type: l2.colFieldSetting.options.showType, "is-range": l2.colFieldSetting.options.range, placeholder: l2.colFieldSetting.options.placeholder, "start-placeholder": l2.colFieldSetting.options.startPlaceholder, "end-placeholder": l2.colFieldSetting.options.endPlaceholder, readonly: l2.colFieldSetting.options.readonly, disabled: l2.colFieldSetting.options.disabled, editable: l2.colFieldSetting.options.editable, size: l2.colFieldSetting.options.size ? l2.colFieldSetting.options.size : "small", clearable: l2.colFieldSetting.options.clearable, format: "YYYY" + e2.$t("IntervalSelection.auxiliary") + "WW" + e2.$t("IntervalSelection.week"), onChange: m2.weekChange }, null, 8, ["shortcuts", "disabled-date", "cell-class-name", "modelValue", "type", "is-range", "placeholder", "start-placeholder", "end-placeholder", "readonly", "disabled", "editable", "size", "clearable", "format", "onChange"])])) : "monthrange" === l2.colFieldSetting.options.showType ? (a.openBlock(), a.createElementBlock("div", c, [a.createVNode(g, { modelValue: o2.monthStareDate, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => o2.monthStareDate = e3), type: "month", "is-range": l2.colFieldSetting.options.range, placeholder: l2.colFieldSetting.options.placeholder, "start-placeholder": l2.colFieldSetting.options.startPlaceholder, "end-placeholder": l2.colFieldSetting.options.endPlaceholder, readonly: l2.colFieldSetting.options.readonly, disabled: l2.colFieldSetting.options.disabled, editable: l2.colFieldSetting.options.editable, clearable: l2.colFieldSetting.options.clearable, size: l2.colFieldSetting.options.size ? l2.colFieldSetting.options.size : "small", "value-format": "x", onChange: m2.monthStatChange }, null, 8, ["modelValue", "is-range", "placeholder", "start-placeholder", "end-placeholder", "readonly", "disabled", "editable", "clearable", "size", "onChange"]), h, a.createVNode(g, { modelValue: o2.monthDate, "onUpdate:modelValue": t2[5] || (t2[5] = (e3) => o2.monthDate = e3), type: "month", "is-range": l2.colFieldSetting.options.range, placeholder: l2.colFieldSetting.options.placeholder, "start-placeholder": l2.colFieldSetting.options.startPlaceholder, "end-placeholder": l2.colFieldSetting.options.endPlaceholder, readonly: l2.colFieldSetting.options.readonly, disabled: l2.colFieldSetting.options.disabled, editable: l2.colFieldSetting.options.editable, clearable: l2.colFieldSetting.options.clearable, size: l2.colFieldSetting.options.size ? l2.colFieldSetting.options.size : "small", onChange: m2.monthChange }, null, 8, ["modelValue", "is-range", "placeholder", "start-placeholder", "end-placeholder", "readonly", "disabled", "editable", "clearable", "size", "onChange"])])) : (a.openBlock(), a.createElementBlock("div", p, [a.createVNode(g, { modelValue: o2.datStareDate, "onUpdate:modelValue": t2[6] || (t2[6] = (e3) => o2.datStareDate = e3), type: l2.colFieldSetting.options.showType, "is-range": l2.colFieldSetting.options.range, placeholder: l2.colFieldSetting.options.placeholder, "start-placeholder": l2.colFieldSetting.options.startPlaceholder, "end-placeholder": l2.colFieldSetting.options.endPlaceholder, readonly: l2.colFieldSetting.options.readonly, disabled: l2.colFieldSetting.options.disabled, size: l2.colFieldSetting.options.size ? l2.colFieldSetting.options.size : "small", editable: l2.colFieldSetting.options.editable, clearable: l2.colFieldSetting.options.clearable, "value-format": "x", style: { width: "100%" }, onChange: m2.changeForm }, null, 8, ["modelValue", "type", "is-range", "placeholder", "start-placeholder", "end-placeholder", "readonly", "disabled", "size", "editable", "clearable", "onChange"])]))]);
41
+ } }, emits: ["SectionDateTransfer"] }, [["render", function(e2, t2, l2, r2, d, c) {
42
+ const h = a.resolveComponent("el-date-picker");
43
+ return a.openBlock(), a.createElementBlock("div", null, ["year" === l2.colFieldSetting.options.showType ? (a.openBlock(), a.createElementBlock("div", i, [a.createVNode(h, { shortcuts: d.pickerOptions && d.pickerOptions.shortcuts, "disabled-date": d.pickerOptions && d.pickerOptions.disabledDate, "cell-class-name": d.pickerOptions && d.pickerOptions.cellClassName, modelValue: d.yearStartDate, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => d.yearStartDate = e3), type: "year", placeholder: l2.colFieldSetting.options.startPlaceholder, disabled: l2.colFieldSetting.options.disabled, clearable: l2.colFieldSetting.options.clearable, size: l2.colFieldSetting.options.size ? l2.colFieldSetting.options.size : "small", onChange: c.onChangeStatYear }, null, 8, ["shortcuts", "disabled-date", "cell-class-name", "modelValue", "placeholder", "disabled", "clearable", "size", "onChange"]), t2[7] || (t2[7] = a.createElementVNode("div", { class: "intervalCenter" }, "-", -1)), a.createVNode(h, { shortcuts: d.pickerOptions && d.pickerOptions.shortcuts, "disabled-date": d.pickerOptions && d.pickerOptions.disabledDate, "cell-class-name": d.pickerOptions && d.pickerOptions.cellClassName, modelValue: d.yearDate, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => d.yearDate = e3), type: "year", placeholder: l2.colFieldSetting.options.endPlaceholder, disabled: l2.colFieldSetting.options.disabled, clearable: l2.colFieldSetting.options.clearable, size: l2.colFieldSetting.options.size ? l2.colFieldSetting.options.size : "small", onChange: c.onChangeEndYear }, null, 8, ["shortcuts", "disabled-date", "cell-class-name", "modelValue", "placeholder", "disabled", "clearable", "size", "onChange"])])) : "week" === l2.colFieldSetting.options.showType ? (a.openBlock(), a.createElementBlock("div", o, [a.createVNode(h, { shortcuts: { firstDayOfWeek: 1 } && { firstDayOfWeek: 1 }.shortcuts, "disabled-date": { firstDayOfWeek: 1 } && { firstDayOfWeek: 1 }.disabledDate, "cell-class-name": { firstDayOfWeek: 1 } && { firstDayOfWeek: 1 }.cellClassName, modelValue: d.weekStareDate, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => d.weekStareDate = e3), type: l2.colFieldSetting.options.showType, "is-range": l2.colFieldSetting.options.range, placeholder: l2.colFieldSetting.options.placeholder, "start-placeholder": l2.colFieldSetting.options.startPlaceholder, "end-placeholder": l2.colFieldSetting.options.endPlaceholder, readonly: l2.colFieldSetting.options.readonly, disabled: l2.colFieldSetting.options.disabled, editable: l2.colFieldSetting.options.editable, size: l2.colFieldSetting.options.size ? l2.colFieldSetting.options.size : "small", clearable: l2.colFieldSetting.options.clearable, format: "YYYY" + e2.$t("IntervalSelection.auxiliary") + "WW" + e2.$t("IntervalSelection.week"), onChange: c.weekStatChange }, null, 8, ["shortcuts", "disabled-date", "cell-class-name", "modelValue", "type", "is-range", "placeholder", "start-placeholder", "end-placeholder", "readonly", "disabled", "editable", "size", "clearable", "format", "onChange"]), t2[8] || (t2[8] = a.createElementVNode("div", { class: "intervalCenter" }, "-", -1)), a.createVNode(h, { shortcuts: { firstDayOfWeek: 1 } && { firstDayOfWeek: 1 }.shortcuts, "disabled-date": { firstDayOfWeek: 1 } && { firstDayOfWeek: 1 }.disabledDate, "cell-class-name": { firstDayOfWeek: 1 } && { firstDayOfWeek: 1 }.cellClassName, modelValue: d.weekDate, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => d.weekDate = e3), type: l2.colFieldSetting.options.showType, "is-range": l2.colFieldSetting.options.range, placeholder: l2.colFieldSetting.options.placeholder, "start-placeholder": l2.colFieldSetting.options.startPlaceholder, "end-placeholder": l2.colFieldSetting.options.endPlaceholder, readonly: l2.colFieldSetting.options.readonly, disabled: l2.colFieldSetting.options.disabled, editable: l2.colFieldSetting.options.editable, size: l2.colFieldSetting.options.size ? l2.colFieldSetting.options.size : "small", clearable: l2.colFieldSetting.options.clearable, format: "YYYY" + e2.$t("IntervalSelection.auxiliary") + "WW" + e2.$t("IntervalSelection.week"), onChange: c.weekChange }, null, 8, ["shortcuts", "disabled-date", "cell-class-name", "modelValue", "type", "is-range", "placeholder", "start-placeholder", "end-placeholder", "readonly", "disabled", "editable", "size", "clearable", "format", "onChange"])])) : "monthrange" === l2.colFieldSetting.options.showType ? (a.openBlock(), a.createElementBlock("div", n, [a.createVNode(h, { modelValue: d.monthStareDate, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => d.monthStareDate = e3), type: "month", "is-range": l2.colFieldSetting.options.range, placeholder: l2.colFieldSetting.options.placeholder, "start-placeholder": l2.colFieldSetting.options.startPlaceholder, "end-placeholder": l2.colFieldSetting.options.endPlaceholder, readonly: l2.colFieldSetting.options.readonly, disabled: l2.colFieldSetting.options.disabled, editable: l2.colFieldSetting.options.editable, clearable: l2.colFieldSetting.options.clearable, size: l2.colFieldSetting.options.size ? l2.colFieldSetting.options.size : "small", "value-format": "x", onChange: c.monthStatChange }, null, 8, ["modelValue", "is-range", "placeholder", "start-placeholder", "end-placeholder", "readonly", "disabled", "editable", "clearable", "size", "onChange"]), t2[9] || (t2[9] = a.createElementVNode("div", { class: "intervalCenter" }, "-", -1)), a.createVNode(h, { modelValue: d.monthDate, "onUpdate:modelValue": t2[5] || (t2[5] = (e3) => d.monthDate = e3), type: "month", "is-range": l2.colFieldSetting.options.range, placeholder: l2.colFieldSetting.options.placeholder, "start-placeholder": l2.colFieldSetting.options.startPlaceholder, "end-placeholder": l2.colFieldSetting.options.endPlaceholder, readonly: l2.colFieldSetting.options.readonly, disabled: l2.colFieldSetting.options.disabled, editable: l2.colFieldSetting.options.editable, clearable: l2.colFieldSetting.options.clearable, size: l2.colFieldSetting.options.size ? l2.colFieldSetting.options.size : "small", onChange: c.monthChange }, null, 8, ["modelValue", "is-range", "placeholder", "start-placeholder", "end-placeholder", "readonly", "disabled", "editable", "clearable", "size", "onChange"])])) : (a.openBlock(), a.createElementBlock("div", s, [a.createVNode(h, { modelValue: d.datStareDate, "onUpdate:modelValue": t2[6] || (t2[6] = (e3) => d.datStareDate = e3), type: l2.colFieldSetting.options.showType, "is-range": l2.colFieldSetting.options.range, placeholder: l2.colFieldSetting.options.placeholder, "start-placeholder": l2.colFieldSetting.options.startPlaceholder, "end-placeholder": l2.colFieldSetting.options.endPlaceholder, readonly: l2.colFieldSetting.options.readonly, disabled: l2.colFieldSetting.options.disabled, size: l2.colFieldSetting.options.size ? l2.colFieldSetting.options.size : "small", editable: l2.colFieldSetting.options.editable, clearable: l2.colFieldSetting.options.clearable, "value-format": "x", style: { width: "100%" }, onChange: c.changeForm }, null, 8, ["modelValue", "type", "is-range", "placeholder", "start-placeholder", "end-placeholder", "readonly", "disabled", "size", "editable", "clearable", "onChange"])]))]);
44
44
  }], ["__scopeId", "data-v-52983a24"]]);
45
- module.exports = m;
45
+ module.exports = r;
@@ -1,12 +1,15 @@
1
1
  "use strict";
2
- const e = require("vue"), t = { class: "additional-data-tag" }, a = { class: "additional-data-button" }, o = ((t2) => (e.pushScopeId("data-v-7aaab83c"), t2 = t2(), e.popScopeId(), t2))(() => e.createElementVNode("span", null, "预览数据", -1)), n = e.defineComponent({ __name: "chat-addition-data", props: { item: { type: Object, required: true } }, emits: ["view-json", "download-json"], setup: (n2, { emit: d }) => (l, r) => {
3
- const i = e.resolveComponent("el-divider"), s = e.resolveComponent("Paperclip"), c = e.resolveComponent("el-icon"), p = e.resolveComponent("el-tag"), m = e.resolveComponent("View"), u = e.resolveComponent("el-button"), N = e.resolveComponent("Download");
4
- return e.openBlock(), e.createElementBlock(e.Fragment, null, [e.createVNode(i, { "border-style": "dashed" }), e.createVNode(p, { type: "primary", style: { width: "100%" } }, { default: e.withCtx(() => [e.createElementVNode("div", t, [e.createVNode(c, null, { default: e.withCtx(() => [e.createVNode(s)]), _: 1 }), e.createTextVNode(" " + e.toDisplayString(n2.item.additionalDataLabel), 1)])]), _: 1 }), e.createElementVNode("div", a, [e.createVNode(u, { plain: "", size: "small", onClick: r[0] || (r[0] = (e2) => {
5
- var t2;
6
- (t2 = n2.item.additionalData) && ("string" == typeof t2 ? d("view-json", JSON.parse(t2)) : Array.isArray(t2) && d("view-json", t2));
7
- }) }, { default: e.withCtx(() => [e.createVNode(c, null, { default: e.withCtx(() => [e.createVNode(m)]), _: 1 }), e.createTextVNode(), o]), _: 1 }), e.createVNode(u, { plain: "", size: "small", onClick: r[1] || (r[1] = (e2) => {
8
- return t2 = n2.item.additionalData, a2 = n2.item.menuName, void (t2 && ("string" == typeof t2 ? d("download-json", JSON.parse(t2), a2) : Array.isArray(t2) && d("download-json", t2, a2)));
9
- var t2, a2;
10
- }) }, { default: e.withCtx(() => [e.createVNode(c, null, { default: e.withCtx(() => [e.createVNode(N)]), _: 1 }), e.createTextVNode(" 下载数据 ")]), _: 1 })])], 64);
2
+ const e = require("vue"), t = { class: "additional-data-tag" }, o = { class: "additional-data-button" }, a = e.defineComponent({ __name: "chat-addition-data", props: { item: { type: Object, required: true } }, emits: ["view-json", "download-json"], setup(a2, { emit: n }) {
3
+ const r = n;
4
+ return (n2, l) => {
5
+ const d = e.resolveComponent("el-divider"), i = e.resolveComponent("Paperclip"), s = e.resolveComponent("el-icon"), c = e.resolveComponent("el-tag"), m = e.resolveComponent("View"), p = e.resolveComponent("el-button"), u = e.resolveComponent("Download");
6
+ return e.openBlock(), e.createElementBlock(e.Fragment, null, [e.createVNode(d, { "border-style": "dashed" }), e.createVNode(c, { type: "primary", style: { width: "100%" } }, { default: e.withCtx(() => [e.createElementVNode("div", t, [e.createVNode(s, null, { default: e.withCtx(() => [e.createVNode(i)]), _: 1 }), e.createTextVNode(" " + e.toDisplayString(a2.item.additionalDataLabel), 1)])]), _: 1 }), e.createElementVNode("div", o, [e.createVNode(p, { plain: "", size: "small", onClick: l[0] || (l[0] = (e2) => {
7
+ var t2;
8
+ (t2 = a2.item.additionalData) && ("string" == typeof t2 ? r("view-json", JSON.parse(t2)) : Array.isArray(t2) && r("view-json", t2));
9
+ }) }, { default: e.withCtx(() => [e.createVNode(s, null, { default: e.withCtx(() => [e.createVNode(m)]), _: 1 }), l[2] || (l[2] = e.createTextVNode()), l[3] || (l[3] = e.createElementVNode("span", null, "预览数据", -1))]), _: 1 }), e.createVNode(p, { plain: "", size: "small", onClick: l[1] || (l[1] = (e2) => {
10
+ return t2 = a2.item.additionalData, o2 = a2.item.menuName, void (t2 && ("string" == typeof t2 ? r("download-json", JSON.parse(t2), o2) : Array.isArray(t2) && r("download-json", t2, o2)));
11
+ var t2, o2;
12
+ }) }, { default: e.withCtx(() => [e.createVNode(s, null, { default: e.withCtx(() => [e.createVNode(u)]), _: 1 }), l[4] || (l[4] = e.createTextVNode(" 下载数据 ", -1))]), _: 1 })])], 64);
13
+ };
11
14
  } });
12
- module.exports = n;
15
+ module.exports = a;
@@ -1,25 +1,25 @@
1
1
  "use strict";
2
2
  const e = require("vue"), n = require("vue-element-plus-x"), t = { key: 0, style: { "max-height": "80vh", overflow: "auto" } }, r = ["onClick"], o = e.defineComponent({ __name: "chat-ai-answer-tip", props: { item: { type: Object, required: true }, itemProps: { type: Object, required: true } }, emits: ["click-doc-agg"], setup(o2, { emit: c }) {
3
- const i = e.ref(false);
4
- function l() {
5
- i.value = true;
3
+ const i = c, l = e.ref(false);
4
+ function u() {
5
+ l.value = true;
6
6
  }
7
- function u(e2, n2) {
7
+ function a(e2, n2) {
8
8
  if (!e2.referenceChunks || 0 === e2.referenceChunks.length)
9
9
  return "无相关提示信息";
10
10
  const t2 = parseInt(n2);
11
11
  return isNaN(t2) || t2 < 0 || t2 >= e2.referenceChunks.length ? "提示信息索引无效" : e2.referenceChunks[t2].content || "无相关提示信息";
12
12
  }
13
- function a(e2, n2) {
13
+ function s(e2, n2) {
14
14
  if (!e2.referenceChunks || 0 === e2.referenceChunks.length)
15
15
  return "无相关提示信息";
16
16
  const t2 = parseInt(n2);
17
17
  return isNaN(t2) || t2 < 0 || t2 >= e2.referenceChunks.length ? "提示信息索引无效" : e2.referenceChunks[t2] ? [{ doc_name: e2.referenceChunks[t2].document_name, doc_id: e2.referenceChunks[t2].document_id }] : [];
18
18
  }
19
- return (s, m) => {
19
+ return (c2, m) => {
20
20
  const p = e.resolveComponent("Opportunity"), d = e.resolveComponent("el-icon"), k = e.resolveComponent("el-popover");
21
- return e.openBlock(), e.createBlock(k, { placement: "right", trigger: "click", width: "100vh" }, { reference: e.withCtx(() => [e.createVNode(d, { onClick: l }, { default: e.withCtx(() => [e.createVNode(p)]), _: 1 })]), default: e.withCtx(() => [i.value ? (e.openBlock(), e.createElementBlock("div", t, [e.createVNode(e.unref(n.XMarkdown), { allowHtml: true, markdown: u(o2.item, o2.itemProps["tip-index"]) }, null, 8, ["markdown"])])) : e.createCommentVNode("", true), i.value ? (e.openBlock(true), e.createElementBlock(e.Fragment, { key: 1 }, e.renderList(a(o2.item, o2.itemProps["tip-index"]), (n2, t2) => (e.openBlock(), e.createElementBlock("div", { style: { margin: "5px 10px" }, key: t2, onClick: (e2) => function(e3) {
22
- c("click-doc-agg", e3);
21
+ return e.openBlock(), e.createBlock(k, { placement: "right", trigger: "click", width: "100vh" }, { reference: e.withCtx(() => [e.createVNode(d, { onClick: u }, { default: e.withCtx(() => [e.createVNode(p)]), _: 1 })]), default: e.withCtx(() => [l.value ? (e.openBlock(), e.createElementBlock("div", t, [e.createVNode(e.unref(n.XMarkdown), { allowHtml: true, markdown: a(o2.item, o2.itemProps["tip-index"]) }, null, 8, ["markdown"])])) : e.createCommentVNode("", true), l.value ? (e.openBlock(true), e.createElementBlock(e.Fragment, { key: 1 }, e.renderList(s(o2.item, o2.itemProps["tip-index"]), (n2, t2) => (e.openBlock(), e.createElementBlock("div", { style: { margin: "5px 10px" }, key: t2, onClick: (e2) => function(e3) {
22
+ i("click-doc-agg", e3);
23
23
  }(n2), class: "doc-agg-item" }, e.toDisplayString(n2.doc_name), 9, r))), 128)) : e.createCommentVNode("", true)]), _: 1 });
24
24
  };
25
25
  } });
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  const e = require("vue"), t = require("@element-plus/icons-vue"), o = require("element-plus"), n = require("vue-i18n"), c = { key: 0, class: "footer-wrapper" }, r = { class: "footer-container" }, i = e.defineComponent({ __name: "chat-bubble-footer", props: { item: { type: Object, required: true } }, emits: ["regenerate"], setup(i2, { emit: s }) {
3
- const { t: a } = n.useI18n();
4
- return (n2, l) => {
3
+ const { t: a } = n.useI18n(), l = s;
4
+ return (n2, s2) => {
5
5
  const m = e.resolveComponent("el-button"), u = e.resolveComponent("el-tooltip");
6
- return "ai" !== i2.item.role || i2.item.isRecommend || "thinking" === i2.item.thinkingStatus ? e.createCommentVNode("", true) : (e.openBlock(), e.createElementBlock("div", c, [e.createElementVNode("div", r, [e.createVNode(u, { class: "box-item", effect: "dark", content: n2.$t("chatEmbed.regenerate") }, { default: e.withCtx(() => [e.createVNode(m, { type: "info", icon: e.unref(t.Refresh), size: "small", circle: "", onClick: l[0] || (l[0] = (e2) => {
7
- return t2 = i2.item, void s("regenerate", t2);
6
+ return "ai" !== i2.item.role || i2.item.isRecommend || "thinking" === i2.item.thinkingStatus ? e.createCommentVNode("", true) : (e.openBlock(), e.createElementBlock("div", c, [e.createElementVNode("div", r, [e.createVNode(u, { class: "box-item", effect: "dark", content: n2.$t("chatEmbed.regenerate") }, { default: e.withCtx(() => [e.createVNode(m, { type: "info", icon: e.unref(t.Refresh), size: "small", circle: "", onClick: s2[0] || (s2[0] = (e2) => {
7
+ return t2 = i2.item, void l("regenerate", t2);
8
8
  var t2;
9
- }) }, null, 8, ["icon"])]), _: 1 }, 8, ["content"]), e.createVNode(u, { class: "box-item", effect: "dark", content: n2.$t("chatEmbed.copy") }, { default: e.withCtx(() => [e.createVNode(m, { type: "info", color: "#626aef", icon: e.unref(t.DocumentCopy), size: "small", circle: "", onClick: l[1] || (l[1] = (e2) => function(e3) {
9
+ }) }, null, 8, ["icon"])]), _: 1 }, 8, ["content"]), e.createVNode(u, { class: "box-item", effect: "dark", content: n2.$t("chatEmbed.copy") }, { default: e.withCtx(() => [e.createVNode(m, { type: "info", color: "#626aef", icon: e.unref(t.DocumentCopy), size: "small", circle: "", onClick: s2[1] || (s2[1] = (e2) => function(e3) {
10
10
  if (e3.content)
11
11
  if (navigator.clipboard && "function" == typeof navigator.clipboard.writeText)
12
12
  navigator.clipboard.writeText(e3.content).then(() => {
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
- const e = require("vue"), t = require("../../src/store/modules/chat-ai-store.cjs"), a = require("vue-element-plus-x"), n = require("./util/text-file-util.cjs"), l = require("pinia"), o = require("vue-i18n"), i = require("element-plus"), r = require("./voice/voice.vue.cjs"), u = require("./type.cjs"), c = require("../../src/utils/voice-setting-cache.cjs"), s = require("../../src/utils/common-util.cjs"), d = require("../../src/utils/auth.cjs"), p = { class: "sender-additional-data-tag" }, m = { style: { display: "flex", "align-items": "center", "flex-wrap": "wrap" } }, v = { style: { display: "flex", "align-items": "center", gap: "16px" } }, f = ((t2) => (e.pushScopeId("data-v-6da81be3"), t2 = t2(), e.popScopeId(), t2))(() => e.createElementVNode("div", { class: "ai-generate-tip" }, "内容由AI生成,仅供参考", -1)), h = e.defineComponent({ __name: "chat-sender", props: { loading: { type: Boolean, default: false } }, emits: ["submit-question", "handle-cancel", "view-json", "change-ai-model", "voice-answer", "command-answer"], setup(h2, { expose: g, emit: w }) {
2
+ const e = require("vue"), t = require("../../src/store/modules/chat-ai-store.cjs"), a = require("vue-element-plus-x"), n = require("./util/text-file-util.cjs"), l = require("pinia"), o = require("vue-i18n"), i = require("element-plus"), r = require("./voice/voice.vue.cjs"), u = require("./type.cjs"), c = require("../../src/utils/voice-setting-cache.cjs"), s = require("../../src/utils/common-util.cjs"), d = require("../../src/utils/auth.cjs"), m = { class: "sender-additional-data-tag" }, p = { style: { display: "flex", "align-items": "center", "flex-wrap": "wrap" } }, v = { style: { display: "flex", "align-items": "center", gap: "16px" } }, f = e.defineComponent({ __name: "chat-sender", props: { loading: { type: Boolean, default: false } }, emits: ["submit-question", "handle-cancel", "view-json", "change-ai-model", "voice-answer", "command-answer"], setup(f2, { expose: h, emit: g }) {
3
3
  o.useI18n();
4
- const x = [{ label: "流程体系类", value: u.AI_MODELS.RAGFLOW }, { label: "QMS数据库类", value: u.AI_MODELS.DATABASE }, { label: "DeepSeek问答", value: u.AI_MODELS.DEEPSEEK }, { label: "系统交互", value: u.AI_MODELS.INTERACTION }, { label: "生成PPT", value: u.AI_MODELS.PPT_GENERATION }];
5
- let C = null;
6
- const E = e.ref(false), V = e.ref(""), b = e.ref([]), N = e.ref(""), k = e.ref("ragflow"), A = e.ref(), y = e.ref(), _ = e.ref(window.$vueApp.config.globalProperties.baseAPI + "/component/ai/upload-file/bailian"), I = e.ref([]), S = e.ref(false), D = e.ref(false);
4
+ const w = [{ label: "流程体系类", value: u.AI_MODELS.RAGFLOW }, { label: "QMS数据库类", value: u.AI_MODELS.DATABASE }, { label: "DeepSeek问答", value: u.AI_MODELS.DEEPSEEK }, { label: "系统交互", value: u.AI_MODELS.INTERACTION }, { label: "生成PPT", value: u.AI_MODELS.PPT_GENERATION }];
5
+ let x = null;
6
+ const C = g, E = e.ref(false), V = e.ref(""), b = e.ref([]), N = e.ref(""), k = e.ref("ragflow"), A = e.ref(), y = e.ref(), _ = e.ref(window.$vueApp.config.globalProperties.baseAPI + "/component/ai/upload-file/bailian"), I = e.ref([]), D = e.ref(false), S = e.ref(false);
7
7
  function R() {
8
8
  try {
9
- window.parent && window.parent !== window && (window.parent.ChatAiStore = C), window.top && window.top !== window && (window.top.ChatAiStore = C), window.ChatAiStore = C;
9
+ window.parent && window.parent !== window && (window.parent.ChatAiStore = x), window.top && window.top !== window && (window.top.ChatAiStore = x), window.ChatAiStore = x;
10
10
  } catch (e2) {
11
11
  console.error("Failed to initialize ChatAiStore:", e2);
12
12
  }
@@ -16,7 +16,7 @@ const e = require("vue"), t = require("../../src/store/modules/chat-ai-store.cjs
16
16
  !function() {
17
17
  try {
18
18
  let e2 = l.getActivePinia();
19
- e2 || (e2 = l.createPinia(), l.setActivePinia(e2), window.$vueApp && window.$vueApp.use(e2)), C = t();
19
+ e2 || (e2 = l.createPinia(), l.setActivePinia(e2), window.$vueApp && window.$vueApp.use(e2)), x = t();
20
20
  } catch (e2) {
21
21
  console.error("Failed to initialize Pinia or ChatAiStore:", e2);
22
22
  }
@@ -32,20 +32,20 @@ const e = require("vue"), t = require("../../src/store/modules/chat-ai-store.cjs
32
32
  null == e2 ? (N.value, t2 = N.value.trim()) : t2 = e2.trim(), B = t2;
33
33
  let a2 = { aiModel: k.value, question: t2 };
34
34
  if (k.value === u.AI_MODELS.DEEPSEEK || k.value === u.AI_MODELS.PPT_GENERATION) {
35
- const e3 = C.getActiveMenu();
35
+ const e3 = x.getActiveMenu();
36
36
  let n2 = "";
37
37
  I.value.length > 0 && (n2 = I.value.map((e4) => e4.id).join(","));
38
38
  let l2 = [];
39
39
  I.value.length > 0 && (l2 = I.value.map((e4) => ({ fileId: e4.id, name: e4.name }))), I.value = [], a2 = { aiModel: k.value, question: t2, fileId: n2, fileInfos: l2, additionalData: b.value, additionalDataLabel: V.value, menuName: (e3 == null ? void 0 : e3.menuName) || "" };
40
40
  }
41
- w("submit-question", a2), N.value = "", L();
41
+ C("submit-question", a2), N.value = "", L();
42
42
  }
43
43
  function j() {
44
- w("handle-cancel");
44
+ C("handle-cancel");
45
45
  }
46
46
  function q() {
47
47
  var _a;
48
- const e2 = C.getActiveMenu(), t2 = C.getActiveMenuPageInfo();
48
+ const e2 = x.getActiveMenu(), t2 = x.getActiveMenuPageInfo();
49
49
  if ("list" === t2.pageType) {
50
50
  const a2 = t2.listRefs[0].ref.getAiChatListData();
51
51
  a2 && a2.length > 0 && (b.value = a2), ((_a = b.value) == null ? void 0 : _a.length) > 0 && (V.value = `已附加【${e2.menuName}】表格数据 (${b.value.length} 条记录)`, E.value = true);
@@ -62,18 +62,18 @@ const e = require("vue"), t = require("../../src/store/modules/chat-ai-store.cjs
62
62
  b.value = [], V.value = "", E.value = false;
63
63
  }
64
64
  function F() {
65
- w("view-json", b.value);
65
+ C("view-json", b.value);
66
66
  }
67
67
  function $() {
68
68
  try {
69
- const e2 = C.getActiveMenu(), t2 = n.generateFileName((e2 == null ? void 0 : e2.menuName) || "data");
69
+ const e2 = x.getActiveMenu(), t2 = n.generateFileName((e2 == null ? void 0 : e2.menuName) || "data");
70
70
  n.downloadJsonFile(b.value, t2);
71
71
  } catch (e2) {
72
72
  console.error("下载失败:", e2);
73
73
  }
74
74
  }
75
75
  function z(e2) {
76
- e2 === u.AI_MODELS.DEEPSEEK && I.value.length > 0 ? A.value.openHeader() : A.value.closeHeader(), e2 === u.AI_MODELS.DEEPSEEK || e2 === u.AI_MODELS.PPT_GENERATION ? (S.value = true, D.value = true) : (S.value = false, D.value = false, L()), w("change-ai-model", e2);
76
+ e2 === u.AI_MODELS.DEEPSEEK && I.value.length > 0 ? A.value.openHeader() : A.value.closeHeader(), e2 === u.AI_MODELS.DEEPSEEK || e2 === u.AI_MODELS.PPT_GENERATION ? (D.value = true, S.value = true) : (D.value = false, S.value = false, L()), C("change-ai-model", e2);
77
77
  }
78
78
  function K(e2) {
79
79
  I.value.push({ id: e2.uid, uid: e2.uid, name: e2.name, percent: 0, status: "uploading", showDelIcon: true, maxWidth: "150px" });
@@ -115,7 +115,7 @@ const e = require("vue"), t = require("../../src/store/modules/chat-ai-store.cjs
115
115
  const n2 = "ai__" + e2;
116
116
  return a2 = a2.indexOf("?") > 0 ? a2 + "&" + n2 + "=" + t2 : a2 + "?" + n2 + "=" + t2;
117
117
  }
118
- return g({ parseCommand: function() {
118
+ return h({ parseCommand: function() {
119
119
  c.getVoiceSetting().then((e2) => {
120
120
  c.parseVoiceMsg(B, e2, M, P, O).then((e3) => {
121
121
  if ("ok" === e3.status) {
@@ -128,18 +128,18 @@ const e = require("vue"), t = require("../../src/store/modules/chat-ai-store.cjs
128
128
  "_jump_param" !== a3 && (t2 = W(e4, a3, t2));
129
129
  }
130
130
  const a2 = M ? M.command : "";
131
- M = void 0, O = {}, P = {}, w("command-answer", { content: e3.commandResult ? e3.commandResult : e3.paramResult, url: t2, paramsValue: O, command: a2 }), window.open(s.getRelativeBaseUrl(t2));
131
+ M = void 0, O = {}, P = {}, C("command-answer", { content: e3.commandResult ? e3.commandResult : e3.paramResult, url: t2, paramsValue: O, command: a2 }), window.open(s.getRelativeBaseUrl(t2));
132
132
  } else
133
- w("command-answer", { content: e3.commandResult ? e3.commandResult : e3.paramResult });
133
+ C("command-answer", { content: e3.commandResult ? e3.commandResult : e3.paramResult });
134
134
  } else
135
- w("command-answer", { content: e3.commandResult ? e3.commandResult : e3.paramResult });
135
+ C("command-answer", { content: e3.commandResult ? e3.commandResult : e3.paramResult });
136
136
  });
137
137
  });
138
138
  }, newChatSession: function() {
139
139
  k.value === u.AI_MODELS.DEEPSEEK && (I.value = []), N.value = "";
140
140
  } }), (t2, n2) => {
141
- const l2 = e.resolveComponent("Paperclip"), o2 = e.resolveComponent("el-icon"), i2 = e.resolveComponent("super-icon"), u2 = e.resolveComponent("el-tooltip"), c2 = e.resolveComponent("el-tag"), s2 = e.resolveComponent("el-option"), g2 = e.resolveComponent("el-select"), w2 = e.resolveComponent("SuperIcon"), C2 = e.resolveComponent("el-upload"), b2 = e.resolveComponent("el-divider"), R2 = e.resolveComponent("el-button"), B2 = e.resolveDirective("loading");
142
- return e.openBlock(), e.createElementBlock(e.Fragment, null, [E.value ? (e.openBlock(), e.createBlock(c2, { key: 0, type: "primary" }, { default: e.withCtx(() => [e.createElementVNode("div", p, [e.createVNode(o2, null, { default: e.withCtx(() => [e.createVNode(l2)]), _: 1 }), e.createTextVNode(" " + e.toDisplayString(V.value) + " ", 1), e.createVNode(u2, { content: "预览" }, { default: e.withCtx(() => [e.createVNode(i2, { iconValue: "amb-color-icon-yulan", style: { cursor: "pointer" }, onClick: F })]), _: 1 }), e.createVNode(u2, { content: "下载" }, { default: e.withCtx(() => [e.createVNode(i2, { iconValue: "amb-color-icon-xiazai", style: { cursor: "pointer" }, onClick: $ })]), _: 1 }), e.createVNode(u2, { content: "移除" }, { default: e.withCtx(() => [e.createVNode(i2, { iconValue: "amb-color-icon-shanchu", style: { cursor: "pointer" }, onClick: L })]), _: 1 })])]), _: 1 })) : e.createCommentVNode("", true), e.createVNode(e.unref(a.Sender), { modelValue: N.value, "onUpdate:modelValue": n2[2] || (n2[2] = (e2) => N.value = e2), variant: "updown", "auto-size": { minRows: 2, maxRows: 5 }, clearable: "", ref_key: "senderRef", ref: A, submitType: "enter", loading: h2.loading, "allow-speech": "", onSubmit: n2[3] || (n2[3] = (e2) => T()), placeholder: "请您描述问题" }, { header: e.withCtx(() => [e.createVNode(e.unref(a.Attachments), { items: I.value, drag: "", overflow: "scrollX", "hide-upload": true }, { "file-list": e.withCtx((t3) => [(e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(t3.items, (t4) => (e.openBlock(), e.createBlock(e.unref(a.FilesCard), { key: t4.id, maxWidth: "150px", style: { margin: "10px 5px" }, name: t4.name, percent: t4.percent, uid: t4.id, status: t4.status, "show-del-icon": "", "img-variant": "square", onDelete: U }, null, 8, ["name", "percent", "uid", "status"]))), 128))]), _: 1 }, 8, ["items"])]), prefix: e.withCtx(() => [e.createElementVNode("div", m, [e.createVNode(g2, { style: { width: "146px", height: "32px" }, plain: "", modelValue: k.value, "onUpdate:modelValue": n2[0] || (n2[0] = (e2) => k.value = e2), onChange: z }, { default: e.withCtx(() => [(e.openBlock(), e.createElementBlock(e.Fragment, null, e.renderList(x, (t3) => e.createVNode(s2, { key: t3.value, label: t3.label, value: t3.value }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue"])])]), "action-list": e.withCtx(() => [e.createElementVNode("div", v, [S.value ? (e.openBlock(), e.createBlock(u2, { key: 0, content: "上传附件" }, { default: e.withCtx(() => [e.createVNode(C2, { ref_key: "uploadRef", ref: y, action: _.value, multiple: true, headers: { Authorization: e.unref(d.getToken)() }, accept: ".txt,.docx,.pdf,.xlsx,.epub,.mobi,.md,.csv,.json,.bmp,.png,.jpg,.jpeg,.gif,.pdf", "show-file-list": false, "on-progress": G, "on-success": H, "before-upload": K }, { default: e.withCtx(() => [e.createVNode(w2, { iconValue: "amb-icon-fujianshangchuan" })]), _: 1 }, 8, ["action", "headers"])]), _: 1 })) : e.createCommentVNode("", true), D.value ? (e.openBlock(), e.createBlock(u2, { key: 1, content: "附加页面数据" }, { default: e.withCtx(() => [e.createVNode(w2, { onClick: q, iconValue: "amb-icon-fujiabiaogeshu", class: "send-icon" })]), _: 1 })) : e.createCommentVNode("", true), e.createVNode(u2, { content: "语音" }, { default: e.withCtx(() => [e.createVNode(r, { onUserMessage: T, class: "send-icon" })]), _: 1 }), e.createVNode(b2, { direction: "vertical" }), h2.loading ? (e.openBlock(), e.createBlock(u2, { key: 2, content: "取消" }, { default: e.withCtx(() => [e.withDirectives((e.openBlock(), e.createBlock(R2, { type: "primary", style: { "border-radius": "10px" }, plain: "", round: "", onClick: j }, { default: e.withCtx(() => [e.createTextVNode(" 取消 ")]), _: 1 })), [[B2, h2.loading]])]), _: 1 })) : (e.openBlock(), e.createBlock(R2, { key: 3, style: { "border-radius": "10px" }, disabled: !N.value || !N.value.trim(), plain: "", circle: "", round: "", onClick: n2[1] || (n2[1] = (e2) => T()) }, { default: e.withCtx(() => [e.createVNode(w2, { iconValue: "amb-icon-fasong2" })]), _: 1 }, 8, ["disabled"]))])]), _: 1 }, 8, ["modelValue", "loading"]), f], 64);
141
+ const l2 = e.resolveComponent("Paperclip"), o2 = e.resolveComponent("el-icon"), i2 = e.resolveComponent("super-icon"), u2 = e.resolveComponent("el-tooltip"), c2 = e.resolveComponent("el-tag"), s2 = e.resolveComponent("el-option"), h2 = e.resolveComponent("el-select"), g2 = e.resolveComponent("SuperIcon"), x2 = e.resolveComponent("el-upload"), C2 = e.resolveComponent("el-divider"), b2 = e.resolveComponent("el-button"), R2 = e.resolveDirective("loading");
142
+ return e.openBlock(), e.createElementBlock(e.Fragment, null, [E.value ? (e.openBlock(), e.createBlock(c2, { key: 0, type: "primary" }, { default: e.withCtx(() => [e.createElementVNode("div", m, [e.createVNode(o2, null, { default: e.withCtx(() => [e.createVNode(l2)]), _: 1 }), e.createTextVNode(" " + e.toDisplayString(V.value) + " ", 1), e.createVNode(u2, { content: "预览" }, { default: e.withCtx(() => [e.createVNode(i2, { iconValue: "amb-color-icon-yulan", style: { cursor: "pointer" }, onClick: F })]), _: 1 }), e.createVNode(u2, { content: "下载" }, { default: e.withCtx(() => [e.createVNode(i2, { iconValue: "amb-color-icon-xiazai", style: { cursor: "pointer" }, onClick: $ })]), _: 1 }), e.createVNode(u2, { content: "移除" }, { default: e.withCtx(() => [e.createVNode(i2, { iconValue: "amb-color-icon-shanchu", style: { cursor: "pointer" }, onClick: L })]), _: 1 })])]), _: 1 })) : e.createCommentVNode("", true), e.createVNode(e.unref(a.Sender), { modelValue: N.value, "onUpdate:modelValue": n2[2] || (n2[2] = (e2) => N.value = e2), variant: "updown", "auto-size": { minRows: 2, maxRows: 5 }, clearable: "", ref_key: "senderRef", ref: A, submitType: "enter", loading: f2.loading, "allow-speech": "", onSubmit: n2[3] || (n2[3] = (e2) => T()), placeholder: "请您描述问题" }, { header: e.withCtx(() => [e.createVNode(e.unref(a.Attachments), { items: I.value, drag: "", overflow: "scrollX", "hide-upload": true }, { "file-list": e.withCtx((t3) => [(e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(t3.items, (t4) => (e.openBlock(), e.createBlock(e.unref(a.FilesCard), { key: t4.id, maxWidth: "150px", style: { margin: "10px 5px" }, name: t4.name, percent: t4.percent, uid: t4.id, status: t4.status, "show-del-icon": "", "img-variant": "square", onDelete: U }, null, 8, ["name", "percent", "uid", "status"]))), 128))]), _: 1 }, 8, ["items"])]), prefix: e.withCtx(() => [e.createElementVNode("div", p, [e.createVNode(h2, { style: { width: "146px", height: "32px" }, plain: "", modelValue: k.value, "onUpdate:modelValue": n2[0] || (n2[0] = (e2) => k.value = e2), onChange: z }, { default: e.withCtx(() => [(e.openBlock(), e.createElementBlock(e.Fragment, null, e.renderList(w, (t3) => e.createVNode(s2, { key: t3.value, label: t3.label, value: t3.value }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue"])])]), "action-list": e.withCtx(() => [e.createElementVNode("div", v, [D.value ? (e.openBlock(), e.createBlock(u2, { key: 0, content: "上传附件" }, { default: e.withCtx(() => [e.createVNode(x2, { ref_key: "uploadRef", ref: y, action: _.value, multiple: true, headers: { Authorization: e.unref(d.getToken)() }, accept: ".txt,.docx,.pdf,.xlsx,.epub,.mobi,.md,.csv,.json,.bmp,.png,.jpg,.jpeg,.gif,.pdf", "show-file-list": false, "on-progress": G, "on-success": H, "before-upload": K }, { default: e.withCtx(() => [e.createVNode(g2, { iconValue: "amb-icon-fujianshangchuan" })]), _: 1 }, 8, ["action", "headers"])]), _: 1 })) : e.createCommentVNode("", true), S.value ? (e.openBlock(), e.createBlock(u2, { key: 1, content: "附加页面数据" }, { default: e.withCtx(() => [e.createVNode(g2, { onClick: q, iconValue: "amb-icon-fujiabiaogeshu", class: "send-icon" })]), _: 1 })) : e.createCommentVNode("", true), e.createVNode(u2, { content: "语音" }, { default: e.withCtx(() => [e.createVNode(r, { onUserMessage: T, class: "send-icon" })]), _: 1 }), e.createVNode(C2, { direction: "vertical" }), f2.loading ? (e.openBlock(), e.createBlock(u2, { key: 2, content: "取消" }, { default: e.withCtx(() => [e.withDirectives((e.openBlock(), e.createBlock(b2, { type: "primary", style: { "border-radius": "10px" }, plain: "", round: "", onClick: j }, { default: e.withCtx(() => [...n2[4] || (n2[4] = [e.createTextVNode(" 取消 ", -1)])]), _: 1 })), [[R2, f2.loading]])]), _: 1 })) : (e.openBlock(), e.createBlock(b2, { key: 3, style: { "border-radius": "10px" }, disabled: !N.value || !N.value.trim(), plain: "", circle: "", round: "", onClick: n2[1] || (n2[1] = (e2) => T()) }, { default: e.withCtx(() => [e.createVNode(g2, { iconValue: "amb-icon-fasong2" })]), _: 1 }, 8, ["disabled"]))])]), _: 1 }, 8, ["modelValue", "loading"]), n2[5] || (n2[5] = e.createElementVNode("div", { class: "ai-generate-tip" }, "内容由AI生成,仅供参考", -1))], 64);
143
143
  };
144
144
  } });
145
- module.exports = h;
145
+ module.exports = f;
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
  const e = require("vue"), t = require("element-plus"), r = require("echarts/core"), a = require("vue-echarts"), o = require("echarts/renderers"), n = require("echarts/charts"), s = require("echarts/components"), i = { style: { "max-height": "700px" } }, l = { key: 0, style: { "text-align": "center", color: "#999", "margin-top": "20px" } }, p = e.defineComponent({ __name: "answer-auto-chart", props: { chartProps: { type: Object, default: {} } }, setup(p2) {
3
- const c = p2;
4
3
  r.use([o.CanvasRenderer, n.LineChart, n.BarChart, n.PieChart, n.RadarChart, s.GridComponent, s.LegendComponent, s.TitleComponent, s.TooltipComponent, s.ToolboxComponent, s.DataZoomComponent]);
5
- const u = e.ref(null), h = e.ref({}), m = e.ref(false), x = e.ref("");
4
+ const c = p2, u = e.ref(null), h = e.ref({}), m = e.ref(false), x = e.ref("");
6
5
  let y = {};
7
6
  c.chartProps.params && (y = JSON.parse(c.chartProps.params));
8
7
  let d = [], f = {};