diff --git a/public/index.html b/public/index.html index 925455c..36acb96 100644 --- a/public/index.html +++ b/public/index.html @@ -1,14 +1,18 @@ - - - - - - - <%= webpackConfig.name %> - - - - -
-
-
-
-
-
正在加载系统资源,请耐心等待
-
-
- + + + +
+
+
+
+
+
正在加载系统资源,请耐心等待
+
+
+ + diff --git a/src/views/system/order/indexjs.js b/src/views/system/order/indexjs.js index e188eea..1c66d22 100644 --- a/src/views/system/order/indexjs.js +++ b/src/views/system/order/indexjs.js @@ -17,10 +17,10 @@ export default { return { setDateRange: { disabledDate: time => { - // 禁用今天之前的日期【当前天可选】 - return time.getTime() < Date.now() - 24 * 60 * 60 * 1000; + // 禁用今天之前的日期【当前天可选】 + return time.getTime() < Date.now() - 24 * 60 * 60 * 1000; } - }, + }, timevalue: [], map: null, baseurl: process.env.VUE_APP_BASE_API, @@ -156,6 +156,7 @@ export default { this.map = new AMap.Map("container", { resizeEnable: true, //设置地图可缩放 zoom: 18, //设置地图的层级 + viewMode: '2D', //设置地图模式 center: [query.serveLocationLongitude, query.serveLocationLatitude], //设置地图中心点 更多配置项参照高德官网的配置 }); var layer = new AMap.LabelsLayer({ @@ -193,7 +194,6 @@ export default { }, }, }); - layer.add(labelMarker); }, //取消预约确定按钮 @@ -353,15 +353,15 @@ export default { if (res.data) { if (res.data.evaluateSatisfaction == "COMMONLY") { this.query.evaluateSatisfaction = "一般"; - } else if (res.data.evaluateSatisfaction == "SATISFIED") { + } else if (res.data.evaluateSatisfaction == "SATISFIED") { this.query.evaluateSatisfaction = "满意"; - } else if (res.data.evaluateSatisfaction == "DISSATISFIED") { + } else if (res.data.evaluateSatisfaction == "DISSATISFIED") { this.query.evaluateSatisfaction = "差"; - } else if (res.data.evaluateSatisfaction == "VERYSATISFIED") { + } else if (res.data.evaluateSatisfaction == "VERYSATISFIED") { this.query.evaluateSatisfaction = "非常满意"; - } else if (res.data.evaluateSatisfaction == "VERYDISSATISFIED") { + } else if (res.data.evaluateSatisfaction == "VERYDISSATISFIED") { this.query.evaluateSatisfaction = "非常差"; - } + } this.loading = false this.innerVisible4 = true; setTimeout(() => { @@ -533,4 +533,4 @@ export default { ); }, }, -}; \ No newline at end of file +}; diff --git a/vue.config.js b/vue.config.js index 2e7a48d..f93e895 100644 --- a/vue.config.js +++ b/vue.config.js @@ -52,6 +52,9 @@ module.exports = { } }, configureWebpack: { + externals: { + 'AMap': 'AMap' + }, name: name, resolve: { alias: { @@ -97,7 +100,7 @@ module.exports = { .plugin('ScriptExtHtmlWebpackPlugin') .after('html') .use('script-ext-html-webpack-plugin', [{ - // `runtime` must same as runtimeChunk name. default is `runtime` + // `runtime` must same as runtimeChunk name. default is `runtime` inline: /runtime\..*\.js$/ }]) .end() @@ -127,8 +130,8 @@ module.exports = { }) config.optimization.runtimeChunk('single'), { - from: path.resolve(__dirname, './public/robots.txt'), //防爬虫文件 - to: './' //到根目录下 + from: path.resolve(__dirname, './public/robots.txt'), //防爬虫文件 + to: './' //到根目录下 } } )