Merge remote-tracking branch 'origin/master'
Showing
3 changed files
with
33 additions
and
12 deletions
| ... | @@ -160,9 +160,22 @@ ol, ul { list-style:none; } | ... | @@ -160,9 +160,22 @@ ol, ul { list-style:none; } |
| 160 | margin: 0; | 160 | margin: 0; |
| 161 | padding: 7px 16px; | 161 | padding: 7px 16px; |
| 162 | cursor: pointer; | 162 | cursor: pointer; |
| 163 | position: relative; | ||
| 164 | .childUl{ | ||
| 165 | display: none; | ||
| 166 | position: absolute; | ||
| 167 | left: 92px !important; | ||
| 168 | top: 0!important; | ||
| 169 | li{ | ||
| 170 | width: 76px; | ||
| 171 | } | ||
| 172 | } | ||
| 163 | } | 173 | } |
| 164 | li:hover { | 174 | li:hover { |
| 165 | background: #eee; | 175 | background: #eee; |
| 176 | >.childUl{ | ||
| 177 | display: block; | ||
| 178 | } | ||
| 166 | } | 179 | } |
| 167 | .noEdit{ | 180 | .noEdit{ |
| 168 | color: #E6E6E6; | 181 | color: #E6E6E6; | ... | ... |
| ... | @@ -58,7 +58,15 @@ | ... | @@ -58,7 +58,15 @@ |
| 58 | > | 58 | > |
| 59 | <li @click="postionToMap">定位</li> | 59 | <li @click="postionToMap">定位</li> |
| 60 | <li @click="importGeo">导入图形</li> | 60 | <li @click="importGeo">导入图形</li> |
| 61 | <li @click="exportToShp">导出图形</li> | 61 | <li @click="exportToShp"> |
| 62 | 导出图形 | ||
| 63 | <ul class="contextmenu childUl"> | ||
| 64 | <li>文本</li> | ||
| 65 | <li>CAD</li> | ||
| 66 | <li>Excel</li> | ||
| 67 | <li>ESRI Shape</li> | ||
| 68 | </ul> | ||
| 69 | </li> | ||
| 62 | <li v-show="isZD">导入属性</li> | 70 | <li v-show="isZD">导入属性</li> |
| 63 | <li v-show="!isZD">导入楼盘</li> | 71 | <li v-show="!isZD">导入楼盘</li> |
| 64 | <li>重叠分析</li> | 72 | <li>重叠分析</li> | ... | ... |
| ... | @@ -2,7 +2,7 @@ import store from '../../store/index' | ... | @@ -2,7 +2,7 @@ import store from '../../store/index' |
| 2 | import axios from 'axios' | 2 | import axios from 'axios' |
| 3 | import router from '../../router' | 3 | import router from '../../router' |
| 4 | import {Message, MessageBox} from 'element-ui' | 4 | import {Message, MessageBox} from 'element-ui' |
| 5 | import { Loading } from 'element-ui'; | 5 | // import { Loading } from 'element-ui'; |
| 6 | import {httpStatus} from '@/api/config' | 6 | import {httpStatus} from '@/api/config' |
| 7 | 7 | ||
| 8 | // 创建一个 axios 实例 | 8 | // 创建一个 axios 实例 |
| ... | @@ -19,7 +19,7 @@ const service = axios.create({ | ... | @@ -19,7 +19,7 @@ const service = axios.create({ |
| 19 | function errorLog() { | 19 | function errorLog() { |
| 20 | //请求完成关闭loading | 20 | //请求完成关闭loading |
| 21 | // this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭 | 21 | // this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭 |
| 22 | loadingInstance.close(); | 22 | // loadingInstance.close(); |
| 23 | // }); | 23 | // }); |
| 24 | MessageBox.alert('报错了请联系管理员', '消息提示', { | 24 | MessageBox.alert('报错了请联系管理员', '消息提示', { |
| 25 | confirmButtonText: '确定', | 25 | confirmButtonText: '确定', |
| ... | @@ -27,7 +27,7 @@ function errorLog() { | ... | @@ -27,7 +27,7 @@ function errorLog() { |
| 27 | }) | 27 | }) |
| 28 | } | 28 | } |
| 29 | //定义loading | 29 | //定义loading |
| 30 | let loadingInstance = null | 30 | // let loadingInstance = null |
| 31 | 31 | ||
| 32 | // 请求拦截器 | 32 | // 请求拦截器 |
| 33 | service.interceptors.request.use( | 33 | service.interceptors.request.use( |
| ... | @@ -37,12 +37,12 @@ service.interceptors.request.use( | ... | @@ -37,12 +37,12 @@ service.interceptors.request.use( |
| 37 | // 让每个请求携带token-- ['X-Token']为自定义key 请根据实际情况自行修改 | 37 | // 让每个请求携带token-- ['X-Token']为自定义key 请根据实际情况自行修改 |
| 38 | // config.headers['authkey'] = token | 38 | // config.headers['authkey'] = token |
| 39 | //请求发送成功显示loading | 39 | //请求发送成功显示loading |
| 40 | loadingInstance = Loading.service({ | 40 | // loadingInstance = Loading.service({ |
| 41 | lock: true, | 41 | // lock: true, |
| 42 | text: 'Loading', | 42 | // text: 'Loading', |
| 43 | spinner: 'el-icon-loading', | 43 | // spinner: 'el-icon-loading', |
| 44 | background: 'rgba(0, 0, 0, 0.5)' | 44 | // background: 'rgba(0, 0, 0, 0.5)' |
| 45 | }); | 45 | // }); |
| 46 | return config | 46 | return config |
| 47 | }, | 47 | }, |
| 48 | error => { | 48 | error => { |
| ... | @@ -59,7 +59,7 @@ service.interceptors.response.use( | ... | @@ -59,7 +59,7 @@ service.interceptors.response.use( |
| 59 | const {code} = dataAxios | 59 | const {code} = dataAxios |
| 60 | //请求完成关闭loading | 60 | //请求完成关闭loading |
| 61 | // this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭 | 61 | // this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭 |
| 62 | loadingInstance.close(); | 62 | // loadingInstance.close(); |
| 63 | // }); | 63 | // }); |
| 64 | // 根据 code 进行判断 | 64 | // 根据 code 进行判断 |
| 65 | if (code === undefined) { | 65 | if (code === undefined) { |
| ... | @@ -90,7 +90,7 @@ service.interceptors.response.use( | ... | @@ -90,7 +90,7 @@ service.interceptors.response.use( |
| 90 | }, | 90 | }, |
| 91 | error => { | 91 | error => { |
| 92 | if (error && error.response) { | 92 | if (error && error.response) { |
| 93 | loadingInstance.close(); | 93 | // loadingInstance.close(); |
| 94 | switch (error.response.status) { | 94 | switch (error.response.status) { |
| 95 | case 400: | 95 | case 400: |
| 96 | error.message = '请求错误'; | 96 | error.message = '请求错误'; | ... | ... |
-
Please register or sign in to post a comment