From 95d0cd03e052514bd386a91f82d98d1a3118b781 Mon Sep 17 00:00:00 2001 From: yuan Date: Tue, 6 Jul 2021 16:17:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/router/index.js | 15 +++++-- .../{ => draftList}/components/create.vue | 8 +++- .../userModelDesign/{ => draftList}/index.vue | 14 +++--- src/views/userModelDesign/edit/index.vue | 45 +++++++++++++++++++ 5 files changed, 72 insertions(+), 12 deletions(-) rename src/views/userModelDesign/{ => draftList}/components/create.vue (90%) rename src/views/userModelDesign/{ => draftList}/index.vue (94%) create mode 100644 src/views/userModelDesign/edit/index.vue diff --git a/package.json b/package.json index 00f1aa413..3dd769b52 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ }, "dependencies": { "axios": "^0.21.1", - "bjjl-engine-2d": "^1.0.8", + "bjjl-engine-2d": "^1.0.14", "echarts": "^4.7.0", "element-ui": "^2.12.0", "file-saver": "^1.3.3", diff --git a/src/router/index.js b/src/router/index.js index fedc095d9..6f20a78a6 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -186,7 +186,8 @@ const UploadPdfList = () => import('@/views/uploadPdf/list'); const ThirdLogin = () => import('@/views/thirdLogin'); -const UserModelDesign = () => import('@/views/userModelDesign') +const UserModelDesign = () => import('@/views/userModelDesign/draftList'); +const UserModelEdit = () => import('@/views/userModelDesign/edit'); // import { GenerateRouteProjectList } from '@/scripts/ProjectConfig'; // import { getSessionStorage } from '@/utils/auth'; @@ -551,7 +552,7 @@ export const publicAsyncRoute = [ hidden: true, children: [ { - path:'classManage', + path: 'classManage', component: OrgClassManage, hidden: true }, @@ -1269,7 +1270,7 @@ export const asyncRouter = [ hidden: true }, { - path:'iscs/design', + path: 'iscs/design', redirect: '/iscs/design', component: IscsDesign, meta: { @@ -1291,6 +1292,12 @@ export const asyncRouter = [ i18n: 'router.userModelDesign', roles: [admin] }, + }, + { + path: 'usermodel/edit', + name: 'userModelEdit', + component: UserModelEdit, + hidden: true } ] }, @@ -1304,7 +1311,7 @@ export const asyncRouter = [ }, children: [ { - path:'design', + path: 'design', redirect: '/iscs/design/edit', component: IscsDesign, meta: { diff --git a/src/views/userModelDesign/components/create.vue b/src/views/userModelDesign/draftList/components/create.vue similarity index 90% rename from src/views/userModelDesign/components/create.vue rename to src/views/userModelDesign/draftList/components/create.vue index 4f3ec87b9..16b632aaa 100644 --- a/src/views/userModelDesign/components/create.vue +++ b/src/views/userModelDesign/draftList/components/create.vue @@ -1,5 +1,5 @@