获取人员配置
<h5>获取人员配置</h5>
<ul>
<li>获取人员配置</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://127.0.0.1/strategy/getStaffing?strategyId=1324984522495578113</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>GET</li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">strategyId</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>策略id</td>
</tr>
</tbody>
</table>
<h5>header</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th>值</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">Content-Type</td>
<td>application/json</td>
</tr>
<tr>
<td style="text-align: left;">token</td>
<td>...</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
"msg": null,
"success": true,
"result": {
"defaultCheckedKeys": [
1272357551869911041,
1278592302918098945,
1278911756520579073
],
"tree": [
{
"id": "1",
"parentId": "0",
"name": "镇安水电公司",
"phone": null,
"isLeaf": false,
"children": [
{
"id": "1272357551869911041",
"parentId": "1",
"name": "超级管理员",
"phone": "13550677906",
"isLeaf": true,
"children": null
},
{
"id": "1278911756520579073",
"parentId": "1",
"name": "库管",
"phone": "13550677908",
"isLeaf": true,
"children": null
},
{
"id": "1284056531525148675",
"parentId": "1",
"name": "新源",
"phone": "15528866296",
"isLeaf": true,
"children": null
},
{
"id": "1284056531525148676",
"parentId": "1",
"name": "镇安",
"phone": "13550677907",
"isLeaf": true,
"children": null
},
{
"id": "2",
"parentId": "1",
"name": "工程部",
"phone": null,
"isLeaf": false,
"children": [
{
"id": "1278911833066627074",
"parentId": "2",
"name": "工程管理",
"phone": "13550677907",
"isLeaf": true,
"children": null
},
{
"id": "6",
"parentId": "2",
"name": "工程部二组",
"phone": null,
"isLeaf": false,
"children": [
{
"id": "1278592302918098945",
"parentId": "6",
"name": "昆明院用户",
"phone": "13550677903",
"isLeaf": true,
"children": null
}
]
},
{
"id": "5",
"parentId": "2",
"name": "工程部一组",
"phone": null,
"isLeaf": false,
"children": [
{
"id": "1284004685959897090",
"parentId": "5",
"name": "张三",
"phone": "18712341234",
"isLeaf": true,
"children": null
}
]
}
]
},
{
"id": "3",
"parentId": "1",
"name": "机电管理部",
"phone": null,
"isLeaf": false,
"children": [
{
"id": "1280020163836735490",
"parentId": "3",
"name": "机房管理",
"phone": "18512345678",
"isLeaf": true,
"children": null
},
{
"id": "1284056531525148674",
"parentId": "3",
"name": "张珊珊",
"phone": "15812345688",
"isLeaf": true,
"children": null
},
{
"id": "1280397983960244225",
"parentId": "3",
"name": "机电管理一部",
"phone": null,
"isLeaf": true,
"children": []
},
{
"id": "1280398038087737345",
"parentId": "3",
"name": "机电管理二部",
"phone": null,
"isLeaf": true,
"children": []
}
]
},
{
"id": "4",
"parentId": "1",
"name": "安全管理部",
"phone": null,
"isLeaf": false,
"children": [
{
"id": "1280339794929586177",
"parentId": "4",
"name": "安全管理二部",
"phone": null,
"isLeaf": false,
"children": [
{
"id": "1280432666920067073",
"parentId": "1280339794929586177",
"name": "安全管理四部",
"phone": null,
"isLeaf": true,
"children": []
}
]
}
]
}
]
}
]
}
}</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">defaultCheckedKeys</td>
<td style="text-align: left;">array</td>
<td>选中的人员id数组</td>
</tr>
<tr>
<td style="text-align: left;">tree</td>
<td style="text-align: left;">array</td>
<td>部门人员树</td>
</tr>
</tbody>
</table>