Merge branch 'hotfix/dataempower' of wmtx/platform into master

用户数据权限bug修复
master
廖金灵 4 years ago committed by Gogs
commit 725bfa21ec

@ -149,9 +149,37 @@
value: data2, value: data2,
id: 'key123', id: 'key123',
onchange: function(data, index){ onchange: function(data, index){
dataTransfer = transfer.getData('key123'); //获取右侧数据 dataTransfer = transfer.getData('key123'); //获取右侧数据
// layer.alert(JSON.stringify(dataTransfer));
$('#promote_data').val(JSON.stringify(dataTransfer)); if (index == 0) {
for (var i=0;i<data.length;i++) {
data2.push(data[i]['value']);
}
$('#promote_data').val(JSON.stringify(dataTransfer));
return;
} else if (index == 1){
for(var i=0;i<data2.length;i++)
{
console.log(data2[i])
for(var j=0;j<data.length;j++) {
if (data2[i]==data[j]['value']) {
data2.splice(i,1);
i=i-1;
}
}
}
// 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