- 添加SystemSetting模型用于存储系统配置 - 实现系统设置API路由,支持CRUD操作 - 新增系统设置前端页面,包含全局配置、外观设置、数据备份和关于页面 - 设备批量操作增强,支持批量移动、状态变更和导出 - 工单模型允许deviceId为空
18 lines
589 B
JavaScript
18 lines
589 B
JavaScript
const fs = require('fs');
|
|
|
|
const content = fs.readFileSync('e:/IDC/jigui/frontend/src/pages/DeviceManagement.jsx', 'utf8');
|
|
|
|
const startMarker = '// 可调整列宽的表头组件';
|
|
const endMarker = '// 防抖 Hook';
|
|
|
|
const startIndex = content.indexOf(startMarker);
|
|
const endIndex = content.indexOf(endMarker, startIndex);
|
|
|
|
console.log('startMarker index:', startIndex);
|
|
console.log('endMarker index:', endIndex);
|
|
|
|
if (startIndex >= 0 && endIndex >= 0) {
|
|
console.log('Content to remove:');
|
|
console.log(content.substring(startIndex, endIndex + endMarker.length).substring(0, 500));
|
|
}
|