diff --git a/src/main/resources/templates/pages/authorization/depositoryOpen.html b/src/main/resources/templates/pages/authorization/depositoryOpen.html index 69cd6fc7..a7008093 100644 --- a/src/main/resources/templates/pages/authorization/depositoryOpen.html +++ b/src/main/resources/templates/pages/authorization/depositoryOpen.html @@ -167,6 +167,24 @@ skin: 'line', }); + + table.on('row(currentTableFilterForUser)', function (obj) { + let data = obj.data; //得到当前行数据 + $.ajax({ + url: "/repository/findWarehouseVisiblePermission", + type: 'post', + dataType: 'json', + contentType: "application/json;charset=utf-8", + data: JSON.stringify({"type": "person", "uid": data.id}), + success: function (res) { + let data = res.data; + depositoryTree.reload(); + tree.setChecked('depositoryTree', data); + + } + }) + }); + form.on('submit(data-search-btn)', function (data) { data = data.field; let req = {}; @@ -230,7 +248,7 @@ let data = res.data; depositoryTree.reload(); tree.setChecked('depositoryTree', data); - tree.setChecked('postTree',[postId]) + tree.setChecked('postTree', [postId]) } }) }