|
@@ -303,7 +303,7 @@ import { onMounted, reactive, ref, nextTick, onUnmounted, computed, onActivated
|
|
|
import { Message } from '../../../3rd-libs/arco-vue-libs';
|
|
import { Message } from '../../../3rd-libs/arco-vue-libs';
|
|
|
import { getIconIntelligent } from '../../common/icon-map.js';
|
|
import { getIconIntelligent } from '../../common/icon-map.js';
|
|
|
import { queryModelList, createRgFlow } from '../../../apis/rgflow-dify';
|
|
import { queryModelList, createRgFlow } from '../../../apis/rgflow-dify';
|
|
|
-import { createDialog } from '../../../apis/intelligent';
|
|
|
|
|
|
|
+import { createDialog, syncDialogInfo } from '../../../apis/intelligent';
|
|
|
import { getKnowledgeList } from '../../../apis/knowledge';
|
|
import { getKnowledgeList } from '../../../apis/knowledge';
|
|
|
import { dialogType } from '../../../views/manage/common.js';
|
|
import { dialogType } from '../../../views/manage/common.js';
|
|
|
import useLoading from './loading';
|
|
import useLoading from './loading';
|
|
@@ -493,6 +493,9 @@ const createOwnDialog = async (data, title) => {
|
|
|
emit('updateIntelligentList');
|
|
emit('updateIntelligentList');
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
+const syncDialogInfoFun = async (dialogId) => {
|
|
|
|
|
+ await syncDialogInfo(dialogId);
|
|
|
|
|
+};
|
|
|
const handleBeforeOk = async (done) => {
|
|
const handleBeforeOk = async (done) => {
|
|
|
formRef.value.validate().then((res) => {
|
|
formRef.value.validate().then((res) => {
|
|
|
// console.log('res:', res)
|
|
// console.log('res:', res)
|
|
@@ -551,9 +554,12 @@ const handleBeforeOk = async (done) => {
|
|
|
if (props.typeAngint == 'add') {
|
|
if (props.typeAngint == 'add') {
|
|
|
createOwnDialog(dialogData, title);
|
|
createOwnDialog(dialogData, title);
|
|
|
} else {
|
|
} else {
|
|
|
- emit('updateIntelligentList');
|
|
|
|
|
- handleCancel();
|
|
|
|
|
- Message.success(title);
|
|
|
|
|
|
|
+ await syncDialogInfoFun(res.data.id);
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ emit('updateIntelligentList');
|
|
|
|
|
+ handleCancel();
|
|
|
|
|
+ Message.success(title);
|
|
|
|
|
+ }, 1000);
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
Message.error(t('management.create_fail'));
|
|
Message.error(t('management.create_fail'));
|