删除不再使用的数字人创作和模型配置相关文件,优化项目结构,提升代码可维护性。
This commit is contained in:
@@ -92,10 +92,10 @@
|
||||
import { ref, reactive, watch, onMounted } from 'vue';
|
||||
import { ElMessage, type FormInstance, type FormRules } from 'element-plus';
|
||||
import { Search, CircleCheck } from '@element-plus/icons-vue';
|
||||
import { getModelModuleList, addModelModule, getModelTypeList, normalizeModelTypeOptions } from '/@/api/digitalHuman/modelConfig/modelModule';
|
||||
import { getModelModuleList, addModelModule, getModelTypeList, normalizeModelTypeOptions } from '/@/api/settings/modelConfig/modelModule';
|
||||
import { checkIsSuperAdmin } from '/@/api/system/user/index';
|
||||
import { getApiErrorMessage } from '/@/utils/request';
|
||||
import EditModule from '/@/views/digitalHuman/modelConfig/modelModule/component/editModule.vue';
|
||||
import EditModule from '/@/views/settings/modelConfig/modelModule/component/editModule.vue';
|
||||
|
||||
interface ModelItem {
|
||||
id: string;
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, reactive, watch } from 'vue';
|
||||
import { Search, CircleCheck } from '@element-plus/icons-vue';
|
||||
import { getSkillList, getUserSkilllistUser, type SkillItem } from '/@/api/digitalHuman/skill';
|
||||
import { getSkillList, getUserSkilllistUser, type SkillItem } from '/@/api/settings/skill';
|
||||
|
||||
interface Props {
|
||||
modelValue: boolean;
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, reactive, watch } from 'vue';
|
||||
import { Search, CircleCheck } from '@element-plus/icons-vue';
|
||||
import { getUserSkilllistUser, type SkillItem } from '/@/api/digitalHuman/skill';
|
||||
import { getUserSkilllistUser, type SkillItem } from '/@/api/settings/skill';
|
||||
|
||||
interface Props {
|
||||
modelValue: boolean;
|
||||
|
||||
@@ -572,7 +572,7 @@ import '@logicflow/core/dist/index.css';
|
||||
import '@logicflow/extension/lib/style/index.css';
|
||||
import SkillSelector from '/@/components/skill/NodeSkillSelector.vue';
|
||||
import ModelSelector from '/@/components/model/ModelSelector.vue';
|
||||
import type { SkillItem } from '/@/api/digitalHuman/skill';
|
||||
import type { SkillItem } from '/@/api/settings/skill';
|
||||
import {
|
||||
downloadToFile,
|
||||
getExecutionList,
|
||||
@@ -589,9 +589,9 @@ import {
|
||||
type NodeLibraryGroup,
|
||||
type WorkflowItem,
|
||||
type ExecuteFlowParams,
|
||||
} from '/@/api/digitalHuman/creation';
|
||||
} from '/@/api/settings/creation';
|
||||
import { uploadFile } from '/@/api/common/upload';
|
||||
import { getModelModuleList, updateChatModel, getIsChatModel } from '/@/api/digitalHuman/modelConfig/modelModule';
|
||||
import { getModelModuleList, updateChatModel, getIsChatModel } from '/@/api/settings/modelConfig/modelModule';
|
||||
import { checkIsSuperAdmin } from '/@/api/system/user';
|
||||
|
||||
type NodeType = 'date' | 'contentType' | 'theme' | 'title' | 'html' | 'image';
|
||||
@@ -958,11 +958,11 @@ const fetchWorkflowList = async () => {
|
||||
}
|
||||
};
|
||||
// 刷新工作流列表
|
||||
const refreshWorkflowList = () => {
|
||||
userWorkflowPagination.pageNum = 1;
|
||||
templateWorkflowPagination.pageNum = 1;
|
||||
fetchWorkflowList();
|
||||
};
|
||||
// const refreshWorkflowList = () => {
|
||||
// userWorkflowPagination.pageNum = 1;
|
||||
// templateWorkflowPagination.pageNum = 1;
|
||||
// fetchWorkflowList();
|
||||
// };
|
||||
// 新建工作流
|
||||
const createNewWorkflow = () => {
|
||||
// 切换回画布编辑模式
|
||||
@@ -247,7 +247,7 @@ import { reactive, ref, computed } from 'vue';
|
||||
import { ElMessage } from 'element-plus';
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
import { ArrowUp, ArrowDown } from '@element-plus/icons-vue';
|
||||
import { addModelModule, updateModelModule, getModelModuleDetail, type ModelFormEntry } from '/@/api/digitalHuman/modelConfig/modelModule/index';
|
||||
import { addModelModule, updateModelModule, getModelModuleDetail, type ModelFormEntry } from '/@/api/settings/modelConfig/modelModule/index';
|
||||
|
||||
export type ModelTypeOption = { id: number | string; label: string };
|
||||
|
||||
@@ -133,11 +133,11 @@ import {
|
||||
normalizeModelTypeOptions,
|
||||
updateChatModel,
|
||||
addModelModule,
|
||||
} from '/@/api/digitalHuman/modelConfig/modelModule/index';
|
||||
} from '/@/api/settings/modelConfig/modelModule/index';
|
||||
import { checkIsSuperAdmin } from '/@/api/system/user/index';
|
||||
import { getApiErrorMessage } from '/@/utils/request';
|
||||
|
||||
const EditModule = defineAsyncComponent(() => import('/@/views/digitalHuman/modelConfig/modelModule/component/editModule.vue'));
|
||||
const EditModule = defineAsyncComponent(() => import('/@/views/settings/modelConfig/modelModule/component/editModule.vue'));
|
||||
|
||||
const editModuleRef = ref();
|
||||
const isSuperAdmin = ref(false); // 是否为管理员
|
||||
@@ -135,7 +135,7 @@ import {
|
||||
getUserSkillDetail,
|
||||
type SkillItem,
|
||||
type CreateSkillParams,
|
||||
} from '/@/api/digitalHuman/skill';
|
||||
} from '/@/api/settings/skill';
|
||||
import { uploadFile as uploadFileToOss } from '/@/api/common/upload';
|
||||
|
||||
const searchParams = reactive({ keyword: '' });
|
||||
Reference in New Issue
Block a user