|
|
|
@ -116,14 +116,17 @@
|
|
|
|
|
,util = layui.util;
|
|
|
|
|
|
|
|
|
|
var data1 =data;
|
|
|
|
|
console.log(JSON.parse(data1).data_president.split(","));
|
|
|
|
|
|
|
|
|
|
if (JSON.parse(data1).data_president) {
|
|
|
|
|
var data2 = JSON.parse(data1).data_president.split(",");
|
|
|
|
|
}
|
|
|
|
|
//显示搜索框
|
|
|
|
|
transfer.render({
|
|
|
|
|
elem: '#test4'
|
|
|
|
|
,data: JSON.parse(data1).list
|
|
|
|
|
,title: ['全部成员', '选中成员']
|
|
|
|
|
,showSearch: true,
|
|
|
|
|
value: JSON.parse(data1).data_president.split(","),
|
|
|
|
|
value: data2,
|
|
|
|
|
id: 'key123',
|
|
|
|
|
onchange: function(data, index){
|
|
|
|
|
dataTransfer = transfer.getData('key123'); //获取右侧数据
|
|
|
|
|