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