style(缺陷管理): 统一缺陷管理单条删除和批量删除的文案
--bug=1036275 --user=宋天阳 【缺陷管理】批量删除所有页缺陷弹框信息错误 https://www.tapd.cn/55049933/s/1464993
This commit is contained in:
parent
413585b85a
commit
946bd807d3
|
@ -91,7 +91,7 @@
|
||||||
<div>
|
<div>
|
||||||
<div v-if="showAppend" class="flex flex-row items-center gap-[4px]">
|
<div v-if="showAppend" class="flex flex-row items-center gap-[4px]">
|
||||||
<a-switch v-model:model-value="form.append" size="small" type="line" />
|
<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">
|
<a-tooltip position="top">
|
||||||
<template #content>
|
<template #content>
|
||||||
<div>{{ t('bugManagement.batchUpdate.openAppend') }}</div>
|
<div>{{ t('bugManagement.batchUpdate.openAppend') }}</div>
|
||||||
|
@ -188,6 +188,7 @@ const { t } = useI18n();
|
||||||
const handleCancel = () => {
|
const handleCancel = () => {
|
||||||
formReset();
|
formReset();
|
||||||
currentVisible.value = false;
|
currentVisible.value = false;
|
||||||
|
showAppend.value=false;
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
};
|
};
|
||||||
const customFiledOption = ref<{ text: string; value: string }[]>([]);
|
const customFiledOption = ref<{ text: string; value: string }[]>([]);
|
||||||
|
@ -195,12 +196,12 @@ const { t } = useI18n();
|
||||||
const handleAttributeChange = (value: SelectValue) => {
|
const handleAttributeChange = (value: SelectValue) => {
|
||||||
form.value = [];
|
form.value = [];
|
||||||
form.inputValue = '';
|
form.inputValue = '';
|
||||||
|
showAppend.value = false;
|
||||||
if (value === 'tags') {
|
if (value === 'tags') {
|
||||||
valueMode.value = 'tags';
|
valueMode.value = 'tags';
|
||||||
showAppend.value = true;
|
showAppend.value = true;
|
||||||
} else if (value === 'handleUser') {
|
} else if (value === 'handleUser') {
|
||||||
valueMode.value = 'user_selector';
|
valueMode.value = 'user_selector';
|
||||||
showAppend.value = true;
|
|
||||||
} else {
|
} else {
|
||||||
// 自定义字段
|
// 自定义字段
|
||||||
const customField = props.customFields.find((item) => item.fieldId === value);
|
const customField = props.customFields.find((item) => item.fieldId === value);
|
||||||
|
|
|
@ -482,8 +482,12 @@ const { t } = useI18n();
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleBatchDelete = (params: BatchActionQueryParams) => {
|
const handleBatchDelete = (params: BatchActionQueryParams) => {
|
||||||
|
let dataCount = params.selectedIds?.length;
|
||||||
|
if(params.selectAll) {
|
||||||
|
dataCount = params.currentSelectCount;
|
||||||
|
}
|
||||||
openDeleteModal({
|
openDeleteModal({
|
||||||
title: t('bugManagement.deleteCount', { count: params.selectedIds?.length }),
|
title: t('bugManagement.deleteCount', {count: dataCount}),
|
||||||
content: t('bugManagement.deleteTip'),
|
content: t('bugManagement.deleteTip'),
|
||||||
onBeforeOk: async () => {
|
onBeforeOk: async () => {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -7,7 +7,7 @@ export default {
|
||||||
severity: 'Severity',
|
severity: 'Severity',
|
||||||
status: 'Status',
|
status: 'Status',
|
||||||
handleMan: 'Handler',
|
handleMan: 'Handler',
|
||||||
numberOfCase: 'Number of Cases',
|
numberOfCase: 'Number of cases',
|
||||||
belongPlatform: 'Belong Platform',
|
belongPlatform: 'Belong Platform',
|
||||||
tag: 'Tag',
|
tag: 'Tag',
|
||||||
creator: 'Creator',
|
creator: 'Creator',
|
||||||
|
@ -77,6 +77,7 @@ export default {
|
||||||
attribute: 'Select attribute',
|
attribute: 'Select attribute',
|
||||||
update: 'Batch update to',
|
update: 'Batch update to',
|
||||||
updatePlaceholder: 'Choose update option',
|
updatePlaceholder: 'Choose update option',
|
||||||
|
appendLabel: 'Append label',
|
||||||
systemFiled: 'System field',
|
systemFiled: 'System field',
|
||||||
customFiled: 'Custom field',
|
customFiled: 'Custom field',
|
||||||
append: 'append',
|
append: 'append',
|
||||||
|
|
|
@ -32,7 +32,7 @@ export default {
|
||||||
deleteCount: '确认删除 {count} 个缺陷吗?',
|
deleteCount: '确认删除 {count} 个缺陷吗?',
|
||||||
deleteTipInternal: '删除后,{count} 条 MeterSphere 创建的缺陷进入回收站',
|
deleteTipInternal: '删除后,{count} 条 MeterSphere 创建的缺陷进入回收站',
|
||||||
deleteTipExternal: '{count} 条第三方平台同步的缺陷将不做回收',
|
deleteTipExternal: '{count} 条第三方平台同步的缺陷将不做回收',
|
||||||
deleteTip: 'Metersphere进入回收站, 三方平台的不做回收',
|
deleteTip: '删除后,MeterSphere 创建的缺陷进入回收站;第三方平台同步的缺陷将不做回收',
|
||||||
edit: {
|
edit: {
|
||||||
defaultSystemTemplate: '默认为系统模板',
|
defaultSystemTemplate: '默认为系统模板',
|
||||||
content: '缺陷内容',
|
content: '缺陷内容',
|
||||||
|
@ -77,6 +77,7 @@ export default {
|
||||||
attribute: '选择属性',
|
attribute: '选择属性',
|
||||||
update: '批量更新为',
|
update: '批量更新为',
|
||||||
updatePlaceholder: '请选择更新后的选项',
|
updatePlaceholder: '请选择更新后的选项',
|
||||||
|
appendLabel: '追加标签',
|
||||||
systemFiled: '系统字段',
|
systemFiled: '系统字段',
|
||||||
customFiled: '自定义字段',
|
customFiled: '自定义字段',
|
||||||
append: '追加',
|
append: '追加',
|
||||||
|
|
Loading…
Reference in New Issue