对接大部分接口
This commit is contained in:
@@ -8,6 +8,13 @@ import fdEdge from "../assets/fdEdge.json"
|
||||
|
||||
export default {
|
||||
name: "fdMap",
|
||||
model: {
|
||||
prop: "ins",
|
||||
event: "input"
|
||||
},
|
||||
props: {
|
||||
ins: {default: null}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
map: null
|
||||
@@ -54,6 +61,7 @@ export default {
|
||||
},
|
||||
]
|
||||
})
|
||||
this.$emit("input", this.map)
|
||||
} else if (c < 5) setTimeout(() => this.init(++c), 500)
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<section class="fengduHead">
|
||||
<div class="content flex">
|
||||
<ai-area class="fill" v-model="current" :mask="false" :root="currentRoot">
|
||||
<ai-area class="fill" v-model="current" :mask="false" :root="currentRoot" @area="v=>$emit('pick',v)">
|
||||
<template slot-scope="{areaname}">
|
||||
<el-input class="areaPicker" :value="areaname" readonly suffix-icon="el-icon-arrow-down"/>
|
||||
</template>
|
||||
@@ -45,11 +45,11 @@ export default {
|
||||
active: {
|
||||
immediate: true,
|
||||
handler(v) {
|
||||
if (v != this.current) this.current = this.$copy(this.active)
|
||||
if (v && v != this.current) this.current = this.$copy(this.active)
|
||||
}
|
||||
},
|
||||
current(v) {
|
||||
this.$emit("change", v)
|
||||
v != this.active && this.$emit("change", v)
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
||||
Reference in New Issue
Block a user