Merge pull request '数据授权js错误修正' (#16) from feature/add_item into master

Reviewed-on: http://8.136.139.249:3000/wmtx/platform/pulls/16
master
廖金灵 4 years ago
commit 72135079fa

@ -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,7 +210,6 @@
}
// 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));

Loading…
Cancel
Save