shuishen
2022-11-02 1394335f4874cec0c02751e8a7b66cab565ce874
文件处理及title处理
9 files modified
9074 ■■■■ changed files
babel.config.js 22 ●●●● patch | view | raw | blame | history
package-lock.json 8921 ●●●● patch | view | raw | blame | history
public/index.html 8 ●●●● patch | view | raw | blame | history
src/App.vue 79 ●●●● patch | view | raw | blame | history
src/api/mobile/piont/index.js 10 ●●●● patch | view | raw | blame | history
src/mobileLayout/index.vue 16 ●●●●● patch | view | raw | blame | history
src/pcLayout/index.vue 3 ●●●●● patch | view | raw | blame | history
src/pcviews/homepage/index.vue 3 ●●●●● patch | view | raw | blame | history
vue.config.js 12 ●●●● patch | view | raw | blame | history
babel.config.js
@@ -2,24 +2,24 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2022-10-21 14:09:00
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2022-10-25 15:51:46
 * @LastEditTime: 2022-11-02 10:11:30
 * @FilePath: \sd-jg-school-web\babel.config.js
 * @Description:
 *
 * Copyright (c) 2022 by shuishen 1109946754@qq.com, All Rights Reserved.
 */
module.exports = {
    // presets: [
    //     '@vue/cli-plugin-babel/preset'
    // ],
    presets: [
        '@vue/app'
    ],
    env: {
        development: {
            plugins: ['dynamic-import-node']
        }
    }
        '@vue/cli-plugin-babel/preset'
    ]
    // presets: [
    //     '@vue/app'
    // ],
    // env: {
    //     development: {
    //         plugins: ['dynamic-import-node']
    //     }
    // }
    // presets: ['@vue/app', {
    //     useBuiltIns: 'entry'
package-lock.json
Diff too large
public/index.html
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2022-03-04 15:59:35
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2022-10-21 15:59:15
 * @LastEditTime: 2022-11-02 11:01:12
 * @FilePath: \sd-jg-school-web\public\index.html
 * @Description: 
 * 
@@ -16,7 +16,7 @@
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
    <title>智慧校园可视化信息管理平台</title>
    <!-- <title>智慧校园可视化信息管理平台</title> -->
    <!-- <title>江西经济管理干部学院三维可视化平台</title> -->
    <!-- 高德定位 -->
    <!-- <script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.15&key=9c4b1a0ce88821775605e726073c52b5">
@@ -36,12 +36,12 @@
    <!--基础包-->
    <!-- <script src="https://cdn.jsdelivr.net/npm/@dvgis/dc-sdk/dist/dc.base.min.js"></script> -->
    <!--
    <script src="./depend/dc.base.min.js"></script>
    <script src="./depend/dc.core.min.js"></script>
    <script src="./depend/dc.chart.min.js"></script>
    <script src="./depend/dc.mapv.min.js"></script>
    <script src="./depend/dc.s3m.min.js"></script>
    <script src="./depend/dc.s3m.min.js"></script> -->
    <script src="./depend/vue.min.js"></script>
src/App.vue
@@ -5,7 +5,7 @@
</template>
<script>
import AMapLoader from '@amap/amap-jsapi-loader'
// import AMapLoader from '@amap/amap-jsapi-loader'
import DevicePixelRatio from './utils/devicePixelRatio'
export default {
@@ -46,53 +46,57 @@
        if (this._isMobile()) {
            this.cantdoits = true
            // 手机端
            document.title = '江西经济管理干部学院三维可视化平台'
            this.$router.replace('/mobileLayout')
            AMapLoader.load({
                key: '9c4b1a0ce88821775605e726073c52b5', // 申请好的Web端开发者Key,首次调用 load 时必填
                version: '2.0', // 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15
                plugins: [] // 插件列表
            })
                .then((AMap) => {
                    window.AMap = AMap
                    // that.map = new AMap.Map("mymap", {
                    //   center: [115.84414205551147, 28.678983439095823],
                    //   zoom: 14,
                    // });
            // AMapLoader.load({
            //     key: '9c4b1a0ce88821775605e726073c52b5', // 申请好的Web端开发者Key,首次调用 load 时必填
            //     version: '2.0', // 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15
            //     plugins: [] // 插件列表
            // })
            //     .then((AMap) => {
            //         window.AMap = AMap
            //         // that.map = new AMap.Map("mymap", {
            //         //   center: [115.84414205551147, 28.678983439095823],
            //         //   zoom: 14,
            //         // });
                    // this.map.on('touchmove', (e) => {
            //         // this.map.on('touchmove', (e) => {
            //         //     console.log(e)
            //         // })
            //         // that.getLocationInfor(AMap, 115.84414205551147, 28.678983439095823);
            //         // that.map.on("mapmove", () => {
            //         //   that.mouseMoveFlag = false;
            //         //   that.mouseMoveFlag = true;
            //         //   var currentCenter = that.map.getCenter();
            //         //   if (that.setime) {
            //         //     clearTimeout(that.setime);
            //         //   }
            //         //   that.setime = setTimeout(() => {
            //         //     that.getLocationInfor(AMap, currentCenter.lng, currentCenter.lat);
            //         //     clearTimeout(that.setime);
            //         //     that.setime = null;
            //         //   }, 200);
            //         // });
            //         // this.map.on('mousemove', (e) => {
            //         //     console.log(e)
            //         // })
            //     })
            //     .catch((e) => {
                    //     console.log(e)
                    // })
                    // that.getLocationInfor(AMap, 115.84414205551147, 28.678983439095823);
                    // that.map.on("mapmove", () => {
                    //   that.mouseMoveFlag = false;
                    //   that.mouseMoveFlag = true;
                    //   var currentCenter = that.map.getCenter();
                    //   if (that.setime) {
                    //     clearTimeout(that.setime);
                    //   }
                    //   that.setime = setTimeout(() => {
                    //     that.getLocationInfor(AMap, currentCenter.lng, currentCenter.lat);
                    //     clearTimeout(that.setime);
                    //     that.setime = null;
                    //   }, 200);
                    // });
                    // this.map.on('mousemove', (e) => {
                    //     console.log(e)
                    // })
                })
                .catch((e) => {
                    console.log(e)
                })
        } else {
            // pc端
            // this.$router.replace('/large')
            // if (this.$route.path == '/pcLayout/default') {
            //     this.$router.replace('/pcLayout')
            // } else {
            // }
            //  else {
            //     this.$router.replace('/login')
            // }
        }
@@ -133,6 +137,7 @@
    padding: 0;
    overflow: hidden;
}
#app {
    font-family: 'Avenir', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
src/api/mobile/piont/index.js
@@ -47,7 +47,11 @@
    return request({
        url: 'blade-vr/vr/list',
        method: 'get',
        params: params
        params: {
            current: 1,
            size: 9999,
            ...params
        }
    })
}
@@ -56,7 +60,9 @@
    return request({
        url: 'blade-architecture/architecture/selectArchALL',
        method: 'get',
        params: params
        params: {
            ...params
        }
    })
}
src/mobileLayout/index.vue
@@ -1,3 +1,13 @@
<!--
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2022-10-21 14:09:12
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2022-11-02 10:55:08
 * @FilePath: \sd-jg-school-web\src\mobileLayout\index.vue
 * @Description:
 *
 * Copyright (c) 2022 by shuishen 1109946754@qq.com, All Rights Reserved.
-->
<template>
  <div id="mobileMaps">
    <mobilemapBox ref="mobilemapBoxFrom" />
@@ -5,7 +15,11 @@
</template>
<script>
export default {};
export default {
    created () {
    }
}
</script>
<style>
src/pcLayout/index.vue
@@ -134,6 +134,9 @@
    data () {
        return {}
    },
    created () {
         document.title = '江西经济管理干部学院三维可视化平台'
    },
    methods: {
        handleSelect (key, keyPath) { },
        outHome () {
src/pcviews/homepage/index.vue
@@ -61,6 +61,9 @@
        PipeWellPercent,
        Devices,
        AlertInfo
    },
    created () {
        document.title = '智慧校园可视化信息管理平台'
    }
}
</script>
vue.config.js
@@ -75,12 +75,12 @@
            Vuex: 'Vuex',
            'vue-router': 'VueRouter',
            'element-ui': 'ELEMENT',
            echarts: 'echarts',
            '@dvgis/dc-sdk/dist/dc.base.min': 'DC',
            '@dvgis/dc-sdk/dist/dc.core.min': 'DcCore',
            '@dvgis/dc-sdk/dist/dc.chart.min': 'DcChart',
            '@dvgis/dc-sdk/dist/dc.mapv.min': 'DcMapv',
            '@dvgis/dc-sdk/dist/dc.s3m.min': 'DcS3M'
            echarts: 'echarts'
            // '@dvgis/dc-sdk/dist/dc.base.min': 'DC',
            // '@dvgis/dc-sdk/dist/dc.core.min': 'DcCore',
            // '@dvgis/dc-sdk/dist/dc.chart.min': 'DcChart',
            // '@dvgis/dc-sdk/dist/dc.mapv.min': 'DcMapv',
            // '@dvgis/dc-sdk/dist/dc.s3m.min': 'DcS3M'
        },
        // webpack plugins
        plugins: [