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.
- package/dist/index.full.min.js +1115 -1102
- package/dist/style.css +36 -20
- package/es/IntervalSelection/src/sectionDate.vue.mjs +8 -8
- package/es/chat-embed/src/chat-addition-data.vue2.mjs +14 -11
- package/es/chat-embed/src/chat-ai-answer-tip.vue2.mjs +8 -8
- package/es/chat-embed/src/chat-bubble-footer.vue2.mjs +5 -5
- package/es/chat-embed/src/chat-sender.vue2.mjs +41 -41
- package/es/chat-embed/src/components/answer-auto-chart.vue2.mjs +1 -2
- package/es/chat-embed/src/components/answer-interaction-data.vue2.mjs +6 -7
- package/es/chat-embed/src/components/history-detail.vue2.mjs +18 -18
- package/es/chat-embed/src/header.vue2.mjs +16 -16
- package/es/chat-embed/src/index.vue2.mjs +161 -161
- package/es/chat-embed/src/recommendation-message.vue2.mjs +9 -6
- package/es/chat-embed/src/sidebar-item.vue2.mjs +65 -65
- package/es/chat-embed/src/voice/voice.vue.mjs +36 -35
- package/es/date-picker-range/index.vue2.mjs +39 -39
- package/es/department-tree-mobile/src/department-tree-app.vue.mjs +8 -7
- package/es/department-tree-mobile/src/department-tree-inline-app.vue.mjs +54 -54
- package/es/department-tree-mobile/src/dept-path.vue.mjs +7 -6
- package/es/department-tree-mobile/src/dept-result.vue.mjs +7 -6
- package/es/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.mjs +5 -5
- package/es/department-user-tree-mobile/src/department-user-tree-app.vue.mjs +10 -9
- package/es/department-user-tree-mobile/src/department-user-tree-inline-app.vue.mjs +64 -64
- package/es/department-user-tree-mobile/src/dept-path.vue.mjs +7 -6
- package/es/department-user-tree-mobile/src/dept-result.vue.mjs +4 -3
- package/es/empty-state/index.vue.mjs +2 -2
- package/es/fs-upload/src/fs-upload-multi.vue.mjs +1 -1
- package/es/fs-upload-list/src/fs-upload-list.vue.mjs +1 -1
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.mjs +12 -12
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.mjs +24 -24
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.mjs +17 -17
- package/es/fs-upload-new/src/file-upload-mobile/file-upload.vue.mjs +12 -12
- package/es/fs-upload-new/src/fs-button-upload.vue2.mjs +23 -23
- package/es/fs-upload-new/src/fs-drag-upload.vue2.mjs +23 -23
- package/es/fs-upload-new/src/fs-preview-new.vue2.mjs +34 -34
- package/es/fs-upload-new/src/fs-upload-new.vue.mjs +15 -15
- package/es/json-view/json-view-dialog.vue.mjs +5 -5
- package/es/multipart-upload/src/multipart-upload-form.vue.mjs +1 -1
- package/es/multipart-upload/src/multipart-upload-list.vue.mjs +5 -5
- package/es/row-form/index.vue2.mjs +31 -31
- package/es/row-form/operation.vue.mjs +13 -13
- package/es/secret-info/index.vue.mjs +1 -1
- package/es/src/components/Affix/index.vue2.mjs +26 -26
- package/es/src/components/Scrollbar/index.vue.mjs +22 -22
- package/es/src/views/error-page/401.vue.mjs +8 -8
- package/es/src/views/error-page/404.vue.mjs +8 -8
- package/es/style.css +933 -917
- package/es/super-grid/src/columns-config.vue.mjs +1 -1
- package/es/super-grid/src/components/grid-radio-input.vue.mjs +5 -5
- package/es/super-grid/src/components/select-input.vue.mjs +55 -55
- package/es/super-grid/src/row-detail.vue.mjs +1 -1
- package/es/super-grid/src/search-form-advancedQuery.vue.mjs +1 -1
- package/es/super-grid/src/search-form-number.vue.mjs +4 -5
- package/es/super-grid/src/super-grid.vue.mjs +1 -1
- package/es/super-nine-grid/src/search-form-number.vue.mjs +4 -5
- package/es/super-nine-grid/src/search-form.vue.mjs +1 -1
- package/es/super-nine-grid/src/super-nine-grid.vue.mjs +1 -1
- package/es/workgroup-tree-inline/src/workgroup-tree-inline.vue.mjs +8 -8
- package/es/workgroup-tree-mobile/src/dept-result.vue.mjs +4 -3
- package/es/workgroup-tree-mobile/src/workgroup-tree-app.vue.mjs +8 -7
- package/es/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.mjs +51 -51
- package/es/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.mjs +5 -5
- package/es/workgroup-user-tree-mobile/src/dept-path.vue.mjs +7 -6
- package/es/workgroup-user-tree-mobile/src/dept-result.vue.mjs +4 -3
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.mjs +7 -6
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.mjs +65 -65
- package/es/year-range-picker/src/year-range-picker.vue.mjs +1 -1
- package/lib/IntervalSelection/src/sectionDate.vue.cjs +6 -6
- package/lib/chat-embed/src/chat-addition-data.vue2.cjs +13 -10
- package/lib/chat-embed/src/chat-ai-answer-tip.vue2.cjs +8 -8
- package/lib/chat-embed/src/chat-bubble-footer.vue2.cjs +5 -5
- package/lib/chat-embed/src/chat-sender.vue2.cjs +20 -20
- package/lib/chat-embed/src/components/answer-auto-chart.vue2.cjs +1 -2
- package/lib/chat-embed/src/components/answer-interaction-data.vue2.cjs +5 -6
- package/lib/chat-embed/src/components/history-detail.vue2.cjs +18 -18
- package/lib/chat-embed/src/header.vue2.cjs +17 -17
- package/lib/chat-embed/src/index.vue2.cjs +123 -123
- package/lib/chat-embed/src/recommendation-message.vue2.cjs +7 -4
- package/lib/chat-embed/src/sidebar-item.vue2.cjs +35 -35
- package/lib/chat-embed/src/voice/voice.vue.cjs +36 -35
- package/lib/date-picker-range/index.vue2.cjs +11 -11
- package/lib/department-tree-mobile/src/department-tree-app.vue.cjs +7 -6
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue.cjs +53 -53
- package/lib/department-tree-mobile/src/dept-path.vue.cjs +6 -6
- package/lib/department-tree-mobile/src/dept-result.vue.cjs +7 -6
- package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.cjs +5 -5
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue.cjs +9 -8
- package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue.cjs +61 -61
- package/lib/department-user-tree-mobile/src/dept-path.vue.cjs +6 -6
- package/lib/department-user-tree-mobile/src/dept-result.vue.cjs +4 -3
- package/lib/empty-state/index.vue.cjs +2 -2
- package/lib/fs-upload/src/fs-upload-multi.vue.cjs +1 -1
- package/lib/fs-upload-list/src/fs-upload-list.vue.cjs +1 -1
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.cjs +12 -12
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.cjs +24 -24
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.cjs +17 -17
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue.cjs +12 -12
- package/lib/fs-upload-new/src/fs-button-upload.vue2.cjs +23 -23
- package/lib/fs-upload-new/src/fs-drag-upload.vue2.cjs +23 -23
- package/lib/fs-upload-new/src/fs-preview-new.vue2.cjs +36 -36
- package/lib/fs-upload-new/src/fs-upload-new.vue.cjs +15 -15
- package/lib/json-view/json-view-dialog.vue.cjs +6 -6
- package/lib/multipart-upload/src/multipart-upload-form.vue.cjs +1 -1
- package/lib/multipart-upload/src/multipart-upload-list.vue.cjs +5 -5
- package/lib/row-form/index.vue2.cjs +31 -31
- package/lib/row-form/operation.vue.cjs +13 -13
- package/lib/secret-info/index.vue.cjs +1 -1
- package/lib/src/components/Affix/index.vue2.cjs +28 -28
- package/lib/src/components/Scrollbar/index.vue.cjs +22 -22
- package/lib/src/views/error-page/401.vue.cjs +7 -7
- package/lib/src/views/error-page/404.vue.cjs +4 -4
- package/lib/style.css +955 -939
- package/lib/super-grid/src/columns-config.vue.cjs +1 -1
- package/lib/super-grid/src/components/grid-radio-input.vue.cjs +5 -5
- package/lib/super-grid/src/components/select-input.vue.cjs +56 -56
- package/lib/super-grid/src/row-detail.vue.cjs +1 -1
- package/lib/super-grid/src/search-form-advancedQuery.vue.cjs +1 -1
- package/lib/super-grid/src/search-form-number.vue.cjs +6 -6
- package/lib/super-grid/src/super-grid.vue.cjs +1 -1
- package/lib/super-nine-grid/src/search-form-number.vue.cjs +6 -6
- package/lib/super-nine-grid/src/search-form.vue.cjs +1 -1
- package/lib/super-nine-grid/src/super-nine-grid.vue.cjs +1 -1
- package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue.cjs +5 -5
- package/lib/workgroup-tree-mobile/src/dept-result.vue.cjs +4 -3
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue.cjs +9 -8
- package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.cjs +48 -48
- package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.cjs +5 -5
- package/lib/workgroup-user-tree-mobile/src/dept-path.vue.cjs +6 -6
- package/lib/workgroup-user-tree-mobile/src/dept-result.vue.cjs +4 -3
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.cjs +9 -8
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.cjs +63 -63
- package/lib/year-range-picker/src/year-range-picker.vue.cjs +1 -1
- 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
|
|
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 })) :
|
|
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)]), _:
|
|
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)]), _:
|
|
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,
|
|
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:
|
|
7
|
-
function
|
|
8
|
-
|
|
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
|
|
11
|
-
|
|
10
|
+
function T(e3, t2) {
|
|
11
|
+
I.value = e3;
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function D() {
|
|
14
14
|
return 0.55 * window.innerHeight;
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
|
|
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 =
|
|
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:
|
|
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
|
|
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
|
|
31
|
-
return { template: '<el-button v-if="' + !o2.$editing + `" v-permission="'bs.aiVoiceCommand.delete'" text @click.stop="deleteHistory">` +
|
|
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
|
-
|
|
36
|
+
M.value.restoreRow(i2);
|
|
37
37
|
}, editCommand: function() {
|
|
38
38
|
}, deleteHistory: function() {
|
|
39
|
-
d.confirm(
|
|
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("已删除该会话"),
|
|
41
|
+
c.success("已删除该会话"), M.value.refresh();
|
|
42
42
|
});
|
|
43
43
|
});
|
|
44
44
|
} } };
|
|
45
45
|
}
|
|
46
46
|
return g2({ showHistoryDetail: function() {
|
|
47
|
-
|
|
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:
|
|
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
|
|
9
|
-
function j() {
|
|
10
|
-
x2("expandDialog");
|
|
11
|
-
}
|
|
8
|
+
const { t: M } = f(), C = e2, v = x2, j = o(null);
|
|
12
9
|
function w() {
|
|
13
|
-
|
|
10
|
+
v("expandDialog");
|
|
14
11
|
}
|
|
15
12
|
function D() {
|
|
16
|
-
|
|
13
|
+
v("showChatDialog");
|
|
17
14
|
}
|
|
18
15
|
function V() {
|
|
19
|
-
|
|
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
|
-
|
|
25
|
-
|
|
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 =
|
|
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:
|
|
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:
|
|
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:
|
|
41
|
-
}), _: 1 }, 8, ["content"])) : n("", true), l(y2, { class: "box-item", effect: "dark", content: e2.dialogFullScreen ? r(
|
|
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 {
|