对接大部分接口

This commit is contained in:
aixianling
2023-10-23 10:48:30 +08:00
parent 189e7621ad
commit 8c07c9a6cb
5 changed files with 232 additions and 139 deletions

View File

@@ -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() {