fix: 修复功能用例重命名紧急问题&应用管理修改报告失效无效问题
This commit is contained in:
parent
3d3ad13255
commit
f9cef1c518
|
@ -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);
|
||||
}
|
||||
};
|
||||
// 获取当前标题的样式
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -378,7 +378,7 @@
|
|||
x: 1400,
|
||||
},
|
||||
showSetting: true,
|
||||
selectable: true,
|
||||
selectable: hasOperationPermission.value,
|
||||
heightUsed: 330,
|
||||
enableDrag: false,
|
||||
showSelectAll: true,
|
||||
|
|
|
@ -359,7 +359,7 @@
|
|||
x: 1200,
|
||||
},
|
||||
showSetting: true,
|
||||
selectable: true,
|
||||
selectable: hasOperationPermission.value,
|
||||
heightUsed: 300,
|
||||
enableDrag: false,
|
||||
showSelectorAll: true,
|
||||
|
|
Loading…
Reference in New Issue