diff --git a/frontend/src/api/modules/setting/template.ts b/frontend/src/api/modules/setting/template.ts index 67f76123b9..6e0bfc0b03 100644 --- a/frontend/src/api/modules/setting/template.ts +++ b/frontend/src/api/modules/setting/template.ts @@ -40,10 +40,11 @@ import { UpdateProjectTemplateUrl, } from '@/api/requrls/setting/template'; -import { TableQueryParams } from '@/models/common'; +import { CommonList, TableQueryParams } from '@/models/common'; import type { ActionTemplateManage, AddOrUpdateField, + OrdTemplateManagement, OrdWorkStatus, SeneType, SetStateType, @@ -56,7 +57,9 @@ import type { */ // 获取模板列表(组织) export function getOrganizeTemplateList(params: TableQueryParams) { - return MSR.get({ url: `${GetOrganizeTemplateUrl}/${params.organizationId}/${params.scene}` }); + return MSR.get({ + url: `${GetOrganizeTemplateUrl}/${params.organizationId}/${params.scene}`, + }); } // 获取模板详情(组织) export function getOrganizeTemplateInfo(id: string) { @@ -180,7 +183,9 @@ export function getProjectFieldDetail(id: string) { */ // 获取模板列表(项目) export function getProjectTemplateList(params: TableQueryParams) { - return MSR.get({ url: `${GetProjectTemplateUrl}/${params.projectId}/${params.scene}` }); + return MSR.get({ + url: `${GetProjectTemplateUrl}/${params.projectId}/${params.scene}`, + }); } // 获取模板详情(项目) export function getProjectTemplateInfo(id: string) { diff --git a/frontend/src/components/business/ms-comment/comment.tsx b/frontend/src/components/business/ms-comment/comment.tsx index 11b1a5daa8..8862179c88 100644 --- a/frontend/src/components/business/ms-comment/comment.tsx +++ b/frontend/src/components/business/ms-comment/comment.tsx @@ -19,6 +19,11 @@ export default defineComponent({ type: Boolean as PropType, default: false, }, + uploadImage: { + type: Function, + // eslint-disable-next-line @typescript-eslint/no-empty-function + default: (file: File) => Promise, + }, }, emits: { /* eslint-disable @typescript-eslint/no-unused-vars */ @@ -26,7 +31,7 @@ export default defineComponent({ delete: (value: string) => true, // 删除评论 }, setup(props, { emit }) { - const { commentList, disabled } = toRefs(props); + const { commentList, disabled, uploadImage } = toRefs(props); const currentItem = reactive<{ id: string; commentType: CommentType; commentStatus: string }>({ id: '', commentType: 'ADD', @@ -123,6 +128,7 @@ export default defineComponent({ onUpdate:noticeUserIds={(ids: string[]) => { noticeUserIds.value = ids; }} + uploadImage={uploadImage.value} onCancel={() => resetCurrentItem()} {...item} /> diff --git a/frontend/src/components/business/ms-comment/input.vue b/frontend/src/components/business/ms-comment/input.vue index 017046709c..1e0dc61b5c 100644 --- a/frontend/src/components/business/ms-comment/input.vue +++ b/frontend/src/components/business/ms-comment/input.vue @@ -18,6 +18,7 @@ @@ -46,6 +47,7 @@ const props = defineProps<{ isShowAvatar: boolean; // 是否显示评论人头像 isUseBottom: boolean; // 是否被用于底部 + uploadImage?: (file: File) => Promise; }>(); const currentContent = defineModel('defaultValue', { default: '' }); diff --git a/frontend/src/components/business/ms-common-script/insertCommonScript.vue b/frontend/src/components/business/ms-common-script/insertCommonScript.vue index 61af1e062e..6e39ac556e 100644 --- a/frontend/src/components/business/ms-common-script/insertCommonScript.vue +++ b/frontend/src/components/business/ms-common-script/insertCommonScript.vue @@ -52,6 +52,12 @@ + {{ t('project.menu.preview') }} diff --git a/frontend/src/components/pure/ms-rich-text/extensions/image/index.ts b/frontend/src/components/pure/ms-rich-text/extensions/image/index.ts index 5a4e57607a..e513a092ec 100644 --- a/frontend/src/components/pure/ms-rich-text/extensions/image/index.ts +++ b/frontend/src/components/pure/ms-rich-text/extensions/image/index.ts @@ -164,7 +164,8 @@ const Image = TiptapImage.extend({ ), title: t('editor.extensions.image.open_link'), action: () => { - window.open(editor.getAttributes(Image.name).src, '_blank'); + const newWindow = window.open(''); + newWindow?.document.write(``); }, }, }, diff --git a/frontend/src/models/setting/template.ts b/frontend/src/models/setting/template.ts index 5b7ad59bca..0d9bcb46e9 100644 --- a/frontend/src/models/setting/template.ts +++ b/frontend/src/models/setting/template.ts @@ -116,6 +116,7 @@ export interface ActionTemplateManage { customFields?: CustomField[]; fieldType?: string; systemFields?: Record[]; + enablePlatformDefault?: boolean; internal?: boolean; // 是否为系统模板 platForm?: string; [key: string]: any; diff --git a/frontend/src/views/bug-management/components/bug-detail-drawer.vue b/frontend/src/views/bug-management/components/bug-detail-drawer.vue index 9b277d02bf..613fdc8ed4 100644 --- a/frontend/src/views/bug-management/components/bug-detail-drawer.vue +++ b/frontend/src/views/bug-management/components/bug-detail-drawer.vue @@ -14,6 +14,7 @@ :page-change="props.pageChange" show-full-screen unmount-on-close + :mask="false" @loaded="loadedBug" > -