ES6 find
{
title: this.$t('nameVietnamese'),//名称-越
render: (h, obj) => {
let myArr = obj.row.giftNameLangues;
let item = myArr.find(value => value.language == 'vi');
return h('span', {}, item.name);
}
},
JSON.parse
let obj = JSON.parse(JSON.stringify(this.newNationalRulesInfo))
this.addUserBaseInfo.countrySettingList.push(obj);
this.newNationalRules = false;
forEach
if(this.auditBaseInfo.countrySettingList.length != 0){
this.auditBaseInfo.countrySettingList.forEach((item, index) => {
if(item.country == this.auditNewNationalRulesInfo.country){
this.$Message.error('该国家已设置!');
}else{
this.confirmModal = true;
}
});
}else{
this.confirmModal = true;
}
网友评论