agilebuilder-ui 1.1.65-tmp26 → 1.1.65-tmp27

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 (133) hide show
  1. package/dist/index.full.min.js +1115 -1102
  2. package/dist/style.css +36 -20
  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/style.css +933 -917
  48. package/es/super-grid/src/columns-config.vue.mjs +1 -1
  49. package/es/super-grid/src/components/grid-radio-input.vue.mjs +5 -5
  50. package/es/super-grid/src/components/select-input.vue.mjs +55 -55
  51. package/es/super-grid/src/row-detail.vue.mjs +1 -1
  52. package/es/super-grid/src/search-form-advancedQuery.vue.mjs +1 -1
  53. package/es/super-grid/src/search-form-number.vue.mjs +4 -5
  54. package/es/super-grid/src/super-grid.vue.mjs +1 -1
  55. package/es/super-nine-grid/src/search-form-number.vue.mjs +4 -5
  56. package/es/super-nine-grid/src/search-form.vue.mjs +1 -1
  57. package/es/super-nine-grid/src/super-nine-grid.vue.mjs +1 -1
  58. package/es/workgroup-tree-inline/src/workgroup-tree-inline.vue.mjs +8 -8
  59. package/es/workgroup-tree-mobile/src/dept-result.vue.mjs +4 -3
  60. package/es/workgroup-tree-mobile/src/workgroup-tree-app.vue.mjs +8 -7
  61. package/es/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.mjs +51 -51
  62. package/es/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.mjs +5 -5
  63. package/es/workgroup-user-tree-mobile/src/dept-path.vue.mjs +7 -6
  64. package/es/workgroup-user-tree-mobile/src/dept-result.vue.mjs +4 -3
  65. package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.mjs +7 -6
  66. package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.mjs +65 -65
  67. package/es/year-range-picker/src/year-range-picker.vue.mjs +1 -1
  68. package/lib/IntervalSelection/src/sectionDate.vue.cjs +6 -6
  69. package/lib/chat-embed/src/chat-addition-data.vue2.cjs +13 -10
  70. package/lib/chat-embed/src/chat-ai-answer-tip.vue2.cjs +8 -8
  71. package/lib/chat-embed/src/chat-bubble-footer.vue2.cjs +5 -5
  72. package/lib/chat-embed/src/chat-sender.vue2.cjs +20 -20
  73. package/lib/chat-embed/src/components/answer-auto-chart.vue2.cjs +1 -2
  74. package/lib/chat-embed/src/components/answer-interaction-data.vue2.cjs +5 -6
  75. package/lib/chat-embed/src/components/history-detail.vue2.cjs +18 -18
  76. package/lib/chat-embed/src/header.vue2.cjs +17 -17
  77. package/lib/chat-embed/src/index.vue2.cjs +123 -123
  78. package/lib/chat-embed/src/recommendation-message.vue2.cjs +7 -4
  79. package/lib/chat-embed/src/sidebar-item.vue2.cjs +35 -35
  80. package/lib/chat-embed/src/voice/voice.vue.cjs +36 -35
  81. package/lib/date-picker-range/index.vue2.cjs +11 -11
  82. package/lib/department-tree-mobile/src/department-tree-app.vue.cjs +7 -6
  83. package/lib/department-tree-mobile/src/department-tree-inline-app.vue.cjs +53 -53
  84. package/lib/department-tree-mobile/src/dept-path.vue.cjs +6 -6
  85. package/lib/department-tree-mobile/src/dept-result.vue.cjs +7 -6
  86. package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.cjs +5 -5
  87. package/lib/department-user-tree-mobile/src/department-user-tree-app.vue.cjs +9 -8
  88. package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue.cjs +61 -61
  89. package/lib/department-user-tree-mobile/src/dept-path.vue.cjs +6 -6
  90. package/lib/department-user-tree-mobile/src/dept-result.vue.cjs +4 -3
  91. package/lib/empty-state/index.vue.cjs +2 -2
  92. package/lib/fs-upload/src/fs-upload-multi.vue.cjs +1 -1
  93. package/lib/fs-upload-list/src/fs-upload-list.vue.cjs +1 -1
  94. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.cjs +12 -12
  95. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.cjs +24 -24
  96. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.cjs +17 -17
  97. package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue.cjs +12 -12
  98. package/lib/fs-upload-new/src/fs-button-upload.vue2.cjs +23 -23
  99. package/lib/fs-upload-new/src/fs-drag-upload.vue2.cjs +23 -23
  100. package/lib/fs-upload-new/src/fs-preview-new.vue2.cjs +36 -36
  101. package/lib/fs-upload-new/src/fs-upload-new.vue.cjs +15 -15
  102. package/lib/json-view/json-view-dialog.vue.cjs +6 -6
  103. package/lib/multipart-upload/src/multipart-upload-form.vue.cjs +1 -1
  104. package/lib/multipart-upload/src/multipart-upload-list.vue.cjs +5 -5
  105. package/lib/row-form/index.vue2.cjs +31 -31
  106. package/lib/row-form/operation.vue.cjs +13 -13
  107. package/lib/secret-info/index.vue.cjs +1 -1
  108. package/lib/src/components/Affix/index.vue2.cjs +28 -28
  109. package/lib/src/components/Scrollbar/index.vue.cjs +22 -22
  110. package/lib/src/views/error-page/401.vue.cjs +7 -7
  111. package/lib/src/views/error-page/404.vue.cjs +4 -4
  112. package/lib/style.css +955 -939
  113. package/lib/super-grid/src/columns-config.vue.cjs +1 -1
  114. package/lib/super-grid/src/components/grid-radio-input.vue.cjs +5 -5
  115. package/lib/super-grid/src/components/select-input.vue.cjs +56 -56
  116. package/lib/super-grid/src/row-detail.vue.cjs +1 -1
  117. package/lib/super-grid/src/search-form-advancedQuery.vue.cjs +1 -1
  118. package/lib/super-grid/src/search-form-number.vue.cjs +6 -6
  119. package/lib/super-grid/src/super-grid.vue.cjs +1 -1
  120. package/lib/super-nine-grid/src/search-form-number.vue.cjs +6 -6
  121. package/lib/super-nine-grid/src/search-form.vue.cjs +1 -1
  122. package/lib/super-nine-grid/src/super-nine-grid.vue.cjs +1 -1
  123. package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue.cjs +5 -5
  124. package/lib/workgroup-tree-mobile/src/dept-result.vue.cjs +4 -3
  125. package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue.cjs +9 -8
  126. package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.cjs +48 -48
  127. package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.cjs +5 -5
  128. package/lib/workgroup-user-tree-mobile/src/dept-path.vue.cjs +6 -6
  129. package/lib/workgroup-user-tree-mobile/src/dept-result.vue.cjs +4 -3
  130. package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.cjs +9 -8
  131. package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.cjs +63 -63
  132. package/lib/year-range-picker/src/year-range-picker.vue.cjs +1 -1
  133. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as a, resolveComponent as l, resolveDirective as t, openBlock as r, createElementBlock as u, createVNode as o, withCtx as i, createBlock as s, createCommentVNode as n, Fragment as d, renderList as c, createTextVNode as p, withDirectives as v, createElementVNode as h, toDisplayString as m, unref as f, vShow as b } from "vue";
1
+ import { defineComponent as e, ref as a, resolveComponent as l, resolveDirective as t, openBlock as r, createElementBlock as u, createVNode as o, withCtx as i, createBlock as s, createCommentVNode as d, Fragment as n, renderList as c, createTextVNode as p, withDirectives as v, createElementVNode as h, toDisplayString as m, unref as f, vShow as b } from "vue";
2
2
  import { ElMessage as y } from "element-plus";
3
3
  import { use as x } from "echarts/core";
4
4
  import g from "vue-echarts";
@@ -8,9 +8,8 @@ import { InfoFilled as N } from "@element-plus/icons-vue";
8
8
  import { GridComponent as O, LegendComponent as P, TitleComponent as I, TooltipComponent as C, ToolboxComponent as D, DataZoomComponent as E } from "echarts/components";
9
9
  import T from "../util/mcp-utils.mjs";
10
10
  const U = { style: { "max-height": "700px" } }, z = { style: { "align-items": "center" } }, S = { class: "dialog-footer" }, j = e({ __name: "answer-interaction-data", props: { chartProps: { type: Object, default: {} } }, setup(e2) {
11
- const j2 = e2;
12
11
  x([k, _, w, V, A, O, P, I, C, D, E]);
13
- const J = a(null), L = a("table"), M = a(false), B = a({ chartType: "barLine", series: [{ type: "bar", yAxis: "", calculation: "count" }] }), F = a([]), R = {}, X = {}, Z = a(false), $ = a(""), q = a(), G = a([]), H = a(false), K = a([]), Q = a({}), W = a({}), Y = a();
12
+ const j2 = e2, J = a(null), L = a("table"), M = a(false), B = a({ chartType: "barLine", series: [{ type: "bar", yAxis: "", calculation: "count" }] }), F = a([]), R = {}, X = {}, Z = a(false), $ = a(""), q = a(), G = a([]), H = a(false), K = a([]), Q = a({}), W = a({}), Y = a();
14
13
  if (j2.chartProps) {
15
14
  let e3 = null;
16
15
  if (j2.chartProps.datalist ? e3 = JSON.parse(j2.chartProps.datalist) : j2.chartProps["data-list"] && (e3 = JSON.parse(j2.chartProps["data-list"])), e3 && (F.value = e3, F.value.length > 0)) {
@@ -82,11 +81,11 @@ const U = { style: { "max-height": "700px" } }, z = { style: { "align-items": "c
82
81
  }
83
82
  return (e3, a2) => {
84
83
  const x2 = l("el-radio-button"), k2 = l("el-radio-group"), _2 = l("el-form-item"), w2 = l("el-option"), V2 = l("el-select"), A2 = l("el-button"), O2 = l("el-col"), P2 = l("Plus"), I2 = l("el-icon"), C2 = l("Delete"), D2 = l("el-form"), E2 = l("el-table-column"), j3 = l("el-link"), te = l("el-table"), re = l("el-dialog"), ue = t("loading");
85
- return r(), u("div", U, [o(D2, { style: { "max-height": "200px", "overflow-y": "auto" }, size: "small", inline: true, model: B.value, "label-width": "60" }, { default: i(() => [o(O2, null, { default: i(() => [o(_2, { label: "展示方式" }, { default: i(() => [o(k2, { modelValue: L.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => L.value = e4), size: "small" }, { default: i(() => [o(x2, { label: "表格", value: "table" }), o(x2, { label: "图表", value: "chart" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), "chart" === L.value ? (r(), s(_2, { key: 0, label: "图表类型" }, { default: i(() => [o(V2, { style: { width: "100px" }, modelValue: B.value.chartType, "onUpdate:modelValue": a2[1] || (a2[1] = (e4) => B.value.chartType = e4), placeholder: "选择图标类型", onChange: ee, clearable: "" }, { default: i(() => [o(w2, { label: "柱折图", value: "barLine" }), o(w2, { label: "饼状图", value: "pie" }), o(w2, { label: "雷达图", value: "radar" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : n("", true), "chart" === L.value ? (r(), s(_2, { key: 1, label: "维度" }, { default: i(() => [o(V2, { style: { width: "150px" }, modelValue: B.value.xAxis, "onUpdate:modelValue": a2[2] || (a2[2] = (e4) => B.value.xAxis = e4), placeholder: "选择图标类型", clearable: "" }, { default: i(() => [(r(true), u(d, null, c(K.value, (e4) => (r(), s(w2, { key: e4, label: e4, value: e4 }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : n("", true), "chart" === L.value ? (r(), s(_2, { key: 2 }, { default: i(() => [o(A2, { type: "primary", onClick: ae }, { default: i(() => [p("生成图表")]), _: 1 })]), _: 1 })) : n("", true)]), _: 1 }), "chart" === L.value ? (r(true), u(d, { key: 0 }, c(B.value.series, (e4, a3) => (r(), u("div", { key: a3 }, ["barLine" === B.value.chartType ? (r(), s(_2, { key: 0, label: "类型" }, { default: i(() => [o(V2, { style: { width: "100px" }, modelValue: e4.type, "onUpdate:modelValue": (a4) => e4.type = a4, placeholder: "选择显示类型", clearable: "" }, { default: i(() => [o(w2, { label: "柱形", value: "bar" }), o(w2, { label: "折线", value: "line" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1024)) : n("", true), o(_2, { label: "数据项" }, { default: i(() => [o(V2, { style: { width: "150px" }, modelValue: e4.yAxis, "onUpdate:modelValue": (a4) => e4.yAxis = a4, placeholder: "选择数据项", clearable: "" }, { default: i(() => [(r(true), u(d, null, c(K.value, (e5) => (r(), s(w2, { key: e5, label: e5, value: e5 }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1024), o(_2, { label: "计算方式" }, { default: i(() => [o(V2, { style: { width: "100px" }, modelValue: e4.calculation, "onUpdate:modelValue": (a4) => e4.calculation = a4, placeholder: "选择计算方式", clearable: "" }, { default: i(() => [o(w2, { label: "计数", value: "count" }), o(w2, { label: "求和", value: "sum" }), o(w2, { label: "平均值", value: "average" }), o(w2, { label: "最大值", value: "max" }), o(w2, { label: "最小值", value: "min" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1024), "pie" !== B.value.chartType ? (r(), s(_2, { key: 1 }, { default: i(() => [o(I2, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px" }, onClick: (e5) => {
84
+ return r(), u("div", U, [o(D2, { style: { "max-height": "200px", "overflow-y": "auto" }, size: "small", inline: true, model: B.value, "label-width": "60" }, { default: i(() => [o(O2, null, { default: i(() => [o(_2, { label: "展示方式" }, { default: i(() => [o(k2, { modelValue: L.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => L.value = e4), size: "small" }, { default: i(() => [o(x2, { label: "表格", value: "table" }), o(x2, { label: "图表", value: "chart" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), "chart" === L.value ? (r(), s(_2, { key: 0, label: "图表类型" }, { default: i(() => [o(V2, { style: { width: "100px" }, modelValue: B.value.chartType, "onUpdate:modelValue": a2[1] || (a2[1] = (e4) => B.value.chartType = e4), placeholder: "选择图标类型", onChange: ee, clearable: "" }, { default: i(() => [o(w2, { label: "柱折图", value: "barLine" }), o(w2, { label: "饼状图", value: "pie" }), o(w2, { label: "雷达图", value: "radar" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : d("", true), "chart" === L.value ? (r(), s(_2, { key: 1, label: "维度" }, { default: i(() => [o(V2, { style: { width: "150px" }, modelValue: B.value.xAxis, "onUpdate:modelValue": a2[2] || (a2[2] = (e4) => B.value.xAxis = e4), placeholder: "选择图标类型", clearable: "" }, { default: i(() => [(r(true), u(n, null, c(K.value, (e4) => (r(), s(w2, { key: e4, label: e4, value: e4 }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : d("", true), "chart" === L.value ? (r(), s(_2, { key: 2 }, { default: i(() => [o(A2, { type: "primary", onClick: ae }, { default: i(() => [...a2[5] || (a2[5] = [p("生成图表", -1)])]), _: 1 })]), _: 1 })) : d("", true)]), _: 1 }), "chart" === L.value ? (r(true), u(n, { key: 0 }, c(B.value.series, (e4, a3) => (r(), u("div", { key: a3 }, ["barLine" === B.value.chartType ? (r(), s(_2, { key: 0, label: "类型" }, { default: i(() => [o(V2, { style: { width: "100px" }, modelValue: e4.type, "onUpdate:modelValue": (a4) => e4.type = a4, placeholder: "选择显示类型", clearable: "" }, { default: i(() => [o(w2, { label: "柱形", value: "bar" }), o(w2, { label: "折线", value: "line" })]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1024)) : d("", true), o(_2, { label: "数据项" }, { default: i(() => [o(V2, { style: { width: "150px" }, modelValue: e4.yAxis, "onUpdate:modelValue": (a4) => e4.yAxis = a4, placeholder: "选择数据项", clearable: "" }, { default: i(() => [(r(true), u(n, null, c(K.value, (e5) => (r(), s(w2, { key: e5, label: e5, value: e5 }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1024), o(_2, { label: "计算方式" }, { default: i(() => [o(V2, { style: { width: "100px" }, modelValue: e4.calculation, "onUpdate:modelValue": (a4) => e4.calculation = a4, placeholder: "选择计算方式", clearable: "" }, { default: i(() => [o(w2, { label: "计数", value: "count" }), o(w2, { label: "求和", value: "sum" }), o(w2, { label: "平均值", value: "average" }), o(w2, { label: "最大值", value: "max" }), o(w2, { label: "最小值", value: "min" })]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1024), "pie" !== B.value.chartType ? (r(), s(_2, { key: 1 }, { default: i(() => [o(I2, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px" }, onClick: (e5) => {
86
85
  B.value.series.push({ type: "bar", yAxis: "", calculation: "count" });
87
- } }, { default: i(() => [o(P2)]), _: 2 }, 1032, ["onClick"]), o(I2, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (e5) => function(e6) {
86
+ } }, { default: i(() => [o(P2)]), _: 1 }, 8, ["onClick"]), o(I2, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (e5) => function(e6) {
88
87
  B.value.series.length > 1 ? B.value.series.splice(e6, 1) : y.warning("至少保留一个系列");
89
- }(a3) }, { default: i(() => [o(C2)]), _: 2 }, 1032, ["onClick"])]), _: 2 }, 1024)) : n("", true)]))), 128)) : n("", true)]), _: 1 }, 8, ["model"]), "table" === L.value ? (r(), s(te, { key: 0, size: "small", data: F.value, fit: "", border: true, resizable: true, style: { width: "100%" }, "max-height": "500px" }, { default: i(() => [Y.value && Y.value.length > 0 ? (r(), u(d, { key: 0 }, [o(E2, { type: "index", width: "50", label: "序号" }), v(o(E2, { align: "center", fit: "", label: "关联数据", width: "180" }, { default: i((e4) => [(r(true), u(d, null, c(Y.value, (a3) => (r(), u("div", null, [h("div", z, [o(j3, { onClick: (l2) => function(e5, a4, l3) {
88
+ }(a3) }, { default: i(() => [o(C2)]), _: 1 }, 8, ["onClick"])]), _: 2 }, 1024)) : d("", true)]))), 128)) : d("", true)]), _: 1 }, 8, ["model"]), "table" === L.value ? (r(), s(te, { key: 0, size: "small", data: F.value, fit: "", border: true, resizable: true, style: { width: "100%" }, "max-height": "500px" }, { default: i(() => [Y.value && Y.value.length > 0 ? (r(), u(n, { key: 0 }, [o(E2, { type: "index", width: "50", label: "序号" }), v(o(E2, { align: "center", fit: "", label: "关联数据", width: "180" }, { default: i((e4) => [(r(true), u(n, null, c(Y.value, (l2) => (r(), u("div", null, [h("div", z, [o(j3, { onClick: (a3) => function(e5, a4, l3) {
90
89
  var _a;
91
90
  if (H.value = true, q.value = [], G.value = [], (_a = R[a4.ID]) == null ? void 0 : _a[l3.id]) {
92
91
  const e6 = /* @__PURE__ */ new Set();
@@ -110,7 +109,7 @@ const U = { style: { "max-height": "700px" } }, z = { style: { "align-items": "c
110
109
  }).catch(() => {
111
110
  Z.value = true, H.value = false;
112
111
  });
113
- }(e4.$index, e4.row, a3), type: "primary" }, { default: i(() => [p(m(a3.alias), 1)]), _: 2 }, 1032, ["onClick"]), p("  "), o(I2, { style: { color: "#409eff" } }, { default: i(() => [o(f(N))]), _: 1 })])]))), 256))]), _: 1 }, 512), [[b, Y.value && Y.value.length > 0]])], 64)) : n("", true), (r(true), u(d, null, c(K.value, (e4) => (r(), s(E2, { key: e4, prop: e4, label: e4 }, null, 8, ["prop", "label"]))), 128))]), _: 1 }, 8, ["data"])) : "chart" === L.value && M.value ? (r(), s(f(g), { key: 1, ref_key: "chartRef", ref: J, style: { height: "400px" }, option: Q.value, autoresize: "" }, null, 8, ["option"])) : n("", true), o(re, { modelValue: Z.value, "onUpdate:modelValue": a2[4] || (a2[4] = (e4) => Z.value = e4), "destroy-on-close": true, title: $.value, "before-close": le }, { footer: i(() => [h("div", S, [o(A2, { onClick: a2[3] || (a2[3] = (e4) => Z.value = false) }, { default: i(() => [p("关闭")]), _: 1 })])]), default: i(() => [v((r(), s(te, { data: q.value, size: "small", style: { width: "100%" } }, { default: i(() => [o(E2, { type: "index", width: "50", label: "序号" }), (r(true), u(d, null, c(G.value, (e4) => (r(), s(E2, { key: e4.prop, prop: e4.prop, label: e4.label }, null, 8, ["prop", "label"]))), 128))]), _: 1 }, 8, ["data"])), [[ue, H.value]])]), _: 1 }, 8, ["modelValue", "title"])]);
112
+ }(e4.$index, e4.row, l2), type: "primary" }, { default: i(() => [p(m(l2.alias), 1)]), _: 2 }, 1032, ["onClick"]), a2[6] || (a2[6] = p("  ", -1)), o(I2, { style: { color: "#409eff" } }, { default: i(() => [o(f(N))]), _: 1 })])]))), 256))]), _: 1 }, 512), [[b, Y.value && Y.value.length > 0]])], 64)) : d("", true), (r(true), u(n, null, c(K.value, (e4) => (r(), s(E2, { key: e4, prop: e4, label: e4 }, null, 8, ["prop", "label"]))), 128))]), _: 1 }, 8, ["data"])) : "chart" === L.value && M.value ? (r(), s(f(g), { key: 1, ref_key: "chartRef", ref: J, style: { height: "400px" }, option: Q.value, autoresize: "" }, null, 8, ["option"])) : d("", true), o(re, { modelValue: Z.value, "onUpdate:modelValue": a2[4] || (a2[4] = (e4) => Z.value = e4), "destroy-on-close": true, title: $.value, "before-close": le }, { footer: i(() => [h("div", S, [o(A2, { onClick: a2[3] || (a2[3] = (e4) => Z.value = false) }, { default: i(() => [...a2[7] || (a2[7] = [p("关闭", -1)])]), _: 1 })])]), default: i(() => [v((r(), s(te, { data: q.value, size: "small", style: { width: "100%" } }, { default: i(() => [o(E2, { type: "index", width: "50", label: "序号" }), (r(true), u(n, null, c(G.value, (e4) => (r(), s(E2, { key: e4.prop, prop: e4.prop, label: e4.label }, null, 8, ["prop", "label"]))), 128))]), _: 1 }, 8, ["data"])), [[ue, H.value]])]), _: 1 }, 8, ["modelValue", "title"])]);
114
113
  };
115
114
  } });
116
115
  export {
@@ -3,51 +3,51 @@ import { ElMessage as c, ElMessageBox as d } from "element-plus";
3
3
  import { useI18n as m } from "vue-i18n";
4
4
  import { deleteByIds as p } from "../util/history-message-util.mjs";
5
5
  const f = { style: { overflow: "hidden" } }, h = { class: "operation-area", style: { display: "flex" } }, v = { class: "dialog-footer" }, g = e({ __name: "history-detail", emits: ["new-chat-session"], setup(e2, { expose: g2, emit: w }) {
6
- const { t: y } = m(), b = t(false), x = window.$vueApp.config.globalProperties.baseAPI, C = t([]), I = t();
7
- function M() {
8
- b.value = false, w("new-chat-session");
6
+ const y = w, { t: b } = m(), x = t(false), C = window.$vueApp.config.globalProperties.baseAPI, I = t([]), M = t();
7
+ function _() {
8
+ x.value = false, y("new-chat-session");
9
9
  }
10
- function _(e3, t2) {
11
- C.value = e3;
10
+ function T(e3, t2) {
11
+ I.value = e3;
12
12
  }
13
- function T() {
13
+ function D() {
14
14
  return 0.55 * window.innerHeight;
15
15
  }
16
- function D() {
17
- C.value && 0 !== C.value.length ? d.confirm(y("imatrixUIMessage.whetherToConfirmDeletion"), y("imatrixUIMessage.tips"), { confirmButtonText: y("publicModel.sure"), cancelButtonText: y("publicModel.cancel"), type: "warning" }).then(() => {
16
+ function H() {
17
+ I.value && 0 !== I.value.length ? d.confirm(b("imatrixUIMessage.whetherToConfirmDeletion"), b("imatrixUIMessage.tips"), { confirmButtonText: b("publicModel.sure"), cancelButtonText: b("publicModel.cancel"), type: "warning" }).then(() => {
18
18
  var _a;
19
- const e3 = C.value.map((e4) => e4.id || e4.ID);
19
+ const e3 = I.value.map((e4) => e4.id || e4.ID);
20
20
  (_a = p(e3)) == null ? void 0 : _a.then((e4) => {
21
- c({ showClose: true, type: "success", message: y("superGrid.deleteSuccessful") }), I.value.refresh(), C.value = [];
21
+ c({ showClose: true, type: "success", message: b("superGrid.deleteSuccessful") }), M.value.refresh(), I.value = [];
22
22
  });
23
23
  }) : c({ showClose: true, type: "warning", message: "请选择记录" });
24
24
  }
25
- function H(e3, t2, o2, n2, i2) {
25
+ function R(e3, t2, o2, n2, i2) {
26
26
  return { template: '<div style="text-align:center;"><span>' + o2.iconFileName + "</span></div>", data: function() {
27
27
  return { val: "test" };
28
28
  }, methods: {} };
29
29
  }
30
- function R(e3, t2, o2, n2, i2) {
31
- return { template: '<el-button v-if="' + !o2.$editing + `" v-permission="'bs.aiVoiceCommand.delete'" text @click.stop="deleteHistory">` + y("publicModel.delete") + "</el-button>", data: function() {
30
+ function k(e3, t2, o2, n2, i2) {
31
+ return { template: '<el-button v-if="' + !o2.$editing + `" v-permission="'bs.aiVoiceCommand.delete'" text @click.stop="deleteHistory">` + b("publicModel.delete") + "</el-button>", data: function() {
32
32
  return {};
33
33
  }, methods: { selectIconFile() {
34
34
  }, saveRow: function() {
35
35
  }, restoreRow: function() {
36
- I.value.restoreRow(i2);
36
+ M.value.restoreRow(i2);
37
37
  }, editCommand: function() {
38
38
  }, deleteHistory: function() {
39
- d.confirm(y("message.whetherToConfirmDeletion"), y("message.tips"), { confirmButtonText: y("publicModel.sure"), cancelButtonText: y("publicModel.cancel"), type: "warning" }).then(() => {
39
+ d.confirm(b("message.whetherToConfirmDeletion"), b("message.tips"), { confirmButtonText: b("publicModel.sure"), cancelButtonText: b("publicModel.cancel"), type: "warning" }).then(() => {
40
40
  p([o2.id || o2.ID]).then(() => {
41
- c.success("已删除该会话"), I.value.refresh();
41
+ c.success("已删除该会话"), M.value.refresh();
42
42
  });
43
43
  });
44
44
  } } };
45
45
  }
46
46
  return g2({ showHistoryDetail: function() {
47
- b.value = true;
47
+ x.value = true;
48
48
  } }), (e3, t2) => {
49
49
  const c2 = o("el-button"), d2 = o("super-grid"), m2 = o("el-dialog");
50
- return n(), i(m2, { modelValue: b.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => b.value = e4), "destroy-on-close": "", title: "历史记录", width: "80%", top: "3vh", "close-on-click-modal": false, onClose: M }, { footer: l(() => [s("div", v, [r(c2, { type: "primary", onClick: t2[0] || (t2[0] = (e4) => b.value = false) }, { default: l(() => [a(" 关闭 ")]), _: 1 })])]), default: l(() => [s("div", f, [s("div", h, [r(c2, { type: "danger", onClick: D }, { default: l(() => [a("删除")]), _: 1 })]), r(d2, { ref_key: "gridRef", ref: I, "custom-formatter": { operation: R, preview: H }, options: { resizeHeight: T, lineEditOptions: {}, statementDto: {}, renderRow: {}, search: { labelWidth: "100px", fieldNum: 2 } }, url: u(x) + "/mc/ai-history/list-all", code: "MC_AI_HISTORY", onSelect: _, onSelectAll: _ }, null, 8, ["custom-formatter", "options", "url"])])]), _: 1 }, 8, ["modelValue"]);
50
+ return n(), i(m2, { modelValue: x.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => x.value = e4), "destroy-on-close": "", title: "历史记录", width: "80%", top: "3vh", "close-on-click-modal": false, onClose: _ }, { footer: l(() => [s("div", v, [r(c2, { type: "primary", onClick: t2[0] || (t2[0] = (e4) => x.value = false) }, { default: l(() => [...t2[3] || (t2[3] = [a(" 关闭 ", -1)])]), _: 1 })])]), default: l(() => [s("div", f, [s("div", h, [r(c2, { type: "danger", onClick: H }, { default: l(() => [...t2[2] || (t2[2] = [a("删除", -1)])]), _: 1 })]), r(d2, { ref_key: "gridRef", ref: M, "custom-formatter": { operation: k, preview: R }, options: { resizeHeight: D, lineEditOptions: {}, statementDto: {}, renderRow: {}, search: { labelWidth: "100px", fieldNum: 2 } }, url: u(C) + "/mc/ai-history/list-all", code: "MC_AI_HISTORY", onSelect: T, onSelectAll: T }, null, 8, ["custom-formatter", "options", "url"])])]), _: 1 }, 8, ["modelValue"]);
51
51
  };
52
52
  } });
53
53
  export {
@@ -5,40 +5,40 @@ import { collectBySessionId as h, usefuleBySessionId as y } from "./util/history
5
5
  import { ElMessage as p } from "element-plus";
6
6
  import { FolderRemove as b, StarFilled as k } from "@element-plus/icons-vue";
7
7
  const _ = { ref: "chatHeaderRef", class: "chat-embed__header_container" }, S = { key: 0, class: "session-subject" }, g = { class: "chat-embed__header_tool_icon" }, H = { class: "header-icon" }, I = { class: "header-icon" }, x = e({ __name: "header", props: { dialogFullScreen: { type: Boolean, default: false }, aiModel: { type: String, default: null }, chatSessionId: { type: Object, default: null }, aiHistory: { type: Object, default: null } }, emits: ["showChatDialog", "expandDialog", "new-chat-session", "collected-session"], setup(e2, { emit: x2 }) {
8
- const M = e2, { t: C } = f(), v = o(null);
9
- function j() {
10
- x2("expandDialog");
11
- }
8
+ const { t: M } = f(), C = e2, v = x2, j = o(null);
12
9
  function w() {
13
- x2("showChatDialog");
10
+ v("expandDialog");
14
11
  }
15
12
  function D() {
16
- x2("new-chat-session");
13
+ v("showChatDialog");
17
14
  }
18
15
  function V() {
19
- M.chatSessionId && M.aiModel && M.chatSessionId[M.aiModel] && h(M.chatSessionId[M.aiModel]).then(() => {
20
- M.aiHistory.collected = !M.aiHistory.collected, M.aiHistory.collected ? p.success("已收藏该会话") : p.success("已取消收藏该会话"), x2("collected-session");
21
- });
16
+ v("new-chat-session");
22
17
  }
23
18
  function F() {
24
- M.chatSessionId && M.aiModel && M.chatSessionId[M.aiModel] && y(M.chatSessionId[M.aiModel]).then(() => {
25
- M.aiHistory.useful = !M.aiHistory.useful, M.aiHistory.useful ? p.success("已标记该会话有用") : p.success("已取消标记该会话有用");
19
+ C.chatSessionId && C.aiModel && C.chatSessionId[C.aiModel] && h(C.chatSessionId[C.aiModel]).then(() => {
20
+ C.aiHistory.collected = !C.aiHistory.collected, C.aiHistory.collected ? p.success("已收藏该会话") : p.success("已取消收藏该会话"), v("collected-session");
26
21
  });
27
22
  }
28
23
  function E() {
24
+ C.chatSessionId && C.aiModel && C.chatSessionId[C.aiModel] && y(C.chatSessionId[C.aiModel]).then(() => {
25
+ C.aiHistory.useful = !C.aiHistory.useful, C.aiHistory.useful ? p.success("已标记该会话有用") : p.success("已取消标记该会话有用");
26
+ });
27
+ }
28
+ function O() {
29
29
  var _a;
30
- (_a = v.value) == null ? void 0 : _a.showHistoryDetail();
30
+ (_a = j.value) == null ? void 0 : _a.showHistoryDetail();
31
31
  }
32
32
  return (o2, f2) => {
33
33
  var _a, _b, _c;
34
34
  const h2 = t("SuperIcon"), y2 = t("el-tooltip"), p2 = t("el-icon");
35
- return s(), a("div", _, [e2.dialogFullScreen ? (s(), a("span", S, i((_a = e2.aiHistory) == null ? void 0 : _a.subject), 1)) : n("", true), c("div", g, [l(y2, { class: "box-item", effect: "dark", content: "查看所有历史会话" }, { default: u(() => [c("span", { class: "header-icon", onClick: E }, [l(h2, { iconValue: "amb-icon-yulan" })])]), _: 1 }), e2.chatSessionId[e2.aiModel] ? (s(), d(y2, { key: 0, class: "box-item", effect: "dark", content: ((_b = e2.aiHistory) == null ? void 0 : _b.useful) ? "取消标记为有用" : "标记为有用" }, { default: u(() => {
35
+ return s(), a("div", _, [e2.dialogFullScreen ? (s(), a("span", S, i((_a = e2.aiHistory) == null ? void 0 : _a.subject), 1)) : n("", true), c("div", g, [l(y2, { class: "box-item", effect: "dark", content: "查看所有历史会话" }, { default: u(() => [c("span", { class: "header-icon", onClick: O }, [l(h2, { iconValue: "amb-icon-yulan" })])]), _: 1 }), e2.chatSessionId[e2.aiModel] ? (s(), d(y2, { key: 0, class: "box-item", effect: "dark", content: ((_b = e2.aiHistory) == null ? void 0 : _b.useful) ? "取消标记为有用" : "标记为有用" }, { default: u(() => {
36
36
  var _a2;
37
- return [c("span", { class: "header-icon", onClick: F }, [((_a2 = e2.aiHistory) == null ? void 0 : _a2.useful) ? (s(), d(p2, { key: 0 }, { default: u(() => [l(r(b))]), _: 1 })) : (s(), d(h2, { key: 1, iconValue: "amb-icon-youyong" }))])];
37
+ return [c("span", { class: "header-icon", onClick: E }, [((_a2 = e2.aiHistory) == null ? void 0 : _a2.useful) ? (s(), d(p2, { key: 0 }, { default: u(() => [l(r(b))]), _: 1 })) : (s(), d(h2, { key: 1, iconValue: "amb-icon-youyong" }))])];
38
38
  }), _: 1 }, 8, ["content"])) : n("", true), e2.chatSessionId[e2.aiModel] ? (s(), d(y2, { key: 1, class: "box-item", effect: "dark", content: ((_c = e2.aiHistory) == null ? void 0 : _c.collected) ? "取消收藏" : "收藏会话" }, { default: u(() => {
39
39
  var _a2;
40
- return [c("span", { class: "header-icon", onClick: V }, [((_a2 = e2.aiHistory) == null ? void 0 : _a2.collected) ? (s(), d(p2, { key: 0 }, { default: u(() => [l(r(k))]), _: 1 })) : (s(), d(h2, { key: 1, iconValue: "amb-icon-shoucang" }))])];
41
- }), _: 1 }, 8, ["content"])) : n("", true), l(y2, { class: "box-item", effect: "dark", content: e2.dialogFullScreen ? r(C)("chatEmbed.minimize") : r(C)("chatEmbed.fullscreen") }, { default: u(() => [c("span", H, [l(h2, { iconValue: e2.dialogFullScreen ? "amb-icon-fangda" : "amb-icon-suoxiao", onClick: j }, null, 8, ["iconValue"])])]), _: 1 }, 8, ["content"]), l(y2, { class: "box-item", effect: "dark", content: r(C)("chatEmbed.close") }, { default: u(() => [c("span", I, [l(h2, { onClick: w, iconValue: "amb-icon-guanbi" })])]), _: 1 }, 8, ["content"])]), l(m, { ref_key: "historyDetailRef", ref: v, onNewChatSession: D }, null, 512)], 512);
40
+ return [c("span", { class: "header-icon", onClick: F }, [((_a2 = e2.aiHistory) == null ? void 0 : _a2.collected) ? (s(), d(p2, { key: 0 }, { default: u(() => [l(r(k))]), _: 1 })) : (s(), d(h2, { key: 1, iconValue: "amb-icon-shoucang" }))])];
41
+ }), _: 1 }, 8, ["content"])) : n("", true), l(y2, { class: "box-item", effect: "dark", content: e2.dialogFullScreen ? r(M)("chatEmbed.minimize") : r(M)("chatEmbed.fullscreen") }, { default: u(() => [c("span", H, [l(h2, { iconValue: e2.dialogFullScreen ? "amb-icon-fangda" : "amb-icon-suoxiao", onClick: w }, null, 8, ["iconValue"])])]), _: 1 }, 8, ["content"]), l(y2, { class: "box-item", effect: "dark", content: r(M)("chatEmbed.close") }, { default: u(() => [c("span", I, [l(h2, { onClick: D, iconValue: "amb-icon-guanbi" })])]), _: 1 }, 8, ["content"])]), l(m, { ref_key: "historyDetailRef", ref: j, onNewChatSession: V }, null, 512)], 512);
42
42
  };
43
43
  } });
44
44
  export {