许可证信息页面更新
This commit is contained in:
@@ -202,7 +202,7 @@ onUnmounted(() => {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 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: 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-size: cover;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
|
|||||||
@@ -29,6 +29,8 @@
|
|||||||
:can-change-page-size="true"
|
:can-change-page-size="true"
|
||||||
:can-jump-page="true"
|
:can-jump-page="true"
|
||||||
:max-items="5"
|
:max-items="5"
|
||||||
|
@page-index-change="getList"
|
||||||
|
@page-size-change="getList"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -38,16 +40,16 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, defineProps } from 'vue';
|
import { defineProps, onMounted, ref } from 'vue';
|
||||||
import SidePanel from '@/components/LicenseInfo/SidePanel.vue';
|
import SidePanel from '@/components/LicenseInfo/SidePanel.vue';
|
||||||
import { getLicenseList } from '@/api/jyh';
|
import { getLicenseList } from '@/api/jyh';
|
||||||
import NoData from '@/components/NoData/NoData.vue';
|
import NoData from '@/components/NoData/NoData.vue';
|
||||||
const propsData = defineProps(['versionId']);
|
|
||||||
const currentData = ref(null);
|
const currentData = ref(null);
|
||||||
|
const propsData = defineProps(['versionId']);
|
||||||
const pager = ref({
|
const pager = ref({
|
||||||
pageIndex: 1,
|
pageIndex: 1,
|
||||||
pageSize: 30,
|
pageSize: 10,
|
||||||
total: 10
|
total: 0
|
||||||
});
|
});
|
||||||
const pageOptions = ref({});
|
const pageOptions = ref({});
|
||||||
const showDetail = ref(false);
|
const showDetail = ref(false);
|
||||||
@@ -75,45 +77,20 @@ const tableConfig = ref([
|
|||||||
sortMethod: null
|
sortMethod: null
|
||||||
}
|
}
|
||||||
// {
|
// {
|
||||||
// field: 'affectedComponent',
|
// field: 'softwareName',
|
||||||
// header: '影响软件',
|
// header: '影响软件',
|
||||||
// sortable: true,
|
// sortable: true,
|
||||||
// sortMethod: null
|
// sortMethod: null
|
||||||
// },
|
// },
|
||||||
// {
|
// {
|
||||||
// field: 'version',
|
// field: 'softwareVersion',
|
||||||
// header: '版本',
|
// header: '版本',
|
||||||
// sortable: true,
|
// sortable: true,
|
||||||
// sortMethod: null
|
// sortMethod: null
|
||||||
// }
|
// }
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const list = ref([
|
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 getList = async () => {
|
const getList = async () => {
|
||||||
const res: any = await getLicenseList({
|
const res: any = await getLicenseList({
|
||||||
@@ -124,13 +101,15 @@ const getList = async () => {
|
|||||||
});
|
});
|
||||||
if (!res.error) {
|
if (!res.error) {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
list.value = res.data.data.records;
|
list.value = res.data.data.data.records;
|
||||||
pager.value.total = res.data.data.records.length;
|
pager.value.total = res.data.data.data.total;
|
||||||
} else {
|
} else {
|
||||||
list.value = [];
|
list.value = [];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
getList();
|
onMounted(() => {
|
||||||
|
getList();
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|||||||
@@ -26,10 +26,10 @@
|
|||||||
<span class="card-val">
|
<span class="card-val">
|
||||||
{{ ReleaseInfo.basicInfo.releaseDate?dayjs(ReleaseInfo.basicInfo.releaseDate).format('YYYY-MM-DD') :'--' }}</span>
|
{{ ReleaseInfo.basicInfo.releaseDate?dayjs(ReleaseInfo.basicInfo.releaseDate).format('YYYY-MM-DD') :'--' }}</span>
|
||||||
</d-col>
|
</d-col>
|
||||||
<d-col :span="8">
|
<!-- <d-col :span="8">-->
|
||||||
<span class="card-key width-90">版本描述</span>
|
<!-- <span class="card-key width-90">版本描述</span>-->
|
||||||
<span class="card-val">{{ ReleaseInfo.basicInfo.versionDescription || '--' }}</span>
|
<!-- <span class="card-val">{{ ReleaseInfo.basicInfo.versionDescription || '--' }}</span>-->
|
||||||
</d-col>
|
<!-- </d-col>-->
|
||||||
</d-row>
|
</d-row>
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user