|
@@ -299,6 +299,10 @@ Page({
|
|
|
const index = arr[1]
|
|
|
const raceList = this.data.raceList;
|
|
|
raceList[index][modelName] = value;
|
|
|
+ if (modelName === 'ground_id') {
|
|
|
+ const ground = this.data.groundList.find(f => f._id === value)
|
|
|
+ if (ground && ground.referee_id) raceList[index]['referee_id'] = ground.referee_id
|
|
|
+ }
|
|
|
this.setData({ raceList })
|
|
|
|
|
|
},
|