From 8a40f2fafe0e6a64de7feafda64f3b0fa00bc5c6 Mon Sep 17 00:00:00 2001 From: zhangruojin Date: Sun, 13 Nov 2022 15:51:15 +0800 Subject: [PATCH] Add Audit Dataset Module Signed-off-by: zhangruojin --- src/components/Inspect/inspectDataSet.vue | 535 ++++++++++++++++++++ src/components/Inspect/inspectedDataSet.vue | 241 +++++++++ src/router/index.js | 299 ++++++----- src/views/inspectDataSetAll.vue | 239 +++++++++ 4 files changed, 1185 insertions(+), 129 deletions(-) create mode 100644 src/components/Inspect/inspectDataSet.vue create mode 100644 src/components/Inspect/inspectedDataSet.vue create mode 100644 src/views/inspectDataSetAll.vue diff --git a/src/components/Inspect/inspectDataSet.vue b/src/components/Inspect/inspectDataSet.vue new file mode 100644 index 0000000..9eec18b --- /dev/null +++ b/src/components/Inspect/inspectDataSet.vue @@ -0,0 +1,535 @@ + + + + diff --git a/src/components/Inspect/inspectedDataSet.vue b/src/components/Inspect/inspectedDataSet.vue new file mode 100644 index 0000000..fa9be8d --- /dev/null +++ b/src/components/Inspect/inspectedDataSet.vue @@ -0,0 +1,241 @@ + + + + diff --git a/src/router/index.js b/src/router/index.js index f117240..e61df30 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,129 +1,170 @@ -import Vue from 'vue' -import Router from 'vue-router' - -Vue.use(Router) - -export default new Router({ - routes: [ - - /** - * - * Home page - * - */ - { - path: '/', - component: () => import('../views/licenseAll.vue') - }, - { - path: '/licenseAll', - component: () => import('../views/licenseAll.vue') - },{ - path: '/licenseInfo', - component: () => import('../views/licenseInfo.vue'), - props: route => ({id: route.query.id}) - },{ - path: '/dataSetAll', - component: () => import('../views/dataSetAll.vue'), - },{ - path: '/dataSetInfo', - component: () => import('../views/dataSetInfo.vue'), - props: route => ({id: route.query.id}) - }, - - - /** - * Type page - * - * */ - { - path:"/typeLicense", - component:()=>import("../views/typeLicense.vue"), - },{ - path:"/typeDataSpecificLicense", - component:()=>import("../views/typeDataSpecificLicense.vue"), - },{ - path:"/typeDataSourceTermsofUse", - component:()=>import("../views/typeDataSourceTermsofUse.vue"), - }, - /** - * Search components - * - * */ - { - path:"/searchLicense", - component:()=>import("../components/Search/searchLicense.vue"), - },{ - path:"/searchDataset", - component:()=>import("../components/Search/searchDataset.vue"), - }, - { - path:"/searchTypeLicense", - component:()=>import("../components/Search/searchTypeLicense.vue"), - }, - { - path:"/searchTypeDataSpecificLicense", - component:()=>import("../components/Search/searchTypeDataSpecificLicense.vue"), - },{ - path:"/searchTypeDataSourceTermsofUse", - component:()=>import("../components/Search/searchTypeDataSourceTermsofUse.vue"), - },{ - path:"/searchDatasetInfo", - component:()=>import("../components/Search/searchDatasetInfo.vue"), - },{ - path:"/searchLicenseInfo", - component:()=>import("../components/Search/searchLicenseInfo.vue"), - }, - - - /** - * - * Export - * - * - */ - { - path:"/Export", - component:()=>import("../components/Export/Export.vue"), - }, - /** - * - * format - * - */ - { - path: '/dataSetFormat', - component: () => import('../components/Template/dataSetFormat.vue'), - }, { - path: '/dataSetSymbol', - component: () => import('../components/Template/dataSetSymbol.vue'), - }, - - - /* - * - * login - * */ - - { - path: "/loginPage", - component: () => import("../components/Login/loginPage.vue"), - }, { - path: "/registerPage", - component: () => import("../components/Login/registerPage.vue"), - }, - /* - * - * upload - * - * - * */ - { - path: "/uploadLicense", - component: () => import("../components/Skill/uploadLicense"), - }, - - - - ] - }) \ No newline at end of file +import Vue from 'vue' +import Router from 'vue-router' + +Vue.use(Router) + +export default new Router({ + routes: [ + + /** + * + * Home page + * + */ + { + path: '/', + component: () => import('../views/licenseAll.vue') + }, + { + path: '/licenseAll', + component: () => import('../views/licenseAll.vue') + },{ + path: '/licenseInfo', + component: () => import('../views/licenseInfo.vue'), + props: route => ({id: route.query.id}) + },{ + path: '/dataSetAll', + component: () => import('../views/dataSetAll.vue'), + },{ + path: '/dataSetInfo', + component: () => import('../views/dataSetInfo.vue'), + props: route => ({id: route.query.id}) + }, + + + /** + * Type page + * + * */ + { + path:"/typeLicense", + component:()=>import("../views/typeLicense.vue"), + },{ + path:"/typeDataSpecificLicense", + component:()=>import("../views/typeDataSpecificLicense.vue"), + },{ + path:"/typeDataSourceTermsofUse", + component:()=>import("../views/typeDataSourceTermsofUse.vue"), + }, + /** + * Search components + * + * */ + { + path:"/searchLicense", + component:()=>import("../components/Search/searchLicense.vue"), + },{ + path:"/searchDataset", + component:()=>import("../components/Search/searchDataset.vue"), + }, + { + path:"/searchTypeLicense", + component:()=>import("../components/Search/searchTypeLicense.vue"), + }, + { + path:"/searchTypeDataSpecificLicense", + component:()=>import("../components/Search/searchTypeDataSpecificLicense.vue"), + },{ + path:"/searchTypeDataSourceTermsofUse", + component:()=>import("../components/Search/searchTypeDataSourceTermsofUse.vue"), + },{ + path:"/searchDatasetInfo", + component:()=>import("../components/Search/searchDatasetInfo.vue"), + },{ + path:"/searchLicenseInfo", + component:()=>import("../components/Search/searchLicenseInfo.vue"), + }, + + + /** + * + * Export + * + * + */ + { + path:"/Export", + component:()=>import("../components/Export/Export.vue"), + }, + /** + * + * format + * + */ + { + path: '/dataSetFormat', + component: () => import('../components/Template/dataSetFormat.vue'), + }, { + path: '/dataSetSymbol', + component: () => import('../components/Template/dataSetSymbol.vue'), + }, + + + /* + * + * login + * */ + + { + path: "/loginPage", + component: () => import("../components/Login/loginPage.vue"), + }, { + path: "/registerPage", + component: () => import("../components/Login/registerPage.vue"), + }, + /* + * + * upload + * + * + * */ + { + path: "/uploadLicense", + component: () => import("../components/Skill/uploadLicense"), + }, + + /* + * + * review user + */ + { + path:"/review", + component:()=>import("../views/review.vue"), + redirect:'/review/review_upload', + children:[ + { + path:"/review/review_upload", + component:()=>import("../components/Review/reviewUpload.vue"), + meta:{requireAuth:true} + }, + { + path:"/review/reviewUploadByFile", + component:()=>import("../components/Review/reviewUploadByFile"), + meta:{requireAuth:true} + },{ + name:"/review/appending_aibom", + path:"/review/appending_aibom", + component:()=>import("../components/Review/apendingAIBOM"), + meta:{requireAuth:true} + },{ + name:"/review/reviewedDataSet", + path:"/review/reviewedDataSet", + component:() => import("../components/Review/reviewedDataSet"), + meta:{requireAuth:true} + } + ] + }, + + /* + * + * inspect page + */ + { + path: '/inspectDataSet', + component: () => import('../views/inspectDataSetAll.vue'), + }, + + + + ] + }) diff --git a/src/views/inspectDataSetAll.vue b/src/views/inspectDataSetAll.vue new file mode 100644 index 0000000..3aa1e59 --- /dev/null +++ b/src/views/inspectDataSetAll.vue @@ -0,0 +1,239 @@ + + +