我的产区-我的项目-修改项目信息展示
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>原有项目的信息展示</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://xgkj.hljnyxx.com/dongnongBackend/index.php//Home/Project/getSingleProject</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>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">projectId</td>
<td style="text-align: left;">是</td>
<td>项目ID</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
&quot;code&quot;: 0,
&quot;msg&quot;: &quot;查询成功&quot;,
&quot;data&quot;: {
&quot;alreadyPlotInfo&quot;: [
{
&quot;id&quot;: &quot;10&quot;,
&quot;name&quot;: &quot;A-4&quot;
},
{
&quot;id&quot;: &quot;11&quot;,
&quot;name&quot;: &quot;B-3&quot;
}
],
&quot;alreadyPlotUser&quot;: {
&quot;10&quot;: [
{
&quot;id&quot;: &quot;7&quot;,
&quot;name&quot;: &quot;王学生&quot;
},
{
&quot;id&quot;: &quot;8&quot;,
&quot;name&quot;: &quot;王学&quot;
}
],
&quot;11&quot;: [
{
&quot;id&quot;: &quot;8&quot;,
&quot;name&quot;: &quot;王学&quot;
}
]
},
&quot;alreadyPlotEqu&quot;: {
&quot;10&quot;: [
{
&quot;id&quot;: &quot;1&quot;,
&quot;name&quot;: &quot;温度传感器&quot;,
&quot;is_common&quot;: &quot;0&quot;
},
{
&quot;id&quot;: &quot;2&quot;,
&quot;name&quot;: &quot;湿度传感器&quot;,
&quot;is_common&quot;: &quot;0&quot;
}
],
&quot;11&quot;: [
{
&quot;id&quot;: &quot;3&quot;,
&quot;name&quot;: &quot;温度传感器&quot;,
&quot;is_common&quot;: &quot;0&quot;
},
{
&quot;id&quot;: &quot;4&quot;,
&quot;name&quot;: &quot;风速传感器&quot;,
&quot;is_common&quot;: &quot;1&quot;
}
]
},
&quot;projectHaveUser&quot;: [
{
&quot;id&quot;: &quot;4&quot;,
&quot;name&quot;: &quot;周学&quot;,
&quot;account&quot;: &quot;20230104&quot;,
&quot;tel&quot;: &quot;18745621100&quot;
},
{
&quot;id&quot;: &quot;1&quot;,
&quot;name&quot;: &quot;张老师&quot;,
&quot;account&quot;: &quot;20231001&quot;,
&quot;tel&quot;: &quot;13020223022&quot;
},
{
&quot;id&quot;: &quot;6&quot;,
&quot;name&quot;: &quot;赵学生&quot;,
&quot;account&quot;: &quot;20230106&quot;,
&quot;tel&quot;: &quot;13369874520&quot;
}
],
&quot;plotGreenhouseInfo&quot;: {
&quot;10&quot;: &quot;1&quot;,
&quot;11&quot;: &quot;2&quot;
},
&quot;allUser&quot;: [
{
&quot;id&quot;: &quot;3&quot;,
&quot;account&quot;: &quot;20230103&quot;,
&quot;name&quot;: &quot;周学生&quot;,
&quot;tel&quot;: &quot;13789564412&quot;
},
{
&quot;id&quot;: &quot;4&quot;,
&quot;account&quot;: &quot;20230104&quot;,
&quot;name&quot;: &quot;周学&quot;,
&quot;tel&quot;: &quot;18745621100&quot;
},
{
&quot;id&quot;: &quot;5&quot;,
&quot;account&quot;: &quot;20230105&quot;,
&quot;name&quot;: &quot;李学生&quot;,
&quot;tel&quot;: &quot;13256987745&quot;
},
],
&quot;allEquip&quot;: {
&quot;2&quot;: [
{
&quot;id&quot;: &quot;12&quot;,
&quot;name&quot;: &quot;大气压传感器&quot;,
&quot;func_id&quot;: &quot;16&quot;,
&quot;is_fault&quot;: &quot;0&quot;,
&quot;greenhouse_id&quot;: &quot;2&quot;
}
]
}
}
}</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th>类型</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">alreadyPlotInfo</td>
<td>已经选定好的地块信息,以地块 ID 为键,以地块名称为值</td>
</tr>
<tr>
<td style="text-align: left;">alreadyPlotUser</td>
<td>已经选定好的地块所选择的使用人,以地块 ID 为键,以使用人的信息集合为值</td>
</tr>
<tr>
<td style="text-align: left;">alreadyPlotEqu</td>
<td>已经选定好的地块所绑定的设备,以地块 ID 为键,以设备的信息集合为值</td>
</tr>
<tr>
<td style="text-align: left;">projectHaveUser</td>
<td>参与项目的人员信息</td>
</tr>
<tr>
<td style="text-align: left;">plotGreenhouseInfo</td>
<td>已经选定好的地块所属的温室的列表,以地块 ID 为键,以温室 ID 集合为值</td>
</tr>
<tr>
<td style="text-align: left;">allUser</td>
<td>所有可选定的使用人的值</td>
</tr>
<tr>
<td style="text-align: left;">allEquip</td>
<td>所有可绑定的设备的值,以温室 ID 为下标,以设备信息为值</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>allUser 字段依旧返回所有学生的名单,如果想要已选好的人员不显示,请前端在显示的时候屏蔽掉</li>
<li>allEquip 字段返回指定地块下未绑定的设备信息</li>
</ul>