diff --git a/src/apps/AppMonitoringObject/Add.vue b/src/apps/AppMonitoringObject/Add.vue
index cfe12b47..57bfb0ba 100644
--- a/src/apps/AppMonitoringObject/Add.vue
+++ b/src/apps/AppMonitoringObject/Add.vue
@@ -299,8 +299,10 @@
是否会讲普通话
@@ -374,8 +376,10 @@
是否国外务工
@@ -510,7 +514,7 @@ export default {
},
computed: {
...mapState(['user']),
- isEdit(){
+ isEdit() {
return !!this.$route.query.id
}
},
@@ -573,12 +577,12 @@ export default {
},
// 医疗保险
- basicsCheck(row, i) {
- this.basicsCheckList[i].checked = !this.basicsCheckList[i].checked
+ basicsCheck(row) {
+ row.checked = !row.checked
},
// 保障措施
- guaranteeCheck(row, i) {
- this.guaranteeCheckList[i].checked = !this.guaranteeCheckList[i].checked
+ guaranteeCheck(row) {
+ row.checked = !row.checked
},
nextStep() {
@@ -672,7 +676,7 @@ export default {
if (res.code == 0) {
this.$u.toast(this.$route.query.id ? '保存成功' : '提交成功')
uni.$emit('reload')
- setTimeout(() =>{
+ setTimeout(() => {
if (this.$route.query.id) {
uni.navigateBack({
delta: 2
@@ -704,14 +708,9 @@ export default {
})
res.data.healthyStatusList = res.data.healthyStatus.split(',')
-
- res.data.healthyStatusList.map((item) => {
- this.helthList.map(items => {
- items.checked = item == items.dictValue
- })
+ this.helthList.map(items => {
+ items.checked = res.data.healthyStatusList.includes(items.dictValue)
})
-
-
this.form = {
...this.form,
...res.data
diff --git a/src/apps/AppMonitoringObject/AppMonitoringObject.vue b/src/apps/AppMonitoringObject/AppMonitoringObject.vue
index 74593f44..c19cc5cf 100644
--- a/src/apps/AppMonitoringObject/AppMonitoringObject.vue
+++ b/src/apps/AppMonitoringObject/AppMonitoringObject.vue
@@ -94,7 +94,7 @@ export default {
isGirdUser() {
this.isAdmin = false
this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => {
- if (res.code == 0) {
+ if (res?.data) {
if (res.data.checkType != '0') {
this.isAdmin = true
this.checkType = res.data.checkType