This commit is contained in:
shijingjing
2022-04-20 14:54:10 +08:00
parent d7f6ac5270
commit e863829c5b

View File

@@ -53,6 +53,7 @@ export default {
}
},
onShow() {
this.getTitle()
this.$dict.load('agriculturalType')
this.getUserList()
},
@@ -73,9 +74,8 @@ export default {
id: this.id,
}
}).then(res => {
if(res.code == 0) {
// this.data = res.data
this.form = JSON.parse(JSON.stringify(res.data))
if(res?.data) {
this.form = res.data && JSON.parse(JSON.stringify(res.data))
}
})
},
@@ -123,6 +123,14 @@ export default {
}
}
})
},
getTitle() {
if (this.id) {
uni.setNavigationBarTitle({
title: '修改联动记录'
});
}
}
}