feat(项目管理): 关联需求设计稿优化
This commit is contained in:
parent
fd6d708f51
commit
108bc1490a
|
@ -12,7 +12,6 @@ import { SelectAllEnum } from '@/enums/tableEnum';
|
|||
|
||||
import { FilterResult } from '../ms-advance-filter/type';
|
||||
import type { MsTableColumn, MsTableDataItem, MsTableErrorStatus, MsTableProps, SetPaginationPrams } from './type';
|
||||
import { getCurrentRecordChildrenIds } from './utils';
|
||||
import type { TableData } from '@arco-design/web-vue';
|
||||
|
||||
export interface Pagination {
|
||||
|
@ -250,6 +249,7 @@ export default function useTableProps<T>(
|
|||
propsRes.value.data = tmpArr.map((item: MsTableDataItem<T>) => {
|
||||
return processRecordItem(item);
|
||||
});
|
||||
propsRes.value.filter = cloneDeep({ ...filterItem.value, ...loadListParams.value.filter });
|
||||
if (data.total === 0) {
|
||||
setTableErrorStatus('empty');
|
||||
} else {
|
||||
|
|
|
@ -474,7 +474,7 @@
|
|||
setLoadListParams({
|
||||
projectId: currentProjectId.value,
|
||||
filter: {
|
||||
enable: [enabledStatus],
|
||||
enable: enabledStatus,
|
||||
},
|
||||
});
|
||||
fetchData();
|
||||
|
|
|
@ -35,6 +35,8 @@ export default {
|
|||
'project.menu.CASE_RE_REVIEW': 'Re-review',
|
||||
'project.menu.CASE_RELATED': 'Related Requirements',
|
||||
'project.menu.BUG_SYNC': 'Defect Synchronization',
|
||||
'project.menu.bugThirdIntegrationTip':
|
||||
'No integration of third-party management platform, please contact your administrator',
|
||||
'project.menu.SYNC_ENABLE': 'Status',
|
||||
'project.menu.MECHANISM': 'Interface Test Update Synchronization Rule',
|
||||
'project.menu.row1': 'The system displays data that meets the rules in My To-Do List - To Be Updated',
|
||||
|
@ -43,6 +45,8 @@ export default {
|
|||
'project.menu.row4': 'Associate test cases with third-party project management platforms',
|
||||
'project.menu.row5':
|
||||
'When changes occur in test cases during the review process, the test case status automatically switches to re-review',
|
||||
'project.menu.reArraignment':
|
||||
'Name of the ”case“, "information on use case steps" change triggers, other changes not trigger',
|
||||
'project.menu.row6': 'When enabled, the interface definition module will not validate URL duplication',
|
||||
'project.menu.row7': 'Automatically synchronize interface CASE when the interface definition changes',
|
||||
'project.menu.notConfig': 'Third-party information not configured, click',
|
||||
|
|
|
@ -32,6 +32,7 @@ export default {
|
|||
'project.menu.CASE_RE_REVIEW': '重新提审',
|
||||
'project.menu.CASE_RELATED': '关联需求',
|
||||
'project.menu.BUG_SYNC': '同步缺陷',
|
||||
'project.menu.bugThirdIntegrationTip': '暂无集成第三方管理平台,请联系管理员集成',
|
||||
'project.menu.SYNC_ENABLE': '状态',
|
||||
'project.menu.MECHANISM': '接口测试待更新同步规则',
|
||||
'project.menu.row1': '系统根据设定的规则将符合的数据展示在我的待办-待更新列表',
|
||||
|
@ -39,6 +40,7 @@ export default {
|
|||
'project.menu.row3': '可将用例添加至公共用例库共用',
|
||||
'project.menu.row4': '可将用例与第三方项目管理平台进行关联',
|
||||
'project.menu.row5': '评审活动中用例发生变更,用例状态自动切换为重新提审',
|
||||
'project.menu.reArraignment': '“用例名称”、“用例步骤信息”的变更会触发,其他变更不触发',
|
||||
'project.menu.row6': '开启后,接口定义模块重复性校验将不校验 URL',
|
||||
'project.menu.row7': '当接口定义发生变更后,自动同步接口CASE',
|
||||
'project.menu.notConfig': '未配置第三方信息,点击',
|
||||
|
|
|
@ -49,9 +49,10 @@
|
|||
<template v-if="record.type === 'BUG_SYNC'">
|
||||
<!-- 同步缺陷 -->
|
||||
<span>{{ t('project.menu.row2') }}</span>
|
||||
<div class="ml-[8px] cursor-pointer text-[rgb(var(--primary-7))]" @click="showDefectDrawer">
|
||||
{{ t('project.menu.BUG_SYNC') }}
|
||||
</div>
|
||||
<!-- TODO 接口没有字段,先不上 -->
|
||||
<!-- <a-tooltip :content="t('project.menu.bugThirdIntegrationTip')" :mouse-enter-delay="300"> -->
|
||||
<MsButton class="ml-[8px]" @click="showDefectDrawer"> {{ t('project.menu.BUG_SYNC') }}</MsButton>
|
||||
<!-- </a-tooltip> -->
|
||||
</template>
|
||||
<div v-if="record.type === 'CASE_PUBLIC'">
|
||||
<!-- 用例 公共用例库 -->
|
||||
|
@ -66,7 +67,13 @@
|
|||
</div>
|
||||
<div v-if="record.type === 'CASE_RE_REVIEW'">
|
||||
<!-- 用例 重新提审 -->
|
||||
{{ t('project.menu.row5') }}
|
||||
<span>{{ t('project.menu.row5') }}</span>
|
||||
<a-tooltip :content="t('project.menu.reArraignment')" position="top" :mouse-enter-delay="300">
|
||||
<MsIcon
|
||||
class="ml-[4px] text-[var(--color-text-4)] hover:text-[rgb(var(--primary-5))]"
|
||||
type="icon-icon-maybe_outlined"
|
||||
/>
|
||||
</a-tooltip>
|
||||
</div>
|
||||
<div v-if="record.type === 'API_URL_REPEATABLE'">
|
||||
<!-- 接口测试 接口定义URL可重复 -->
|
||||
|
@ -235,9 +242,14 @@
|
|||
<template #operation="{ record }">
|
||||
<!-- 缺陷 同步缺陷状态 -->
|
||||
<div v-permission="['PROJECT_APPLICATION_BUG:UPDATE']">
|
||||
<a-tooltip v-if="record.type === 'BUG_SYNC' && !allValueMap['BUG_SYNC_SYNC_ENABLE']" position="tr">
|
||||
<a-tooltip
|
||||
v-if="record.type === 'BUG_SYNC' && !allValueMap['BUG_SYNC_SYNC_ENABLE']"
|
||||
class="ms-tooltip-white"
|
||||
position="br"
|
||||
:mouse-enter-delay="300"
|
||||
>
|
||||
<template #content>
|
||||
<span>
|
||||
<span class="text-[var(--color-text-1)]">
|
||||
{{ t('project.menu.notConfig') }}
|
||||
<span class="cursor-pointer text-[rgb(var(--primary-4))]" @click="showDefectDrawer">
|
||||
{{ t(`project.menu.${record.type}`) }}
|
||||
|
@ -270,9 +282,14 @@
|
|||
/>
|
||||
<!-- 测试用例 关联需求 -->
|
||||
<div v-permission="['PROJECT_APPLICATION_CASE:UPDATE']">
|
||||
<a-tooltip v-if="record.type === 'CASE_RELATED' && !allValueMap['CASE_RELATED_CASE_ENABLE']" position="tr">
|
||||
<a-tooltip
|
||||
v-if="record.type === 'CASE_RELATED' && !allValueMap['CASE_RELATED_CASE_ENABLE']"
|
||||
class="ms-tooltip-white"
|
||||
position="left"
|
||||
:mouse-enter-delay="300"
|
||||
>
|
||||
<template #content>
|
||||
<span>
|
||||
<span class="text-[var(--color-text-1)]">
|
||||
{{ t('project.menu.notConfig') }}
|
||||
<span class="cursor-pointer text-[rgb(var(--primary-4))]" @click="showDefectDrawer">
|
||||
{{ t(`project.menu.${record.type}`) }}
|
||||
|
@ -392,6 +409,7 @@
|
|||
import { Message, TableData } from '@arco-design/web-vue';
|
||||
import { cloneDeep } from 'lodash-es';
|
||||
|
||||
import MsButton from '@/components/pure/ms-button/index.vue';
|
||||
import MsIcon from '@/components/pure/ms-icon-font/index.vue';
|
||||
import MsBaseTable from '@/components/pure/ms-table/base-table.vue';
|
||||
import useTable from '@/components/pure/ms-table/useTable';
|
||||
|
|
Loading…
Reference in New Issue