From a4affd7541c8a853a2bd246b5332dde8f69444b5 Mon Sep 17 00:00:00 2001 From: ljlong_2630 Date: Mon, 7 Aug 2023 13:44:05 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E5=88=86=E8=AE=BE=E5=A4=87=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B=E5=8A=9F=E8=83=BD=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/model/modelType.js | 1 - src/assets/styles/self-defined.scss | 21 ++ src/router/index.js | 6 - src/views/model/devicemodel/addmodel.vue | 266 ++++++++++++++++++----- src/views/model/devicemodel/index.vue | 147 ++++++++++--- 5 files changed, 354 insertions(+), 87 deletions(-) diff --git a/src/api/model/modelType.js b/src/api/model/modelType.js index c6b9550..96f0c5b 100644 --- a/src/api/model/modelType.js +++ b/src/api/model/modelType.js @@ -2,7 +2,6 @@ import request from '@/utils/request' // 查询设备模型类别列表 export function listModelType(query) { - console.log("-------------"+query); return request({ url: '/model/dcModelType/list', method: 'get', diff --git a/src/assets/styles/self-defined.scss b/src/assets/styles/self-defined.scss index 351c2e3..64edb28 100644 --- a/src/assets/styles/self-defined.scss +++ b/src/assets/styles/self-defined.scss @@ -20,3 +20,24 @@ margin-left: 100px; } +.marginbottom50px{ + margin-bottom: 50px; +} + +.textaligncenter{ + text-align:center; +} +.textalignleft{ + text-align:left; +} +.widthhalfinlineblock{ + width: 50%; + display: inline-block; +} +.textalignright{ + text-align:right; +} + +.marginbottom20{ + margin-bottom: 5px; +} diff --git a/src/router/index.js b/src/router/index.js index c7cb3d1..f6da8b3 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -167,12 +167,6 @@ export const constantRoutes = [ } ] }, - { - path: '/devicemodel/addmodel', - component: () => import('@/views/model/devicemodel/addmodel'), - name: 'newdevicemodel', - meta: { title: '新增设备模型', icon: '' } - }, ] // 动态路由,基于用户权限动态去加载 diff --git a/src/views/model/devicemodel/addmodel.vue b/src/views/model/devicemodel/addmodel.vue index 731cf1c..605bcd5 100644 --- a/src/views/model/devicemodel/addmodel.vue +++ b/src/views/model/devicemodel/addmodel.vue @@ -1,63 +1,149 @@ - + + \ No newline at end of file diff --git a/src/views/model/devicemodel/index.vue b/src/views/model/devicemodel/index.vue index 32d595f..83f3011 100644 --- a/src/views/model/devicemodel/index.vue +++ b/src/views/model/devicemodel/index.vue @@ -1,6 +1,6 @@