+
- {{ node.data.name+ $t('global.simulationSystem') }}
- {{ node.data.name+ $t('global.lessonSystem') }}
- {{ node.data.name+ $t('global.examSystem') }}
- {{ node.data.name+ $t('global.runPlanSystem') }}
- {{ node.data.name }}
+ {{ node.data.name+ $t('global.simulationSystem') }}
+ {{ node.data.name+ $t('global.lessonSystem') }}
+ {{ node.data.name+ $t('global.examSystem') }}
+ {{ node.data.name+ $t('global.runPlanSystem') }}
+ {{ node.data.name }}
@@ -113,7 +113,7 @@ export default {
break;
case 'Lesson':
this.setLocalRoute(`${UrlConfig.trainingPlatform.teachHome}/${obj.id}`);
- router = { path: `${UrlConfig.trainingPlatform.teachHome}/${obj.id}`};
+ router = { path: `${UrlConfig.trainingPlatform.teachHome}/${obj.id}?cityCode=${this.filterSelect}`};
this.toNextPage(isReplace, router);
break;
case 'Simulation':
@@ -137,7 +137,6 @@ export default {
},
forTree(item) {
item.children && item.children.forEach(childrenItem => {
- // childrenItem.key = item.id + childrenItem.id + childrenItem.type;
childrenItem.key = item.key + '-' + childrenItem.id;
if (childrenItem.children && childrenItem.children.length) {
this.forTree(childrenItem);
@@ -170,7 +169,15 @@ export default {
checkId && this.findTree(this.treeList, checkId);
!checkId && this.treeList && this.treeList.length && this.clickEvent(this.treeList[0], {data: this.treeList[0]});
}
- this.loading = false;
+ setTimeout(()=> {
+ if (checkId) {
+ const checkIdDom = document.getElementById(checkId);
+ const mapTreeDom = document.getElementById('trainingMapTree');
+ mapTreeDom.scrollTop = checkIdDom.offsetTop;
+
+ }
+ this.loading = false;
+ }, 200);
});
} catch (error) {
this.loading = false;
diff --git a/vue.config.js b/vue.config.js
index dea847de9..9fc9cd204 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -35,6 +35,8 @@ module.exports = {
productionSourceMap: false, // 项目打包后是否压缩
devServer: {
port: port,
+ host: '0.0.0.0',
+ disableHostCheck: true,
hotOnly: true,
overlay: {
warnings: false,
@@ -63,12 +65,12 @@ module.exports = {
// },
// parallel: require('os').cpus().length > 1, // 是否为 Babel 或 TypeScript 使用 thread-loader。该选项在系统的 CPU 有多于一个内核时自动启用,仅作用于生产构建。
configureWebpack: config => {
- const appTarget = process.env.VUE_APP_PRO == 'local' ? 'HEB' : 'Common'; // 其他环境变量 区分配置
- config.plugins.push(new webpack.NormalModuleReplacementPlugin(/(.*)_APP_TARGET(\.*)/,
- function (resourse) {
- resourse.request = resourse.request.replace(/APP_TARGET/, `${appTarget}`);
- })
- );
+ // const appTarget = process.env.VUE_APP_PRO == 'local' ? 'HEB' : 'Common'; // 其他环境变量 区分配置
+ // config.plugins.push(new webpack.NormalModuleReplacementPlugin(/(.*)_APP_TARGET(\.*)/,
+ // function (resourse) {
+ // resourse.request = resourse.request.replace(/APP_TARGET/, `${appTarget}`);
+ // })
+ // );
if (process.env.NODE_ENV != 'development') {
config.mode = 'production';