### 需求:当明细表中系统按钮选择值后,给当前行的某个字段赋默认值
```
let detailData = this.getValue("qms_mode_demo_mp1_540");
detailData.forEach((val,i)=>{
if(val.value2.content && val.value2.content.length > 0){
val.value1 = val.value2.content[0].name;
}else{
val.value1 = "";
}
})
```
![](https://img.kancloud.cn/7a/3a/7a3adf4537ceb3ac1cc4ca6145e3e862_2172x318.png)