许可证信息页面更新

This commit is contained in:
付民康
2025-03-27 14:07:30 +08:00
parent 0e1f61bc86
commit f6f85a471c
3 changed files with 19 additions and 40 deletions

View File

@@ -202,7 +202,7 @@ onUnmounted(() => {
width: 100%;
height: 100%;
//background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 1)),url('@/assets/imgs/home/首页01_BG_@2x.png');
background-image: url('@/assets/imgs/home/首页01_BG_@2x.png');
background-image: url('@/assets/imgs/home/首页02_BG_@2x.png');
background-size: cover;
background-position: center;
z-index: -1;

View File

@@ -29,6 +29,8 @@
:can-change-page-size="true"
:can-jump-page="true"
:max-items="5"
@page-index-change="getList"
@page-size-change="getList"
/>
</div>
</div>
@@ -38,16 +40,16 @@
</template>
<script setup lang="ts">
import { ref, defineProps } from 'vue';
import { defineProps, onMounted, ref } from 'vue';
import SidePanel from '@/components/LicenseInfo/SidePanel.vue';
import { getLicenseList } from '@/api/jyh';
import NoData from '@/components/NoData/NoData.vue';
const propsData = defineProps(['versionId']);
const currentData = ref(null);
const propsData = defineProps(['versionId']);
const pager = ref({
pageIndex: 1,
pageSize: 30,
total: 10
pageSize: 10,
total: 0
});
const pageOptions = ref({});
const showDetail = ref(false);
@@ -75,45 +77,20 @@ const tableConfig = ref([
sortMethod: null
}
// {
// field: 'affectedComponent',
// field: 'softwareName',
// header: '影响软件',
// sortable: true,
// sortMethod: null
// },
// {
// field: 'version',
// field: 'softwareVersion',
// header: '版本',
// sortable: true,
// sortMethod: null
// }
]);
const list = ref([
// {
// licenseName: 'Apache License 2.0',
// licenseType: '获准的',
// affectedComponent: 'org.apache.commons:commons-collections4',
// version: '4.4',
// },
// {
// licenseName: 'Apache License 2.0',
// licenseType: '获准的',
// affectedComponent: 'org.apache.commons:commons-collections4',
// version: '4.4',
// },
// {
// licenseName: 'Apache License 2.0',
// licenseType: '获准的',
// affectedComponent: 'org.apache.commons:commons-collections4',
// version: '4.4',
// },
// {
// licenseName: 'Apache License 2.0',
// licenseType: '获准的',
// affectedComponent: 'org.apache.commons:commons-collections4',
// version: '4.4',
// }
]);
const list = ref([]);
const getList = async () => {
const res: any = await getLicenseList({
@@ -124,13 +101,15 @@ const getList = async () => {
});
if (!res.error) {
console.log(res);
list.value = res.data.data.records;
pager.value.total = res.data.data.records.length;
list.value = res.data.data.data.records;
pager.value.total = res.data.data.data.total;
} else {
list.value = [];
}
};
getList();
onMounted(() => {
getList();
});
</script>
<style scoped lang="scss">

View File

@@ -26,10 +26,10 @@
<span class="card-val">
{{ ReleaseInfo.basicInfo.releaseDate?dayjs(ReleaseInfo.basicInfo.releaseDate).format('YYYY-MM-DD') :'--' }}</span>
</d-col>
<d-col :span="8">
<span class="card-key width-90">版本描述</span>
<span class="card-val">{{ ReleaseInfo.basicInfo.versionDescription || '--' }}</span>
</d-col>
<!-- <d-col :span="8">-->
<!-- <span class="card-key width-90">版本描述</span>-->
<!-- <span class="card-val">{{ ReleaseInfo.basicInfo.versionDescription || '&#45;&#45;' }}</span>-->
<!-- </d-col>-->
</d-row>
</Card>