diff --git a/main/manager-web/src/components/FunctionDialog.vue b/main/manager-web/src/components/FunctionDialog.vue index 028a208e..b4fec417 100644 --- a/main/manager-web/src/components/FunctionDialog.vue +++ b/main/manager-web/src/components/FunctionDialog.vue @@ -16,13 +16,12 @@ 全选
-
- -
-
- {{ func.name }} -
-
+
+ +
+
+ {{ func.name }} +
@@ -37,13 +36,12 @@ 全选
-
- -
-
- {{ func.name }} -
-
+
+ +
+
+ {{ func.name }} +
@@ -51,13 +49,13 @@

参数配置 - {{ currentFunction.name }}

-
- - - - - -
+
+ + + + + +
请选择已配置的功能进行参数设置
@@ -101,6 +99,7 @@ export default { tempFunctions: {}, // 添加一个标志位来跟踪是否已经保存 hasSaved: false, + loading: false, } }, computed: { @@ -126,8 +125,12 @@ export default { methods: { handleFunctionClick(func) { if (this.selectedNames.includes(func.name)) { - const tempFunc = this.tempFunctions[func.name]; - this.currentFunction = tempFunc ? tempFunc : JSON.parse(JSON.stringify(func)); + this.loading = true; + setTimeout(() => { + const tempFunc = this.tempFunctions[func.name]; + this.currentFunction = tempFunc ? tempFunc : JSON.parse(JSON.stringify(func)); + this.loading = false; + }, 300); } }, handleParamChange(func, key, value) { @@ -145,7 +148,9 @@ export default { this.selectedNames = this.selectedNames.filter(name => name !== func.name); } - if (this.currentFunction && this.currentFunction.name === func.name && !checked) { + if (this.selectedList.length > 0) { + this.currentFunction = this.selectedList[0]; + } else { this.currentFunction = null; } }, @@ -298,6 +303,9 @@ export default { .func-tag { display: flex; align-items: center; + cursor: pointer; + flex-grow: 1; + margin-left: 8px; } .color-dot { @@ -396,4 +404,7 @@ export default { border-color: #409EFF; } +::v-deep .el-checkbox__label { + display: none; +} \ No newline at end of file diff --git a/main/manager-web/src/views/roleConfig.vue b/main/manager-web/src/views/roleConfig.vue index eb7dbc45..88fec81e 100644 --- a/main/manager-web/src/views/roleConfig.vue +++ b/main/manager-web/src/views/roleConfig.vue @@ -353,10 +353,10 @@ export default { }, showFunctionIcons(type) { return type === 'Intent' && - this.form.model.intentModelId === 'Intent_function_call'; + this.form.model.intentModelId !== 'Intent_nointent'; }, handleModelChange(type, value) { - if (type === 'Intent' && value === 'Intent_function_call') { + if (type === 'Intent' && value !== 'Intent_nointent') { this.fetchFunctionList(); } },