style(缺陷管理): 统一缺陷管理单条删除和批量删除的文案

--bug=1036275 --user=宋天阳 【缺陷管理】批量删除所有页缺陷弹框信息错误 https://www.tapd.cn/55049933/s/1464993
This commit is contained in:
song-tianyang 2024-02-26 18:48:33 +08:00 committed by 刘瑞斌
parent 413585b85a
commit 946bd807d3
4 changed files with 12 additions and 5 deletions

View File

@ -91,7 +91,7 @@
<div>
<div v-if="showAppend" class="flex flex-row items-center gap-[4px]">
<a-switch v-model:model-value="form.append" size="small" type="line" />
<span class="text-[var(--color-text-1)]">{{ t('bugManagement.batchUpdate.update') }}</span>
<span class="text-[var(--color-text-1)]">{{ t('bugManagement.batchUpdate.appendLabel') }}</span>
<a-tooltip position="top">
<template #content>
<div>{{ t('bugManagement.batchUpdate.openAppend') }}</div>
@ -188,6 +188,7 @@ const { t } = useI18n();
const handleCancel = () => {
formReset();
currentVisible.value = false;
showAppend.value=false;
loading.value = false;
};
const customFiledOption = ref<{ text: string; value: string }[]>([]);
@ -195,12 +196,12 @@ const { t } = useI18n();
const handleAttributeChange = (value: SelectValue) => {
form.value = [];
form.inputValue = '';
showAppend.value = false;
if (value === 'tags') {
valueMode.value = 'tags';
showAppend.value = true;
} else if (value === 'handleUser') {
valueMode.value = 'user_selector';
showAppend.value = true;
} else {
//
const customField = props.customFields.find((item) => item.fieldId === value);

View File

@ -482,8 +482,12 @@ const { t } = useI18n();
};
const handleBatchDelete = (params: BatchActionQueryParams) => {
let dataCount = params.selectedIds?.length;
if(params.selectAll) {
dataCount = params.currentSelectCount;
}
openDeleteModal({
title: t('bugManagement.deleteCount', { count: params.selectedIds?.length }),
title: t('bugManagement.deleteCount', {count: dataCount}),
content: t('bugManagement.deleteTip'),
onBeforeOk: async () => {
try {

View File

@ -7,7 +7,7 @@ export default {
severity: 'Severity',
status: 'Status',
handleMan: 'Handler',
numberOfCase: 'Number of Cases',
numberOfCase: 'Number of cases',
belongPlatform: 'Belong Platform',
tag: 'Tag',
creator: 'Creator',
@ -77,6 +77,7 @@ export default {
attribute: 'Select attribute',
update: 'Batch update to',
updatePlaceholder: 'Choose update option',
appendLabel: 'Append label',
systemFiled: 'System field',
customFiled: 'Custom field',
append: 'append',

View File

@ -32,7 +32,7 @@ export default {
deleteCount: '确认删除 {count} 个缺陷吗?',
deleteTipInternal: '删除后,{count} 条 MeterSphere 创建的缺陷进入回收站',
deleteTipExternal: '{count} 条第三方平台同步的缺陷将不做回收',
deleteTip: 'Metersphere进入回收站, 三方平台的不做回收',
deleteTip: '删除后MeterSphere 创建的缺陷进入回收站;第三方平台同步的缺陷将不做回收',
edit: {
defaultSystemTemplate: '默认为系统模板',
content: '缺陷内容',
@ -77,6 +77,7 @@ export default {
attribute: '选择属性',
update: '批量更新为',
updatePlaceholder: '请选择更新后的选项',
appendLabel: '追加标签',
systemFiled: '系统字段',
customFiled: '自定义字段',
append: '追加',