Commit 492a0cf2 authored by 何鹏程's avatar 何鹏程

修改bug

parent aab0fa09
......@@ -473,7 +473,6 @@ export default {
beforeAvatarUpload(file) {
const isJPG = file.type === 'image/jpeg' || file.type === 'image/jpg' || file.type === 'image/png';
const isLt2M = file.size / 1024 / 1024 < 2;
console.log(file.type)
if (!isJPG) {
this.$message.error('上传车辆图片只能是 jpg/jpeg/png 格式!');
}
......
......@@ -150,7 +150,6 @@ export default {
computed: {
title: function() {
let str = '武汉市医疗急救绿道信息'
console.log(this.type)
if (this.type === 'add') {
str += '填写'
} else if (this.type === 'update') {
......
......@@ -40,7 +40,6 @@ export default {
watch: {
},
mounted() {
console.log(this.menuMap)
this.initNav()
// this.leftMenu = [
// {
......
......@@ -119,7 +119,6 @@ export default {
computed: {
title: function() {
let str = '武汉市医院急诊科资源信息'
console.log(this.type)
if (this.type === 'add') {
str += '填写'
} else if (this.type === 'update') {
......@@ -192,7 +191,7 @@ export default {
this.loading = true
this.type = type
this.formDisabled = type === 'detail'
if (type === 'update') {
if (type === 'update' || type === 'detail') {
if (!id) {
this.$message.error('id不能为空')
return
......
......@@ -151,7 +151,6 @@ export default {
},
mounted() {
this.init()
console.log('mounted')
},
methods: {
init() {
......@@ -174,7 +173,6 @@ export default {
// 地图上打点
queryEmergencySiteList().then(res => {
if (res.msg === 201) {
console.log(res.respData)
if (res.respData && res.respData.length > 0) {
this.allData = res.respData
this.siteListData = res.respData
......@@ -184,7 +182,6 @@ export default {
const marker = new BMapGL.Marker(point)
map.addOverlay(marker)
marker.addEventListener('click', () => {
console.log('click', item)
this.getSiteListData(item.areaName)
this.$nextTick(() => {
const dataList = this.allData.filter(i => i.id === item.id) || []
......@@ -216,7 +213,6 @@ export default {
}); //建立多边形覆盖物
map.addOverlay(ply); //添加覆盖物
ply.addEventListener('click', () => {
console.log('1111')
that.getSiteListData(districtName)
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment