数据授权js错误修正

master
zhengyongxing 4 years ago
parent 9736a32013
commit a31e3bf1ab

@ -171,9 +171,9 @@
,util = layui.util;
var data1 =data;
var data2 = [];
if (JSON.parse(data1).data_president) {
var data2 = JSON.parse(data1).data_president.split(",");
data2 = JSON.parse(data1).data_president.split(",");
}
// var dataTransfers = transfer.getData('key123');
// $('#promote_data').val(JSON.stringify(dataTransfers));
@ -210,13 +210,12 @@
}
// data2.push(data[0]['value']);
console.log(data2)
transfer.reload('key123',{elem: '#test4',data: JSON.parse(data1).list,title: ['全部成员', '选中成员'],showSearch: true,value: data2,id: 'key123'});
dataTransfer = transfer.getData('key123');
$('#promote_data').val(JSON.stringify(dataTransfer));
return;
}
}
})

Loading…
Cancel
Save