| 方法 | 路径 | 说明 |
|---|---|---|
| POST | /deviceMaintenanceTask/add | 新增定时任务(新增 maintenanceContent 字段) |
| POST | /deviceMaintenanceTask/update | 修改定时任务(新增 maintenanceContent 字段) |
| GET | /deviceMaintenanceTask/listPage | 列表查询(返回新增字段) |
新增请求/响应参数:
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| maintenanceContent | String | 否 | 保养内容,最长2000字 |
| 方法 | 路径 | 说明 |
|---|---|---|
| POST | /device/maintenance | 新增保养记录(新增 maintenanceContent 字段) |
| PUT | /device/maintenance | 修改保养记录(新增 maintenanceContent 字段) |
| POST | /device/maintenance/maintenance | 确认保养(新增 maintenanceContent 字段) |
| GET | /device/maintenance/page | 列表查询(返回新增字段) |
| GET | /device/maintenance/{id} | 详情查询(返回新增字段) |
| POST | /device/maintenance/export | 导出Excel(新增"保养内容"列) |
新增请求/响应参数:
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| maintenanceContent | String | 否 | 保养内容,最长2000字 |
说明: 定时任务触发生成保养记录时,会自动将定时任务的 maintenanceContent 复制到保养记录中。
<el-form-item label="保养内容" prop="maintenanceContent">
<el-input v-model="form.maintenanceContent" type="textarea" :rows="3" placeholder="请输入保养内容" maxlength="2000" show-word-limit />
</el-form-item>
<el-table-column label="保养内容" prop="maintenanceContent" min-width="150" show-overflow-tooltip />
<el-table-column label="保养内容" prop="maintenanceContent" min-width="150" show-overflow-tooltip />
<el-form-item label="保养内容">
<span>{{ detail.maintenanceContent }}</span>
</el-form-item>
<el-form-item label="保养内容" prop="maintenanceContent">
<el-input v-model="confirmForm.maintenanceContent" type="textarea" :rows="3" placeholder="请输入保养内容" maxlength="2000" show-word-limit />
</el-form-item>
导出Excel自动新增"保养内容"列,无需前端额外处理。
doc/20260617_device_maintenance_content.sql 后再部署