@ibiz-template/vue3-components 0.7.41-alpha.127 → 0.7.41-alpha.129

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 (25) hide show
  1. package/dist/{index-D8zxjpzd.js → index-d3Np_C2t.js} +5 -5
  2. package/dist/{index.es-Dow2mflM.js → index.es-CKfwa9Ay.js} +1 -1
  3. package/dist/index.min.css +1 -1
  4. package/dist/index.system.min.js +1 -1
  5. package/dist/{wang-editor-Dt9B3mzl.js → wang-editor-C-G2LV3t.js} +1 -1
  6. package/dist/{xlsx-util-DN1m96Sf.js → xlsx-util-B0gnKN0p.js} +1 -1
  7. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs +1 -0
  8. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid2/repeater-grid2.mjs +1 -0
  9. package/es/editor/ai-chat/embed-ai-chat/embed-ai-chat.mjs +2 -0
  10. package/es/util/ai-chat-util/ai-chat-util.mjs +22 -2
  11. package/es/util/app-util/app-util.mjs +3 -0
  12. package/es/web-app/adaptive-screen-width.mjs +2 -2
  13. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +1 -0
  14. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid2/repeater-grid2.cjs +1 -0
  15. package/lib/editor/ai-chat/embed-ai-chat/embed-ai-chat.cjs +2 -0
  16. package/lib/util/ai-chat-util/ai-chat-util.cjs +22 -2
  17. package/lib/util/app-util/app-util.cjs +3 -0
  18. package/lib/web-app/adaptive-screen-width.cjs +2 -2
  19. package/package.json +5 -5
  20. package/src/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.tsx +4 -0
  21. package/src/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid2/repeater-grid2.tsx +4 -0
  22. package/src/editor/ai-chat/embed-ai-chat/embed-ai-chat.tsx +3 -0
  23. package/src/util/ai-chat-util/ai-chat-util.ts +27 -3
  24. package/src/util/app-util/app-util.ts +4 -0
  25. package/src/web-app/adaptive-screen-width.ts +4 -2
@@ -328,6 +328,7 @@ const RepeaterGrid = /* @__PURE__ */ defineComponent({
328
328
  controller: formItemC.editor,
329
329
  disabled: formItemC.state.disabled,
330
330
  readonly: formItemC.state.readonly,
331
+ ...this.controller.getDetailAttrs(formItemC.model, formItemC.data),
331
332
  onChange: (val, name) => {
332
333
  formItemC.setDataValue(val, name);
333
334
  }
@@ -302,6 +302,7 @@ const RepeaterGrid2 = /* @__PURE__ */ defineComponent({
302
302
  controller: formItemC.editor,
303
303
  disabled: formItemC.state.disabled,
304
304
  readonly: formItemC.state.readonly,
305
+ ...this.controller.getDetailAttrs(formItemC.model, formItemC.data),
305
306
  onChange: (val, name) => {
306
307
  formItemC.setDataValue(val, name);
307
308
  }
@@ -52,6 +52,8 @@ const IBizEmbedAIChat = /* @__PURE__ */ defineComponent({
52
52
  if (editorParams.srfattachsessiontag) {
53
53
  topicId += "__".concat(editorParams.srfattachsessiontag);
54
54
  delete editorParams.srfattachsessiontag;
55
+ } else {
56
+ topicId += "__".concat(createUUID());
55
57
  }
56
58
  sessionid = ibiz.aiChatUtil.getChatSessionId("TOPIC", topicId, editorParams.srfattachtimestamp !== "false");
57
59
  }
@@ -70,6 +70,10 @@ class AIChatUtil {
70
70
  if (editorParams.disabletopicstorage) {
71
71
  topicOptions.disableStorage = editorParams.disabletopicstorage === "true";
72
72
  }
73
+ topicOptions.storageMode = ibiz.config.common.aiTopicStorageMode;
74
+ if (editorParams.topicstoragemode) {
75
+ topicOptions.storageMode = editorParams.topicstoragemode;
76
+ }
73
77
  topicOptions.beforeDelete = async (...args2) => {
74
78
  const isBatchRemove = args2[4];
75
79
  const result = await ibiz.confirm.warning({
@@ -268,7 +272,7 @@ class AIChatUtil {
268
272
  }
269
273
  return true;
270
274
  };
271
- chatOptions.question = async (aiChat, ctx, param, other, arr, sessionid2, srfaiagent, srfmode, srfscope, srfknowledgebases, srfaiagentconfig, appendcurdata, mcpservers) => {
275
+ chatOptions.question = async (aiChat, ctx, param, other, arr, sessionid2, srfaiagent, srfmode, srfscope, srfknowledgebases, srfaiagentconfig, appendcurdata, mcpservers, sessionmeta) => {
272
276
  id = createUUID();
273
277
  abortController = new AbortController();
274
278
  const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, other.appDataEntityId);
@@ -293,6 +297,11 @@ class AIChatUtil {
293
297
  mcpservers
294
298
  });
295
299
  }
300
+ if (sessionmeta) {
301
+ Object.assign(questionRequestData, {
302
+ srfuimeta: JSON.stringify(sessionmeta)
303
+ });
304
+ }
296
305
  const extParams = {};
297
306
  if (param && Object.keys(param).length > 0) {
298
307
  Object.assign(extParams, { ...param });
@@ -636,6 +645,12 @@ class AIChatUtil {
636
645
  topicOptions.disableStorage = params.disabletopicstorage === "true";
637
646
  delete params.disabletopicstorage;
638
647
  }
648
+ if (params.hasOwnProperty("topicstoragemode")) {
649
+ topicOptions.storageMode = params.topicstoragemode;
650
+ delete params.topicstoragemode;
651
+ } else {
652
+ topicOptions.storageMode = ibiz.config.common.aiTopicStorageMode;
653
+ }
639
654
  topicOptions.beforeDelete = async (...args2) => {
640
655
  const isBatchRemove = args2[4];
641
656
  const result = await ibiz.confirm.warning({
@@ -859,7 +874,7 @@ class AIChatUtil {
859
874
  }
860
875
  return true;
861
876
  };
862
- chatOptions.question = async (aiChat, ctx, param, other, arr, sessionid, srfaiagent, srfmode, srfscope, srfknowledgebases, srfaiagentconfig, appendcurdata, mcpservers) => {
877
+ chatOptions.question = async (aiChat, ctx, param, other, arr, sessionid, srfaiagent, srfmode, srfscope, srfknowledgebases, srfaiagentconfig, appendcurdata, mcpservers, sessionmeta) => {
863
878
  id = createUUID();
864
879
  abortController = new AbortController();
865
880
  const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, other.appDataEntityId);
@@ -882,6 +897,11 @@ class AIChatUtil {
882
897
  if (mcpservers) {
883
898
  Object.assign(questionRequestData, { mcpservers });
884
899
  }
900
+ if (sessionmeta) {
901
+ Object.assign(questionRequestData, {
902
+ srfuimeta: JSON.stringify(sessionmeta)
903
+ });
904
+ }
885
905
  const extParams = {};
886
906
  if (param && Object.keys(param).length > 0) {
887
907
  Object.assign(extParams, { ...param });
@@ -1,3 +1,4 @@
1
+ import { createUUID } from 'qx-util';
1
2
  import { RouteConst, getAppFuncBlockProvider, getDeACMode, calcDeCodeNameById, ScriptFactory } from '@ibiz-template/runtime';
2
3
  import { route2routePath, useUIStore, routePath2string } from '@ibiz-template/vue3-util';
3
4
 
@@ -237,6 +238,8 @@ class AppUtil {
237
238
  if (params.srfattachsessiontag) {
238
239
  topicId += "__".concat(params.srfattachsessiontag);
239
240
  delete params.srfattachsessiontag;
241
+ } else {
242
+ topicId += "__".concat(createUUID());
240
243
  }
241
244
  const sessionid = ibiz.aiChatUtil.getChatSessionId(
242
245
  "TOPIC",
@@ -97,7 +97,7 @@ const startObservePoppers = () => {
97
97
  const el = node;
98
98
  if ((_a2 = el.classList) == null ? void 0 : _a2.contains("el-popper")) {
99
99
  fixPopperInset(el);
100
- if (el.classList.contains("ibiz-form-item-container__popper") || el.classList.contains("ibiz-form-mdctrl-popper")) {
100
+ if (el.classList.contains("ibiz-form-mdctrl-popper") || el.classList.contains("ibiz-form-item-container__popper") || el.classList.contains("ibiz-grid-edit-item__tooltip-popper")) {
101
101
  fixPopperTransform(el);
102
102
  }
103
103
  } else if ((_b2 = el.classList) == null ? void 0 : _b2.contains("mx-context-menu")) {
@@ -108,7 +108,7 @@ const startObservePoppers = () => {
108
108
  const el = mutation.target;
109
109
  if ((_a = el.classList) == null ? void 0 : _a.contains("el-popper")) {
110
110
  fixPopperInset(el);
111
- if (el.classList.contains("ibiz-form-item-container__popper") || el.classList.contains("ibiz-form-mdctrl-popper")) {
111
+ if (el.classList.contains("ibiz-form-mdctrl-popper") || el.classList.contains("ibiz-form-item-container__popper") || el.classList.contains("ibiz-grid-edit-item__tooltip-popper")) {
112
112
  fixPopperTransform(el);
113
113
  }
114
114
  } else if ((_b = el.classList) == null ? void 0 : _b.contains("mx-context-menu")) {
@@ -330,6 +330,7 @@ const RepeaterGrid = /* @__PURE__ */ vue.defineComponent({
330
330
  controller: formItemC.editor,
331
331
  disabled: formItemC.state.disabled,
332
332
  readonly: formItemC.state.readonly,
333
+ ...this.controller.getDetailAttrs(formItemC.model, formItemC.data),
333
334
  onChange: (val, name) => {
334
335
  formItemC.setDataValue(val, name);
335
336
  }
@@ -304,6 +304,7 @@ const RepeaterGrid2 = /* @__PURE__ */ vue.defineComponent({
304
304
  controller: formItemC.editor,
305
305
  disabled: formItemC.state.disabled,
306
306
  readonly: formItemC.state.readonly,
307
+ ...this.controller.getDetailAttrs(formItemC.model, formItemC.data),
307
308
  onChange: (val, name) => {
308
309
  formItemC.setDataValue(val, name);
309
310
  }
@@ -54,6 +54,8 @@ const IBizEmbedAIChat = /* @__PURE__ */ vue.defineComponent({
54
54
  if (editorParams.srfattachsessiontag) {
55
55
  topicId += "__".concat(editorParams.srfattachsessiontag);
56
56
  delete editorParams.srfattachsessiontag;
57
+ } else {
58
+ topicId += "__".concat(qxUtil.createUUID());
57
59
  }
58
60
  sessionid = ibiz.aiChatUtil.getChatSessionId("TOPIC", topicId, editorParams.srfattachtimestamp !== "false");
59
61
  }
@@ -72,6 +72,10 @@ class AIChatUtil {
72
72
  if (editorParams.disabletopicstorage) {
73
73
  topicOptions.disableStorage = editorParams.disabletopicstorage === "true";
74
74
  }
75
+ topicOptions.storageMode = ibiz.config.common.aiTopicStorageMode;
76
+ if (editorParams.topicstoragemode) {
77
+ topicOptions.storageMode = editorParams.topicstoragemode;
78
+ }
75
79
  topicOptions.beforeDelete = async (...args2) => {
76
80
  const isBatchRemove = args2[4];
77
81
  const result = await ibiz.confirm.warning({
@@ -270,7 +274,7 @@ class AIChatUtil {
270
274
  }
271
275
  return true;
272
276
  };
273
- chatOptions.question = async (aiChat, ctx, param, other, arr, sessionid2, srfaiagent, srfmode, srfscope, srfknowledgebases, srfaiagentconfig, appendcurdata, mcpservers) => {
277
+ chatOptions.question = async (aiChat, ctx, param, other, arr, sessionid2, srfaiagent, srfmode, srfscope, srfknowledgebases, srfaiagentconfig, appendcurdata, mcpservers, sessionmeta) => {
274
278
  id = qxUtil.createUUID();
275
279
  abortController = new AbortController();
276
280
  const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, other.appDataEntityId);
@@ -295,6 +299,11 @@ class AIChatUtil {
295
299
  mcpservers
296
300
  });
297
301
  }
302
+ if (sessionmeta) {
303
+ Object.assign(questionRequestData, {
304
+ srfuimeta: JSON.stringify(sessionmeta)
305
+ });
306
+ }
298
307
  const extParams = {};
299
308
  if (param && Object.keys(param).length > 0) {
300
309
  Object.assign(extParams, { ...param });
@@ -638,6 +647,12 @@ class AIChatUtil {
638
647
  topicOptions.disableStorage = params.disabletopicstorage === "true";
639
648
  delete params.disabletopicstorage;
640
649
  }
650
+ if (params.hasOwnProperty("topicstoragemode")) {
651
+ topicOptions.storageMode = params.topicstoragemode;
652
+ delete params.topicstoragemode;
653
+ } else {
654
+ topicOptions.storageMode = ibiz.config.common.aiTopicStorageMode;
655
+ }
641
656
  topicOptions.beforeDelete = async (...args2) => {
642
657
  const isBatchRemove = args2[4];
643
658
  const result = await ibiz.confirm.warning({
@@ -861,7 +876,7 @@ class AIChatUtil {
861
876
  }
862
877
  return true;
863
878
  };
864
- chatOptions.question = async (aiChat, ctx, param, other, arr, sessionid, srfaiagent, srfmode, srfscope, srfknowledgebases, srfaiagentconfig, appendcurdata, mcpservers) => {
879
+ chatOptions.question = async (aiChat, ctx, param, other, arr, sessionid, srfaiagent, srfmode, srfscope, srfknowledgebases, srfaiagentconfig, appendcurdata, mcpservers, sessionmeta) => {
865
880
  id = qxUtil.createUUID();
866
881
  abortController = new AbortController();
867
882
  const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, other.appDataEntityId);
@@ -884,6 +899,11 @@ class AIChatUtil {
884
899
  if (mcpservers) {
885
900
  Object.assign(questionRequestData, { mcpservers });
886
901
  }
902
+ if (sessionmeta) {
903
+ Object.assign(questionRequestData, {
904
+ srfuimeta: JSON.stringify(sessionmeta)
905
+ });
906
+ }
887
907
  const extParams = {};
888
908
  if (param && Object.keys(param).length > 0) {
889
909
  Object.assign(extParams, { ...param });
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ var qxUtil = require('qx-util');
3
4
  var runtime = require('@ibiz-template/runtime');
4
5
  var vue3Util = require('@ibiz-template/vue3-util');
5
6
 
@@ -239,6 +240,8 @@ class AppUtil {
239
240
  if (params.srfattachsessiontag) {
240
241
  topicId += "__".concat(params.srfattachsessiontag);
241
242
  delete params.srfattachsessiontag;
243
+ } else {
244
+ topicId += "__".concat(qxUtil.createUUID());
242
245
  }
243
246
  const sessionid = ibiz.aiChatUtil.getChatSessionId(
244
247
  "TOPIC",
@@ -99,7 +99,7 @@ const startObservePoppers = () => {
99
99
  const el = node;
100
100
  if ((_a2 = el.classList) == null ? void 0 : _a2.contains("el-popper")) {
101
101
  fixPopperInset(el);
102
- if (el.classList.contains("ibiz-form-item-container__popper") || el.classList.contains("ibiz-form-mdctrl-popper")) {
102
+ if (el.classList.contains("ibiz-form-mdctrl-popper") || el.classList.contains("ibiz-form-item-container__popper") || el.classList.contains("ibiz-grid-edit-item__tooltip-popper")) {
103
103
  fixPopperTransform(el);
104
104
  }
105
105
  } else if ((_b2 = el.classList) == null ? void 0 : _b2.contains("mx-context-menu")) {
@@ -110,7 +110,7 @@ const startObservePoppers = () => {
110
110
  const el = mutation.target;
111
111
  if ((_a = el.classList) == null ? void 0 : _a.contains("el-popper")) {
112
112
  fixPopperInset(el);
113
- if (el.classList.contains("ibiz-form-item-container__popper") || el.classList.contains("ibiz-form-mdctrl-popper")) {
113
+ if (el.classList.contains("ibiz-form-mdctrl-popper") || el.classList.contains("ibiz-form-item-container__popper") || el.classList.contains("ibiz-grid-edit-item__tooltip-popper")) {
114
114
  fixPopperTransform(el);
115
115
  }
116
116
  } else if ((_b = el.classList) == null ? void 0 : _b.contains("mx-context-menu")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz-template/vue3-components",
3
- "version": "0.7.41-alpha.127",
3
+ "version": "0.7.41-alpha.129",
4
4
  "description": "web端组件库(vue3)",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.mjs",
@@ -31,16 +31,16 @@
31
31
  "dependencies": {
32
32
  "@amap/amap-jsapi-loader": "^1.0.1",
33
33
  "@floating-ui/dom": "^1.5.3",
34
- "@ibiz-template-plugin/ai-chat": "^0.0.96",
34
+ "@ibiz-template-plugin/ai-chat": "^0.0.97",
35
35
  "@ibiz-template-plugin/gantt": "0.1.8-alpha.468",
36
36
  "@ibiz-template-plugin/bi-report": "0.0.32",
37
37
  "@ibiz-template-plugin/data-view": "0.0.8",
38
38
  "@ibiz-template/core": "0.7.41-alpha.119",
39
39
  "@ibiz-template/devtool": "0.0.16",
40
- "@ibiz-template/model-helper": "0.7.41-alpha.131",
41
- "@ibiz-template/runtime": "0.7.41-alpha.131",
40
+ "@ibiz-template/model-helper": "0.7.41-alpha.133",
41
+ "@ibiz-template/runtime": "0.7.41-alpha.133",
42
42
  "@ibiz-template/theme": "0.7.39",
43
- "@ibiz-template/vue3-util": "0.7.41-alpha.131",
43
+ "@ibiz-template/vue3-util": "0.7.41-alpha.133",
44
44
  "@ibiz-template/web-theme": "3.16.0",
45
45
  "@ibiz/model-core": "^0.1.89",
46
46
  "@imengyu/vue3-context-menu": "^1.3.5",
@@ -413,6 +413,10 @@ export const RepeaterGrid: ReturnType<typeof defineComponent> = defineComponent(
413
413
  controller: formItemC.editor,
414
414
  disabled: formItemC.state.disabled,
415
415
  readonly: formItemC.state.readonly,
416
+ ...this.controller.getDetailAttrs(
417
+ formItemC.model,
418
+ formItemC.data,
419
+ ),
416
420
  onChange: (
417
421
  val: unknown,
418
422
  name?: string,
@@ -380,6 +380,10 @@ export const RepeaterGrid2: ReturnType<typeof defineComponent> =
380
380
  controller: formItemC.editor,
381
381
  disabled: formItemC.state.disabled,
382
382
  readonly: formItemC.state.readonly,
383
+ ...this.controller.getDetailAttrs(
384
+ formItemC.model,
385
+ formItemC.data,
386
+ ),
383
387
  onChange: (
384
388
  val: unknown,
385
389
  name?: string,
@@ -76,6 +76,9 @@ export const IBizEmbedAIChat = defineComponent({
76
76
  if (editorParams.srfattachsessiontag) {
77
77
  topicId += `__${editorParams.srfattachsessiontag}`;
78
78
  delete editorParams.srfattachsessiontag;
79
+ } else {
80
+ // 每次打开没有明确指定会话附加标识,都应该独立
81
+ topicId += `__${createUUID()}`;
79
82
  }
80
83
  sessionid = ibiz.aiChatUtil.getChatSessionId(
81
84
  'TOPIC',
@@ -121,16 +121,21 @@ export class AIChatUtil implements IApiAIChatUtil {
121
121
  if (editorParams.topiccaptionmode) {
122
122
  topicOptions.captionMode = editorParams.topiccaptionmode;
123
123
  }
124
- // 视图参数hidetopicsidebar,设置话题模式下隐藏侧边栏,默认不隐藏
124
+ // 编辑器参数hidetopicsidebar,设置话题模式下隐藏侧边栏,默认不隐藏
125
125
  topicOptions.hideTopicSidebar = false;
126
126
  if (editorParams.hidetopicsidebar) {
127
127
  topicOptions.hideTopicSidebar = editorParams.hidetopicsidebar === 'true';
128
128
  }
129
- // 视图参数disabletopicstorage,禁用存储
129
+ // 编辑器参数disabletopicstorage,禁用存储
130
130
  topicOptions.disableStorage = false;
131
131
  if (editorParams.disabletopicstorage) {
132
132
  topicOptions.disableStorage = editorParams.disabletopicstorage === 'true';
133
133
  }
134
+ // 编辑器参数topicstoragemode,可选值'DEFAULT' | 'REMOTESESSION',设置话题存储模式
135
+ topicOptions.storageMode = ibiz.config.common.aiTopicStorageMode;
136
+ if (editorParams.topicstoragemode) {
137
+ topicOptions.storageMode = editorParams.topicstoragemode;
138
+ }
134
139
  topicOptions.beforeDelete = async (...args: any[]) => {
135
140
  const isBatchRemove = args[4];
136
141
  const result = await ibiz.confirm.warning({
@@ -404,6 +409,7 @@ export class AIChatUtil implements IApiAIChatUtil {
404
409
  srfaiagentconfig: any,
405
410
  appendcurdata: IData | undefined,
406
411
  mcpservers: string | undefined,
412
+ sessionmeta: IData | undefined,
407
413
  ) => {
408
414
  id = createUUID();
409
415
  abortController = new AbortController();
@@ -428,6 +434,11 @@ export class AIChatUtil implements IApiAIChatUtil {
428
434
  mcpservers,
429
435
  });
430
436
  }
437
+ if (sessionmeta) {
438
+ Object.assign(questionRequestData, {
439
+ srfuimeta: JSON.stringify(sessionmeta),
440
+ });
441
+ }
431
442
  // 附加参数
432
443
  const extParams: IData = {};
433
444
  if (param && Object.keys(param).length > 0) {
@@ -834,7 +845,7 @@ export class AIChatUtil implements IApiAIChatUtil {
834
845
 
835
846
  // 会话参数
836
847
  const topicOptions: IData = {};
837
- // 视图参数topiccaptionmode,可选值'default' | 'snippet' | 'summary',设置会话主题
848
+ // 视图参数topiccaptionmode,可选值'default' | 'snippet' | 'summary',设置会话标题模式
838
849
  if (params.hasOwnProperty('topiccaptionmode')) {
839
850
  topicOptions.captionMode = params.topiccaptionmode;
840
851
  delete params.topiccaptionmode;
@@ -853,6 +864,13 @@ export class AIChatUtil implements IApiAIChatUtil {
853
864
  topicOptions.disableStorage = params.disabletopicstorage === 'true';
854
865
  delete params.disabletopicstorage;
855
866
  }
867
+ // 视图参数topicstoragemode,可选值'DEFAULT' | 'REMOTESESSION',设置话题存储模式
868
+ if (params.hasOwnProperty('topicstoragemode')) {
869
+ topicOptions.storageMode = params.topicstoragemode;
870
+ delete params.topicstoragemode;
871
+ } else {
872
+ topicOptions.storageMode = ibiz.config.common.aiTopicStorageMode;
873
+ }
856
874
  topicOptions.beforeDelete = async (...args: any[]) => {
857
875
  const isBatchRemove = args[4];
858
876
  const result = await ibiz.confirm.warning({
@@ -1145,6 +1163,7 @@ export class AIChatUtil implements IApiAIChatUtil {
1145
1163
  srfaiagentconfig: any,
1146
1164
  appendcurdata: IData | undefined,
1147
1165
  mcpservers: string | undefined,
1166
+ sessionmeta: IData | undefined,
1148
1167
  ) => {
1149
1168
  id = createUUID();
1150
1169
  abortController = new AbortController();
@@ -1167,6 +1186,11 @@ export class AIChatUtil implements IApiAIChatUtil {
1167
1186
  if (mcpservers) {
1168
1187
  Object.assign(questionRequestData, { mcpservers });
1169
1188
  }
1189
+ if (sessionmeta) {
1190
+ Object.assign(questionRequestData, {
1191
+ srfuimeta: JSON.stringify(sessionmeta),
1192
+ });
1193
+ }
1170
1194
  // 附加参数
1171
1195
  const extParams: IData = {};
1172
1196
  if (param && Object.keys(param).length > 0) {
@@ -6,6 +6,7 @@
6
6
  /* eslint-disable no-unused-vars */
7
7
  /* eslint-disable @typescript-eslint/no-unused-vars */
8
8
  import { Router } from 'vue-router';
9
+ import { createUUID } from 'qx-util';
9
10
  import {
10
11
  IAppUtil,
11
12
  IAuthResult,
@@ -299,6 +300,9 @@ export class AppUtil implements IAppUtil {
299
300
  if (params.srfattachsessiontag) {
300
301
  topicId += `__${params.srfattachsessiontag}`;
301
302
  delete params.srfattachsessiontag;
303
+ } else {
304
+ // 每次打开没有明确指定会话附加标识,都应该独立
305
+ topicId += `__${createUUID()}`;
302
306
  }
303
307
  const sessionid = ibiz.aiChatUtil.getChatSessionId(
304
308
  'TOPIC',
@@ -126,8 +126,9 @@ const startObservePoppers = () => {
126
126
  if (el.classList?.contains('el-popper')) {
127
127
  fixPopperInset(el);
128
128
  if (
129
+ el.classList.contains('ibiz-form-mdctrl-popper') ||
129
130
  el.classList.contains('ibiz-form-item-container__popper') ||
130
- el.classList.contains('ibiz-form-mdctrl-popper')
131
+ el.classList.contains('ibiz-grid-edit-item__tooltip-popper')
131
132
  ) {
132
133
  fixPopperTransform(el);
133
134
  }
@@ -143,8 +144,9 @@ const startObservePoppers = () => {
143
144
  if (el.classList?.contains('el-popper')) {
144
145
  fixPopperInset(el);
145
146
  if (
147
+ el.classList.contains('ibiz-form-mdctrl-popper') ||
146
148
  el.classList.contains('ibiz-form-item-container__popper') ||
147
- el.classList.contains('ibiz-form-mdctrl-popper')
149
+ el.classList.contains('ibiz-grid-edit-item__tooltip-popper')
148
150
  ) {
149
151
  fixPopperTransform(el);
150
152
  }