
点击刷新实现当前行内数据刷新
// 单行刷新
async refreshInfo(row,index){
let devid = row.dev_id;
singleRefresh({dev_id:row.dev_id}).then(res=>{
if(res.data.code===200){
setTimeout(async () => {
const res1 = await devlistInfo({search_key:'dev_id',search_value:devid});
let arr = [];
res1.data.device_infos.forEach(devInfo=>{
const workinfo = res1.data.device_workinfos.find(devWorkinfo=>devWorkinfo.dev_id === devInfo.dev_id);
if(workinfo){
const infoWorkinfo = {...devInfo,...workinfo};
arr.push(infoWorkinfo);
};
//更新当前行数

&spm=1001.2101.3001.5002&articleId=138707472&d=1&t=3&u=4e1602f91be545a1b455aabcf1ce048d)
3880

被折叠的 条评论
为什么被折叠?



