@epxing/business 5.3.0-beta.2 → 5.3.0-beta.4
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/API.md +115 -111
- package/README.md +44 -44
- package/dist/src/base/AiSkillEditor.js +1 -1
- package/dist/src/base/AiSkillEditor.vue.js +2 -0
- package/dist/src/base/AppConfigFormItem.js +1 -3
- package/dist/src/base/AppConfigFormItem.vue.js +210 -85
- package/dist/src/base/CommonFieldList.js +1 -1
- package/dist/src/base/CommonFieldList.vue.js +2 -1
- package/dist/src/base/ConfigModuleIndex.js +38 -1
- package/dist/src/base/ManageAppNav.js +1 -1
- package/dist/src/base/ManageMenu.js +1 -1
- package/dist/src/base/RoleBindTrace.js +253 -0
- package/dist/src/base/RoleGroupManage.js +1037 -0
- package/dist/src/base/ServiceMenu.js +7 -6
- package/dist/src/components/AiList.js +1278 -3
- package/dist/src/components/EntityCheckboxFind.vue.js +14 -10
- package/dist/src/components/EntityRightFormItem.js +1 -5
- package/dist/src/components/EntityRightFormItem.vue.js +3 -1
- package/dist/src/components/EntitySystemEr.js +492 -0
- package/dist/src/components/HallNav.vue.js +7 -36
- package/dist/src/components/IconFontLibrary.js +22 -1
- package/dist/src/components/IconFontList.js +21 -1
- package/dist/src/components/PrintFormList.js +2 -1
- package/dist/src/components/PrintFormList.vue.js +3 -1
- package/dist/src/components/WikiWorkbench.js +153 -129
- package/dist/src/components/authorization/AuthorizationInterface.js +3 -1
- package/dist/src/components/custom-bpmn/PropertiesView.js +1991 -1942
- package/dist/src/components/icon-gallery/IconGallery.js +193 -0
- package/dist/src/components/icon-gallery/mixin.js +150 -0
- package/dist/src/components/wiki-workbench/WikiIntake.js +86 -93
- package/dist/src/components/wiki-workbench/WikiIntake.vue.js +153 -73
- package/dist/src/index.js +26 -20
- package/dist/src/public-components.js +16 -14
- package/dist/src/route-components.js +5 -5
- package/dist/src/system.component.index.js +1 -1
- package/dist/src/system.component.js +8 -3
- package/dist/src/system.component.lazy.js +1 -1
- package/dist/src/views/Add.js +1 -1
- package/dist/src/views/Add.vue.js +8 -3
- package/dist/src/views/AiToolManager.js +792 -317
- package/dist/src/views/App.js +3 -45
- package/dist/src/views/AppRoleSelect.js +3 -230
- package/dist/src/views/Error.js +3 -207
- package/dist/src/views/ExcelDesign.js +326 -316
- package/dist/src/views/JvmMemoryMonitor.js +463 -0
- package/dist/src/views/Module.js +3 -170
- package/dist/src/views/WikiBinding.js +88 -25
- package/dist/style.css +2867 -1487
- package/package.json +12 -6
- package/src/base/AiSkillEditor.vue +2 -0
- package/src/base/AppConfigFormItem.vue +211 -145
- package/src/base/CommonFieldList.vue +9 -6
- package/src/base/ConfigModuleIndex.vue +37 -1
- package/src/base/ManageAppNav.vue +1188 -1188
- package/src/base/ManageMenu.vue +933 -933
- package/src/base/RoleBindTrace.vue +364 -0
- package/src/base/RoleGroupManage.vue +1160 -0
- package/src/base/ServiceMenu.vue +6 -5
- package/src/components/AiList.vue +439 -113
- package/src/components/EntityCheckboxFind.vue +12 -8
- package/src/components/EntityRightFormItem.vue +9 -10
- package/src/components/EntitySystemEr.vue +517 -0
- package/src/components/HallNav.vue +6 -33
- package/src/components/IconFontLibrary.vue +27 -60
- package/src/components/IconFontList.vue +13 -64
- package/src/components/PrintFormList.vue +33 -27
- package/src/components/WikiWorkbench.vue +90 -60
- package/src/components/authorization/AuthorizationInterface.vue +2 -0
- package/src/components/custom-bpmn/CustomPalette.js +1 -1
- package/src/components/custom-bpmn/CustomRenderer.js +1 -1
- package/src/components/custom-bpmn/PropertiesView.vue +35 -4
- package/src/components/custom-bpmn/index.js +1 -1
- package/src/components/icon-gallery/IconGallery.vue +130 -0
- package/src/components/icon-gallery/mixin.jsx +109 -0
- package/src/components/wiki-workbench/WikiIntake.vue +178 -104
- package/src/index.js +24 -20
- package/src/public-components.js +1 -0
- package/src/route-components.js +4 -4
- package/src/system.component.index.js +1 -1
- package/src/views/Add.vue +8 -5
- package/src/views/AiToolManager.vue +326 -4
- package/src/views/App.vue +4 -53
- package/src/views/AppRoleSelect.vue +4 -334
- package/src/views/Error.vue +4 -63
- package/src/views/ExcelDesign.vue +24 -7
- package/src/views/JvmMemoryMonitor.vue +284 -0
- package/src/views/Module.vue +4 -210
- package/src/views/WikiBinding.vue +42 -0
- package/types/app.d.ts +1 -0
- package/types/dept-find.d.ts +1 -1
- package/types/index.d.ts +15 -14
- package/types/popup.d.ts +2 -2
- package/types/route-components.d.ts +1 -1
- package/types/user-find.d.ts +1 -1
- package/dist/assets/role_select-DTqRlFNz.webp +0 -0
- package/dist/src/components/AiList.vue.js +0 -93
- package/dist/src/components/IconFontLibrary.vue.js +0 -67
- package/dist/src/components/IconFontList.vue.js +0 -79
|
@@ -2,7 +2,7 @@ import '../../style.css';
|
|
|
2
2
|
import __cjsReq0 from "../assets/images/app.png.js";
|
|
3
3
|
import draggable from "@epxing/core/src/components/draggable";
|
|
4
4
|
import component from "@epxing/core/src/mixins/component";
|
|
5
|
-
import { resolveComponent, openBlock, createElementBlock, createElementVNode, Fragment, renderList, toDisplayString, createVNode, withModifiers,
|
|
5
|
+
import { resolveComponent, resolveDirective, openBlock, createElementBlock, createElementVNode, Fragment, renderList, toDisplayString, createVNode, withModifiers, withCtx, createTextVNode, createBlock, createCommentVNode, mergeProps, withKeys, withDirectives } from "vue";
|
|
6
6
|
/* empty css */
|
|
7
7
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
8
8
|
const _sfc_main = {
|
|
@@ -50,6 +50,21 @@ const _sfc_main = {
|
|
|
50
50
|
subAgentTools: [],
|
|
51
51
|
skillTools: [],
|
|
52
52
|
sysTools: [],
|
|
53
|
+
callMethodTools: [],
|
|
54
|
+
callMethodDialogVisible: false,
|
|
55
|
+
callMethodList: [],
|
|
56
|
+
callMethodKeyword: "",
|
|
57
|
+
callMethodPage: 1,
|
|
58
|
+
callMethodTotal: 0,
|
|
59
|
+
callMethodLoading: false,
|
|
60
|
+
callMethodSaving: false,
|
|
61
|
+
callMethodRequestId: 0,
|
|
62
|
+
selectedCallMethods: [],
|
|
63
|
+
// 确认设置按方法ID保留,跨页选择不会重置用户修改。
|
|
64
|
+
callMethodConfirm: {},
|
|
65
|
+
callMethodSettingsVisible: false,
|
|
66
|
+
callMethodSetting: {},
|
|
67
|
+
callMethodSettingConfirm: false,
|
|
53
68
|
dialogVisible: false,
|
|
54
69
|
dialogTitle: "新增工具",
|
|
55
70
|
isEdit: false,
|
|
@@ -144,14 +159,14 @@ const _sfc_main = {
|
|
|
144
159
|
methods: {
|
|
145
160
|
// 加载工具列表
|
|
146
161
|
loadTools() {
|
|
147
|
-
this.$http.list({
|
|
162
|
+
return this.$http.list({
|
|
148
163
|
action: "list",
|
|
149
164
|
entityId: "FM_AI_TOOL",
|
|
150
165
|
"scope.AGENT": this.$query.id,
|
|
151
166
|
order_field: "ORDER",
|
|
152
167
|
order_mode: "asc",
|
|
153
168
|
columnFieldNames: "ID,NAME#,TYPE,DESC,ORDER,ACTION,META#,API,TOKEN,MCP_URL,WORKFLOW,SKILL_FILE,ENABLE,CONFIRM,FORM_PAGE,RESULT_PAGE,USE_FORM_PAGE,USE_RESULT_PAGE,API|LABEL,API|NAME,API|ENTITY#,API|PARAM_EXPLAIN,API|FRAME_API,OUT_API|NOTICE,SUB_AGENT|NAME,SUB_AGENT|AGENT_PROMPT,SUB_AGENT|CODE,SUB_AGENT|IMAGE,SKILL,SKILL|NAME,SKILL|CODE,SKILL|DESC,MCP,MCP|NAME,MCP|CODE,MCP|TYPE,MCP|URL,MCP|COMMAND,SYS_TOOL,SYS_TOOL|NAME,SYS_TOOL|CODE,SYS_TOOL|DESC"
|
|
154
|
-
}).then((data) => {
|
|
169
|
+
}).then(async (data) => {
|
|
155
170
|
const tools = data.entitys || [];
|
|
156
171
|
this.interfaceTools = tools.filter((t) => t.TYPE === "function");
|
|
157
172
|
this.externalTools = tools.filter((t) => t.TYPE === "api");
|
|
@@ -159,10 +174,158 @@ const _sfc_main = {
|
|
|
159
174
|
this.subAgentTools = tools.filter((t) => t.TYPE === "subagent");
|
|
160
175
|
this.skillTools = tools.filter((t) => t.TYPE === "skills");
|
|
161
176
|
this.sysTools = tools.filter((t) => t.TYPE === "sys_tool");
|
|
177
|
+
await this.loadCallMethodTools(tools.filter((t) => t.TYPE === "call_method"));
|
|
162
178
|
}).catch((err) => {
|
|
163
179
|
this.$message.error(err.message || "加载工具列表失败");
|
|
164
180
|
});
|
|
165
181
|
},
|
|
182
|
+
callMethodTypeName(operation) {
|
|
183
|
+
return { CREATE: "数据新增", LIST: "列表分页查询", UPDATE: "数据编辑", DELETE: "数据删除", DETAIL: "详情", APPLY: "申请", APPROVE: "审核", PRINT: "报表打印" }[operation] || operation || "—";
|
|
184
|
+
},
|
|
185
|
+
// 仅存在此类绑定时读取新增关联字段,兼容尚未接入调用方法的旧配置。
|
|
186
|
+
async loadCallMethodTools(tools) {
|
|
187
|
+
this.callMethodTools = tools;
|
|
188
|
+
if (!tools.length) return;
|
|
189
|
+
const result = await this.$http.list({
|
|
190
|
+
entityId: this.$util.getSystemMeta("FM_AI_TOOL"),
|
|
191
|
+
"scope.AGENT": this.$query.id,
|
|
192
|
+
"scope.TYPE": "call_method",
|
|
193
|
+
limit: tools.length,
|
|
194
|
+
columnFieldNames: "ID,NAME,DESC,CONFIRM,CALL_METHOD,CALL_METHOD|NAME,CALL_METHOD|CODE,CALL_METHOD|DESCRIPTION,CALL_METHOD|OPERATION,CALL_METHOD|MAIN_ENTITY#"
|
|
195
|
+
});
|
|
196
|
+
this.callMethodTools = result.entitys || [];
|
|
197
|
+
},
|
|
198
|
+
showCallMethodDialog() {
|
|
199
|
+
if (!this.$query.id) {
|
|
200
|
+
this.$message.warning("请先保存智能体,再添加调用方法");
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
this.callMethodKeyword = "";
|
|
204
|
+
this.callMethodPage = 1;
|
|
205
|
+
this.callMethodList = [];
|
|
206
|
+
this.selectedCallMethods = [];
|
|
207
|
+
this.callMethodConfirm = {};
|
|
208
|
+
this.callMethodDialogVisible = true;
|
|
209
|
+
this.$nextTick(() => {
|
|
210
|
+
if (this.$refs.callMethodTable) this.$refs.callMethodTable.clearSelection();
|
|
211
|
+
this.loadCallMethods();
|
|
212
|
+
});
|
|
213
|
+
},
|
|
214
|
+
async loadCallMethods() {
|
|
215
|
+
const requestId = ++this.callMethodRequestId;
|
|
216
|
+
this.callMethodLoading = true;
|
|
217
|
+
try {
|
|
218
|
+
const result = await this.$http.list({
|
|
219
|
+
entityId: this.$util.getSystemMeta("FM_AI_CALL_METHOD"),
|
|
220
|
+
"scope.ENABLE": "1",
|
|
221
|
+
keywordValue: this.callMethodKeyword,
|
|
222
|
+
keywordFields: "NAME,CODE",
|
|
223
|
+
page: this.callMethodPage,
|
|
224
|
+
limit: 10,
|
|
225
|
+
columnFieldNames: "ID,NAME,CODE,DESCRIPTION,OPERATION,MAIN_ENTITY#",
|
|
226
|
+
order_field: "CODE",
|
|
227
|
+
order_mode: "asc"
|
|
228
|
+
});
|
|
229
|
+
if (requestId !== this.callMethodRequestId) return;
|
|
230
|
+
this.callMethodList = result.entitys || [];
|
|
231
|
+
this.callMethodTotal = result.total || 0;
|
|
232
|
+
} catch (err) {
|
|
233
|
+
if (requestId === this.callMethodRequestId) {
|
|
234
|
+
this.callMethodList = [];
|
|
235
|
+
this.callMethodTotal = 0;
|
|
236
|
+
this.$message.error(err.msg || err.message || "加载调用方法失败");
|
|
237
|
+
}
|
|
238
|
+
} finally {
|
|
239
|
+
if (requestId === this.callMethodRequestId) this.callMethodLoading = false;
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
searchCallMethods() {
|
|
243
|
+
this.callMethodPage = 1;
|
|
244
|
+
this.loadCallMethods();
|
|
245
|
+
},
|
|
246
|
+
changeCallMethodPage(page) {
|
|
247
|
+
this.callMethodPage = page;
|
|
248
|
+
this.loadCallMethods();
|
|
249
|
+
},
|
|
250
|
+
canSelectCallMethod(row) {
|
|
251
|
+
return !this.callMethodSaving && !this.callMethodTools.some((tool) => tool.CALL_METHOD === row.ID);
|
|
252
|
+
},
|
|
253
|
+
handleCallMethodSelectionChange(selection) {
|
|
254
|
+
this.selectedCallMethods = selection;
|
|
255
|
+
selection.forEach((method) => {
|
|
256
|
+
if (!Object.prototype.hasOwnProperty.call(this.callMethodConfirm, method.ID)) {
|
|
257
|
+
this.$set(this.callMethodConfirm, method.ID, method.OPERATION === "CREATE");
|
|
258
|
+
}
|
|
259
|
+
});
|
|
260
|
+
},
|
|
261
|
+
async confirmCallMethods() {
|
|
262
|
+
if (this.callMethodSaving || !this.selectedCallMethods.length) return;
|
|
263
|
+
this.callMethodSaving = true;
|
|
264
|
+
let saved = 0;
|
|
265
|
+
try {
|
|
266
|
+
for (const method of [...this.selectedCallMethods]) {
|
|
267
|
+
await this.$http.save({
|
|
268
|
+
entityId: this.$util.getSystemMeta("FM_AI_TOOL"),
|
|
269
|
+
bean: {
|
|
270
|
+
NAME: method.NAME,
|
|
271
|
+
DESC: method.DESCRIPTION || method.NAME,
|
|
272
|
+
TYPE: "call_method",
|
|
273
|
+
CALL_METHOD: method.ID,
|
|
274
|
+
AGENT: this.$query.id,
|
|
275
|
+
CLIENT: this.CLIENT,
|
|
276
|
+
SYSTEM: this.SYSTEM,
|
|
277
|
+
ENABLE: "1",
|
|
278
|
+
CONFIRM: this.callMethodConfirm[method.ID] ? "1" : "0"
|
|
279
|
+
}
|
|
280
|
+
});
|
|
281
|
+
saved++;
|
|
282
|
+
this.$refs.callMethodTable.toggleRowSelection(method, false);
|
|
283
|
+
}
|
|
284
|
+
this.callMethodDialogVisible = false;
|
|
285
|
+
this.$message.success(`已添加 ${saved} 个调用方法`);
|
|
286
|
+
} catch (err) {
|
|
287
|
+
this.$message.error(`${saved ? `已添加 ${saved} 个,其余未完成:` : ""}${err.msg || err.message || "添加调用方法失败"}`);
|
|
288
|
+
} finally {
|
|
289
|
+
await this.loadTools();
|
|
290
|
+
this.callMethodSaving = false;
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
showCallMethodSettings(tool) {
|
|
294
|
+
this.callMethodSetting = { ...tool };
|
|
295
|
+
this.callMethodSettingConfirm = String(tool.CONFIRM) === "1";
|
|
296
|
+
this.callMethodSettingsVisible = true;
|
|
297
|
+
},
|
|
298
|
+
async saveCallMethodSettings() {
|
|
299
|
+
if (this.callMethodSaving) return;
|
|
300
|
+
this.callMethodSaving = true;
|
|
301
|
+
try {
|
|
302
|
+
await this.$http.update({
|
|
303
|
+
entityId: this.$util.getSystemMeta("FM_AI_TOOL"),
|
|
304
|
+
bean: { ID: this.callMethodSetting.ID, CONFIRM: this.callMethodSettingConfirm ? "1" : "0" }
|
|
305
|
+
});
|
|
306
|
+
this.callMethodSettingsVisible = false;
|
|
307
|
+
this.$message.success("接入配置已保存");
|
|
308
|
+
await this.loadTools();
|
|
309
|
+
} catch (err) {
|
|
310
|
+
this.$message.error(err.msg || err.message || "保存接入配置失败");
|
|
311
|
+
} finally {
|
|
312
|
+
this.callMethodSaving = false;
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
async removeCallMethod(tool) {
|
|
316
|
+
try {
|
|
317
|
+
await this.$confirm(`确定解除“${tool["CALL_METHOD|NAME"] || tool.NAME}”的绑定吗?方法定义会保留。`, "解除绑定", { type: "warning" });
|
|
318
|
+
} catch (cancel) {
|
|
319
|
+
return;
|
|
320
|
+
}
|
|
321
|
+
try {
|
|
322
|
+
await this.$http.removeMulti({ entityId: this.$util.getSystemMeta("FM_AI_TOOL"), ids: tool.ID });
|
|
323
|
+
this.$message.success("已解除绑定");
|
|
324
|
+
await this.loadTools();
|
|
325
|
+
} catch (err) {
|
|
326
|
+
this.$message.error(err.msg || err.message || "解除绑定失败");
|
|
327
|
+
}
|
|
328
|
+
},
|
|
166
329
|
// 新增工具
|
|
167
330
|
handleAdd(type) {
|
|
168
331
|
if (type === "interface") {
|
|
@@ -858,152 +1021,169 @@ const _hoisted_11 = { class: "tool-section" };
|
|
|
858
1021
|
const _hoisted_12 = { class: "tool-cards" };
|
|
859
1022
|
const _hoisted_13 = ["onClick"];
|
|
860
1023
|
const _hoisted_14 = { class: "card-header" };
|
|
861
|
-
const _hoisted_15 = { class: "card-title
|
|
862
|
-
const _hoisted_16 = { class: "card-
|
|
863
|
-
const _hoisted_17 = { class: "card-
|
|
864
|
-
const _hoisted_18 = { class: "card-
|
|
1024
|
+
const _hoisted_15 = { class: "card-title" };
|
|
1025
|
+
const _hoisted_16 = { class: "card-content" };
|
|
1026
|
+
const _hoisted_17 = { class: "card-line" };
|
|
1027
|
+
const _hoisted_18 = { class: "card-line" };
|
|
865
1028
|
const _hoisted_19 = { class: "card-line" };
|
|
866
1029
|
const _hoisted_20 = { class: "card-line" };
|
|
867
|
-
const _hoisted_21 = { class: "
|
|
868
|
-
const _hoisted_22 = { class: "tool-
|
|
869
|
-
const _hoisted_23 = { class: "
|
|
870
|
-
const _hoisted_24 =
|
|
871
|
-
const _hoisted_25 = { class: "card-
|
|
872
|
-
const _hoisted_26 = { class: "card-
|
|
873
|
-
const _hoisted_27 = { class: "card-
|
|
874
|
-
const _hoisted_28 = { class: "
|
|
875
|
-
const _hoisted_29 = { class: "
|
|
876
|
-
const _hoisted_30 = { class: "card-
|
|
877
|
-
const _hoisted_31 = { class: "card-
|
|
878
|
-
const _hoisted_32 = { class: "
|
|
879
|
-
const _hoisted_33 = { class: "
|
|
880
|
-
const _hoisted_34 = { class: "card-
|
|
881
|
-
const _hoisted_35 = { class: "card-
|
|
882
|
-
const _hoisted_36 = { class: "
|
|
883
|
-
const _hoisted_37 = { class: "
|
|
884
|
-
const _hoisted_38 = { class: "card-
|
|
885
|
-
const _hoisted_39 = { class: "
|
|
886
|
-
const _hoisted_40 = { class: "
|
|
887
|
-
const _hoisted_41 = { class: "card-
|
|
888
|
-
const _hoisted_42 = { class: "card-
|
|
889
|
-
const _hoisted_43 = { class: "card-
|
|
890
|
-
const _hoisted_44 = { class: "card-
|
|
891
|
-
const _hoisted_45 = { class: "
|
|
892
|
-
const _hoisted_46 = { class: "card-
|
|
893
|
-
const _hoisted_47 =
|
|
894
|
-
const _hoisted_48 = { class: "
|
|
1030
|
+
const _hoisted_21 = { class: "call-method-actions" };
|
|
1031
|
+
const _hoisted_22 = { class: "tool-section" };
|
|
1032
|
+
const _hoisted_23 = { class: "tool-cards" };
|
|
1033
|
+
const _hoisted_24 = ["onClick"];
|
|
1034
|
+
const _hoisted_25 = { class: "card-header" };
|
|
1035
|
+
const _hoisted_26 = { class: "card-title-group" };
|
|
1036
|
+
const _hoisted_27 = { class: "card-title" };
|
|
1037
|
+
const _hoisted_28 = { class: "card-code" };
|
|
1038
|
+
const _hoisted_29 = { class: "card-content" };
|
|
1039
|
+
const _hoisted_30 = { class: "card-line" };
|
|
1040
|
+
const _hoisted_31 = { class: "card-line" };
|
|
1041
|
+
const _hoisted_32 = { class: "tool-section" };
|
|
1042
|
+
const _hoisted_33 = { class: "tool-cards" };
|
|
1043
|
+
const _hoisted_34 = { class: "card-header" };
|
|
1044
|
+
const _hoisted_35 = { class: "card-title-group" };
|
|
1045
|
+
const _hoisted_36 = { class: "card-title" };
|
|
1046
|
+
const _hoisted_37 = { class: "card-content" };
|
|
1047
|
+
const _hoisted_38 = { class: "card-line" };
|
|
1048
|
+
const _hoisted_39 = { class: "tool-section" };
|
|
1049
|
+
const _hoisted_40 = { class: "tool-cards" };
|
|
1050
|
+
const _hoisted_41 = { class: "card-header" };
|
|
1051
|
+
const _hoisted_42 = { class: "card-title-group" };
|
|
1052
|
+
const _hoisted_43 = { class: "card-title" };
|
|
1053
|
+
const _hoisted_44 = { class: "card-code" };
|
|
1054
|
+
const _hoisted_45 = { class: "card-content" };
|
|
1055
|
+
const _hoisted_46 = { class: "card-line" };
|
|
1056
|
+
const _hoisted_47 = { class: "tool-section" };
|
|
1057
|
+
const _hoisted_48 = { class: "tool-cards" };
|
|
895
1058
|
const _hoisted_49 = { class: "card-header" };
|
|
896
1059
|
const _hoisted_50 = { class: "card-title-group" };
|
|
897
1060
|
const _hoisted_51 = { class: "card-title" };
|
|
898
1061
|
const _hoisted_52 = { class: "card-code" };
|
|
899
1062
|
const _hoisted_53 = { class: "card-content" };
|
|
900
1063
|
const _hoisted_54 = { class: "card-line" };
|
|
901
|
-
const _hoisted_55 = { class: "
|
|
902
|
-
const _hoisted_56 = { class: "
|
|
903
|
-
const _hoisted_57 = { class: "
|
|
904
|
-
const _hoisted_58 =
|
|
905
|
-
const _hoisted_59 = { class: "
|
|
906
|
-
const _hoisted_60 = {
|
|
1064
|
+
const _hoisted_55 = { class: "card-line" };
|
|
1065
|
+
const _hoisted_56 = { class: "tool-section" };
|
|
1066
|
+
const _hoisted_57 = { class: "card-icon-wrapper" };
|
|
1067
|
+
const _hoisted_58 = ["src"];
|
|
1068
|
+
const _hoisted_59 = { class: "card-main" };
|
|
1069
|
+
const _hoisted_60 = { class: "card-header" };
|
|
1070
|
+
const _hoisted_61 = { class: "card-title-group" };
|
|
1071
|
+
const _hoisted_62 = { class: "card-title" };
|
|
1072
|
+
const _hoisted_63 = { class: "card-code" };
|
|
1073
|
+
const _hoisted_64 = { class: "card-content" };
|
|
1074
|
+
const _hoisted_65 = { class: "card-line" };
|
|
1075
|
+
const _hoisted_66 = { class: "dialog-footer" };
|
|
1076
|
+
const _hoisted_67 = { class: "api-dialog-content" };
|
|
1077
|
+
const _hoisted_68 = { class: "api-list-panel" };
|
|
1078
|
+
const _hoisted_69 = { class: "filter-bar" };
|
|
1079
|
+
const _hoisted_70 = { class: "filter-item" };
|
|
1080
|
+
const _hoisted_71 = {
|
|
907
1081
|
key: 1,
|
|
908
1082
|
class: "empty-table-tip"
|
|
909
1083
|
};
|
|
910
|
-
const
|
|
911
|
-
const
|
|
912
|
-
const
|
|
913
|
-
const
|
|
914
|
-
const
|
|
915
|
-
const
|
|
916
|
-
const
|
|
917
|
-
const
|
|
1084
|
+
const _hoisted_72 = { class: "api-selected-panel" };
|
|
1085
|
+
const _hoisted_73 = { class: "selected-list" };
|
|
1086
|
+
const _hoisted_74 = { class: "item-header" };
|
|
1087
|
+
const _hoisted_75 = { class: "item-title" };
|
|
1088
|
+
const _hoisted_76 = { class: "item-content" };
|
|
1089
|
+
const _hoisted_77 = { class: "content-line" };
|
|
1090
|
+
const _hoisted_78 = { class: "content-line" };
|
|
1091
|
+
const _hoisted_79 = {
|
|
918
1092
|
key: 0,
|
|
919
1093
|
class: "empty-tip"
|
|
920
1094
|
};
|
|
921
|
-
const
|
|
922
|
-
const
|
|
923
|
-
const
|
|
924
|
-
const
|
|
925
|
-
const
|
|
926
|
-
const
|
|
927
|
-
const
|
|
928
|
-
const
|
|
929
|
-
const
|
|
930
|
-
const
|
|
931
|
-
const
|
|
932
|
-
const
|
|
1095
|
+
const _hoisted_80 = { class: "panel-footer" };
|
|
1096
|
+
const _hoisted_81 = { class: "count-text" };
|
|
1097
|
+
const _hoisted_82 = { class: "footer-actions" };
|
|
1098
|
+
const _hoisted_83 = { class: "api-dialog-content" };
|
|
1099
|
+
const _hoisted_84 = { class: "api-list-panel" };
|
|
1100
|
+
const _hoisted_85 = { class: "api-selected-panel" };
|
|
1101
|
+
const _hoisted_86 = { class: "selected-list" };
|
|
1102
|
+
const _hoisted_87 = { class: "item-header" };
|
|
1103
|
+
const _hoisted_88 = { class: "item-title" };
|
|
1104
|
+
const _hoisted_89 = { class: "item-content" };
|
|
1105
|
+
const _hoisted_90 = { class: "content-line" };
|
|
1106
|
+
const _hoisted_91 = {
|
|
933
1107
|
key: 0,
|
|
934
1108
|
class: "empty-tip"
|
|
935
1109
|
};
|
|
936
|
-
const
|
|
937
|
-
const
|
|
938
|
-
const
|
|
939
|
-
const
|
|
940
|
-
const
|
|
941
|
-
const
|
|
942
|
-
const
|
|
943
|
-
const
|
|
944
|
-
const
|
|
945
|
-
const
|
|
946
|
-
const
|
|
947
|
-
const
|
|
948
|
-
const
|
|
949
|
-
const
|
|
950
|
-
const
|
|
951
|
-
const
|
|
1110
|
+
const _hoisted_92 = { class: "panel-footer" };
|
|
1111
|
+
const _hoisted_93 = { class: "count-text" };
|
|
1112
|
+
const _hoisted_94 = { class: "footer-actions" };
|
|
1113
|
+
const _hoisted_95 = { class: "api-dialog-content" };
|
|
1114
|
+
const _hoisted_96 = { class: "api-list-panel" };
|
|
1115
|
+
const _hoisted_97 = { class: "api-selected-panel" };
|
|
1116
|
+
const _hoisted_98 = { class: "selected-list" };
|
|
1117
|
+
const _hoisted_99 = { class: "item-header" };
|
|
1118
|
+
const _hoisted_100 = { class: "item-header-left" };
|
|
1119
|
+
const _hoisted_101 = { class: "item-icon" };
|
|
1120
|
+
const _hoisted_102 = ["src"];
|
|
1121
|
+
const _hoisted_103 = { class: "item-title" };
|
|
1122
|
+
const _hoisted_104 = { class: "item-content" };
|
|
1123
|
+
const _hoisted_105 = { class: "content-line" };
|
|
1124
|
+
const _hoisted_106 = { class: "content-line" };
|
|
1125
|
+
const _hoisted_107 = {
|
|
952
1126
|
key: 0,
|
|
953
1127
|
class: "empty-tip"
|
|
954
1128
|
};
|
|
955
|
-
const
|
|
956
|
-
const
|
|
957
|
-
const
|
|
958
|
-
const
|
|
959
|
-
const
|
|
960
|
-
const
|
|
961
|
-
const
|
|
962
|
-
const
|
|
963
|
-
const
|
|
964
|
-
const
|
|
965
|
-
const
|
|
966
|
-
const
|
|
967
|
-
const
|
|
1129
|
+
const _hoisted_108 = { class: "panel-footer" };
|
|
1130
|
+
const _hoisted_109 = { class: "count-text" };
|
|
1131
|
+
const _hoisted_110 = { class: "footer-actions" };
|
|
1132
|
+
const _hoisted_111 = { class: "api-dialog-content" };
|
|
1133
|
+
const _hoisted_112 = { class: "api-list-panel" };
|
|
1134
|
+
const _hoisted_113 = { class: "api-selected-panel" };
|
|
1135
|
+
const _hoisted_114 = { class: "selected-list" };
|
|
1136
|
+
const _hoisted_115 = { class: "item-header" };
|
|
1137
|
+
const _hoisted_116 = { class: "item-title" };
|
|
1138
|
+
const _hoisted_117 = { class: "item-content" };
|
|
1139
|
+
const _hoisted_118 = { class: "content-line" };
|
|
1140
|
+
const _hoisted_119 = { class: "content-line" };
|
|
1141
|
+
const _hoisted_120 = {
|
|
968
1142
|
key: 0,
|
|
969
1143
|
class: "empty-tip"
|
|
970
1144
|
};
|
|
971
|
-
const
|
|
972
|
-
const
|
|
973
|
-
const
|
|
974
|
-
const
|
|
975
|
-
const
|
|
976
|
-
const
|
|
977
|
-
const
|
|
978
|
-
const
|
|
979
|
-
const
|
|
980
|
-
const
|
|
981
|
-
const
|
|
982
|
-
const
|
|
983
|
-
const
|
|
1145
|
+
const _hoisted_121 = { class: "panel-footer" };
|
|
1146
|
+
const _hoisted_122 = { class: "count-text" };
|
|
1147
|
+
const _hoisted_123 = { class: "footer-actions" };
|
|
1148
|
+
const _hoisted_124 = { class: "api-dialog-content" };
|
|
1149
|
+
const _hoisted_125 = { class: "api-list-panel" };
|
|
1150
|
+
const _hoisted_126 = { class: "api-selected-panel" };
|
|
1151
|
+
const _hoisted_127 = { class: "selected-list" };
|
|
1152
|
+
const _hoisted_128 = { class: "item-header" };
|
|
1153
|
+
const _hoisted_129 = { class: "item-title" };
|
|
1154
|
+
const _hoisted_130 = { class: "item-content" };
|
|
1155
|
+
const _hoisted_131 = { class: "content-line" };
|
|
1156
|
+
const _hoisted_132 = { class: "content-line" };
|
|
1157
|
+
const _hoisted_133 = {
|
|
984
1158
|
key: 0,
|
|
985
1159
|
class: "empty-tip"
|
|
986
1160
|
};
|
|
987
|
-
const
|
|
988
|
-
const
|
|
989
|
-
const
|
|
990
|
-
const
|
|
991
|
-
const
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
const
|
|
996
|
-
const
|
|
997
|
-
const
|
|
998
|
-
const
|
|
999
|
-
const
|
|
1000
|
-
const
|
|
1161
|
+
const _hoisted_134 = { class: "panel-footer" };
|
|
1162
|
+
const _hoisted_135 = { class: "count-text" };
|
|
1163
|
+
const _hoisted_136 = { class: "footer-actions" };
|
|
1164
|
+
const _hoisted_137 = { class: "call-method-toolbar" };
|
|
1165
|
+
const _hoisted_138 = {
|
|
1166
|
+
key: 0,
|
|
1167
|
+
class: "call-method-selection"
|
|
1168
|
+
};
|
|
1169
|
+
const _hoisted_139 = { class: "call-method-selection-title" };
|
|
1170
|
+
const _hoisted_140 = { class: "api-dialog-content" };
|
|
1171
|
+
const _hoisted_141 = { class: "api-list-panel" };
|
|
1172
|
+
const _hoisted_142 = { class: "api-selected-panel" };
|
|
1173
|
+
const _hoisted_143 = { class: "selected-list" };
|
|
1174
|
+
const _hoisted_144 = { class: "item-header" };
|
|
1175
|
+
const _hoisted_145 = { class: "item-title" };
|
|
1176
|
+
const _hoisted_146 = { class: "item-content" };
|
|
1177
|
+
const _hoisted_147 = { class: "content-line" };
|
|
1178
|
+
const _hoisted_148 = { class: "content-line" };
|
|
1179
|
+
const _hoisted_149 = { class: "content-line" };
|
|
1180
|
+
const _hoisted_150 = {
|
|
1001
1181
|
key: 0,
|
|
1002
1182
|
class: "empty-tip"
|
|
1003
1183
|
};
|
|
1004
|
-
const
|
|
1005
|
-
const
|
|
1006
|
-
const
|
|
1184
|
+
const _hoisted_151 = { class: "panel-footer" };
|
|
1185
|
+
const _hoisted_152 = { class: "count-text" };
|
|
1186
|
+
const _hoisted_153 = { class: "footer-actions" };
|
|
1007
1187
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1008
1188
|
const _component_el_button = resolveComponent("el-button");
|
|
1009
1189
|
const _component_el_tag = resolveComponent("el-tag");
|
|
@@ -1023,9 +1203,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1023
1203
|
const _component_el_tab_pane = resolveComponent("el-tab-pane");
|
|
1024
1204
|
const _component_epx_object = resolveComponent("epx-object");
|
|
1025
1205
|
const _component_el_tabs = resolveComponent("el-tabs");
|
|
1206
|
+
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
1207
|
+
const _directive_loading = resolveDirective("loading");
|
|
1026
1208
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
1027
1209
|
createElementVNode("div", _hoisted_2, [
|
|
1028
|
-
_cache[
|
|
1210
|
+
_cache[52] || (_cache[52] = createElementVNode("div", { class: "section-header" }, [
|
|
1029
1211
|
createElementVNode("span", { class: "section-title" }, "技能")
|
|
1030
1212
|
], -1)),
|
|
1031
1213
|
createElementVNode("div", _hoisted_3, [
|
|
@@ -1056,37 +1238,100 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1056
1238
|
createElementVNode("div", {
|
|
1057
1239
|
class: "tool-card add-card",
|
|
1058
1240
|
onClick: _cache[0] || (_cache[0] = ($event) => $options.handleAdd("skill"))
|
|
1059
|
-
}, [..._cache[
|
|
1241
|
+
}, [..._cache[51] || (_cache[51] = [
|
|
1060
1242
|
createElementVNode("div", { class: "add-icon" }, "+", -1),
|
|
1061
1243
|
createElementVNode("div", { class: "add-text" }, "添加技能", -1)
|
|
1062
1244
|
])])
|
|
1063
1245
|
])
|
|
1064
1246
|
]),
|
|
1065
1247
|
createElementVNode("div", _hoisted_11, [
|
|
1066
|
-
_cache[
|
|
1067
|
-
createElementVNode("span", { class: "section-title" }, "
|
|
1248
|
+
_cache[56] || (_cache[56] = createElementVNode("div", { class: "section-header" }, [
|
|
1249
|
+
createElementVNode("span", { class: "section-title" }, "调用方法"),
|
|
1250
|
+
createElementVNode("span", { class: "call-method-hint" }, "接入配置中心已启用的方法,供智能体调用")
|
|
1068
1251
|
], -1)),
|
|
1069
1252
|
createElementVNode("div", _hoisted_12, [
|
|
1253
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($data.callMethodTools, (tool) => {
|
|
1254
|
+
return openBlock(), createElementBlock("div", {
|
|
1255
|
+
key: tool.ID,
|
|
1256
|
+
class: "tool-card interface-card clickable",
|
|
1257
|
+
onClick: ($event) => $options.showCallMethodSettings(tool)
|
|
1258
|
+
}, [
|
|
1259
|
+
createElementVNode("div", _hoisted_14, [
|
|
1260
|
+
createElementVNode("span", _hoisted_15, toDisplayString(tool["CALL_METHOD|NAME"] || tool.NAME), 1),
|
|
1261
|
+
createVNode(_component_el_tag, {
|
|
1262
|
+
size: "small",
|
|
1263
|
+
type: String(tool.CONFIRM) === "1" ? "warning" : "info"
|
|
1264
|
+
}, {
|
|
1265
|
+
default: withCtx(() => [
|
|
1266
|
+
createTextVNode(toDisplayString(String(tool.CONFIRM) === "1" ? "执行前确认" : "直接执行"), 1)
|
|
1267
|
+
]),
|
|
1268
|
+
_: 2
|
|
1269
|
+
}, 1032, ["type"])
|
|
1270
|
+
]),
|
|
1271
|
+
createElementVNode("div", _hoisted_16, [
|
|
1272
|
+
createElementVNode("div", _hoisted_17, "方法标识:" + toDisplayString(tool["CALL_METHOD|CODE"] || "—"), 1),
|
|
1273
|
+
createElementVNode("div", _hoisted_18, "主对象:" + toDisplayString(tool["CALL_METHOD|MAIN_ENTITY#"] || "—"), 1),
|
|
1274
|
+
createElementVNode("div", _hoisted_19, "方法类型:" + toDisplayString($options.callMethodTypeName(tool["CALL_METHOD|OPERATION"])), 1),
|
|
1275
|
+
createElementVNode("div", _hoisted_20, toDisplayString(tool["CALL_METHOD|DESCRIPTION"] || tool.DESC), 1)
|
|
1276
|
+
]),
|
|
1277
|
+
createElementVNode("div", _hoisted_21, [
|
|
1278
|
+
createVNode(_component_el_button, {
|
|
1279
|
+
size: "small",
|
|
1280
|
+
class: "call-method-secondary",
|
|
1281
|
+
onClick: withModifiers(($event) => $options.showCallMethodSettings(tool), ["stop"])
|
|
1282
|
+
}, {
|
|
1283
|
+
default: withCtx(() => [..._cache[53] || (_cache[53] = [
|
|
1284
|
+
createTextVNode("接入配置", -1)
|
|
1285
|
+
])]),
|
|
1286
|
+
_: 1
|
|
1287
|
+
}, 8, ["onClick"]),
|
|
1288
|
+
createVNode(_component_el_button, {
|
|
1289
|
+
size: "small",
|
|
1290
|
+
class: "call-method-danger",
|
|
1291
|
+
onClick: withModifiers(($event) => $options.removeCallMethod(tool), ["stop"])
|
|
1292
|
+
}, {
|
|
1293
|
+
default: withCtx(() => [..._cache[54] || (_cache[54] = [
|
|
1294
|
+
createTextVNode("解除绑定", -1)
|
|
1295
|
+
])]),
|
|
1296
|
+
_: 1
|
|
1297
|
+
}, 8, ["onClick"])
|
|
1298
|
+
])
|
|
1299
|
+
], 8, _hoisted_13);
|
|
1300
|
+
}), 128)),
|
|
1301
|
+
createElementVNode("div", {
|
|
1302
|
+
class: "tool-card add-card",
|
|
1303
|
+
onClick: _cache[1] || (_cache[1] = (...args) => $options.showCallMethodDialog && $options.showCallMethodDialog(...args))
|
|
1304
|
+
}, [..._cache[55] || (_cache[55] = [
|
|
1305
|
+
createElementVNode("div", { class: "add-icon" }, "+", -1),
|
|
1306
|
+
createElementVNode("div", { class: "add-text" }, "添加调用方法", -1)
|
|
1307
|
+
])])
|
|
1308
|
+
])
|
|
1309
|
+
]),
|
|
1310
|
+
createElementVNode("div", _hoisted_22, [
|
|
1311
|
+
_cache[59] || (_cache[59] = createElementVNode("div", { class: "section-header" }, [
|
|
1312
|
+
createElementVNode("span", { class: "section-title" }, "对象接口工具")
|
|
1313
|
+
], -1)),
|
|
1314
|
+
createElementVNode("div", _hoisted_23, [
|
|
1070
1315
|
(openBlock(true), createElementBlock(Fragment, null, renderList($data.interfaceTools, (tool) => {
|
|
1071
1316
|
return openBlock(), createElementBlock("div", {
|
|
1072
1317
|
key: tool.ID,
|
|
1073
1318
|
class: "tool-card interface-card clickable",
|
|
1074
1319
|
onClick: ($event) => $options.handleApiClick(tool)
|
|
1075
1320
|
}, [
|
|
1076
|
-
createElementVNode("div",
|
|
1077
|
-
createElementVNode("div",
|
|
1321
|
+
createElementVNode("div", _hoisted_25, [
|
|
1322
|
+
createElementVNode("div", _hoisted_26, [
|
|
1078
1323
|
tool["API|FRAME_API"] ? (openBlock(), createBlock(_component_el_tag, {
|
|
1079
1324
|
key: 0,
|
|
1080
1325
|
size: "small",
|
|
1081
1326
|
type: "warning"
|
|
1082
1327
|
}, {
|
|
1083
|
-
default: withCtx(() => [..._cache[
|
|
1328
|
+
default: withCtx(() => [..._cache[57] || (_cache[57] = [
|
|
1084
1329
|
createTextVNode("通用", -1)
|
|
1085
1330
|
])]),
|
|
1086
1331
|
_: 1
|
|
1087
1332
|
})) : createCommentVNode("", true),
|
|
1088
|
-
createElementVNode("span",
|
|
1089
|
-
createElementVNode("span",
|
|
1333
|
+
createElementVNode("span", _hoisted_27, toDisplayString(tool["API|LABEL"] || tool.NAME), 1),
|
|
1334
|
+
createElementVNode("span", _hoisted_28, "| " + toDisplayString(tool["API|NAME"]), 1)
|
|
1090
1335
|
]),
|
|
1091
1336
|
createVNode(_component_el_button, {
|
|
1092
1337
|
type: "primary",
|
|
@@ -1096,34 +1341,34 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1096
1341
|
onClick: withModifiers(($event) => $options.handleDelete(tool), ["stop"])
|
|
1097
1342
|
}, null, 8, ["onClick"])
|
|
1098
1343
|
]),
|
|
1099
|
-
createElementVNode("div",
|
|
1100
|
-
createElementVNode("div",
|
|
1101
|
-
createElementVNode("div",
|
|
1344
|
+
createElementVNode("div", _hoisted_29, [
|
|
1345
|
+
createElementVNode("div", _hoisted_30, "所属对象:" + toDisplayString(tool["API|ENTITY#"] || tool["META#"]), 1),
|
|
1346
|
+
createElementVNode("div", _hoisted_31, "接口说明:" + toDisplayString(tool["API|PARAM_EXPLAIN"]), 1)
|
|
1102
1347
|
])
|
|
1103
|
-
], 8,
|
|
1348
|
+
], 8, _hoisted_24);
|
|
1104
1349
|
}), 128)),
|
|
1105
1350
|
createElementVNode("div", {
|
|
1106
1351
|
class: "tool-card add-card",
|
|
1107
|
-
onClick: _cache[
|
|
1108
|
-
}, [..._cache[
|
|
1352
|
+
onClick: _cache[2] || (_cache[2] = ($event) => $options.handleAdd("interface"))
|
|
1353
|
+
}, [..._cache[58] || (_cache[58] = [
|
|
1109
1354
|
createElementVNode("div", { class: "add-icon" }, "+", -1),
|
|
1110
1355
|
createElementVNode("div", { class: "add-text" }, "添加对象接口工具", -1)
|
|
1111
1356
|
])])
|
|
1112
1357
|
])
|
|
1113
1358
|
]),
|
|
1114
|
-
createElementVNode("div",
|
|
1115
|
-
_cache[
|
|
1359
|
+
createElementVNode("div", _hoisted_32, [
|
|
1360
|
+
_cache[61] || (_cache[61] = createElementVNode("div", { class: "section-header" }, [
|
|
1116
1361
|
createElementVNode("span", { class: "section-title" }, "外部接口工具")
|
|
1117
1362
|
], -1)),
|
|
1118
|
-
createElementVNode("div",
|
|
1363
|
+
createElementVNode("div", _hoisted_33, [
|
|
1119
1364
|
(openBlock(true), createElementBlock(Fragment, null, renderList($data.externalTools, (tool) => {
|
|
1120
1365
|
return openBlock(), createElementBlock("div", {
|
|
1121
1366
|
key: tool.ID,
|
|
1122
1367
|
class: "tool-card external-card"
|
|
1123
1368
|
}, [
|
|
1124
|
-
createElementVNode("div",
|
|
1125
|
-
createElementVNode("div",
|
|
1126
|
-
createElementVNode("span",
|
|
1369
|
+
createElementVNode("div", _hoisted_34, [
|
|
1370
|
+
createElementVNode("div", _hoisted_35, [
|
|
1371
|
+
createElementVNode("span", _hoisted_36, toDisplayString(tool["OUT_API|NAME"] || tool.NAME), 1)
|
|
1127
1372
|
]),
|
|
1128
1373
|
createVNode(_component_el_button, {
|
|
1129
1374
|
type: "primary",
|
|
@@ -1133,34 +1378,34 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1133
1378
|
onClick: withModifiers(($event) => $options.handleDelete(tool), ["stop"])
|
|
1134
1379
|
}, null, 8, ["onClick"])
|
|
1135
1380
|
]),
|
|
1136
|
-
createElementVNode("div",
|
|
1137
|
-
createElementVNode("div",
|
|
1381
|
+
createElementVNode("div", _hoisted_37, [
|
|
1382
|
+
createElementVNode("div", _hoisted_38, "接口说明:" + toDisplayString(tool["OUT_API|NOTICE"]), 1)
|
|
1138
1383
|
])
|
|
1139
1384
|
]);
|
|
1140
1385
|
}), 128)),
|
|
1141
1386
|
createElementVNode("div", {
|
|
1142
1387
|
class: "tool-card add-card",
|
|
1143
|
-
onClick: _cache[
|
|
1144
|
-
}, [..._cache[
|
|
1388
|
+
onClick: _cache[3] || (_cache[3] = ($event) => $options.handleAdd("external"))
|
|
1389
|
+
}, [..._cache[60] || (_cache[60] = [
|
|
1145
1390
|
createElementVNode("div", { class: "add-icon" }, "+", -1),
|
|
1146
1391
|
createElementVNode("div", { class: "add-text" }, "添加外部接口工具", -1)
|
|
1147
1392
|
])])
|
|
1148
1393
|
])
|
|
1149
1394
|
]),
|
|
1150
|
-
createElementVNode("div",
|
|
1151
|
-
_cache[
|
|
1395
|
+
createElementVNode("div", _hoisted_39, [
|
|
1396
|
+
_cache[63] || (_cache[63] = createElementVNode("div", { class: "section-header" }, [
|
|
1152
1397
|
createElementVNode("span", { class: "section-title" }, "内置工具")
|
|
1153
1398
|
], -1)),
|
|
1154
|
-
createElementVNode("div",
|
|
1399
|
+
createElementVNode("div", _hoisted_40, [
|
|
1155
1400
|
(openBlock(true), createElementBlock(Fragment, null, renderList($data.sysTools, (tool) => {
|
|
1156
1401
|
return openBlock(), createElementBlock("div", {
|
|
1157
1402
|
key: tool.ID,
|
|
1158
1403
|
class: "tool-card sys-tool-card"
|
|
1159
1404
|
}, [
|
|
1160
|
-
createElementVNode("div",
|
|
1161
|
-
createElementVNode("div",
|
|
1162
|
-
createElementVNode("span",
|
|
1163
|
-
createElementVNode("span",
|
|
1405
|
+
createElementVNode("div", _hoisted_41, [
|
|
1406
|
+
createElementVNode("div", _hoisted_42, [
|
|
1407
|
+
createElementVNode("span", _hoisted_43, toDisplayString(tool["SYS_TOOL|NAME"] || tool.NAME), 1),
|
|
1408
|
+
createElementVNode("span", _hoisted_44, "| " + toDisplayString(tool["SYS_TOOL|CODE"]), 1)
|
|
1164
1409
|
]),
|
|
1165
1410
|
createVNode(_component_el_button, {
|
|
1166
1411
|
type: "text",
|
|
@@ -1169,34 +1414,34 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1169
1414
|
onClick: withModifiers(($event) => $options.handleDelete(tool), ["stop"])
|
|
1170
1415
|
}, null, 8, ["onClick"])
|
|
1171
1416
|
]),
|
|
1172
|
-
createElementVNode("div",
|
|
1173
|
-
createElementVNode("div",
|
|
1417
|
+
createElementVNode("div", _hoisted_45, [
|
|
1418
|
+
createElementVNode("div", _hoisted_46, "工具描述:" + toDisplayString(tool["SYS_TOOL|DESC"]), 1)
|
|
1174
1419
|
])
|
|
1175
1420
|
]);
|
|
1176
1421
|
}), 128)),
|
|
1177
1422
|
createElementVNode("div", {
|
|
1178
1423
|
class: "tool-card add-card",
|
|
1179
|
-
onClick: _cache[
|
|
1180
|
-
}, [..._cache[
|
|
1424
|
+
onClick: _cache[4] || (_cache[4] = ($event) => $options.handleAdd("systool"))
|
|
1425
|
+
}, [..._cache[62] || (_cache[62] = [
|
|
1181
1426
|
createElementVNode("div", { class: "add-icon" }, "+", -1),
|
|
1182
1427
|
createElementVNode("div", { class: "add-text" }, "添加内置工具", -1)
|
|
1183
1428
|
])])
|
|
1184
1429
|
])
|
|
1185
1430
|
]),
|
|
1186
|
-
createElementVNode("div",
|
|
1187
|
-
_cache[
|
|
1431
|
+
createElementVNode("div", _hoisted_47, [
|
|
1432
|
+
_cache[65] || (_cache[65] = createElementVNode("div", { class: "section-header" }, [
|
|
1188
1433
|
createElementVNode("span", { class: "section-title" }, "MCP工具")
|
|
1189
1434
|
], -1)),
|
|
1190
|
-
createElementVNode("div",
|
|
1435
|
+
createElementVNode("div", _hoisted_48, [
|
|
1191
1436
|
(openBlock(true), createElementBlock(Fragment, null, renderList($data.mcpTools, (tool) => {
|
|
1192
1437
|
return openBlock(), createElementBlock("div", {
|
|
1193
1438
|
key: tool.ID,
|
|
1194
1439
|
class: "tool-card mcp-card"
|
|
1195
1440
|
}, [
|
|
1196
|
-
createElementVNode("div",
|
|
1197
|
-
createElementVNode("div",
|
|
1198
|
-
createElementVNode("span",
|
|
1199
|
-
createElementVNode("span",
|
|
1441
|
+
createElementVNode("div", _hoisted_49, [
|
|
1442
|
+
createElementVNode("div", _hoisted_50, [
|
|
1443
|
+
createElementVNode("span", _hoisted_51, toDisplayString(tool["MCP|NAME"] || tool.NAME), 1),
|
|
1444
|
+
createElementVNode("span", _hoisted_52, "| " + toDisplayString(tool["MCP|CODE"]), 1)
|
|
1200
1445
|
]),
|
|
1201
1446
|
createVNode(_component_el_button, {
|
|
1202
1447
|
type: "primary",
|
|
@@ -1206,35 +1451,35 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1206
1451
|
onClick: withModifiers(($event) => $options.handleDelete(tool), ["stop"])
|
|
1207
1452
|
}, null, 8, ["onClick"])
|
|
1208
1453
|
]),
|
|
1209
|
-
createElementVNode("div",
|
|
1210
|
-
createElementVNode("div",
|
|
1211
|
-
createElementVNode("div",
|
|
1454
|
+
createElementVNode("div", _hoisted_53, [
|
|
1455
|
+
createElementVNode("div", _hoisted_54, "请求类型:" + toDisplayString(tool["MCP|TYPE"]), 1),
|
|
1456
|
+
createElementVNode("div", _hoisted_55, "地址/命令:" + toDisplayString(tool["MCP|URL"] || tool["MCP|COMMAND"]), 1)
|
|
1212
1457
|
])
|
|
1213
1458
|
]);
|
|
1214
1459
|
}), 128)),
|
|
1215
1460
|
createElementVNode("div", {
|
|
1216
1461
|
class: "tool-card add-card",
|
|
1217
|
-
onClick: _cache[
|
|
1218
|
-
}, [..._cache[
|
|
1462
|
+
onClick: _cache[5] || (_cache[5] = ($event) => $options.handleAdd("mcp"))
|
|
1463
|
+
}, [..._cache[64] || (_cache[64] = [
|
|
1219
1464
|
createElementVNode("div", { class: "add-icon" }, "+", -1),
|
|
1220
1465
|
createElementVNode("div", { class: "add-text" }, "添加MCP工具", -1)
|
|
1221
1466
|
])])
|
|
1222
1467
|
])
|
|
1223
1468
|
]),
|
|
1224
|
-
createElementVNode("div",
|
|
1225
|
-
_cache[
|
|
1469
|
+
createElementVNode("div", _hoisted_56, [
|
|
1470
|
+
_cache[67] || (_cache[67] = createElementVNode("div", { class: "section-header" }, [
|
|
1226
1471
|
createElementVNode("span", { class: "section-title" }, "子智能体工具")
|
|
1227
1472
|
], -1)),
|
|
1228
1473
|
createVNode(_component_draggable, mergeProps({
|
|
1229
1474
|
modelValue: $data.subAgentTools,
|
|
1230
|
-
"onUpdate:modelValue": _cache[
|
|
1475
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => $data.subAgentTools = $event),
|
|
1231
1476
|
class: "tool-cards"
|
|
1232
1477
|
}, $options.subAgentDragOptions, { onEnd: $options.handleSubAgentDragEnd }), {
|
|
1233
1478
|
footer: withCtx(() => [
|
|
1234
1479
|
createElementVNode("div", {
|
|
1235
1480
|
class: "tool-card add-card",
|
|
1236
|
-
onClick: _cache[
|
|
1237
|
-
}, [..._cache[
|
|
1481
|
+
onClick: _cache[6] || (_cache[6] = ($event) => $options.handleAdd("subagent"))
|
|
1482
|
+
}, [..._cache[66] || (_cache[66] = [
|
|
1238
1483
|
createElementVNode("div", { class: "add-icon" }, "+", -1),
|
|
1239
1484
|
createElementVNode("div", { class: "add-text" }, "添加子智能体", -1)
|
|
1240
1485
|
])])
|
|
@@ -1245,17 +1490,17 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1245
1490
|
key: tool.ID,
|
|
1246
1491
|
class: "tool-card subagent-card"
|
|
1247
1492
|
}, [
|
|
1248
|
-
createElementVNode("div",
|
|
1493
|
+
createElementVNode("div", _hoisted_57, [
|
|
1249
1494
|
createElementVNode("img", {
|
|
1250
1495
|
src: $options.getSubAgentIcon(tool),
|
|
1251
1496
|
alt: "icon"
|
|
1252
|
-
}, null, 8,
|
|
1497
|
+
}, null, 8, _hoisted_58)
|
|
1253
1498
|
]),
|
|
1254
|
-
createElementVNode("div",
|
|
1255
|
-
createElementVNode("div",
|
|
1256
|
-
createElementVNode("div",
|
|
1257
|
-
createElementVNode("span",
|
|
1258
|
-
createElementVNode("span",
|
|
1499
|
+
createElementVNode("div", _hoisted_59, [
|
|
1500
|
+
createElementVNode("div", _hoisted_60, [
|
|
1501
|
+
createElementVNode("div", _hoisted_61, [
|
|
1502
|
+
createElementVNode("span", _hoisted_62, toDisplayString(tool["SUB_AGENT|NAME"] || tool.NAME), 1),
|
|
1503
|
+
createElementVNode("span", _hoisted_63, "| " + toDisplayString(tool["SUB_AGENT|CODE"]), 1)
|
|
1259
1504
|
]),
|
|
1260
1505
|
createVNode(_component_el_button, {
|
|
1261
1506
|
type: "primary",
|
|
@@ -1265,8 +1510,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1265
1510
|
onClick: withModifiers(($event) => $options.handleDelete(tool), ["stop"])
|
|
1266
1511
|
}, null, 8, ["onClick"])
|
|
1267
1512
|
]),
|
|
1268
|
-
createElementVNode("div",
|
|
1269
|
-
createElementVNode("div",
|
|
1513
|
+
createElementVNode("div", _hoisted_64, [
|
|
1514
|
+
createElementVNode("div", _hoisted_65, "应用简介:" + toDisplayString(tool["SUB_AGENT|AGENT_PROMPT"]), 1)
|
|
1270
1515
|
])
|
|
1271
1516
|
])
|
|
1272
1517
|
]);
|
|
@@ -1278,16 +1523,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1278
1523
|
createVNode(_component_el_dialog, {
|
|
1279
1524
|
title: $data.dialogTitle,
|
|
1280
1525
|
modelValue: $data.dialogVisible,
|
|
1281
|
-
"onUpdate:modelValue": _cache[
|
|
1526
|
+
"onUpdate:modelValue": _cache[24] || (_cache[24] = ($event) => $data.dialogVisible = $event),
|
|
1282
1527
|
width: "600px",
|
|
1283
1528
|
"close-on-click-modal": false
|
|
1284
1529
|
}, {
|
|
1285
1530
|
footer: withCtx(() => [
|
|
1286
|
-
createElementVNode("div",
|
|
1531
|
+
createElementVNode("div", _hoisted_66, [
|
|
1287
1532
|
createVNode(_component_el_button, {
|
|
1288
|
-
onClick: _cache[
|
|
1533
|
+
onClick: _cache[23] || (_cache[23] = ($event) => $data.dialogVisible = false)
|
|
1289
1534
|
}, {
|
|
1290
|
-
default: withCtx(() => [..._cache[
|
|
1535
|
+
default: withCtx(() => [..._cache[70] || (_cache[70] = [
|
|
1291
1536
|
createTextVNode("取消", -1)
|
|
1292
1537
|
])]),
|
|
1293
1538
|
_: 1
|
|
@@ -1297,7 +1542,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1297
1542
|
loading: $data.submitLoading,
|
|
1298
1543
|
onClick: $options.handleSubmit
|
|
1299
1544
|
}, {
|
|
1300
|
-
default: withCtx(() => [..._cache[
|
|
1545
|
+
default: withCtx(() => [..._cache[71] || (_cache[71] = [
|
|
1301
1546
|
createTextVNode("确定", -1)
|
|
1302
1547
|
])]),
|
|
1303
1548
|
_: 1
|
|
@@ -1319,7 +1564,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1319
1564
|
default: withCtx(() => [
|
|
1320
1565
|
createVNode(_component_el_input, {
|
|
1321
1566
|
modelValue: $data.formData.NAME,
|
|
1322
|
-
"onUpdate:modelValue": _cache[
|
|
1567
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => $data.formData.NAME = $event),
|
|
1323
1568
|
placeholder: "请输入工具名称"
|
|
1324
1569
|
}, null, 8, ["modelValue"])
|
|
1325
1570
|
]),
|
|
@@ -1332,7 +1577,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1332
1577
|
default: withCtx(() => [
|
|
1333
1578
|
createVNode(_component_el_select, {
|
|
1334
1579
|
modelValue: $data.formData.TYPE,
|
|
1335
|
-
"onUpdate:modelValue": _cache[
|
|
1580
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => $data.formData.TYPE = $event),
|
|
1336
1581
|
placeholder: "请选择工具类型",
|
|
1337
1582
|
style: { "width": "100%" },
|
|
1338
1583
|
disabled: ""
|
|
@@ -1367,7 +1612,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1367
1612
|
default: withCtx(() => [
|
|
1368
1613
|
createVNode(_component_el_input, {
|
|
1369
1614
|
modelValue: $data.formData.DESC,
|
|
1370
|
-
"onUpdate:modelValue": _cache[
|
|
1615
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => $data.formData.DESC = $event),
|
|
1371
1616
|
type: "textarea",
|
|
1372
1617
|
rows: 3,
|
|
1373
1618
|
placeholder: "请输入工具描述"
|
|
@@ -1383,7 +1628,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1383
1628
|
default: withCtx(() => [
|
|
1384
1629
|
createVNode(_component_el_input, {
|
|
1385
1630
|
modelValue: $data.formData.ACTION,
|
|
1386
|
-
"onUpdate:modelValue": _cache[
|
|
1631
|
+
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => $data.formData.ACTION = $event),
|
|
1387
1632
|
placeholder: "请选择对象接口",
|
|
1388
1633
|
readonly: ""
|
|
1389
1634
|
}, {
|
|
@@ -1392,7 +1637,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1392
1637
|
icon: "el-icon-search",
|
|
1393
1638
|
onClick: $options.showApiDialog
|
|
1394
1639
|
}, {
|
|
1395
|
-
default: withCtx(() => [..._cache[
|
|
1640
|
+
default: withCtx(() => [..._cache[68] || (_cache[68] = [
|
|
1396
1641
|
createTextVNode("选择接口", -1)
|
|
1397
1642
|
])]),
|
|
1398
1643
|
_: 1
|
|
@@ -1410,7 +1655,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1410
1655
|
default: withCtx(() => [
|
|
1411
1656
|
createVNode(_component_el_input, {
|
|
1412
1657
|
modelValue: $data.formData.META,
|
|
1413
|
-
"onUpdate:modelValue": _cache[
|
|
1658
|
+
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => $data.formData.META = $event),
|
|
1414
1659
|
placeholder: "对象名称",
|
|
1415
1660
|
readonly: ""
|
|
1416
1661
|
}, null, 8, ["modelValue"])
|
|
@@ -1426,7 +1671,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1426
1671
|
default: withCtx(() => [
|
|
1427
1672
|
createVNode(_component_el_input, {
|
|
1428
1673
|
modelValue: $data.formData.API,
|
|
1429
|
-
"onUpdate:modelValue": _cache[
|
|
1674
|
+
"onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => $data.formData.API = $event),
|
|
1430
1675
|
placeholder: "请输入外部接口地址"
|
|
1431
1676
|
}, null, 8, ["modelValue"])
|
|
1432
1677
|
]),
|
|
@@ -1439,7 +1684,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1439
1684
|
default: withCtx(() => [
|
|
1440
1685
|
createVNode(_component_el_input, {
|
|
1441
1686
|
modelValue: $data.formData.TOKEN,
|
|
1442
|
-
"onUpdate:modelValue": _cache[
|
|
1687
|
+
"onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => $data.formData.TOKEN = $event),
|
|
1443
1688
|
placeholder: "请输入认证票据"
|
|
1444
1689
|
}, null, 8, ["modelValue"])
|
|
1445
1690
|
]),
|
|
@@ -1454,7 +1699,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1454
1699
|
default: withCtx(() => [
|
|
1455
1700
|
createVNode(_component_el_input, {
|
|
1456
1701
|
modelValue: $data.formData.MCP_URL,
|
|
1457
|
-
"onUpdate:modelValue": _cache[
|
|
1702
|
+
"onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => $data.formData.MCP_URL = $event),
|
|
1458
1703
|
placeholder: "请输入MCP地址"
|
|
1459
1704
|
}, null, 8, ["modelValue"])
|
|
1460
1705
|
]),
|
|
@@ -1468,7 +1713,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1468
1713
|
default: withCtx(() => [
|
|
1469
1714
|
createVNode(_component_el_input, {
|
|
1470
1715
|
modelValue: $data.formData.WORKFLOW,
|
|
1471
|
-
"onUpdate:modelValue": _cache[
|
|
1716
|
+
"onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => $data.formData.WORKFLOW = $event),
|
|
1472
1717
|
type: "textarea",
|
|
1473
1718
|
rows: 3,
|
|
1474
1719
|
placeholder: "请输入工作流配置"
|
|
@@ -1493,7 +1738,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1493
1738
|
size: "small",
|
|
1494
1739
|
type: "primary"
|
|
1495
1740
|
}, {
|
|
1496
|
-
default: withCtx(() => [..._cache[
|
|
1741
|
+
default: withCtx(() => [..._cache[69] || (_cache[69] = [
|
|
1497
1742
|
createTextVNode("选择文件", -1)
|
|
1498
1743
|
])]),
|
|
1499
1744
|
_: 1
|
|
@@ -1512,7 +1757,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1512
1757
|
default: withCtx(() => [
|
|
1513
1758
|
createVNode(_component_el_switch, {
|
|
1514
1759
|
modelValue: $data.formData.ENABLE,
|
|
1515
|
-
"onUpdate:modelValue": _cache[
|
|
1760
|
+
"onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => $data.formData.ENABLE = $event),
|
|
1516
1761
|
"active-value": 1,
|
|
1517
1762
|
"inactive-value": 0
|
|
1518
1763
|
}, null, 8, ["modelValue"])
|
|
@@ -1526,7 +1771,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1526
1771
|
default: withCtx(() => [
|
|
1527
1772
|
createVNode(_component_el_switch, {
|
|
1528
1773
|
modelValue: $data.formData.CONFIRM,
|
|
1529
|
-
"onUpdate:modelValue": _cache[
|
|
1774
|
+
"onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => $data.formData.CONFIRM = $event),
|
|
1530
1775
|
"active-value": 1,
|
|
1531
1776
|
"inactive-value": 0
|
|
1532
1777
|
}, null, 8, ["modelValue"])
|
|
@@ -1540,7 +1785,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1540
1785
|
default: withCtx(() => [
|
|
1541
1786
|
createVNode(_component_el_input, {
|
|
1542
1787
|
modelValue: $data.formData.FORM_PAGE,
|
|
1543
|
-
"onUpdate:modelValue": _cache[
|
|
1788
|
+
"onUpdate:modelValue": _cache[19] || (_cache[19] = ($event) => $data.formData.FORM_PAGE = $event),
|
|
1544
1789
|
placeholder: "请输入表单页面ID"
|
|
1545
1790
|
}, null, 8, ["modelValue"])
|
|
1546
1791
|
]),
|
|
@@ -1553,7 +1798,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1553
1798
|
default: withCtx(() => [
|
|
1554
1799
|
createVNode(_component_el_input, {
|
|
1555
1800
|
modelValue: $data.formData.RESULT_PAGE,
|
|
1556
|
-
"onUpdate:modelValue": _cache[
|
|
1801
|
+
"onUpdate:modelValue": _cache[20] || (_cache[20] = ($event) => $data.formData.RESULT_PAGE = $event),
|
|
1557
1802
|
placeholder: "请输入结果页面ID"
|
|
1558
1803
|
}, null, 8, ["modelValue"])
|
|
1559
1804
|
]),
|
|
@@ -1566,7 +1811,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1566
1811
|
default: withCtx(() => [
|
|
1567
1812
|
createVNode(_component_el_switch, {
|
|
1568
1813
|
modelValue: $data.formData.USE_FORM_PAGE,
|
|
1569
|
-
"onUpdate:modelValue": _cache[
|
|
1814
|
+
"onUpdate:modelValue": _cache[21] || (_cache[21] = ($event) => $data.formData.USE_FORM_PAGE = $event),
|
|
1570
1815
|
"active-value": 1,
|
|
1571
1816
|
"inactive-value": 0
|
|
1572
1817
|
}, null, 8, ["modelValue"])
|
|
@@ -1580,7 +1825,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1580
1825
|
default: withCtx(() => [
|
|
1581
1826
|
createVNode(_component_el_switch, {
|
|
1582
1827
|
modelValue: $data.formData.USE_RESULT_PAGE,
|
|
1583
|
-
"onUpdate:modelValue": _cache[
|
|
1828
|
+
"onUpdate:modelValue": _cache[22] || (_cache[22] = ($event) => $data.formData.USE_RESULT_PAGE = $event),
|
|
1584
1829
|
"active-value": 1,
|
|
1585
1830
|
"inactive-value": 0
|
|
1586
1831
|
}, null, 8, ["modelValue"])
|
|
@@ -1602,8 +1847,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1602
1847
|
class: "api-select-dialog"
|
|
1603
1848
|
}, {
|
|
1604
1849
|
default: withCtx(() => [
|
|
1605
|
-
createElementVNode("div",
|
|
1606
|
-
createElementVNode("div",
|
|
1850
|
+
createElementVNode("div", _hoisted_67, [
|
|
1851
|
+
createElementVNode("div", _hoisted_68, [
|
|
1607
1852
|
createVNode(_component_el_tabs, {
|
|
1608
1853
|
modelValue: $data.apiActiveTab,
|
|
1609
1854
|
"onUpdate:modelValue": _cache[26] || (_cache[26] = ($event) => $data.apiActiveTab = $event),
|
|
@@ -1677,7 +1922,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1677
1922
|
$data.frameApiTotal > $data.frameApiPageSize ? (openBlock(), createBlock(_component_el_pagination, {
|
|
1678
1923
|
key: 0,
|
|
1679
1924
|
"current-page": $data.frameApiCurrentPage,
|
|
1680
|
-
"onUpdate:currentPage": _cache[
|
|
1925
|
+
"onUpdate:currentPage": _cache[25] || (_cache[25] = ($event) => $data.frameApiCurrentPage = $event),
|
|
1681
1926
|
"page-size": $data.frameApiPageSize,
|
|
1682
1927
|
layout: "total, prev, pager, next",
|
|
1683
1928
|
total: $data.frameApiTotal,
|
|
@@ -1692,12 +1937,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1692
1937
|
name: "entity"
|
|
1693
1938
|
}, {
|
|
1694
1939
|
default: withCtx(() => [
|
|
1695
|
-
createElementVNode("div",
|
|
1696
|
-
createElementVNode("div",
|
|
1697
|
-
_cache[
|
|
1940
|
+
createElementVNode("div", _hoisted_69, [
|
|
1941
|
+
createElementVNode("div", _hoisted_70, [
|
|
1942
|
+
_cache[72] || (_cache[72] = createElementVNode("label", null, "选择对象:", -1)),
|
|
1698
1943
|
createVNode(_component_epx_object, {
|
|
1699
|
-
|
|
1700
|
-
"onUpdate:modelValue": _cache[25] || (_cache[25] = ($event) => $data.selectedEntity = $event),
|
|
1944
|
+
"model-value": $data.selectedEntity,
|
|
1701
1945
|
fieldConfigs: {
|
|
1702
1946
|
attriLabel: "",
|
|
1703
1947
|
codeKey: "FM_ENTITY",
|
|
@@ -1705,8 +1949,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1705
1949
|
placeholder: "请选择对象",
|
|
1706
1950
|
isMultiple: "0"
|
|
1707
1951
|
},
|
|
1708
|
-
|
|
1709
|
-
}, null, 8, ["
|
|
1952
|
+
"onUpdate:modelValue": $options.handleEntityChange
|
|
1953
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
1710
1954
|
])
|
|
1711
1955
|
]),
|
|
1712
1956
|
$data.selectedEntity ? (openBlock(), createBlock(_component_el_table, {
|
|
@@ -1762,7 +2006,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1762
2006
|
]),
|
|
1763
2007
|
_: 1
|
|
1764
2008
|
}, 8, ["data", "onSelectionChange"])) : createCommentVNode("", true),
|
|
1765
|
-
!$data.selectedEntity ? (openBlock(), createElementBlock("div",
|
|
2009
|
+
!$data.selectedEntity ? (openBlock(), createElementBlock("div", _hoisted_71, [..._cache[73] || (_cache[73] = [
|
|
1766
2010
|
createElementVNode("i", { class: "el-icon-info" }, null, -1),
|
|
1767
2011
|
createElementVNode("p", null, "请先选择对象", -1)
|
|
1768
2012
|
])])) : createCommentVNode("", true)
|
|
@@ -1773,29 +2017,29 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1773
2017
|
_: 1
|
|
1774
2018
|
}, 8, ["modelValue", "onTabClick"])
|
|
1775
2019
|
]),
|
|
1776
|
-
createElementVNode("div",
|
|
1777
|
-
_cache[
|
|
2020
|
+
createElementVNode("div", _hoisted_72, [
|
|
2021
|
+
_cache[77] || (_cache[77] = createElementVNode("div", { class: "panel-header" }, [
|
|
1778
2022
|
createElementVNode("span", null, "已选择")
|
|
1779
2023
|
], -1)),
|
|
1780
|
-
createElementVNode("div",
|
|
2024
|
+
createElementVNode("div", _hoisted_73, [
|
|
1781
2025
|
(openBlock(true), createElementBlock(Fragment, null, renderList($data.selectedApis, (api, index) => {
|
|
1782
2026
|
return openBlock(), createElementBlock("div", {
|
|
1783
2027
|
key: api.ID,
|
|
1784
2028
|
class: "selected-item"
|
|
1785
2029
|
}, [
|
|
1786
|
-
createElementVNode("div",
|
|
2030
|
+
createElementVNode("div", _hoisted_74, [
|
|
1787
2031
|
api._isFrame ? (openBlock(), createBlock(_component_el_tag, {
|
|
1788
2032
|
key: 0,
|
|
1789
2033
|
size: "small",
|
|
1790
2034
|
type: "success",
|
|
1791
2035
|
class: "frame-tag"
|
|
1792
2036
|
}, {
|
|
1793
|
-
default: withCtx(() => [..._cache[
|
|
2037
|
+
default: withCtx(() => [..._cache[74] || (_cache[74] = [
|
|
1794
2038
|
createTextVNode("通用", -1)
|
|
1795
2039
|
])]),
|
|
1796
2040
|
_: 1
|
|
1797
2041
|
})) : createCommentVNode("", true),
|
|
1798
|
-
createElementVNode("span",
|
|
2042
|
+
createElementVNode("span", _hoisted_75, toDisplayString(api.LABEL) + " | " + toDisplayString(api.NAME), 1),
|
|
1799
2043
|
createVNode(_component_el_button, {
|
|
1800
2044
|
type: "primary",
|
|
1801
2045
|
link: "",
|
|
@@ -1804,22 +2048,22 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1804
2048
|
onClick: ($event) => $options.removeSelectedApi(index)
|
|
1805
2049
|
}, null, 8, ["onClick"])
|
|
1806
2050
|
]),
|
|
1807
|
-
createElementVNode("div",
|
|
1808
|
-
createElementVNode("div",
|
|
1809
|
-
createElementVNode("div",
|
|
2051
|
+
createElementVNode("div", _hoisted_76, [
|
|
2052
|
+
createElementVNode("div", _hoisted_77, "所属对象:" + toDisplayString(api["ENTITY#"] || $data.selectedEntity && $data.selectedEntity.name), 1),
|
|
2053
|
+
createElementVNode("div", _hoisted_78, "接口说明:" + toDisplayString(api.PARAM_EXPLAIN), 1)
|
|
1810
2054
|
])
|
|
1811
2055
|
]);
|
|
1812
2056
|
}), 128)),
|
|
1813
|
-
$data.selectedApis.length === 0 ? (openBlock(), createElementBlock("div",
|
|
2057
|
+
$data.selectedApis.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_79, " 请从左侧选择接口 ")) : createCommentVNode("", true)
|
|
1814
2058
|
]),
|
|
1815
|
-
createElementVNode("div",
|
|
1816
|
-
createElementVNode("span",
|
|
1817
|
-
createElementVNode("div",
|
|
2059
|
+
createElementVNode("div", _hoisted_80, [
|
|
2060
|
+
createElementVNode("span", _hoisted_81, "已选择 " + toDisplayString($data.selectedApis.length) + " 个", 1),
|
|
2061
|
+
createElementVNode("div", _hoisted_82, [
|
|
1818
2062
|
createVNode(_component_el_button, {
|
|
1819
2063
|
size: "small",
|
|
1820
2064
|
onClick: _cache[27] || (_cache[27] = ($event) => $data.apiDialogVisible = false)
|
|
1821
2065
|
}, {
|
|
1822
|
-
default: withCtx(() => [..._cache[
|
|
2066
|
+
default: withCtx(() => [..._cache[75] || (_cache[75] = [
|
|
1823
2067
|
createTextVNode("取消", -1)
|
|
1824
2068
|
])]),
|
|
1825
2069
|
_: 1
|
|
@@ -1829,7 +2073,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1829
2073
|
type: "primary",
|
|
1830
2074
|
onClick: $options.confirmApiSelection
|
|
1831
2075
|
}, {
|
|
1832
|
-
default: withCtx(() => [..._cache[
|
|
2076
|
+
default: withCtx(() => [..._cache[76] || (_cache[76] = [
|
|
1833
2077
|
createTextVNode("保存", -1)
|
|
1834
2078
|
])]),
|
|
1835
2079
|
_: 1
|
|
@@ -1850,8 +2094,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1850
2094
|
class: "api-select-dialog"
|
|
1851
2095
|
}, {
|
|
1852
2096
|
default: withCtx(() => [
|
|
1853
|
-
createElementVNode("div",
|
|
1854
|
-
createElementVNode("div",
|
|
2097
|
+
createElementVNode("div", _hoisted_83, [
|
|
2098
|
+
createElementVNode("div", _hoisted_84, [
|
|
1855
2099
|
createVNode(_component_el_table, {
|
|
1856
2100
|
ref: "externalApiTable",
|
|
1857
2101
|
data: $data.externalApiList,
|
|
@@ -1909,18 +2153,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1909
2153
|
style: { "margin-top": "12px", "text-align": "right" }
|
|
1910
2154
|
}, null, 8, ["current-page", "page-size", "total", "onCurrentChange"])) : createCommentVNode("", true)
|
|
1911
2155
|
]),
|
|
1912
|
-
createElementVNode("div",
|
|
1913
|
-
_cache[
|
|
2156
|
+
createElementVNode("div", _hoisted_85, [
|
|
2157
|
+
_cache[80] || (_cache[80] = createElementVNode("div", { class: "panel-header" }, [
|
|
1914
2158
|
createElementVNode("span", null, "已选择")
|
|
1915
2159
|
], -1)),
|
|
1916
|
-
createElementVNode("div",
|
|
2160
|
+
createElementVNode("div", _hoisted_86, [
|
|
1917
2161
|
(openBlock(true), createElementBlock(Fragment, null, renderList($data.selectedExternalApis, (api, index) => {
|
|
1918
2162
|
return openBlock(), createElementBlock("div", {
|
|
1919
2163
|
key: api.ID,
|
|
1920
2164
|
class: "selected-item"
|
|
1921
2165
|
}, [
|
|
1922
|
-
createElementVNode("div",
|
|
1923
|
-
createElementVNode("span",
|
|
2166
|
+
createElementVNode("div", _hoisted_87, [
|
|
2167
|
+
createElementVNode("span", _hoisted_88, toDisplayString(api.NAME), 1),
|
|
1924
2168
|
createVNode(_component_el_button, {
|
|
1925
2169
|
type: "primary",
|
|
1926
2170
|
link: "",
|
|
@@ -1929,21 +2173,21 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1929
2173
|
onClick: ($event) => $options.removeSelectedExternalApi(index)
|
|
1930
2174
|
}, null, 8, ["onClick"])
|
|
1931
2175
|
]),
|
|
1932
|
-
createElementVNode("div",
|
|
1933
|
-
createElementVNode("div",
|
|
2176
|
+
createElementVNode("div", _hoisted_89, [
|
|
2177
|
+
createElementVNode("div", _hoisted_90, "接口说明:" + toDisplayString(api.NOTICE), 1)
|
|
1934
2178
|
])
|
|
1935
2179
|
]);
|
|
1936
2180
|
}), 128)),
|
|
1937
|
-
$data.selectedExternalApis.length === 0 ? (openBlock(), createElementBlock("div",
|
|
2181
|
+
$data.selectedExternalApis.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_91, " 请从左侧选择接口 ")) : createCommentVNode("", true)
|
|
1938
2182
|
]),
|
|
1939
|
-
createElementVNode("div",
|
|
1940
|
-
createElementVNode("span",
|
|
1941
|
-
createElementVNode("div",
|
|
2183
|
+
createElementVNode("div", _hoisted_92, [
|
|
2184
|
+
createElementVNode("span", _hoisted_93, "已选择 " + toDisplayString($data.selectedExternalApis.length) + " 个", 1),
|
|
2185
|
+
createElementVNode("div", _hoisted_94, [
|
|
1942
2186
|
createVNode(_component_el_button, {
|
|
1943
2187
|
size: "small",
|
|
1944
2188
|
onClick: _cache[30] || (_cache[30] = ($event) => $data.externalApiDialogVisible = false)
|
|
1945
2189
|
}, {
|
|
1946
|
-
default: withCtx(() => [..._cache[
|
|
2190
|
+
default: withCtx(() => [..._cache[78] || (_cache[78] = [
|
|
1947
2191
|
createTextVNode("取消", -1)
|
|
1948
2192
|
])]),
|
|
1949
2193
|
_: 1
|
|
@@ -1953,7 +2197,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1953
2197
|
type: "primary",
|
|
1954
2198
|
onClick: $options.confirmExternalApiSelection
|
|
1955
2199
|
}, {
|
|
1956
|
-
default: withCtx(() => [..._cache[
|
|
2200
|
+
default: withCtx(() => [..._cache[79] || (_cache[79] = [
|
|
1957
2201
|
createTextVNode("保存", -1)
|
|
1958
2202
|
])]),
|
|
1959
2203
|
_: 1
|
|
@@ -1974,8 +2218,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1974
2218
|
class: "api-select-dialog"
|
|
1975
2219
|
}, {
|
|
1976
2220
|
default: withCtx(() => [
|
|
1977
|
-
createElementVNode("div",
|
|
1978
|
-
createElementVNode("div",
|
|
2221
|
+
createElementVNode("div", _hoisted_95, [
|
|
2222
|
+
createElementVNode("div", _hoisted_96, [
|
|
1979
2223
|
createVNode(_component_el_table, {
|
|
1980
2224
|
ref: "subAgentTable",
|
|
1981
2225
|
data: $data.subAgentList,
|
|
@@ -2039,25 +2283,25 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2039
2283
|
style: { "margin-top": "12px", "text-align": "right" }
|
|
2040
2284
|
}, null, 8, ["current-page", "page-size", "total", "onCurrentChange"])) : createCommentVNode("", true)
|
|
2041
2285
|
]),
|
|
2042
|
-
createElementVNode("div",
|
|
2043
|
-
_cache[
|
|
2286
|
+
createElementVNode("div", _hoisted_97, [
|
|
2287
|
+
_cache[83] || (_cache[83] = createElementVNode("div", { class: "panel-header" }, [
|
|
2044
2288
|
createElementVNode("span", null, "已选择")
|
|
2045
2289
|
], -1)),
|
|
2046
|
-
createElementVNode("div",
|
|
2290
|
+
createElementVNode("div", _hoisted_98, [
|
|
2047
2291
|
(openBlock(true), createElementBlock(Fragment, null, renderList($data.selectedSubAgents, (agent, index) => {
|
|
2048
2292
|
return openBlock(), createElementBlock("div", {
|
|
2049
2293
|
key: agent.ID,
|
|
2050
2294
|
class: "selected-item"
|
|
2051
2295
|
}, [
|
|
2052
|
-
createElementVNode("div",
|
|
2053
|
-
createElementVNode("div",
|
|
2054
|
-
createElementVNode("div",
|
|
2296
|
+
createElementVNode("div", _hoisted_99, [
|
|
2297
|
+
createElementVNode("div", _hoisted_100, [
|
|
2298
|
+
createElementVNode("div", _hoisted_101, [
|
|
2055
2299
|
createElementVNode("img", {
|
|
2056
2300
|
src: $options.getSelectedAgentIcon(agent),
|
|
2057
2301
|
alt: "icon"
|
|
2058
|
-
}, null, 8,
|
|
2302
|
+
}, null, 8, _hoisted_102)
|
|
2059
2303
|
]),
|
|
2060
|
-
createElementVNode("span",
|
|
2304
|
+
createElementVNode("span", _hoisted_103, toDisplayString(agent.NAME), 1)
|
|
2061
2305
|
]),
|
|
2062
2306
|
createVNode(_component_el_button, {
|
|
2063
2307
|
type: "primary",
|
|
@@ -2067,22 +2311,22 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2067
2311
|
onClick: ($event) => $options.removeSelectedSubAgent(index)
|
|
2068
2312
|
}, null, 8, ["onClick"])
|
|
2069
2313
|
]),
|
|
2070
|
-
createElementVNode("div",
|
|
2071
|
-
createElementVNode("div",
|
|
2072
|
-
createElementVNode("div",
|
|
2314
|
+
createElementVNode("div", _hoisted_104, [
|
|
2315
|
+
createElementVNode("div", _hoisted_105, "应用编号:" + toDisplayString(agent.CODE), 1),
|
|
2316
|
+
createElementVNode("div", _hoisted_106, "应用简介:" + toDisplayString(agent.AGENT_PROMPT), 1)
|
|
2073
2317
|
])
|
|
2074
2318
|
]);
|
|
2075
2319
|
}), 128)),
|
|
2076
|
-
$data.selectedSubAgents.length === 0 ? (openBlock(), createElementBlock("div",
|
|
2320
|
+
$data.selectedSubAgents.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_107, " 请从左侧选择子智能体 ")) : createCommentVNode("", true)
|
|
2077
2321
|
]),
|
|
2078
|
-
createElementVNode("div",
|
|
2079
|
-
createElementVNode("span",
|
|
2080
|
-
createElementVNode("div",
|
|
2322
|
+
createElementVNode("div", _hoisted_108, [
|
|
2323
|
+
createElementVNode("span", _hoisted_109, "已选择 " + toDisplayString($data.selectedSubAgents.length) + " 个", 1),
|
|
2324
|
+
createElementVNode("div", _hoisted_110, [
|
|
2081
2325
|
createVNode(_component_el_button, {
|
|
2082
2326
|
size: "small",
|
|
2083
2327
|
onClick: _cache[33] || (_cache[33] = ($event) => $data.subAgentDialogVisible = false)
|
|
2084
2328
|
}, {
|
|
2085
|
-
default: withCtx(() => [..._cache[
|
|
2329
|
+
default: withCtx(() => [..._cache[81] || (_cache[81] = [
|
|
2086
2330
|
createTextVNode("取消", -1)
|
|
2087
2331
|
])]),
|
|
2088
2332
|
_: 1
|
|
@@ -2092,7 +2336,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2092
2336
|
type: "primary",
|
|
2093
2337
|
onClick: $options.confirmSubAgentSelection
|
|
2094
2338
|
}, {
|
|
2095
|
-
default: withCtx(() => [..._cache[
|
|
2339
|
+
default: withCtx(() => [..._cache[82] || (_cache[82] = [
|
|
2096
2340
|
createTextVNode("保存", -1)
|
|
2097
2341
|
])]),
|
|
2098
2342
|
_: 1
|
|
@@ -2113,8 +2357,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2113
2357
|
class: "api-select-dialog"
|
|
2114
2358
|
}, {
|
|
2115
2359
|
default: withCtx(() => [
|
|
2116
|
-
createElementVNode("div",
|
|
2117
|
-
createElementVNode("div",
|
|
2360
|
+
createElementVNode("div", _hoisted_111, [
|
|
2361
|
+
createElementVNode("div", _hoisted_112, [
|
|
2118
2362
|
createVNode(_component_el_tabs, {
|
|
2119
2363
|
modelValue: $data.skillActiveTab,
|
|
2120
2364
|
"onUpdate:modelValue": _cache[35] || (_cache[35] = ($event) => $data.skillActiveTab = $event),
|
|
@@ -2197,18 +2441,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2197
2441
|
style: { "margin-top": "12px", "text-align": "right" }
|
|
2198
2442
|
}, null, 8, ["current-page", "page-size", "total", "onCurrentChange"])) : createCommentVNode("", true)
|
|
2199
2443
|
]),
|
|
2200
|
-
createElementVNode("div",
|
|
2201
|
-
_cache[
|
|
2444
|
+
createElementVNode("div", _hoisted_113, [
|
|
2445
|
+
_cache[86] || (_cache[86] = createElementVNode("div", { class: "panel-header" }, [
|
|
2202
2446
|
createElementVNode("span", null, "已选择")
|
|
2203
2447
|
], -1)),
|
|
2204
|
-
createElementVNode("div",
|
|
2448
|
+
createElementVNode("div", _hoisted_114, [
|
|
2205
2449
|
(openBlock(true), createElementBlock(Fragment, null, renderList($data.selectedSkills, (skill, index) => {
|
|
2206
2450
|
return openBlock(), createElementBlock("div", {
|
|
2207
2451
|
key: skill.ID,
|
|
2208
2452
|
class: "selected-item"
|
|
2209
2453
|
}, [
|
|
2210
|
-
createElementVNode("div",
|
|
2211
|
-
createElementVNode("span",
|
|
2454
|
+
createElementVNode("div", _hoisted_115, [
|
|
2455
|
+
createElementVNode("span", _hoisted_116, toDisplayString(skill.NAME), 1),
|
|
2212
2456
|
createVNode(_component_el_button, {
|
|
2213
2457
|
type: "primary",
|
|
2214
2458
|
link: "",
|
|
@@ -2217,22 +2461,22 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2217
2461
|
onClick: ($event) => $options.removeSelectedSkill(index)
|
|
2218
2462
|
}, null, 8, ["onClick"])
|
|
2219
2463
|
]),
|
|
2220
|
-
createElementVNode("div",
|
|
2221
|
-
createElementVNode("div",
|
|
2222
|
-
createElementVNode("div",
|
|
2464
|
+
createElementVNode("div", _hoisted_117, [
|
|
2465
|
+
createElementVNode("div", _hoisted_118, "编号:" + toDisplayString(skill.CODE), 1),
|
|
2466
|
+
createElementVNode("div", _hoisted_119, "技能描述:" + toDisplayString(skill.DESC), 1)
|
|
2223
2467
|
])
|
|
2224
2468
|
]);
|
|
2225
2469
|
}), 128)),
|
|
2226
|
-
$data.selectedSkills.length === 0 ? (openBlock(), createElementBlock("div",
|
|
2470
|
+
$data.selectedSkills.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_120, " 请从左侧选择技能 ")) : createCommentVNode("", true)
|
|
2227
2471
|
]),
|
|
2228
|
-
createElementVNode("div",
|
|
2229
|
-
createElementVNode("span",
|
|
2230
|
-
createElementVNode("div",
|
|
2472
|
+
createElementVNode("div", _hoisted_121, [
|
|
2473
|
+
createElementVNode("span", _hoisted_122, "已选择 " + toDisplayString($data.selectedSkills.length) + " 个", 1),
|
|
2474
|
+
createElementVNode("div", _hoisted_123, [
|
|
2231
2475
|
createVNode(_component_el_button, {
|
|
2232
2476
|
size: "small",
|
|
2233
2477
|
onClick: _cache[37] || (_cache[37] = ($event) => $data.skillDialogVisible = false)
|
|
2234
2478
|
}, {
|
|
2235
|
-
default: withCtx(() => [..._cache[
|
|
2479
|
+
default: withCtx(() => [..._cache[84] || (_cache[84] = [
|
|
2236
2480
|
createTextVNode("取消", -1)
|
|
2237
2481
|
])]),
|
|
2238
2482
|
_: 1
|
|
@@ -2242,7 +2486,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2242
2486
|
type: "primary",
|
|
2243
2487
|
onClick: $options.confirmSkillSelection
|
|
2244
2488
|
}, {
|
|
2245
|
-
default: withCtx(() => [..._cache[
|
|
2489
|
+
default: withCtx(() => [..._cache[85] || (_cache[85] = [
|
|
2246
2490
|
createTextVNode("保存", -1)
|
|
2247
2491
|
])]),
|
|
2248
2492
|
_: 1
|
|
@@ -2263,8 +2507,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2263
2507
|
class: "api-select-dialog"
|
|
2264
2508
|
}, {
|
|
2265
2509
|
default: withCtx(() => [
|
|
2266
|
-
createElementVNode("div",
|
|
2267
|
-
createElementVNode("div",
|
|
2510
|
+
createElementVNode("div", _hoisted_124, [
|
|
2511
|
+
createElementVNode("div", _hoisted_125, [
|
|
2268
2512
|
createVNode(_component_el_table, {
|
|
2269
2513
|
ref: "sysToolTable",
|
|
2270
2514
|
data: $data.sysToolList,
|
|
@@ -2328,18 +2572,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2328
2572
|
style: { "margin-top": "12px", "text-align": "right" }
|
|
2329
2573
|
}, null, 8, ["current-page", "page-size", "total", "onCurrentChange"])) : createCommentVNode("", true)
|
|
2330
2574
|
]),
|
|
2331
|
-
createElementVNode("div",
|
|
2332
|
-
_cache[
|
|
2575
|
+
createElementVNode("div", _hoisted_126, [
|
|
2576
|
+
_cache[89] || (_cache[89] = createElementVNode("div", { class: "panel-header" }, [
|
|
2333
2577
|
createElementVNode("span", null, "已选择")
|
|
2334
2578
|
], -1)),
|
|
2335
|
-
createElementVNode("div",
|
|
2579
|
+
createElementVNode("div", _hoisted_127, [
|
|
2336
2580
|
(openBlock(true), createElementBlock(Fragment, null, renderList($data.selectedSysTools, (sysTool, index) => {
|
|
2337
2581
|
return openBlock(), createElementBlock("div", {
|
|
2338
2582
|
key: sysTool.ID,
|
|
2339
2583
|
class: "selected-item"
|
|
2340
2584
|
}, [
|
|
2341
|
-
createElementVNode("div",
|
|
2342
|
-
createElementVNode("span",
|
|
2585
|
+
createElementVNode("div", _hoisted_128, [
|
|
2586
|
+
createElementVNode("span", _hoisted_129, toDisplayString(sysTool.NAME), 1),
|
|
2343
2587
|
createVNode(_component_el_button, {
|
|
2344
2588
|
type: "text",
|
|
2345
2589
|
icon: "el-icon-delete-solid",
|
|
@@ -2347,22 +2591,22 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2347
2591
|
onClick: ($event) => $options.removeSelectedSysTool(index)
|
|
2348
2592
|
}, null, 8, ["onClick"])
|
|
2349
2593
|
]),
|
|
2350
|
-
createElementVNode("div",
|
|
2351
|
-
createElementVNode("div",
|
|
2352
|
-
createElementVNode("div",
|
|
2594
|
+
createElementVNode("div", _hoisted_130, [
|
|
2595
|
+
createElementVNode("div", _hoisted_131, "工具标识:" + toDisplayString(sysTool.CODE), 1),
|
|
2596
|
+
createElementVNode("div", _hoisted_132, "工具描述:" + toDisplayString(sysTool.DESC), 1)
|
|
2353
2597
|
])
|
|
2354
2598
|
]);
|
|
2355
2599
|
}), 128)),
|
|
2356
|
-
$data.selectedSysTools.length === 0 ? (openBlock(), createElementBlock("div",
|
|
2600
|
+
$data.selectedSysTools.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_133, " 请从左侧选择内置工具 ")) : createCommentVNode("", true)
|
|
2357
2601
|
]),
|
|
2358
|
-
createElementVNode("div",
|
|
2359
|
-
createElementVNode("span",
|
|
2360
|
-
createElementVNode("div",
|
|
2602
|
+
createElementVNode("div", _hoisted_134, [
|
|
2603
|
+
createElementVNode("span", _hoisted_135, "已选择 " + toDisplayString($data.selectedSysTools.length) + " 个", 1),
|
|
2604
|
+
createElementVNode("div", _hoisted_136, [
|
|
2361
2605
|
createVNode(_component_el_button, {
|
|
2362
2606
|
size: "small",
|
|
2363
2607
|
onClick: _cache[40] || (_cache[40] = ($event) => $data.sysToolDialogVisible = false)
|
|
2364
2608
|
}, {
|
|
2365
|
-
default: withCtx(() => [..._cache[
|
|
2609
|
+
default: withCtx(() => [..._cache[87] || (_cache[87] = [
|
|
2366
2610
|
createTextVNode("取消", -1)
|
|
2367
2611
|
])]),
|
|
2368
2612
|
_: 1
|
|
@@ -2372,7 +2616,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2372
2616
|
type: "primary",
|
|
2373
2617
|
onClick: $options.confirmSysToolSelection
|
|
2374
2618
|
}, {
|
|
2375
|
-
default: withCtx(() => [..._cache[
|
|
2619
|
+
default: withCtx(() => [..._cache[88] || (_cache[88] = [
|
|
2376
2620
|
createTextVNode("保存", -1)
|
|
2377
2621
|
])]),
|
|
2378
2622
|
_: 1
|
|
@@ -2384,17 +2628,248 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2384
2628
|
]),
|
|
2385
2629
|
_: 1
|
|
2386
2630
|
}, 8, ["modelValue"]),
|
|
2631
|
+
createVNode(_component_el_dialog, {
|
|
2632
|
+
title: "添加调用方法",
|
|
2633
|
+
modelValue: $data.callMethodDialogVisible,
|
|
2634
|
+
"onUpdate:modelValue": _cache[44] || (_cache[44] = ($event) => $data.callMethodDialogVisible = $event),
|
|
2635
|
+
width: "960px",
|
|
2636
|
+
"close-on-click-modal": false,
|
|
2637
|
+
"close-on-press-escape": !$data.callMethodSaving,
|
|
2638
|
+
"show-close": !$data.callMethodSaving
|
|
2639
|
+
}, {
|
|
2640
|
+
footer: withCtx(() => [
|
|
2641
|
+
createElementVNode("div", null, [
|
|
2642
|
+
createVNode(_component_el_button, {
|
|
2643
|
+
size: "small",
|
|
2644
|
+
class: "call-method-secondary",
|
|
2645
|
+
disabled: $data.callMethodSaving,
|
|
2646
|
+
onClick: _cache[43] || (_cache[43] = ($event) => $data.callMethodDialogVisible = false)
|
|
2647
|
+
}, {
|
|
2648
|
+
default: withCtx(() => [..._cache[93] || (_cache[93] = [
|
|
2649
|
+
createTextVNode("取消", -1)
|
|
2650
|
+
])]),
|
|
2651
|
+
_: 1
|
|
2652
|
+
}, 8, ["disabled"]),
|
|
2653
|
+
createVNode(_component_el_button, {
|
|
2654
|
+
size: "small",
|
|
2655
|
+
type: "primary",
|
|
2656
|
+
class: "call-method-primary",
|
|
2657
|
+
disabled: !$data.selectedCallMethods.length || $data.callMethodLoading,
|
|
2658
|
+
loading: $data.callMethodSaving,
|
|
2659
|
+
onClick: $options.confirmCallMethods
|
|
2660
|
+
}, {
|
|
2661
|
+
default: withCtx(() => [..._cache[94] || (_cache[94] = [
|
|
2662
|
+
createTextVNode("确认添加", -1)
|
|
2663
|
+
])]),
|
|
2664
|
+
_: 1
|
|
2665
|
+
}, 8, ["disabled", "loading", "onClick"])
|
|
2666
|
+
])
|
|
2667
|
+
]),
|
|
2668
|
+
default: withCtx(() => [
|
|
2669
|
+
createElementVNode("div", _hoisted_137, [
|
|
2670
|
+
createVNode(_component_el_input, {
|
|
2671
|
+
modelValue: $data.callMethodKeyword,
|
|
2672
|
+
"onUpdate:modelValue": _cache[42] || (_cache[42] = ($event) => $data.callMethodKeyword = $event),
|
|
2673
|
+
size: "small",
|
|
2674
|
+
placeholder: "搜索方法名称或标识",
|
|
2675
|
+
clearable: "",
|
|
2676
|
+
disabled: $data.callMethodSaving,
|
|
2677
|
+
onKeyup: withKeys($options.searchCallMethods, ["enter"]),
|
|
2678
|
+
onClear: $options.searchCallMethods
|
|
2679
|
+
}, null, 8, ["modelValue", "disabled", "onKeyup", "onClear"]),
|
|
2680
|
+
createVNode(_component_el_button, {
|
|
2681
|
+
size: "small",
|
|
2682
|
+
class: "call-method-secondary",
|
|
2683
|
+
disabled: $data.callMethodSaving,
|
|
2684
|
+
onClick: $options.searchCallMethods
|
|
2685
|
+
}, {
|
|
2686
|
+
default: withCtx(() => [..._cache[90] || (_cache[90] = [
|
|
2687
|
+
createTextVNode("查询", -1)
|
|
2688
|
+
])]),
|
|
2689
|
+
_: 1
|
|
2690
|
+
}, 8, ["disabled", "onClick"]),
|
|
2691
|
+
_cache[91] || (_cache[91] = createElementVNode("span", { class: "call-method-hint" }, "已接入的方法不可重复选择", -1))
|
|
2692
|
+
]),
|
|
2693
|
+
withDirectives((openBlock(), createBlock(_component_el_table, {
|
|
2694
|
+
ref: "callMethodTable",
|
|
2695
|
+
data: $data.callMethodList,
|
|
2696
|
+
"row-key": "ID",
|
|
2697
|
+
height: "340",
|
|
2698
|
+
onSelectionChange: $options.handleCallMethodSelectionChange
|
|
2699
|
+
}, {
|
|
2700
|
+
default: withCtx(() => [
|
|
2701
|
+
createVNode(_component_el_table_column, {
|
|
2702
|
+
type: "selection",
|
|
2703
|
+
width: "48",
|
|
2704
|
+
"reserve-selection": true,
|
|
2705
|
+
selectable: $options.canSelectCallMethod
|
|
2706
|
+
}, null, 8, ["selectable"]),
|
|
2707
|
+
createVNode(_component_el_table_column, {
|
|
2708
|
+
prop: "NAME",
|
|
2709
|
+
label: "方法名称",
|
|
2710
|
+
"min-width": "160",
|
|
2711
|
+
"show-overflow-tooltip": ""
|
|
2712
|
+
}),
|
|
2713
|
+
createVNode(_component_el_table_column, {
|
|
2714
|
+
prop: "CODE",
|
|
2715
|
+
label: "方法标识",
|
|
2716
|
+
"min-width": "170",
|
|
2717
|
+
"show-overflow-tooltip": ""
|
|
2718
|
+
}),
|
|
2719
|
+
createVNode(_component_el_table_column, {
|
|
2720
|
+
label: "方法类型",
|
|
2721
|
+
width: "120"
|
|
2722
|
+
}, {
|
|
2723
|
+
default: withCtx((scope) => [
|
|
2724
|
+
createTextVNode(toDisplayString($options.callMethodTypeName(scope.row.OPERATION)), 1)
|
|
2725
|
+
]),
|
|
2726
|
+
_: 1
|
|
2727
|
+
}),
|
|
2728
|
+
createVNode(_component_el_table_column, {
|
|
2729
|
+
prop: "MAIN_ENTITY#",
|
|
2730
|
+
label: "主对象",
|
|
2731
|
+
"min-width": "140",
|
|
2732
|
+
"show-overflow-tooltip": ""
|
|
2733
|
+
}),
|
|
2734
|
+
createVNode(_component_el_table_column, {
|
|
2735
|
+
prop: "DESCRIPTION",
|
|
2736
|
+
label: "方法描述",
|
|
2737
|
+
"min-width": "200",
|
|
2738
|
+
"show-overflow-tooltip": ""
|
|
2739
|
+
})
|
|
2740
|
+
]),
|
|
2741
|
+
_: 1
|
|
2742
|
+
}, 8, ["data", "onSelectionChange"])), [
|
|
2743
|
+
[_directive_loading, $data.callMethodLoading]
|
|
2744
|
+
]),
|
|
2745
|
+
createVNode(_component_el_pagination, {
|
|
2746
|
+
"current-page": $data.callMethodPage,
|
|
2747
|
+
"page-size": 10,
|
|
2748
|
+
layout: "total, prev, pager, next",
|
|
2749
|
+
total: $data.callMethodTotal,
|
|
2750
|
+
disabled: $data.callMethodSaving,
|
|
2751
|
+
onCurrentChange: $options.changeCallMethodPage
|
|
2752
|
+
}, null, 8, ["current-page", "total", "disabled", "onCurrentChange"]),
|
|
2753
|
+
$data.selectedCallMethods.length ? (openBlock(), createElementBlock("div", _hoisted_138, [
|
|
2754
|
+
createElementVNode("div", _hoisted_139, "已选择 " + toDisplayString($data.selectedCallMethods.length) + " 个方法 · 逐项设置执行前确认", 1),
|
|
2755
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($data.selectedCallMethods, (method) => {
|
|
2756
|
+
return openBlock(), createElementBlock("div", {
|
|
2757
|
+
key: method.ID,
|
|
2758
|
+
class: "call-method-selection-row"
|
|
2759
|
+
}, [
|
|
2760
|
+
createElementVNode("span", null, toDisplayString(method.NAME), 1),
|
|
2761
|
+
createVNode(_component_el_checkbox, {
|
|
2762
|
+
modelValue: $data.callMethodConfirm[method.ID],
|
|
2763
|
+
"onUpdate:modelValue": ($event) => $data.callMethodConfirm[method.ID] = $event,
|
|
2764
|
+
disabled: $data.callMethodSaving
|
|
2765
|
+
}, {
|
|
2766
|
+
default: withCtx(() => [..._cache[92] || (_cache[92] = [
|
|
2767
|
+
createTextVNode("执行前确认", -1)
|
|
2768
|
+
])]),
|
|
2769
|
+
_: 1
|
|
2770
|
+
}, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
2771
|
+
]);
|
|
2772
|
+
}), 128))
|
|
2773
|
+
])) : createCommentVNode("", true)
|
|
2774
|
+
]),
|
|
2775
|
+
_: 1
|
|
2776
|
+
}, 8, ["modelValue", "close-on-press-escape", "show-close"]),
|
|
2777
|
+
createVNode(_component_el_dialog, {
|
|
2778
|
+
title: "调用方法接入配置",
|
|
2779
|
+
modelValue: $data.callMethodSettingsVisible,
|
|
2780
|
+
"onUpdate:modelValue": _cache[47] || (_cache[47] = ($event) => $data.callMethodSettingsVisible = $event),
|
|
2781
|
+
width: "600px",
|
|
2782
|
+
"close-on-click-modal": false,
|
|
2783
|
+
"close-on-press-escape": !$data.callMethodSaving,
|
|
2784
|
+
"show-close": !$data.callMethodSaving
|
|
2785
|
+
}, {
|
|
2786
|
+
footer: withCtx(() => [
|
|
2787
|
+
createElementVNode("div", null, [
|
|
2788
|
+
createVNode(_component_el_button, {
|
|
2789
|
+
size: "small",
|
|
2790
|
+
class: "call-method-secondary",
|
|
2791
|
+
disabled: $data.callMethodSaving,
|
|
2792
|
+
onClick: _cache[46] || (_cache[46] = ($event) => $data.callMethodSettingsVisible = false)
|
|
2793
|
+
}, {
|
|
2794
|
+
default: withCtx(() => [..._cache[95] || (_cache[95] = [
|
|
2795
|
+
createTextVNode("取消", -1)
|
|
2796
|
+
])]),
|
|
2797
|
+
_: 1
|
|
2798
|
+
}, 8, ["disabled"]),
|
|
2799
|
+
createVNode(_component_el_button, {
|
|
2800
|
+
size: "small",
|
|
2801
|
+
type: "primary",
|
|
2802
|
+
class: "call-method-primary",
|
|
2803
|
+
loading: $data.callMethodSaving,
|
|
2804
|
+
onClick: $options.saveCallMethodSettings
|
|
2805
|
+
}, {
|
|
2806
|
+
default: withCtx(() => [..._cache[96] || (_cache[96] = [
|
|
2807
|
+
createTextVNode("保存", -1)
|
|
2808
|
+
])]),
|
|
2809
|
+
_: 1
|
|
2810
|
+
}, 8, ["loading", "onClick"])
|
|
2811
|
+
])
|
|
2812
|
+
]),
|
|
2813
|
+
default: withCtx(() => [
|
|
2814
|
+
createVNode(_component_el_form, { "label-width": "100px" }, {
|
|
2815
|
+
default: withCtx(() => [
|
|
2816
|
+
createVNode(_component_el_form_item, { label: "方法名称" }, {
|
|
2817
|
+
default: withCtx(() => [
|
|
2818
|
+
createTextVNode(toDisplayString($data.callMethodSetting["CALL_METHOD|NAME"] || $data.callMethodSetting.NAME), 1)
|
|
2819
|
+
]),
|
|
2820
|
+
_: 1
|
|
2821
|
+
}),
|
|
2822
|
+
createVNode(_component_el_form_item, { label: "方法标识" }, {
|
|
2823
|
+
default: withCtx(() => [
|
|
2824
|
+
createTextVNode(toDisplayString($data.callMethodSetting["CALL_METHOD|CODE"] || "—"), 1)
|
|
2825
|
+
]),
|
|
2826
|
+
_: 1
|
|
2827
|
+
}),
|
|
2828
|
+
createVNode(_component_el_form_item, { label: "方法类型" }, {
|
|
2829
|
+
default: withCtx(() => [
|
|
2830
|
+
createTextVNode(toDisplayString($options.callMethodTypeName($data.callMethodSetting["CALL_METHOD|OPERATION"])), 1)
|
|
2831
|
+
]),
|
|
2832
|
+
_: 1
|
|
2833
|
+
}),
|
|
2834
|
+
createVNode(_component_el_form_item, { label: "主对象" }, {
|
|
2835
|
+
default: withCtx(() => [
|
|
2836
|
+
createTextVNode(toDisplayString($data.callMethodSetting["CALL_METHOD|MAIN_ENTITY#"] || "—"), 1)
|
|
2837
|
+
]),
|
|
2838
|
+
_: 1
|
|
2839
|
+
}),
|
|
2840
|
+
createVNode(_component_el_form_item, { label: "方法描述" }, {
|
|
2841
|
+
default: withCtx(() => [
|
|
2842
|
+
createTextVNode(toDisplayString($data.callMethodSetting["CALL_METHOD|DESCRIPTION"] || $data.callMethodSetting.DESC), 1)
|
|
2843
|
+
]),
|
|
2844
|
+
_: 1
|
|
2845
|
+
}),
|
|
2846
|
+
createVNode(_component_el_form_item, { label: "执行前确认" }, {
|
|
2847
|
+
default: withCtx(() => [
|
|
2848
|
+
createVNode(_component_el_switch, {
|
|
2849
|
+
modelValue: $data.callMethodSettingConfirm,
|
|
2850
|
+
"onUpdate:modelValue": _cache[45] || (_cache[45] = ($event) => $data.callMethodSettingConfirm = $event),
|
|
2851
|
+
disabled: $data.callMethodSaving
|
|
2852
|
+
}, null, 8, ["modelValue", "disabled"])
|
|
2853
|
+
]),
|
|
2854
|
+
_: 1
|
|
2855
|
+
})
|
|
2856
|
+
]),
|
|
2857
|
+
_: 1
|
|
2858
|
+
})
|
|
2859
|
+
]),
|
|
2860
|
+
_: 1
|
|
2861
|
+
}, 8, ["modelValue", "close-on-press-escape", "show-close"]),
|
|
2387
2862
|
createVNode(_component_el_dialog, {
|
|
2388
2863
|
title: "添加MCP工具",
|
|
2389
2864
|
modelValue: $data.mcpDialogVisible,
|
|
2390
|
-
"onUpdate:modelValue": _cache[
|
|
2865
|
+
"onUpdate:modelValue": _cache[50] || (_cache[50] = ($event) => $data.mcpDialogVisible = $event),
|
|
2391
2866
|
width: "1100px",
|
|
2392
2867
|
"close-on-click-modal": false,
|
|
2393
2868
|
class: "api-select-dialog"
|
|
2394
2869
|
}, {
|
|
2395
2870
|
default: withCtx(() => [
|
|
2396
|
-
createElementVNode("div",
|
|
2397
|
-
createElementVNode("div",
|
|
2871
|
+
createElementVNode("div", _hoisted_140, [
|
|
2872
|
+
createElementVNode("div", _hoisted_141, [
|
|
2398
2873
|
createVNode(_component_el_table, {
|
|
2399
2874
|
ref: "mcpTable",
|
|
2400
2875
|
data: $data.mcpList,
|
|
@@ -2456,7 +2931,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2456
2931
|
$data.mcpTotal > $data.mcpPageSize ? (openBlock(), createBlock(_component_el_pagination, {
|
|
2457
2932
|
key: 0,
|
|
2458
2933
|
"current-page": $data.mcpCurrentPage,
|
|
2459
|
-
"onUpdate:currentPage": _cache[
|
|
2934
|
+
"onUpdate:currentPage": _cache[48] || (_cache[48] = ($event) => $data.mcpCurrentPage = $event),
|
|
2460
2935
|
"page-size": $data.mcpPageSize,
|
|
2461
2936
|
layout: "total, prev, pager, next",
|
|
2462
2937
|
total: $data.mcpTotal,
|
|
@@ -2464,18 +2939,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2464
2939
|
style: { "margin-top": "12px", "text-align": "right" }
|
|
2465
2940
|
}, null, 8, ["current-page", "page-size", "total", "onCurrentChange"])) : createCommentVNode("", true)
|
|
2466
2941
|
]),
|
|
2467
|
-
createElementVNode("div",
|
|
2468
|
-
_cache[
|
|
2942
|
+
createElementVNode("div", _hoisted_142, [
|
|
2943
|
+
_cache[99] || (_cache[99] = createElementVNode("div", { class: "panel-header" }, [
|
|
2469
2944
|
createElementVNode("span", null, "已选择")
|
|
2470
2945
|
], -1)),
|
|
2471
|
-
createElementVNode("div",
|
|
2946
|
+
createElementVNode("div", _hoisted_143, [
|
|
2472
2947
|
(openBlock(true), createElementBlock(Fragment, null, renderList($data.selectedMcps, (mcp, index) => {
|
|
2473
2948
|
return openBlock(), createElementBlock("div", {
|
|
2474
2949
|
key: mcp.ID,
|
|
2475
2950
|
class: "selected-item"
|
|
2476
2951
|
}, [
|
|
2477
|
-
createElementVNode("div",
|
|
2478
|
-
createElementVNode("span",
|
|
2952
|
+
createElementVNode("div", _hoisted_144, [
|
|
2953
|
+
createElementVNode("span", _hoisted_145, toDisplayString(mcp.NAME), 1),
|
|
2479
2954
|
createVNode(_component_el_button, {
|
|
2480
2955
|
type: "primary",
|
|
2481
2956
|
link: "",
|
|
@@ -2484,23 +2959,23 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2484
2959
|
onClick: ($event) => $options.removeSelectedMcp(index)
|
|
2485
2960
|
}, null, 8, ["onClick"])
|
|
2486
2961
|
]),
|
|
2487
|
-
createElementVNode("div",
|
|
2488
|
-
createElementVNode("div",
|
|
2489
|
-
createElementVNode("div",
|
|
2490
|
-
createElementVNode("div",
|
|
2962
|
+
createElementVNode("div", _hoisted_146, [
|
|
2963
|
+
createElementVNode("div", _hoisted_147, "编号:" + toDisplayString(mcp.CODE), 1),
|
|
2964
|
+
createElementVNode("div", _hoisted_148, "请求类型:" + toDisplayString(mcp.TYPE), 1),
|
|
2965
|
+
createElementVNode("div", _hoisted_149, "地址:" + toDisplayString(mcp.URL), 1)
|
|
2491
2966
|
])
|
|
2492
2967
|
]);
|
|
2493
2968
|
}), 128)),
|
|
2494
|
-
$data.selectedMcps.length === 0 ? (openBlock(), createElementBlock("div",
|
|
2969
|
+
$data.selectedMcps.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_150, " 请从左侧选择MCP ")) : createCommentVNode("", true)
|
|
2495
2970
|
]),
|
|
2496
|
-
createElementVNode("div",
|
|
2497
|
-
createElementVNode("span",
|
|
2498
|
-
createElementVNode("div",
|
|
2971
|
+
createElementVNode("div", _hoisted_151, [
|
|
2972
|
+
createElementVNode("span", _hoisted_152, "已选择 " + toDisplayString($data.selectedMcps.length) + " 个", 1),
|
|
2973
|
+
createElementVNode("div", _hoisted_153, [
|
|
2499
2974
|
createVNode(_component_el_button, {
|
|
2500
2975
|
size: "small",
|
|
2501
|
-
onClick: _cache[
|
|
2976
|
+
onClick: _cache[49] || (_cache[49] = ($event) => $data.mcpDialogVisible = false)
|
|
2502
2977
|
}, {
|
|
2503
|
-
default: withCtx(() => [..._cache[
|
|
2978
|
+
default: withCtx(() => [..._cache[97] || (_cache[97] = [
|
|
2504
2979
|
createTextVNode("取消", -1)
|
|
2505
2980
|
])]),
|
|
2506
2981
|
_: 1
|
|
@@ -2510,7 +2985,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2510
2985
|
type: "primary",
|
|
2511
2986
|
onClick: $options.confirmMcpSelection
|
|
2512
2987
|
}, {
|
|
2513
|
-
default: withCtx(() => [..._cache[
|
|
2988
|
+
default: withCtx(() => [..._cache[98] || (_cache[98] = [
|
|
2514
2989
|
createTextVNode("保存", -1)
|
|
2515
2990
|
])]),
|
|
2516
2991
|
_: 1
|
|
@@ -2524,7 +2999,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2524
2999
|
}, 8, ["modelValue"])
|
|
2525
3000
|
]);
|
|
2526
3001
|
}
|
|
2527
|
-
const AiToolManager = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
3002
|
+
const AiToolManager = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-587d3ea0"]]);
|
|
2528
3003
|
export {
|
|
2529
3004
|
AiToolManager as default
|
|
2530
3005
|
};
|