fix: 修复功能用例重命名紧急问题&应用管理修改报告失效无效问题

This commit is contained in:
xinxin.wu 2024-04-16 16:44:09 +08:00 committed by 刘瑞斌
parent 3d3ad13255
commit f9cef1c518
7 changed files with 31 additions and 26 deletions

View File

@ -108,6 +108,7 @@
popupContainer?: string;
fieldConfig?: FieldConfig; //
allNames?: string[]; //
nodeId?: string; // id
}>(),
{
type: 'warning',
@ -116,7 +117,7 @@
}
);
const emits = defineEmits<{
(e: 'confirm', formValue?: { field: string }, cancel?: () => void): void;
(e: 'confirm', formValue?: { field: string; id?: string }, cancel?: () => void): void;
(e: 'cancel'): void;
(e: 'update:visible', visible: boolean): void;
}>();
@ -164,7 +165,7 @@
if (props.isDelete) {
emits('confirm', undefined, handleCancel);
} else {
emits('confirm', form.value, handleCancel);
emits('confirm', { ...form.value, id: props.nodeId }, handleCancel);
}
};
//

View File

@ -8,7 +8,7 @@
size="small"
:disabled="props.disabled"
@press-enter="handleEnter(false)"
@blur="handleEnter(true)"
@blur="handleEnter(false)"
>
<template #suffix>
<a-select
@ -18,7 +18,6 @@
:disabled="props.disabled"
:options="option"
:trigger-props="{ autoFitPopupMinWidth: true }"
@change="handleEnter(false)"
/>
</template>
</a-input-number>

View File

@ -51,6 +51,7 @@
:title="t('caseManagement.featureCase.rename')"
:all-names="[]"
:is-delete="false"
:node-id="nodeData.id"
:ok-text="t('common.confirm')"
:field-config="{ field: renameCaseName }"
:loading="confirmLoading"
@ -310,19 +311,21 @@
}
//
async function updateNameModule(formValue?: { field: string }, cancel?: () => void) {
async function updateNameModule(formValue?: { field: string; id?: string }, cancel?: () => void) {
try {
confirmLoading.value = true;
const params: UpdateModule = {
id: focusNodeKey.value,
name: formValue?.field as string,
};
await updateCaseModuleTree(params);
Message.success(t('common.updateSuccess'));
if (cancel) {
cancel();
if (formValue && formValue.id) {
const params: UpdateModule = {
id: formValue.id,
name: formValue?.field as string,
};
await updateCaseModuleTree(params);
Message.success(t('common.updateSuccess'));
if (cancel) {
cancel();
}
initModules();
}
initModules();
} catch (error) {
console.log(error);
} finally {

View File

@ -105,8 +105,9 @@
value: 'JSON',
}, */
],
titleSlotName: 'typeTitle',
typeTitleTooltip: t('project.environmental.paramTypeTooltip'),
// TODO
// titleSlotName: 'typeTitle',
// typeTitleTooltip: t('project.environmental.paramTypeTooltip'),
},
{
title: 'project.environmental.paramValue',

View File

@ -1,14 +1,13 @@
<template>
<div class="flex flex-row items-center">
<div class="text-[var(--color-text-1)]"> {{ t('project.menu.management') }}</div>
<a-tooltip :content="t('project.menu.manageTip')" position="bl">
<div>
<MsIcon
class="ml-[4px] text-[var(--color-text-4)] hover:text-[rgb(var(--primary-5))]"
type="icon-icon-maybe_outlined"
/>
</div>
</a-tooltip>
<div>
<MsIcon
class="ml-[4px] text-[var(--color-text-4)] hover:text-[rgb(var(--primary-5))]"
type="icon-icon-maybe_outlined"
/>
</div>
</div>
<MsBaseTable
ref="tableRef"
@ -178,6 +177,7 @@
v-model="allValueMap['UI_CLEAN_REPORT']"
:disabled="!hasAnyPermission(['PROJECT_APPLICATION_UI:UPDATE'])"
@change="(v: string) => handleMenuStatusChange('UI_CLEAN_REPORT',v,MenuEnum.uiTest)"
@blur="(v: string) => handleMenuStatusChange('UI_CLEAN_REPORT',v,MenuEnum.uiTest)"
/>
</div>
<div v-if="record.type === 'UI_SHARE_REPORT'">
@ -727,6 +727,7 @@
};
const handleMenuStatusChange = async (type: string, typeValue: string | boolean, suffix: string) => {
debugger;
try {
let hasAuth = false;
switch (suffix) {

View File

@ -378,7 +378,7 @@
x: 1400,
},
showSetting: true,
selectable: true,
selectable: hasOperationPermission.value,
heightUsed: 330,
enableDrag: false,
showSelectAll: true,

View File

@ -359,7 +359,7 @@
x: 1200,
},
showSetting: true,
selectable: true,
selectable: hasOperationPermission.value,
heightUsed: 300,
enableDrag: false,
showSelectorAll: true,