feat(工作台): 待办/我的创建/我的关注页面无项目展示

This commit is contained in:
baiqi 2024-11-11 14:12:58 +08:00 committed by Craftsman
parent ad272627cb
commit 40b9fbdc6a
7 changed files with 177 additions and 167 deletions

View File

@ -30,8 +30,6 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { ref } from 'vue';
import MsButton from '@/components/pure/ms-button/index.vue'; import MsButton from '@/components/pure/ms-button/index.vue';
import MsCard from '@/components/pure/ms-card/index.vue'; import MsCard from '@/components/pure/ms-card/index.vue';

View File

@ -86,7 +86,7 @@
import { VueDraggable } from 'vue-draggable-plus'; import { VueDraggable } from 'vue-draggable-plus';
import MsDrawer from '@/components/pure/ms-drawer/index.vue'; import MsDrawer from '@/components/pure/ms-drawer/index.vue';
import NotData from './notData.vue'; import NotData from '../../components/notData.vue';
import CardSettingList from '@/views/workbench/homePage/components/cardSettingList.vue'; import CardSettingList from '@/views/workbench/homePage/components/cardSettingList.vue';
import { useI18n } from '@/hooks/useI18n'; import { useI18n } from '@/hooks/useI18n';

View File

@ -25,7 +25,7 @@
import { ref } from 'vue'; import { ref } from 'vue';
import { debounce } from 'lodash-es'; import { debounce } from 'lodash-es';
import NoData from './notData.vue'; import NoData from '../../components/notData.vue';
import { addCommasToNumber } from '@/utils'; import { addCommasToNumber } from '@/utils';

View File

@ -72,6 +72,7 @@
import { ref } from 'vue'; import { ref } from 'vue';
import MsBackButton from '@/components/pure/ms-back-button/index.vue'; import MsBackButton from '@/components/pure/ms-back-button/index.vue';
import NoData from '../components/notData.vue';
import ApiAndScenarioCase from './components/apiAndScenarioCase.vue'; import ApiAndScenarioCase from './components/apiAndScenarioCase.vue';
import ApiChangeList from './components/apiChangeList.vue'; import ApiChangeList from './components/apiChangeList.vue';
import ApiCount from './components/apiCount.vue'; import ApiCount from './components/apiCount.vue';
@ -79,7 +80,6 @@
import CaseCount from './components/caseCount.vue'; import CaseCount from './components/caseCount.vue';
import CaseReviewedCount from './components/caseReviewedCount.vue'; import CaseReviewedCount from './components/caseReviewedCount.vue';
import DefectCount from './components/defectCount.vue'; import DefectCount from './components/defectCount.vue';
import NoData from './components/notData.vue';
import Overview from './components/overview.vue'; import Overview from './components/overview.vue';
import RelatedCaseCount from './components/relatedCaseCount.vue'; import RelatedCaseCount from './components/relatedCaseCount.vue';
import TestPlanCount from './components/testPlanCount.vue'; import TestPlanCount from './components/testPlanCount.vue';

View File

@ -1,5 +1,6 @@
<template> <template>
<div class="flex flex-col gap-[16px]"> <div class="flex flex-col gap-[16px]">
<template v-if="appStore.projectList.length > 0">
<div class="flex items-center justify-end gap-[12px]"> <div class="flex items-center justify-end gap-[12px]">
<MsProjectSelect <MsProjectSelect
v-model:project="currentProject" v-model:project="currentProject"
@ -63,6 +64,8 @@
:refresh-id="refreshId" :refresh-id="refreshId"
type="my_create" type="my_create"
/> />
</template>
<NoData v-else all-screen />
</div> </div>
</template> </template>
@ -73,6 +76,7 @@
import apiCaseTable from '../components/apiCaseTable.vue'; import apiCaseTable from '../components/apiCaseTable.vue';
import bugTable from '../components/bugTable.vue'; import bugTable from '../components/bugTable.vue';
import caseReviewTable from '../components/caseReviewTable.vue'; import caseReviewTable from '../components/caseReviewTable.vue';
import NoData from '../components/notData.vue';
import scenarioCaseTable from '../components/scenarioCaseTable.vue'; import scenarioCaseTable from '../components/scenarioCaseTable.vue';
import testCaseTable from '../components/testCaseTable.vue'; import testCaseTable from '../components/testCaseTable.vue';
import testPlanTable from '../components/testPlanTable.vue'; import testPlanTable from '../components/testPlanTable.vue';

View File

@ -1,5 +1,6 @@
<template> <template>
<div class="flex flex-col gap-[16px]"> <div class="flex flex-col gap-[16px]">
<template v-if="appStore.projectList.length > 0">
<div class="flex items-center justify-end gap-[12px]"> <div class="flex items-center justify-end gap-[12px]">
<MsProjectSelect <MsProjectSelect
v-model:project="currentProject" v-model:project="currentProject"
@ -62,6 +63,8 @@
:refresh-id="refreshId" :refresh-id="refreshId"
type="my_follow" type="my_follow"
/> />
</template>
<NoData v-else all-screen />
</div> </div>
</template> </template>
@ -72,6 +75,7 @@
import apiCaseTable from '../components/apiCaseTable.vue'; import apiCaseTable from '../components/apiCaseTable.vue';
import bugTable from '../components/bugTable.vue'; import bugTable from '../components/bugTable.vue';
import caseReviewTable from '../components/caseReviewTable.vue'; import caseReviewTable from '../components/caseReviewTable.vue';
import NoData from '../components/notData.vue';
import scenarioCaseTable from '../components/scenarioCaseTable.vue'; import scenarioCaseTable from '../components/scenarioCaseTable.vue';
import testCaseTable from '../components/testCaseTable.vue'; import testCaseTable from '../components/testCaseTable.vue';
import testPlanTable from '../components/testPlanTable.vue'; import testPlanTable from '../components/testPlanTable.vue';

View File

@ -1,5 +1,6 @@
<template> <template>
<div class="flex flex-col gap-[16px]"> <div class="flex flex-col gap-[16px]">
<template v-if="appStore.projectList.length > 0">
<div class="flex items-center justify-end gap-[12px]"> <div class="flex items-center justify-end gap-[12px]">
<MsProjectSelect v-model:project="currentProject" class="w-[240px]" use-default-arrow-icon> <MsProjectSelect v-model:project="currentProject" class="w-[240px]" use-default-arrow-icon>
<template #prefix> <template #prefix>
@ -40,6 +41,8 @@
:refresh-id="refreshId" :refresh-id="refreshId"
type="my_follow" type="my_follow"
/> />
</template>
<NoData v-else all-screen />
</div> </div>
</template> </template>
@ -49,6 +52,7 @@
import MsSelect from '@/components/business/ms-select'; import MsSelect from '@/components/business/ms-select';
import bugTable from '../components/bugTable.vue'; import bugTable from '../components/bugTable.vue';
import caseReviewTable from '../components/caseReviewTable.vue'; import caseReviewTable from '../components/caseReviewTable.vue';
import NoData from '../components/notData.vue';
import testPlanTable from '../components/testPlanTable.vue'; import testPlanTable from '../components/testPlanTable.vue';
import { useI18n } from '@/hooks/useI18n'; import { useI18n } from '@/hooks/useI18n';