一些issue修复

This commit is contained in:
付民康
2025-03-19 19:07:42 +08:00
parent 80e3974825
commit 3b516a3b83
6 changed files with 35 additions and 8 deletions

View File

@@ -3,7 +3,7 @@
<div class="license-info-content">
<d-layout>
<d-content class="dcontent">
<d-table :data="list" style="width: 100%;">
<d-table class="jyh-table" v-if="list.length>0" :data="list" style="width: 100%;">
<template #empty>
<NoData></NoData>
</template>
@@ -16,6 +16,7 @@
</template>
</d-column>
</d-table>
<NoData v-else :small="false"></NoData>
</d-content>
</d-layout>
</div>

View File

@@ -105,6 +105,7 @@
<template #default="scope">
<d-button
variant="text"
v-if="scope.row.validStatus == 0"
:disabled="scope.row.validStatus !== 0"
>
申请入库

View File

@@ -5,7 +5,7 @@
</div>
<Card simple class="jyh-card mt-3">
<div class="clear-padding">
<d-table :indent="32" @check-change="treeCheckChange" :data="baseTreeTableData1" row-key="id">
<d-table class="jyh-table" v-if="baseTreeTableData1.length>0" :indent="32" @check-change="treeCheckChange" :data="baseTreeTableData1" row-key="id">
<d-column field="firstName" header="组织名称" show-overflow-tooltip>
<template #default="scope">
<a class="devui-link" @click="showDetail = true">{{ scope.row.firstName }}</a>
@@ -13,6 +13,7 @@
</d-column>
<d-column field="lastName" header="版本"></d-column>
</d-table>
<NoData v-else :small="false"></NoData>
</div>
</Card>
<d-drawer v-model="showDetail" style="width: 800px; padding: 20px">
@@ -22,6 +23,7 @@
<script setup lang="ts">
import { ref, reactive, onMounted } from 'vue';
import SBOMDetail from './SBOMDetail.vue';
import NoData from '@/components/NoData/NoData.vue';
import { dependencyTree } from '@/api/jyh';
import { useRoute } from 'vue-router';

View File

@@ -237,8 +237,8 @@ const fetchVulnList = async () => {
// softwareId: 47,
softwareId: propsData.versionId,
componentId: '',
current: 1,
size: 10
current: pager.value.pageIndex,
size: pager.value.pageSize,
});
if(data.data.code===200) {
tableData.value = data?.data?.data?.records || [];

View File

@@ -130,7 +130,7 @@
<script setup lang="ts">
import { getVulnDetail } from '@/api/jyh';
import { ref } from 'vue';
import { ref,defineProps } from 'vue';
const propsData = defineProps(['softwareId', 'vulnId', 'vulnInfo']);
const vulnDetail = ref({});
@@ -190,4 +190,4 @@ queryVulnDetail();
vertical-align: top;
}
}
</style>
</style>