清除无效引用

This commit is contained in:
aixianling
2022-06-08 18:54:05 +08:00
parent d92ab82a8f
commit 9f3aa131a0
2 changed files with 11 additions and 5 deletions

View File

@@ -34,7 +34,6 @@ export default {
girdMemberManageList: [],
girdMemberList: []
},
detailInfo: {},
fromType: 'add', //add新增 edit编辑,
}
},
@@ -43,6 +42,14 @@ export default {
this.fromType = option.fromType
this.getDetail()
},
computed: {
gmmList() {//网格长集合
},
gmList() {//网格员集合
}
},
onShow() {
if (this.fromType == 'add') {
document.title = '添加网格'
@@ -54,13 +61,12 @@ export default {
getDetail() {
this.$http.post(`/app/appgirdinfo/queryDetailById?id=${this.id}`).then((res) => {
if (res?.data) {
this.detailInfo = res.data
if (this.fromType == 'edit') {
this.form = res.data
}
if (this.fromType == 'add') {
this.form.parentGirdId = this.detailInfo.id
this.form.parentGirdName = this.detailInfo.girdName
this.form.parentGirdId = res.data.id
this.form.parentGirdName = res.data.girdName
this.$forceUpdate()
}
}