From a31e3bf1ab4fc5706914da37c04c055040c6b26f Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Wed, 16 Dec 2020 09:43:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=8E=88=E6=9D=83js=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/View/AuthManager/dataempower.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; } - + } })