This commit is contained in:
yanran200730
2022-01-14 10:18:58 +08:00
parent 0ec0d2444c
commit 6da2c9de38
2 changed files with 12 additions and 2 deletions

View File

@@ -75,7 +75,7 @@ import {mapState} from 'vuex'
export default {
name: 'visit',
props: ['id', 'dict', 'instance', 'appId', 'name'],
props: ['id', 'dict', 'instance', 'appId', 'name', 'areaId'],
data() {
return {
@@ -128,6 +128,7 @@ export default {
images: JSON.stringify(this.form.images),
applicationId: this.appId,
name: this.name,
areaId: this.areaId
}).then(res => {
if (res.code === 0) {
this.$message.success('添加成功')

View File

@@ -21,7 +21,16 @@
</ai-wrapper>
</template>
</ai-card>
<component :is="component" :name="params.name || params.name00" :id="params.id" :appId="appId" :dict="dict" :instance="instance" v-if="currIndex === 1"></component>
<component
:is="component"
:name="params.name || params.name00"
:areaId="formData.area"
:id="params.id"
:appId="appId"
:dict="dict"
:instance="instance"
v-if="currIndex === 1">
</component>
</template>
</ai-detail>
</template>