From be2bbc67cdad30134e0be41bf5aef6bee78dd807 Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Mon, 21 Oct 2019 11:15:15 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=8F=82=E6=95=B0=E8=B0=83?=
=?UTF-8?q?=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/router/index.js | 37 ++-
src/views/designPlatform/index.vue | 2 +-
src/views/designPlatform/userDemonList.vue | 33 +--
src/views/designPlatform/userIndex.vue | 240 +++++++++---------
src/views/lesson/home.vue | 2 -
src/views/lesson/trainingmanage/index.vue | 20 +-
.../lesson/trainingrecord/category/tree.vue | 6 +-
src/views/lesson/trainingrecord/index.vue | 7 +-
.../lesson/trainingrecord/manage/index.vue | 16 +-
.../manage/stepmanage/index.vue | 5 +-
src/views/map/mapdraft/mapmanage/create.vue | 14 -
src/views/map/product/edit.vue | 2 +-
12 files changed, 171 insertions(+), 213 deletions(-)
diff --git a/src/router/index.js b/src/router/index.js
index 951234c88..2ed0c7c3b 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -150,6 +150,7 @@ export const userSimulation = '013'; // 仿真系统
export const userScreen = '014'; // 大屏系统
export const userPlan = '015'; // 计划系统
export const userDesign='016'; // 设计系统
+const isDev = process.env.NODE_ENV === 'development';
export const UrlConfig = {
display: '/display',
@@ -168,7 +169,7 @@ export const UrlConfig = {
},
lesson: {
prefix: '/lesson',
- record: '/lesson/record/training',
+ record: '/system/record/training',
manage: '/lesson/manage/training'
},
dp: {
@@ -558,21 +559,6 @@ export const asyncRouter = [
roles: [admin, lessonCreater, userDesign]
},
children: [
- {
- path: 'record',
- redirect: '/lesson/record/training/0/null',
- component: Trainingrecord,
- meta: {
- i18n: 'router.trainingRecord'
- },
- children: [
- {
- path: 'training/:trainingId/:trainingName',
- component: TrainingrecordManage,
- hidden: true
- }
- ]
- },
{
path: 'manage/trainingRule',
component: TrainingRuleList,
@@ -1057,6 +1043,22 @@ export const asyncRouter = [
meta: {
i18n: 'router.productEdit'
}
+ },
+ {
+ path: 'record',
+ redirect: 'record/training/0/null',
+ component: Trainingrecord,
+ meta: {
+ i18n: 'router.trainingRecord'
+ },
+ hidden: !isDev,
+ children: [
+ {
+ path: 'training/:trainingId/:trainingName',
+ component: TrainingrecordManage,
+ hidden: true
+ }
+ ]
}
]
},
@@ -1113,9 +1115,6 @@ router.beforeEach((to, from, next) => {
} else {
document.title = '琏课堂';
}
- // else if (name.includes('/plan/') || name.includes('/planEdit/')) {
- // document.title = '琏计划';
- // }
next();
});
diff --git a/src/views/designPlatform/index.vue b/src/views/designPlatform/index.vue
index 001ddf2d5..2c903257f 100644
--- a/src/views/designPlatform/index.vue
+++ b/src/views/designPlatform/index.vue
@@ -69,7 +69,7 @@ export default {
},
methods: {
refresh() {
- this.$refs && this.$refs.demonList && this.$refs.demonList.refresh();
+ this.$refs && this.$refs.demonList && this.$refs.demonList.loadInitData();
},
drapWidth(width) {
this.widthLeft = Number(width);
diff --git a/src/views/designPlatform/userDemonList.vue b/src/views/designPlatform/userDemonList.vue
index 015c35bbe..48b343fb5 100644
--- a/src/views/designPlatform/userDemonList.vue
+++ b/src/views/designPlatform/userDemonList.vue
@@ -30,7 +30,7 @@
accept=".json, application/json"
@change="importf"
>
- {{ $t('map.importMap') }}
+ {{ $t('map.importMap') }}
{{ $t('map.newConstruction') }}
@@ -39,14 +39,14 @@
:point="point"
:edit-model="editModel"
:skin-code="skinCode"
- @refresh="refresh"
+ @refresh="loadInitData"
@jlmap3d="jlmap3d"
/>
diff --git a/src/views/lesson/trainingrecord/manage/index.vue b/src/views/lesson/trainingrecord/manage/index.vue
index cc55ea0ff..39bea1645 100644
--- a/src/views/lesson/trainingrecord/manage/index.vue
+++ b/src/views/lesson/trainingrecord/manage/index.vue
@@ -44,12 +44,12 @@ export default {
trainingId() {
return this.$route.params.trainingId;
},
- width() {
- return this.$store.state.app.width - 481 - this.widthLeft;
- },
- height() {
- return this.$store.state.app.height - 90;
- }
+ width() {
+ return this.$store.state.app.width - 481 - this.widthLeft;
+ },
+ height() {
+ return this.$store.state.app.height - 90;
+ }
},
watch: {
$route(newVal) {
@@ -120,7 +120,7 @@ export default {
.blockContext {
// float: left;
height: 100%;
- overflow: hidden;
+ overflow: hidden;
}
.mapContext {
@@ -129,7 +129,7 @@ export default {
.stepContext {
float: right;
- width: 520px;
+ width: 480px;
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);
}
diff --git a/src/views/lesson/trainingrecord/manage/stepmanage/index.vue b/src/views/lesson/trainingrecord/manage/stepmanage/index.vue
index c7377a4c2..879f19532 100644
--- a/src/views/lesson/trainingrecord/manage/stepmanage/index.vue
+++ b/src/views/lesson/trainingrecord/manage/stepmanage/index.vue
@@ -5,7 +5,6 @@
{{ $t('lesson.trainingName') }} :
{{ trainingName }}
- {{ $t('global.back') }}
{{ $t('global.reset') }}
@@ -78,10 +77,8 @@ export default {
},
reset() {
this.$refs.stepInfo.reset();
- },
- back() {
- this.$router.go(-1);
}
}
};
+
diff --git a/src/views/map/mapdraft/mapmanage/create.vue b/src/views/map/mapdraft/mapmanage/create.vue
index 622fbd17d..b6a88f4c6 100644
--- a/src/views/map/mapdraft/mapmanage/create.vue
+++ b/src/views/map/mapdraft/mapmanage/create.vue
@@ -33,16 +33,6 @@
-
-
-
-
-
@@ -111,7 +101,6 @@ export default {
newModel: {
id: '',
name: '',
- cityCode: '',
skinCode: ''
},
pullModel: {
@@ -124,9 +113,6 @@ export default {
],
skinCode: [
{ required: true, message: this.$t('rules.pleaseChooseSkinCode'), trigger: 'change' }
- ],
- cityCode: [
- { required: true, message: this.$t('rules.selectCity'), trigger: 'change'}
]
},
pullRules: {
diff --git a/src/views/map/product/edit.vue b/src/views/map/product/edit.vue
index 20c5acfc9..fdefad6fa 100644
--- a/src/views/map/product/edit.vue
+++ b/src/views/map/product/edit.vue
@@ -172,7 +172,7 @@ export default {
});
} else {
this.addModel.prdType = '01';
- this.loading = false;
+ this.loading = false;
}
// 清除表单验证提示信息