diff --git a/Application/Admin/View/AuthManager/dataempower.html b/Application/Admin/View/AuthManager/dataempower.html index a016a6dab..b15a6447e 100644 --- a/Application/Admin/View/AuthManager/dataempower.html +++ b/Application/Admin/View/AuthManager/dataempower.html @@ -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; } - + } })