|
@@ -93,6 +93,11 @@
|
|
<div style="width: 100%;height: 300px;">
|
|
<div style="width: 100%;height: 300px;">
|
|
<qqMapBox ref="qqMapBox" @setDot="setDot" />
|
|
<qqMapBox ref="qqMapBox" @setDot="setDot" />
|
|
</div>
|
|
</div>
|
|
|
|
+ <!-- 手绘图的位置 -->
|
|
|
|
+ <el-form-item label="手绘图定位:" prop="address"></el-form-item>
|
|
|
|
+ <div style="width: 100%;height: 600px;">
|
|
|
|
+ <imageContainer ref="imageContainer"></imageContainer>
|
|
|
|
+ </div>
|
|
</el-form>
|
|
</el-form>
|
|
</div>
|
|
</div>
|
|
<span slot="footer" class="dialog-footer" v-if="formStatus==1">
|
|
<span slot="footer" class="dialog-footer" v-if="formStatus==1">
|
|
@@ -120,10 +125,11 @@ import {
|
|
listTableApi
|
|
listTableApi
|
|
} from '@/api/CURD'
|
|
} from '@/api/CURD'
|
|
import qqMapBox from '@/myComponents/qqMap.vue'
|
|
import qqMapBox from '@/myComponents/qqMap.vue'
|
|
|
|
+ import imageContainer from './imageContainer.vue';
|
|
export default {
|
|
export default {
|
|
name: "addAndEdit",
|
|
name: "addAndEdit",
|
|
dicts: [],
|
|
dicts: [],
|
|
- components: {qqMapBox},
|
|
|
|
|
|
+ components: {qqMapBox,imageContainer},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
title: "",
|
|
title: "",
|
|
@@ -136,7 +142,8 @@ export default {
|
|
add: '/merchant/merchantMapMark/insertOrUpdate', // 新增地址
|
|
add: '/merchant/merchantMapMark/insertOrUpdate', // 新增地址
|
|
details: '', // 详情地址
|
|
details: '', // 详情地址
|
|
edit: '/merchant/merchantMapMark/insertOrUpdate', // 编辑地址
|
|
edit: '/merchant/merchantMapMark/insertOrUpdate', // 编辑地址
|
|
- pointTypeList: '/merchant/merchantMapMarkType/list'
|
|
|
|
|
|
+ pointTypeList: '/merchant/merchantMapMarkType/list',
|
|
|
|
+ imageUrl: '/merchant/merchantMap/info'
|
|
},
|
|
},
|
|
form: {
|
|
form: {
|
|
id: undefined,
|
|
id: undefined,
|
|
@@ -187,6 +194,15 @@ export default {
|
|
...row,
|
|
...row,
|
|
imgUrl: row.imgUrl?row.imgUrl.split(','):[]
|
|
imgUrl: row.imgUrl?row.imgUrl.split(','):[]
|
|
}
|
|
}
|
|
|
|
+ let res1 = await getTableDeatilsByIdApi(this.configUrl.imageUrl)
|
|
|
|
+ if(res1.code == 200){
|
|
|
|
+ this.$refs.imageContainer.initData(res1.data.imgUrl)
|
|
|
|
+ }else {
|
|
|
|
+ this.$message.error('获取手绘图失败!!!');
|
|
|
|
+ this.formStatus = 2
|
|
|
|
+ this.loading = false
|
|
|
|
+ this.open = false;
|
|
|
|
+ }
|
|
this.$set(this,'form',obj)
|
|
this.$set(this,'form',obj)
|
|
this.formStatus = 1
|
|
this.formStatus = 1
|
|
this.$nextTick(()=>{
|
|
this.$nextTick(()=>{
|
|
@@ -214,6 +230,7 @@ export default {
|
|
this.loading = true
|
|
this.loading = true
|
|
try {
|
|
try {
|
|
let res = await getTableDeatilsByIdApi(this.configUrl.details,{id})
|
|
let res = await getTableDeatilsByIdApi(this.configUrl.details,{id})
|
|
|
|
+
|
|
if(res.code == 200) {
|
|
if(res.code == 200) {
|
|
let obj = {
|
|
let obj = {
|
|
...res.data,
|
|
...res.data,
|
|
@@ -237,6 +254,14 @@ export default {
|
|
this.loading = false
|
|
this.loading = false
|
|
this.open = false;
|
|
this.open = false;
|
|
}
|
|
}
|
|
|
|
+ if(res1.code == 200){
|
|
|
|
+ this.$refs.imageContainer.initData(res1.data.url)
|
|
|
|
+ }else {
|
|
|
|
+ this.$message.error('获取手绘图失败!!!');
|
|
|
|
+ this.formStatus = 2
|
|
|
|
+ this.loading = false
|
|
|
|
+ this.open = false;
|
|
|
|
+ }
|
|
this.loading = false
|
|
this.loading = false
|
|
} catch (error) {
|
|
} catch (error) {
|
|
console.error('获取详情失败!!!!',error)
|
|
console.error('获取详情失败!!!!',error)
|