数据授权修改

master
zhengyongxing 5 years ago
parent 24e322c139
commit 3aa3c3f66b

@ -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'); //获取右侧数据

Loading…
Cancel
Save