BUG 30003

This commit is contained in:
aixianling
2022-06-06 11:22:15 +08:00
parent 34dd2fcbcc
commit 94331d6ba0
9 changed files with 274 additions and 322 deletions

View File

@@ -1,7 +1,7 @@
<template>
<ai-detail class="content-add">
<template slot="title">
<ai-title :title="params.id ? '编辑' : '添加'" isShowBack isShowBottomBorder @onBackClick="cancel(false)">
<ai-title :title="$route.query.id ? '编辑' : '添加'" isShowBack isShowBottomBorder @onBackClick="cancel(false)">
</ai-title>
</template>
<template slot="content">
@@ -35,7 +35,6 @@
props: {
instance: Function,
dict: Object,
params: Object
},
data () {
@@ -51,9 +50,9 @@
},
created () {
if (this.params && this.params.id) {
this.id = this.params.id
this.getInfo(this.params.id)
if ( this.$route.query.id) {
this.id = this.$route.query.id
this.getInfo(this.$route.query.id)
}
},
@@ -76,7 +75,7 @@
this.isLoading = true
this.instance.post(`/app/appgirdmemberapply/addOrUpdate`, {
...this.form,
id: this.params.id || ''
id: this.$route.query.id || ''
}).then(res => {
if (res.code == 0) {
this.$message.success('提交成功')