diff --git a/frontend/src/components/pure/ms-form-create/comp/jiraKey.vue b/frontend/src/components/pure/ms-form-create/comp/jiraKey.vue index 842450b72e..ff45e5a981 100644 --- a/frontend/src/components/pure/ms-form-create/comp/jiraKey.vue +++ b/frontend/src/components/pure/ms-form-create/comp/jiraKey.vue @@ -8,17 +8,8 @@ />
{{ attrs.subDesc }} - - - - {{ t('project.menu.preview') }} - + {{ t('project.menu.show') }} +
@@ -33,6 +24,7 @@ const attrs = useAttrs(); const { formCreateInject } = attrs; + const imgVisible = ref(false); const props = defineProps<{ instructionsIcon: string; @@ -71,6 +63,9 @@ } } }; + const showPreviewImg = () => { + imgVisible.value = true; + }; watchEffect(() => { if (props.value) { inputValue.value = props.value; @@ -78,4 +73,11 @@ }); - + diff --git a/frontend/src/views/project-management/projectAndPermission/menuManagement/locale/en-US.ts b/frontend/src/views/project-management/projectAndPermission/menuManagement/locale/en-US.ts index 0a801fd7b2..ae32f6eb43 100644 --- a/frontend/src/views/project-management/projectAndPermission/menuManagement/locale/en-US.ts +++ b/frontend/src/views/project-management/projectAndPermission/menuManagement/locale/en-US.ts @@ -65,6 +65,7 @@ export default { 'project.menu.demandType': 'Requirement Type', 'project.menu.howGetJiraKey': 'How to Get JIRA Project Key', 'project.menu.preview': 'Preview', + 'project.menu.show': 'Show', 'project.menu.pleaseInputJiraKey': 'Please enter JIRA project key', 'project.menu.addFalseAlertRules': 'Add False Alert Rule', 'project.menu.updateFalseAlertRules': 'Update False Alert Rule', diff --git a/frontend/src/views/project-management/projectAndPermission/menuManagement/locale/zh-CN.ts b/frontend/src/views/project-management/projectAndPermission/menuManagement/locale/zh-CN.ts index 88d43bafcf..e26eedd39a 100644 --- a/frontend/src/views/project-management/projectAndPermission/menuManagement/locale/zh-CN.ts +++ b/frontend/src/views/project-management/projectAndPermission/menuManagement/locale/zh-CN.ts @@ -60,6 +60,7 @@ export default { 'project.menu.demandType': '需求类型', 'project.menu.howGetJiraKey': '如何获取JIRA 项目 key ', 'project.menu.preview': '预览', + 'project.menu.show': '查看', 'project.menu.pleaseInputJiraKey': '请输入 JIRA 项目 key', 'project.menu.addFalseAlertRules': '新增误报规则', 'project.menu.updateFalseAlertRules': '更新误报规则',