diff --git a/Application/Admin/View/AuthManager/dataempower.html b/Application/Admin/View/AuthManager/dataempower.html index 0db79a511..9e292dc91 100644 --- a/Application/Admin/View/AuthManager/dataempower.html +++ b/Application/Admin/View/AuthManager/dataempower.html @@ -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'); //获取右侧数据