fix(测试计划): 修复测试计划关联用例未开启项目模块&去掉关联项目&替换国际化展开折叠子模块
This commit is contained in:
parent
4ff44b27b7
commit
e8a313e754
|
@ -17,7 +17,7 @@
|
||||||
allow-clear
|
allow-clear
|
||||||
:max-length="255"
|
:max-length="255"
|
||||||
/>
|
/>
|
||||||
<a-tooltip :content="isExpandAll ? t('common.collapseAll') : t('common.expandAll')">
|
<a-tooltip :content="isExpandAll ? t('common.collapseAllSubModule') : t('common.common.expandAllSubModule')">
|
||||||
<a-button
|
<a-button
|
||||||
type="outline"
|
type="outline"
|
||||||
class="expand-btn arco-btn-outline--secondary"
|
class="expand-btn arco-btn-outline--secondary"
|
||||||
|
|
|
@ -20,7 +20,8 @@
|
||||||
>
|
>
|
||||||
<div class="float-left">
|
<div class="float-left">
|
||||||
<a-input-group>
|
<a-input-group>
|
||||||
<a-select
|
<!-- TODO 这个版本不上 -->
|
||||||
|
<!-- <a-select
|
||||||
v-model="functionalType"
|
v-model="functionalType"
|
||||||
class="ml-2 w-[100px]"
|
class="ml-2 w-[100px]"
|
||||||
:default-value="innerProject"
|
:default-value="innerProject"
|
||||||
|
@ -34,12 +35,12 @@
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</a-option>
|
</a-option>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
</a-select>
|
</a-select> -->
|
||||||
|
|
||||||
<a-select
|
<a-select
|
||||||
v-model="innerProject"
|
v-model="innerProject"
|
||||||
:popup-visible="selectVisible"
|
:popup-visible="selectVisible"
|
||||||
class="w-[240px]"
|
class="ml-2 w-[240px]"
|
||||||
:default-value="innerProject"
|
:default-value="innerProject"
|
||||||
:placeholder="t('common.pleaseSelect')"
|
:placeholder="t('common.pleaseSelect')"
|
||||||
@popup-visible-change="changeProjectHandler"
|
@popup-visible-change="changeProjectHandler"
|
||||||
|
@ -72,7 +73,8 @@
|
||||||
</a-popconfirm>
|
</a-popconfirm>
|
||||||
<div v-else class="float-left">
|
<div v-else class="float-left">
|
||||||
<a-input-group>
|
<a-input-group>
|
||||||
<a-select
|
<!-- TODO 这个版本不上 -->
|
||||||
|
<!-- <a-select
|
||||||
v-model="functionalType"
|
v-model="functionalType"
|
||||||
class="ml-2 w-[100px]"
|
class="ml-2 w-[100px]"
|
||||||
:default-value="innerProject"
|
:default-value="innerProject"
|
||||||
|
@ -87,13 +89,13 @@
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</a-option>
|
</a-option>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
</a-select>
|
</a-select> -->
|
||||||
|
|
||||||
<a-select
|
<a-select
|
||||||
id="typeRadioGroupRef"
|
id="typeRadioGroupRef"
|
||||||
v-model:model-value="innerProject"
|
v-model:model-value="innerProject"
|
||||||
:popup-visible="selectVisible"
|
:popup-visible="selectVisible"
|
||||||
class="w-[240px]"
|
class="ml-2 w-[240px]"
|
||||||
:default-value="innerProject"
|
:default-value="innerProject"
|
||||||
allow-search
|
allow-search
|
||||||
:placeholder="t('common.pleaseSelect')"
|
:placeholder="t('common.pleaseSelect')"
|
||||||
|
@ -415,10 +417,14 @@
|
||||||
emit('close');
|
emit('close');
|
||||||
}
|
}
|
||||||
|
|
||||||
async function initProjectList(setDefault: boolean) {
|
async function initProjectList() {
|
||||||
try {
|
try {
|
||||||
projectList.value = await getAssociatedProjectOptions(appStore.currentOrgId, associationType.value);
|
projectList.value = await getAssociatedProjectOptions(appStore.currentOrgId, associationType.value);
|
||||||
if (setDefault) {
|
const hasProjectPermission = projectList.value.map((item) => item.id).includes(appStore.currentProjectId);
|
||||||
|
// 如果项目模块未开启则不选中它该项目
|
||||||
|
if (hasProjectPermission) {
|
||||||
|
innerProject.value = appStore.currentProjectId;
|
||||||
|
} else {
|
||||||
innerProject.value = projectList.value[0].id;
|
innerProject.value = projectList.value[0].id;
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
@ -508,8 +514,7 @@
|
||||||
(val) => {
|
(val) => {
|
||||||
if (val) {
|
if (val) {
|
||||||
associationType.value = props.associatedType;
|
associationType.value = props.associatedType;
|
||||||
initProjectList(false);
|
initProjectList();
|
||||||
innerProject.value = appStore.currentProjectId;
|
|
||||||
}
|
}
|
||||||
selectPopVisible.value = false;
|
selectPopVisible.value = false;
|
||||||
keyword.value = '';
|
keyword.value = '';
|
||||||
|
|
|
@ -56,7 +56,7 @@
|
||||||
allow-clear
|
allow-clear
|
||||||
:max-length="255"
|
:max-length="255"
|
||||||
/>
|
/>
|
||||||
<a-tooltip :content="isExpandAll ? t('apiScenario.collapseAll') : t('ms.comment.expandAllModule')">
|
<a-tooltip :content="isExpandAll ? t('common.collapseAllSubModule') : t('common.expandAllSubModule')">
|
||||||
<a-button
|
<a-button
|
||||||
type="outline"
|
type="outline"
|
||||||
class="expand-btn arco-btn-outline--secondary"
|
class="expand-btn arco-btn-outline--secondary"
|
||||||
|
@ -76,7 +76,7 @@
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="ml-auto flex items-center">
|
<!-- <div class="ml-auto flex items-center">
|
||||||
<a-tooltip
|
<a-tooltip
|
||||||
:content="isExpandAll ? t('project.fileManagement.collapseAll') : t('project.fileManagement.expandAll')"
|
:content="isExpandAll ? t('common.collapseAllSubModule') : t('common.expandAllSubModule')"
|
||||||
>
|
>
|
||||||
<MsButton type="icon" status="secondary" class="!mr-0 p-[4px]" @click="expandHandler">
|
<MsButton type="icon" status="secondary" class="!mr-0 p-[4px]" @click="expandHandler">
|
||||||
<MsIcon :type="isExpandAll ? 'icon-icon_folder_collapse1' : 'icon-icon_folder_expansion1'" />
|
<MsIcon :type="isExpandAll ? 'icon-icon_folder_collapse1' : 'icon-icon_folder_expansion1'" />
|
||||||
|
|
|
@ -7,5 +7,4 @@ export default {
|
||||||
'ms.comment.deleteConfirm': 'Are you sure you want to delete this comment?',
|
'ms.comment.deleteConfirm': 'Are you sure you want to delete this comment?',
|
||||||
'ms.comment.deleteContent': 'After deletion, the comment cannot be replied to. Please proceed with caution.',
|
'ms.comment.deleteContent': 'After deletion, the comment cannot be replied to. Please proceed with caution.',
|
||||||
'ms.comment.enterPlaceHolderTip': 'Please enter a comment and press ⌘ + Enter to finish.',
|
'ms.comment.enterPlaceHolderTip': 'Please enter a comment and press ⌘ + Enter to finish.',
|
||||||
'ms.comment.expandAllModule': 'Expand all submodules',
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -7,5 +7,4 @@ export default {
|
||||||
'ms.comment.deleteConfirm': '确认删除该评论吗?',
|
'ms.comment.deleteConfirm': '确认删除该评论吗?',
|
||||||
'ms.comment.deleteContent': '删除后,评论无法回复,请谨慎操作',
|
'ms.comment.deleteContent': '删除后,评论无法回复,请谨慎操作',
|
||||||
'ms.comment.enterPlaceHolderTip': '请输入评论,⌘ + Enter 结束',
|
'ms.comment.enterPlaceHolderTip': '请输入评论,⌘ + Enter 结束',
|
||||||
'ms.comment.expandAllModule': '展开全部子模块',
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
allow-clear
|
allow-clear
|
||||||
:max-length="255"
|
:max-length="255"
|
||||||
></a-input>
|
></a-input>
|
||||||
<a-tooltip :content="isExpandAll ? t('apiScenario.collapseAll') : t('ms.comment.expandAllModule')">
|
<a-tooltip :content="isExpandAll ? t('common.collapseAllSubModule') : t('common.expandAllSubModule')">
|
||||||
<a-button
|
<a-button
|
||||||
type="outline"
|
type="outline"
|
||||||
class="expand-btn arco-btn-outline--secondary"
|
class="expand-btn arco-btn-outline--secondary"
|
||||||
|
|
|
@ -191,4 +191,6 @@ export default {
|
||||||
'common.stopped': 'Stopped',
|
'common.stopped': 'Stopped',
|
||||||
'common.config': 'Config',
|
'common.config': 'Config',
|
||||||
'common.executionResult': 'Execution result',
|
'common.executionResult': 'Execution result',
|
||||||
|
'common.expandAllSubModule': 'Expand all submodules',
|
||||||
|
'common.collapseAllSubModule': 'Collapse all submodules',
|
||||||
};
|
};
|
||||||
|
|
|
@ -191,4 +191,6 @@ export default {
|
||||||
'common.name': '名称',
|
'common.name': '名称',
|
||||||
'common.stopped': '已停止',
|
'common.stopped': '已停止',
|
||||||
'common.config': '配置',
|
'common.config': '配置',
|
||||||
|
'common.expandAllSubModule': '展开全部子模块',
|
||||||
|
'common.collapseAllSubModule': '收起全部子模块',
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<div>
|
<div>
|
||||||
<div class="mb-[8px] flex items-center gap-[8px]">
|
<div class="mb-[8px] flex items-center gap-[8px]">
|
||||||
<a-input v-model:model-value="moduleKeyword" :placeholder="t('apiScenario.quoteTreeSearchTip')" allow-clear />
|
<a-input v-model:model-value="moduleKeyword" :placeholder="t('apiScenario.quoteTreeSearchTip')" allow-clear />
|
||||||
<a-tooltip :content="isExpandAll ? t('apiScenario.collapseAll') : t('ms.comment.expandAllModule')">
|
<a-tooltip :content="isExpandAll ? t('common.collapseAllSubModule') : t('common.expandAllSubModule')">
|
||||||
<a-button
|
<a-button
|
||||||
type="outline"
|
type="outline"
|
||||||
class="expand-btn arco-btn-outline--secondary"
|
class="expand-btn arco-btn-outline--secondary"
|
||||||
|
|
|
@ -230,8 +230,6 @@ export default {
|
||||||
'apiScenario.quoteTreeNoData': 'No quotable data available, switch projects to retrieve data',
|
'apiScenario.quoteTreeNoData': 'No quotable data available, switch projects to retrieve data',
|
||||||
'apiScenario.quoteTreeSearchTip': 'Enter module name to search',
|
'apiScenario.quoteTreeSearchTip': 'Enter module name to search',
|
||||||
'apiScenario.quoteTableSearchTip': 'Search by path or name',
|
'apiScenario.quoteTableSearchTip': 'Search by path or name',
|
||||||
'apiScenario.collapseAll': 'Collapse All Submodules',
|
|
||||||
'apiScenario.expandAll': 'Expand All Submodules',
|
|
||||||
|
|
||||||
'apiScenario.scriptOperationName': 'Script Operation Name',
|
'apiScenario.scriptOperationName': 'Script Operation Name',
|
||||||
'apiScenario.scriptOperationNamePlaceholder': 'Please enter script operation name',
|
'apiScenario.scriptOperationNamePlaceholder': 'Please enter script operation name',
|
||||||
|
|
|
@ -228,8 +228,6 @@ export default {
|
||||||
'apiScenario.quoteTreeSearchTip': '输入模块名称搜索',
|
'apiScenario.quoteTreeSearchTip': '输入模块名称搜索',
|
||||||
'apiScenario.quoteTableSearchTip': '通过路径或名称搜索',
|
'apiScenario.quoteTableSearchTip': '通过路径或名称搜索',
|
||||||
'apiScenario.quoteTableSearchTip2': '通过名称搜索',
|
'apiScenario.quoteTableSearchTip2': '通过名称搜索',
|
||||||
'apiScenario.collapseAll': '收起全部子模块',
|
|
||||||
'apiScenario.expandAll': '展开全部子模块',
|
|
||||||
|
|
||||||
'apiScenario.scriptOperationName': '脚本操作名称',
|
'apiScenario.scriptOperationName': '脚本操作名称',
|
||||||
'apiScenario.scriptOperationNamePlaceholder': '请输入脚本操作名称',
|
'apiScenario.scriptOperationNamePlaceholder': '请输入脚本操作名称',
|
||||||
|
|
|
@ -17,11 +17,7 @@
|
||||||
<div class="folder-count">({{ recycleModulesCount.all || 0 }})</div></div
|
<div class="folder-count">({{ recycleModulesCount.all || 0 }})</div></div
|
||||||
>
|
>
|
||||||
<div class="ml-auto flex items-center">
|
<div class="ml-auto flex items-center">
|
||||||
<a-tooltip
|
<a-tooltip :content="isExpandAll ? t('common.collapseAllSubModule') : t('common.expandAllSubModule')">
|
||||||
:content="
|
|
||||||
isExpandAll ? t('project.fileManagement.collapseAll') : t('project.fileManagement.expandAll')
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<MsButton type="icon" status="secondary" class="!mr-0 p-[4px]" @click="expandHandler">
|
<MsButton type="icon" status="secondary" class="!mr-0 p-[4px]" @click="expandHandler">
|
||||||
<MsIcon :type="isExpandAll ? 'icon-icon_folder_collapse1' : 'icon-icon_folder_expansion1'" />
|
<MsIcon :type="isExpandAll ? 'icon-icon_folder_collapse1' : 'icon-icon_folder_expansion1'" />
|
||||||
</MsButton>
|
</MsButton>
|
||||||
|
|
|
@ -40,11 +40,7 @@
|
||||||
<div class="folder-count">({{ modulesCount.all || 0 }})</div></div
|
<div class="folder-count">({{ modulesCount.all || 0 }})</div></div
|
||||||
>
|
>
|
||||||
<div class="ml-auto flex items-center">
|
<div class="ml-auto flex items-center">
|
||||||
<a-tooltip
|
<a-tooltip :content="isExpandAll ? t('common.expandAllSubModule') : t('common.collapseAllSubModule')">
|
||||||
:content="
|
|
||||||
isExpandAll ? t('project.fileManagement.collapseAll') : t('project.fileManagement.expandAll')
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<MsButton type="icon" status="secondary" class="!mr-0 p-[4px]" @click="expandHandler">
|
<MsButton type="icon" status="secondary" class="!mr-0 p-[4px]" @click="expandHandler">
|
||||||
<MsIcon :type="isExpandAll ? 'icon-icon_folder_collapse1' : 'icon-icon_folder_expansion1'" />
|
<MsIcon :type="isExpandAll ? 'icon-icon_folder_collapse1' : 'icon-icon_folder_expansion1'" />
|
||||||
</MsButton>
|
</MsButton>
|
||||||
|
|
|
@ -17,9 +17,7 @@
|
||||||
<div class="folder-count">({{ allFileCount }})</div>
|
<div class="folder-count">({{ allFileCount }})</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="ml-auto flex items-center">
|
<div class="ml-auto flex items-center">
|
||||||
<a-tooltip
|
<a-tooltip :content="isExpandAll ? t('common.collapseAllSubModule') : t('common.expandAllSubModule')">
|
||||||
:content="isExpandAll ? t('project.fileManagement.collapseAll') : t('project.fileManagement.expandAll')"
|
|
||||||
>
|
|
||||||
<MsButton type="icon" status="secondary" class="!mr-0 p-[4px]" @click="changeExpand">
|
<MsButton type="icon" status="secondary" class="!mr-0 p-[4px]" @click="changeExpand">
|
||||||
<MsIcon :type="isExpandAll ? 'icon-icon_folder_collapse1' : 'icon-icon_folder_expansion1'" />
|
<MsIcon :type="isExpandAll ? 'icon-icon_folder_collapse1' : 'icon-icon_folder_expansion1'" />
|
||||||
</MsButton>
|
</MsButton>
|
||||||
|
|
|
@ -2,8 +2,6 @@ export default {
|
||||||
'project.fileManagement.myFile': 'My files',
|
'project.fileManagement.myFile': 'My files',
|
||||||
'project.fileManagement.allFile': 'All files',
|
'project.fileManagement.allFile': 'All files',
|
||||||
'project.fileManagement.defaultFile': 'Default files',
|
'project.fileManagement.defaultFile': 'Default files',
|
||||||
'project.fileManagement.expandAll': 'Expand all submodules',
|
|
||||||
'project.fileManagement.collapseAll': 'Collapse all submodules',
|
|
||||||
'project.fileManagement.addSubModule': 'Add submodule',
|
'project.fileManagement.addSubModule': 'Add submodule',
|
||||||
'project.fileManagement.addStorage': 'Add repository',
|
'project.fileManagement.addStorage': 'Add repository',
|
||||||
'project.fileManagement.rename': 'Rename',
|
'project.fileManagement.rename': 'Rename',
|
||||||
|
|
|
@ -2,8 +2,6 @@ export default {
|
||||||
'project.fileManagement.myFile': '我的文件',
|
'project.fileManagement.myFile': '我的文件',
|
||||||
'project.fileManagement.allFile': '全部文件',
|
'project.fileManagement.allFile': '全部文件',
|
||||||
'project.fileManagement.defaultFile': '默认文件',
|
'project.fileManagement.defaultFile': '默认文件',
|
||||||
'project.fileManagement.expandAll': '展开全部子模块',
|
|
||||||
'project.fileManagement.collapseAll': '收起全部子模块',
|
|
||||||
'project.fileManagement.addSubModule': '添加子模块',
|
'project.fileManagement.addSubModule': '添加子模块',
|
||||||
'project.fileManagement.addStorage': '添加存储库',
|
'project.fileManagement.addStorage': '添加存储库',
|
||||||
'project.fileManagement.rename': '重命名',
|
'project.fileManagement.rename': '重命名',
|
||||||
|
|
|
@ -35,11 +35,7 @@
|
||||||
<div class="folder-count">({{ modulesCount.all || 0 }})</div></div
|
<div class="folder-count">({{ modulesCount.all || 0 }})</div></div
|
||||||
>
|
>
|
||||||
<div class="ml-auto flex items-center">
|
<div class="ml-auto flex items-center">
|
||||||
<a-tooltip
|
<a-tooltip :content="isExpandAll ? t('common.collapseAllSubModule') : t('common.expandAllSubModule')">
|
||||||
:content="
|
|
||||||
isExpandAll ? t('testPlan.testPlanIndex.collapseAll') : t('testPlan.testPlanIndex.expandAll')
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<MsButton type="icon" status="secondary" class="!mr-0 p-[4px]" position="top" @click="expandHandler">
|
<MsButton type="icon" status="secondary" class="!mr-0 p-[4px]" position="top" @click="expandHandler">
|
||||||
<MsIcon :type="isExpandAll ? 'icon-icon_folder_collapse1' : 'icon-icon_folder_expansion1'" />
|
<MsIcon :type="isExpandAll ? 'icon-icon_folder_collapse1' : 'icon-icon_folder_expansion1'" />
|
||||||
</MsButton>
|
</MsButton>
|
||||||
|
|
|
@ -4,8 +4,6 @@ export default {
|
||||||
'testPlan.testPlanIndex.updateTestPlan': 'update test plan',
|
'testPlan.testPlanIndex.updateTestPlan': 'update test plan',
|
||||||
'testPlan.testPlanIndex.copyTestPlan': 'copy test plan',
|
'testPlan.testPlanIndex.copyTestPlan': 'copy test plan',
|
||||||
'testPlan.testPlanIndex.allTestPlan': 'All test Plans',
|
'testPlan.testPlanIndex.allTestPlan': 'All test Plans',
|
||||||
'testPlan.testPlanIndex.collapseAll': 'Collapse all submodules',
|
|
||||||
'testPlan.testPlanIndex.expandAll': 'Expand all submodules',
|
|
||||||
'testPlan.testPlanIndex.addSubModule': 'Add submodule',
|
'testPlan.testPlanIndex.addSubModule': 'Add submodule',
|
||||||
'testPlan.testPlanIndex.addGroupTip': 'Please enter the group name, press enter to save',
|
'testPlan.testPlanIndex.addGroupTip': 'Please enter the group name, press enter to save',
|
||||||
'testPlan.testPlanIndex.planEmptyContent': 'No test plan data, please tap the button above to create or import',
|
'testPlan.testPlanIndex.planEmptyContent': 'No test plan data, please tap the button above to create or import',
|
||||||
|
|
|
@ -4,8 +4,6 @@ export default {
|
||||||
'testPlan.testPlanIndex.updateTestPlan': '更新测试计划',
|
'testPlan.testPlanIndex.updateTestPlan': '更新测试计划',
|
||||||
'testPlan.testPlanIndex.copyTestPlan': '复制测试计划',
|
'testPlan.testPlanIndex.copyTestPlan': '复制测试计划',
|
||||||
'testPlan.testPlanIndex.allTestPlan': '全部测试计划',
|
'testPlan.testPlanIndex.allTestPlan': '全部测试计划',
|
||||||
'testPlan.testPlanIndex.collapseAll': '收起全部子模块',
|
|
||||||
'testPlan.testPlanIndex.expandAll': '展开全部子模块',
|
|
||||||
'testPlan.testPlanIndex.addSubModule': '添加子模块',
|
'testPlan.testPlanIndex.addSubModule': '添加子模块',
|
||||||
'testPlan.testPlanIndex.addGroupTip': '请输入分组名称,按回车键保存',
|
'testPlan.testPlanIndex.addGroupTip': '请输入分组名称,按回车键保存',
|
||||||
'testPlan.testPlanIndex.planEmptyContent': '暂无测试计划数据,请点击上方按钮创建或导入',
|
'testPlan.testPlanIndex.planEmptyContent': '暂无测试计划数据,请点击上方按钮创建或导入',
|
||||||
|
|
Loading…
Reference in New Issue