<div>{{ formatList(1) }}</div> methods: { // 回显数据字典 selectDictLabel (datas, value){ var actions = []; if(datas!=null){ Object.keys(datas).map((key) => { if (datas[key].referenceType == value) { actions.push(datas[key].referenceValue); return false; } }); } return actions.join(''); }, //使用回显数据字典的方法 formatList (row) { let list=[] list=this.nyData.briefingReferenceList; return this.selectDictLabel( list, row); } }
标签:vue,return,绑定,list,actions,key,页面,datas,字典 From: https://www.cnblogs.com/hxd9588/p/17148936.html