Kaynağa Gözat

Merge branch 'develop' of git.sagacloud.cn:web/wanda-bm-guide into develop

guoxiaohuan 4 yıl önce
ebeveyn
işleme
78103feb9f

+ 16 - 2
public/index.html

@@ -14,12 +14,14 @@
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width,initial-scale=1.0">
     <meta name="viewport" content="width=device-width,initial-scale=1.0">
     <link rel="icon" href="<%= BASE_URL %>favicon.ico">
     <link rel="icon" href="<%= BASE_URL %>favicon.ico">
+    <!-- 首屏加载样式 -->
+    <link rel="stylesheet" href="<%= BASE_URL %>indexLoading.css" type="text/css">
+    
     <!-- 万达置顶条 -->
     <!-- 万达置顶条 -->
     <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.js"></script>
     <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.js"></script>
     <link rel="stylesheet" href="http://sso4pub.wanda-dev.cn/Styles/floatMenu.css" type="text/css">
     <link rel="stylesheet" href="http://sso4pub.wanda-dev.cn/Styles/floatMenu.css" type="text/css">
     <script src="http://sso4pub.wanda-dev.cn/Scripts/common.js" type="text/javascript"></script>
     <script src="http://sso4pub.wanda-dev.cn/Scripts/common.js" type="text/javascript"></script>
     <script src="<%= BASE_URL %>systemConf.js"></script>
     <script src="<%= BASE_URL %>systemConf.js"></script>
-    <script src="<%= BASE_URL %>g.js"></script>
     <title>万达广场管理说明书</title>
     <title>万达广场管理说明书</title>
     <style>
     <style>
         .map-p-label {
         .map-p-label {
@@ -118,7 +120,19 @@
     </noscript>
     </noscript>
     <!-- 置顶条问题 -->
     <!-- 置顶条问题 -->
     <div style="height:26px;background-color:#efefef;padding:0 10px" id="wd-fm"></div>
     <div style="height:26px;background-color:#efefef;padding:0 10px" id="wd-fm"></div>
-    <div id="app"></div>
+    <div id="app">
+        <!-- 首屏加载,只在main.ts中写时,页面还是有很长时间的空白,故在此也写首屏加载 -->
+            <div class="p-index-loading">
+                <ul class="p-index-loading-box">
+                    <li class="p-index-loading-list p-index-loading-list-1" />
+                    <li class="p-index-loading-list p-index-loading-list-2" />
+                    <li class="p-index-loading-list p-index-loading-list-3" />
+                    <li class="p-index-loading-list p-index-loading-list-4" />
+                    <li class="p-index-loading-list p-index-loading-list-5" />
+                    <li class="p-index-loading-list p-index-loading-list-6" />
+                </ul>
+            </div>
+    </div>
     <script>
     <script>
         // 指定条问题
         // 指定条问题
         var wd_fm_info = {
         var wd_fm_info = {

+ 84 - 0
public/indexLoading.css

@@ -0,0 +1,84 @@
+.p-index-loading {
+    position: fixed;
+    left: 0;
+    top: 0;
+    background-color: white;
+    width: 100%;
+    height: 100%;
+    z-index: 9000;
+}
+.p-index-loading .p-index-loading-box {
+    position: absolute;
+    top: 50%;
+    left: 50%;
+    display: flex;
+    justify-content: center;
+    align-items: center;
+    width: 200px;
+    height: 50px;
+    transform: translate(-100px, -60px);
+    z-index: 2001;
+}
+.p-index-loading .p-index-loading-box .p-index-loading-list {
+    border-radius: 4px;
+    width: 6px;
+    height: 100%;
+    background-color: #0091ff;
+}
+.p-index-loading .p-index-loading-box .p-index-loading-list + .p-index-loading-list {
+    margin-left: 4px;
+}
+.p-index-loading .p-index-loading-box .p-index-loading-list-1 {
+    animation: indexLoading 0.8s ease-in-out 200ms infinite alternate;
+}
+.p-index-loading .p-index-loading-box .p-index-loading-list-2 {
+    animation: indexLoading 0.8s ease-in-out 400ms infinite alternate;
+}
+.p-index-loading .p-index-loading-box .p-index-loading-list-3 {
+    animation: indexLoading 0.8s ease-in-out 600ms infinite alternate;
+}
+.p-index-loading .p-index-loading-box .p-index-loading-list-4 {
+    animation: indexLoading 0.8s ease-in-out 800ms infinite alternate;
+}
+.p-index-loading .p-index-loading-box .p-index-loading-list-5 {
+    animation: indexLoading 0.8s ease-in-out 1000ms infinite alternate;
+}
+.p-index-loading .p-index-loading-box .p-index-loading-list-6 {
+    animation: indexLoading 0.8s ease-in-out 1200ms infinite alternate;
+}
+@-moz-keyframes indexLoading {
+    0%,
+    100% {
+        transform: scaleY(1);
+    }
+    50% {
+        transform: scaleY(0.4);
+    }
+}
+@-webkit-keyframes indexLoading {
+    0%,
+    100% {
+        transform: scaleY(1);
+    }
+    50% {
+        transform: scaleY(0.4);
+    }
+}
+@-o-keyframes indexLoading {
+    0%,
+    100% {
+        transform: scaleY(1);
+    }
+    50% {
+        transform: scaleY(0.4);
+    }
+}
+@keyframes indexLoading {
+    0%,
+    100% {
+        transform: scaleY(1);
+    }
+    50% {
+        transform: scaleY(0.4);
+    }
+}

+ 45 - 45
src/components/Legend/src/legend.vue

@@ -136,50 +136,50 @@ export default {
             interval: 10 * 60 * 1000, //定时器时长,默认 10分钟
             interval: 10 * 60 * 1000, //定时器时长,默认 10分钟
             timer: null, //保存定时器
             timer: null, //保存定时器
             timer1: null,
             timer1: null,
-            tableHeigth: 300 // 编辑图例框得高度
+            tableHeigth: 300, // 编辑图例框得高度
         }
         }
     },
     },
     computed: {
     computed: {
-        ...mapGetters(['planNum', 'typeNum', 'plazaId', 'fmapID', 'floorSelect', 'isMessage', 'ssoToken', 'showView', 'legendTable'])
+        ...mapGetters(['planNum', 'typeNum', 'plazaId', 'fmapID', 'floorSelect', 'isMessage', 'ssoToken', 'showView', 'legendTable']),
     },
     },
     props: {
     props: {
         floors: {
         floors: {
             //原理图中有数据楼层
             //原理图中有数据楼层
             default: () => {
             default: () => {
-                []
+                ;[]
             },
             },
-            type: Array
+            type: Array,
         },
         },
         type: {
         type: {
             // 原理图类型 == 0 ;
             // 原理图类型 == 0 ;
             default: '1',
             default: '1',
-            type: String
+            type: String,
         },
         },
         systemName: {
         systemName: {
             default: '',
             default: '',
-            type: String
+            type: String,
         },
         },
         categoryId: {
         categoryId: {
             default: '',
             default: '',
-            type: String
+            type: String,
         },
         },
         editTips: {
         editTips: {
             // 编辑器文案
             // 编辑器文案
             type: String,
             type: String,
-            default: ''
+            default: '',
         },
         },
         // 区分lengend 在外边 0 还是弹窗内部 1
         // 区分lengend 在外边 0 还是弹窗内部 1
         innerLeng: {
         innerLeng: {
             type: Number,
             type: Number,
-            default: 0
+            default: 0,
         },
         },
         // 弹窗组件内部传入的楼层信息
         // 弹窗组件内部传入的楼层信息
         floorInfo: {
         floorInfo: {
             type: Object,
             type: Object,
             default() {
             default() {
                 return {}
                 return {}
-            }
-        }
+            },
+        },
     },
     },
     components: { lengendView, legendRemarks, lengendEdit },
     components: { lengendView, legendRemarks, lengendEdit },
     watch: {
     watch: {
@@ -194,7 +194,7 @@ export default {
                     }, this.interval)
                     }, this.interval)
                 }
                 }
             },
             },
-            deep: true
+            deep: true,
         },
         },
         '$store.state.categoryId': {
         '$store.state.categoryId': {
             handler(newV, oldV) {
             handler(newV, oldV) {
@@ -206,7 +206,7 @@ export default {
                     }, this.interval)
                     }, this.interval)
                 }
                 }
             },
             },
-            deep: true
+            deep: true,
         },
         },
         // 弹窗组件内传入floorInfo,查询 getDraftNum
         // 弹窗组件内传入floorInfo,查询 getDraftNum
         floorInfo: {
         floorInfo: {
@@ -219,13 +219,13 @@ export default {
                     }, this.interval)
                     }, this.interval)
                 }
                 }
             },
             },
-            deep: true
-        }
+            deep: true,
+        },
     },
     },
     '$refs.viewLengend': {
     '$refs.viewLengend': {
         handler(newV, oldV) {
         handler(newV, oldV) {
             this.$refs.viewLengend.setSelected()
             this.$refs.viewLengend.setSelected()
-        }
+        },
     },
     },
     methods: {
     methods: {
         /**
         /**
@@ -247,7 +247,7 @@ export default {
                 Filters: `projectId='${this.plazaId}';isPub=false;BuildingId='1';categoryId='${categoryId}';floorId='${floorId}'`,
                 Filters: `projectId='${this.plazaId}';isPub=false;BuildingId='1';categoryId='${categoryId}';floorId='${floorId}'`,
                 PageNumber: 1,
                 PageNumber: 1,
                 PageSize: 500,
                 PageSize: 500,
-                Projection: ['floorId']
+                Projection: ['floorId'],
             }
             }
             try {
             try {
                 // 调用接口
                 // 调用接口
@@ -264,8 +264,8 @@ export default {
         },
         },
         formatFloor() {
         formatFloor() {
             this.floorSelectAble = []
             this.floorSelectAble = []
-            this.floorSelectAble = this.floorSelect.filter(item => {
-                const hit = this.floors.find(i => i.gname == item.id)
+            this.floorSelectAble = this.floorSelect.filter((item) => {
+                const hit = this.floors.find((i) => i.gname == item.id)
                 return !hit
                 return !hit
             })
             })
         },
         },
@@ -281,12 +281,12 @@ export default {
                 projectId: this.$store.state.plazaId,
                 projectId: this.$store.state.plazaId,
                 BuildingID: '1',
                 BuildingID: '1',
                 Pub: true,
                 Pub: true,
-                FloorID: this.$cookie.get('floorNow')
+                FloorID: this.$cookie.get('floorNow'),
             }
             }
             let data = {}
             let data = {}
-            queryRead({ data, postParams }).then(res => {
-                if (res.data.Data && res.data.Data[0].Note) {
-                    let Res = res.data ? res.data.Data[0].Note : ''
+            queryRead({ data, postParams }).then((res) => {
+                if (res.data) {
+                    let Res = res.data.Data && res.data.Data[0] ? res.data.Data[0].Note : ''
                     if (Res) {
                     if (Res) {
                         this.$store.commit('SETREMARKSTEXT', Res)
                         this.$store.commit('SETREMARKSTEXT', Res)
                     } else {
                     } else {
@@ -353,20 +353,20 @@ export default {
             //弹窗组件点击新增楼层,确认的楼层 楼层字段处理
             //弹窗组件点击新增楼层,确认的楼层 楼层字段处理
             if (this.floor) {
             if (this.floor) {
                 // 从store中筛选出选中的楼层信息
                 // 从store中筛选出选中的楼层信息
-                let floorInfo = this.$store.state.floorsArr.filter(item => item.gname === this.floor)[0]
+                let floorInfo = this.$store.state.floorsArr.filter((item) => item.gname === this.floor)[0]
                 FloorID = this.floor
                 FloorID = this.floor
                 floorName = floorInfo.code
                 floorName = floorInfo.code
                 seq = floorInfo.seq
                 seq = floorInfo.seq
                 categoryId = this.categoryId
                 categoryId = this.categoryId
             }
             }
             const { conf } = window.__systemConf
             const { conf } = window.__systemConf
-            const editerUrl = conf[process.env.NODE_ENV + '_editerUrl'];
-            if(!this.plazaId){
+            const editerUrl = conf[process.env.NODE_ENV + '_editerUrl']
+            if (!this.plazaId) {
                 return
                 return
             }
             }
             let data = `categoryId=${categoryId}&projectId=${this.plazaId}&BuildingID=1&FloorID=${FloorID}&FloorName=${floorName}&fmapID=${this.fmapID}&seq=${seq}&token=${this.ssoToken}`
             let data = `categoryId=${categoryId}&projectId=${this.plazaId}&BuildingID=1&FloorID=${FloorID}&FloorName=${floorName}&fmapID=${this.fmapID}&seq=${seq}&token=${this.ssoToken}`
             let url = editerUrl + 'editer?' + encodeURIComponent(data)
             let url = editerUrl + 'editer?' + encodeURIComponent(data)
-            window.open(url, "edit")
+            window.open(url, 'edit')
         },
         },
         handleSwich(val) {
         handleSwich(val) {
             this.queryView(!val)
             this.queryView(!val)
@@ -387,18 +387,18 @@ export default {
                 projectId: this.$store.state.plazaId,
                 projectId: this.$store.state.plazaId,
                 flag: flag,
                 flag: flag,
                 buildingId: '1',
                 buildingId: '1',
-                floorId: this.$store.state.currentFloor.gname
+                floorId: this.$store.state.currentFloor.gname,
             }
             }
             // 弹窗组件内传入floorInfo,使用其楼层id
             // 弹窗组件内传入floorInfo,使用其楼层id
             this.floorInfo.gname && (data.floorId = this.floorInfo.gname)
             this.floorInfo.gname && (data.floorId = this.floorInfo.gname)
-            queryStatis({ data, postParams }).then(res => {
+            queryStatis({ data, postParams }).then((res) => {
                 this.$store.commit('SETPLANNUM', '')
                 this.$store.commit('SETPLANNUM', '')
                 this.loading = false
                 this.loading = false
                 let viewTable = []
                 let viewTable = []
                 viewTable = res.data.Data ? res.data.Data : []
                 viewTable = res.data.Data ? res.data.Data : []
                 this.$store.commit('SETLEGENDTABLE', viewTable)
                 this.$store.commit('SETLEGENDTABLE', viewTable)
                 if (viewTable.length > 0) {
                 if (viewTable.length > 0) {
-                    viewTable.forEach(el => {
+                    viewTable.forEach((el) => {
                         if (el.Name == '主要设备房') {
                         if (el.Name == '主要设备房') {
                             this.$store.commit('SETPLANNUM', el.Num)
                             this.$store.commit('SETPLANNUM', el.Num)
                         }
                         }
@@ -439,11 +439,11 @@ export default {
                 projectId: this.$store.state.plazaId,
                 projectId: this.$store.state.plazaId,
                 flag: flag,
                 flag: flag,
                 buildingId: '1',
                 buildingId: '1',
-                floorId: this.$store.state.currentFloor.gname
+                floorId: this.$store.state.currentFloor.gname,
             }
             }
             // 弹窗组件内传入floorInfo,使用其楼层id
             // 弹窗组件内传入floorInfo,使用其楼层id
             this.floorInfo.gname && (data.floorId = this.floorInfo.gname)
             this.floorInfo.gname && (data.floorId = this.floorInfo.gname)
-            queryStatis({ data, postParams }).then(res => {
+            queryStatis({ data, postParams }).then((res) => {
                 this.loading1 = false
                 this.loading1 = false
                 this.editTable = res.data.Data ? res.data.Data : []
                 this.editTable = res.data.Data ? res.data.Data : []
             })
             })
@@ -452,48 +452,48 @@ export default {
         queryEdit(val) {
         queryEdit(val) {
             let arr = []
             let arr = []
             if (val.length > 0) {
             if (val.length > 0) {
-                val.forEach(e => {
+                val.forEach((e) => {
                     let obj = {
                     let obj = {
                         BuildingId: '1',
                         BuildingId: '1',
                         Num: Number(e.Num),
                         Num: Number(e.Num),
                         GraphElementId: e.GraphElementId,
                         GraphElementId: e.GraphElementId,
                         FloorId: this.$cookie.get('floorMapId'),
                         FloorId: this.$cookie.get('floorMapId'),
                         ProjectId: e.ProjectId,
                         ProjectId: e.ProjectId,
-                        CategoryId: e.GraphCategoryId
+                        CategoryId: e.GraphCategoryId,
                     }
                     }
                     arr.push(obj)
                     arr.push(obj)
                 })
                 })
             }
             }
             let params = {
             let params = {
                 postParams: {
                 postParams: {
-                    Content: arr
-                }
+                    Content: arr,
+                },
             }
             }
             updateStatis(params)
             updateStatis(params)
-                .then(res => {
+                .then((res) => {
                     if (res.Result == 'success') {
                     if (res.Result == 'success') {
                         this.$message({
                         this.$message({
                             message: '操作成功',
                             message: '操作成功',
-                            type: 'success'
+                            type: 'success',
                         })
                         })
                         this.$store.commit('SETSHOWVIEW', 1)
                         this.$store.commit('SETSHOWVIEW', 1)
                     } else {
                     } else {
                         this.$message({
                         this.$message({
                             message: '操作失败',
                             message: '操作失败',
-                            type: 'error'
+                            type: 'error',
                         })
                         })
                     }
                     }
                 })
                 })
-                .catch(err => {
+                .catch((err) => {
                     this.$message({
                     this.$message({
                         message: err,
                         message: err,
-                        type: 'error'
+                        type: 'error',
                     })
                     })
                 })
                 })
         },
         },
         saveNum(val) {
         saveNum(val) {
             if (val.length > 0) {
             if (val.length > 0) {
-                val.forEach(element => {
+                val.forEach((element) => {
                     element.Modify = element.IsModify
                     element.Modify = element.IsModify
                 })
                 })
                 this.queryEdit(val)
                 this.queryEdit(val)
@@ -526,7 +526,7 @@ export default {
             })
             })
             // 备注
             // 备注
             bus.$off('queryRemarksMethods')
             bus.$off('queryRemarksMethods')
-            bus.$on('queryRemarksMethods', res => {
+            bus.$on('queryRemarksMethods', (res) => {
                 if (res) {
                 if (res) {
                     this.$store.commit('SETREMARKSTEXT', res)
                     this.$store.commit('SETREMARKSTEXT', res)
                 } else {
                 } else {
@@ -557,7 +557,7 @@ export default {
                 dom.style.maxHeight = '434px'
                 dom.style.maxHeight = '434px'
                 this.tableHeigth = '334px'
                 this.tableHeigth = '334px'
             }
             }
-        }
+        },
     },
     },
     mounted() {
     mounted() {
         this.init()
         this.init()
@@ -572,7 +572,7 @@ export default {
         })
         })
         // 设置图例最大高度
         // 设置图例最大高度
         this.setLengedHeight()
         this.setLengedHeight()
-    }
+    },
 }
 }
 </script>
 </script>
 <style lang="less" scoped>
 <style lang="less" scoped>

+ 17 - 6
src/components/viewLengend.vue

@@ -30,6 +30,7 @@
                 ref='dataTable'
                 ref='dataTable'
                 v-if='legendTable.length>=0'
                 v-if='legendTable.length>=0'
                 :data='legendTable'
                 :data='legendTable'
+                :height='tableHeight'
                 tooltip-effect='dark'
                 tooltip-effect='dark'
                 style='width:100%;'
                 style='width:100%;'
                 @selection-change='handleSelectionChange'
                 @selection-change='handleSelectionChange'
@@ -78,7 +79,7 @@ export default {
         return {
         return {
             swich: true,
             swich: true,
             multipleSelection: [],
             multipleSelection: [],
-            key: 0
+            key: 0,
         }
         }
     },
     },
     methods: {
     methods: {
@@ -92,7 +93,7 @@ export default {
         },
         },
         handleSelectionChange(val) {
         handleSelectionChange(val) {
             this.multipleSelection = val
             this.multipleSelection = val
-            const tempArr = val.map(t => {
+            const tempArr = val.map((t) => {
                 return t.GraphElementId
                 return t.GraphElementId
             })
             })
             bus.$emit('changeShow', tempArr)
             bus.$emit('changeShow', tempArr)
@@ -101,13 +102,20 @@ export default {
             this.$emit('changeSwitch', val)
             this.$emit('changeSwitch', val)
         },
         },
         setSelected() {
         setSelected() {
-            this.legendTable.forEach(t => {
+            this.legendTable.forEach((t) => {
                 this.$refs.dataTable.toggleRowSelection(t, true)
                 this.$refs.dataTable.toggleRowSelection(t, true)
             })
             })
-        }
+        },
     },
     },
     computed: {
     computed: {
-        ...mapGetters(['scpzTable', 'legendTable', 'remarksText'])
+        ...mapGetters(['scpzTable', 'legendTable', 'remarksText']),
+        tableHeight() {
+            if (window.screen.height > 1000) {
+                return 500
+            } else {
+                return 334
+            }
+        },
         // initText() {
         // initText() {
         // if (this.defaultComment) {
         // if (this.defaultComment) {
         //     return this.defaultComment
         //     return this.defaultComment
@@ -120,7 +128,7 @@ export default {
     updated() {
     updated() {
         this.setSelected()
         this.setSelected()
     },
     },
-    created() {}
+    created() {},
 }
 }
 </script>
 </script>
 <style lang="less" scoped>
 <style lang="less" scoped>
@@ -203,6 +211,9 @@ export default {
             border: 1px solid rgba(255, 77, 79, 0.5) !important;
             border: 1px solid rgba(255, 77, 79, 0.5) !important;
         }
         }
     }
     }
+    .el-table--scrollable-x .el-table__body-wrapper {
+        overflow-x: hidden;
+    }
 }
 }
 </style>
 </style>
 
 

+ 12 - 0
src/main.ts

@@ -43,6 +43,18 @@ const username = 'lengqiang'
 //     }
 //     }
 //     next()
 //     next()
 // })
 // })
+// 注册首屏加载
+import { IndexLoading } from 'meri-design'
+const indexLoading = IndexLoading();
+// 注册关闭方法,需要手动关闭
+Vue.prototype.$removeIndexLoading = () => {
+    IndexLoading.remove(indexLoading)
+}
+document.addEventListener('readystatechange',()=>{
+    if (document.readyState === 'complete') {
+        IndexLoading.remove(indexLoading)
+    }
+})
 
 
 
 
 new Vue({
 new Vue({

+ 26 - 26
vue.config.js

@@ -1,17 +1,17 @@
-const CompressionPlugin = require('compression-webpack-plugin')
+const CompressionPlugin = require("compression-webpack-plugin")
 module.exports = {
 module.exports = {
     devServer: {
     devServer: {
         port: 8090,
         port: 8090,
         proxy: {
         proxy: {
-            '/data': {
-                // target: 'http://60.205.177.43',
-                target: 'http://10.199.143.126',
+            "/data": {
+                target: "http://60.205.177.43",
+                // target: 'http://10.199.143.126',
                 // target: 'http://192.168.200.11:9003', //yll
                 // target: 'http://192.168.200.11:9003', //yll
                 // target: 'http://localhost:6040/data/',
                 // target: 'http://localhost:6040/data/',
                 changeOrigin: true,
                 changeOrigin: true,
                 secure: false,
                 secure: false,
                 pathRewrite: {
                 pathRewrite: {
-                    '^/data': '/data',
+                    "^/data": "/data",
                 },
                 },
             },
             },
             // // 工程信息化服务
             // // 工程信息化服务
@@ -24,27 +24,27 @@ module.exports = {
             //     },
             //     },
             // },
             // },
             // 万达蜂鸟服务
             // 万达蜂鸟服务
-            '/wdfn': {
-                target: 'http://map.wanda.cn',
+            "/wdfn": {
+                target: "http://map.wanda.cn",
                 changeOrigin: true,
                 changeOrigin: true,
                 pathRewrite: {
                 pathRewrite: {
-                    '^/wdfn': '/editor',
+                    "^/wdfn": "/editor",
                 },
                 },
             },
             },
             // 图例库服务
             // 图例库服务
-            '/serve': {
+            "/serve": {
                 // target: 'http://192.168.200.87:8088',
                 // target: 'http://192.168.200.87:8088',
-                target: 'http://60.205.177.43:8080',
+                target: "http://60.205.177.43:8080",
                 changeOrigin: true,
                 changeOrigin: true,
                 pathRewrite: {
                 pathRewrite: {
-                    '^/serve': '',
+                    "^/serve": "",
                 },
                 },
             },
             },
-            '/version': {
-                target: 'http://mapapp.wanda.cn/',
+            "/version": {
+                target: "http://mapapp.wanda.cn/",
                 changeOrigin: true,
                 changeOrigin: true,
                 pathRewrite: {
                 pathRewrite: {
-                    '^/version': '/sgmap/mapversion',
+                    "^/version": "/sgmap/mapversion",
                 },
                 },
             },
             },
         },
         },
@@ -56,27 +56,27 @@ module.exports = {
         },
         },
     },
     },
     chainWebpack: (config) => {
     chainWebpack: (config) => {
-        const svgRule = config.module.rule('svg')
+        const svgRule = config.module.rule("svg")
         svgRule.uses.clear()
         svgRule.uses.clear()
         svgRule
         svgRule
-            .use('babel-loader')
-            .loader('babel-loader')
+            .use("babel-loader")
+            .loader("babel-loader")
             .end()
             .end()
-            .use('vue-svg-loader')
-            .loader('vue-svg-loader')
-        config.output.filename('static/js/[name].[hash].js').end()
-        config.output.chunkFilename('static/js/[name].[hash].js').end()
+            .use("vue-svg-loader")
+            .loader("vue-svg-loader")
+        config.output.filename("static/js/[name].[hash].js").end()
+        config.output.chunkFilename("static/js/[name].[hash].js").end()
     },
     },
     lintOnSave: false,
     lintOnSave: false,
-    publicPath: '/wandaBmGuide',
+    publicPath: "/wandaBmGuide",
     // 打包名称
     // 打包名称
-    outputDir: 'wandaBmGuide',
+    outputDir: "wandaBmGuide",
     // 放置生成的静态资源 (js、css、img、fonts) 的 (相对于 outputDir 的) 目录
     // 放置生成的静态资源 (js、css、img、fonts) 的 (相对于 outputDir 的) 目录
-    assetsDir: 'static',
+    assetsDir: "static",
     transpileDependencies: [
     transpileDependencies: [
-        '@saga-web', // 指定对第三方依赖包进行babel-polyfill处理
+        "@saga-web", // 指定对第三方依赖包进行babel-polyfill处理
         "@ant-design",
         "@ant-design",
-        "element-ui"
+        "element-ui",
     ],
     ],
     productionSourceMap: false, //
     productionSourceMap: false, //
     // CSS 相关选项
     // CSS 相关选项