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

修改bug

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