feat: 漏洞列表
This commit is contained in:
@@ -100,9 +100,9 @@
|
|||||||
>你确认删除此项:{{ item.cla_name }} ?</span
|
>你确认删除此项:{{ item.cla_name }} ?</span
|
||||||
>
|
>
|
||||||
</GModal>
|
</GModal>
|
||||||
|
|
||||||
<!-- 漏洞详情 -->
|
<!-- 漏洞详情 -->
|
||||||
<d-drawer v-model="vulnDetailVisable" style="width: auto;">
|
<d-drawer v-model="vulnDetailVisable" style="width: auto">
|
||||||
<VulnerabilityDetail :vulnId="currentVuln.id" :vulnInfo="currentVuln"></VulnerabilityDetail>
|
<VulnerabilityDetail :vulnId="currentVuln.id" :vulnInfo="currentVuln"></VulnerabilityDetail>
|
||||||
</d-drawer>
|
</d-drawer>
|
||||||
</div>
|
</div>
|
||||||
@@ -111,14 +111,15 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import SettingTitle from '@/components/Setting/SettingTitle/index.vue';
|
import SettingTitle from '@/components/Setting/SettingTitle/index.vue';
|
||||||
import SettingText from '@/components/Setting/SettingText/index.vue';
|
import SettingText from '@/components/Setting/SettingText/index.vue';
|
||||||
import { ref, reactive } from 'vue';
|
import { ref, reactive, onMounted } from 'vue';
|
||||||
import { getGroupClaList, setGroupClaStatus, deleteGroupCla } from '@/api/cla';
|
import { getGroupClaList, setGroupClaStatus, deleteGroupCla } from '@/api/cla';
|
||||||
import { useRouter, useRoute } from 'vue-router';
|
import { useRouter, useRoute } from 'vue-router';
|
||||||
import { GModal } from '@/components/Setting/index';
|
import { GModal } from '@/components/Setting/index';
|
||||||
import { reqCatch } from '@/utils/catch';
|
import { reqCatch } from '@/utils/catch';
|
||||||
import { getOrgInfo } from '@/views/Org/hooks/orgInfo';
|
import { getOrgInfo } from '@/views/Org/hooks/orgInfo';
|
||||||
import { Message } from 'vue-devui';
|
import { Message } from 'vue-devui';
|
||||||
import VulnerabilityDetail from '@/views/Jyh/Version/Detail/VulnerabilityDetail.vue'
|
import VulnerabilityDetail from '@/views/Jyh/Version/Detail/VulnerabilityDetail.vue';
|
||||||
|
import { getVulnerabilityList } from '@/api/jyh';
|
||||||
const { namespace } = getOrgInfo();
|
const { namespace } = getOrgInfo();
|
||||||
|
|
||||||
const tableData = ref([
|
const tableData = ref([
|
||||||
@@ -245,7 +246,11 @@ const currentVuln = ref();
|
|||||||
const openVulnDetail = (row) => {
|
const openVulnDetail = (row) => {
|
||||||
vulnDetailVisable.value = true;
|
vulnDetailVisable.value = true;
|
||||||
currentVuln.value = row;
|
currentVuln.value = row;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
onMounted(async () => {
|
||||||
|
await getVulnerabilityList();
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|||||||
Reference in New Issue
Block a user