超管后台 - 新建项目对接触客宝

This commit is contained in:
柳清爽
2025-04-15 11:35:49 +08:00
parent ae8624b198
commit 053e7cd76b
17 changed files with 55 additions and 707 deletions

View File

@@ -112,29 +112,6 @@ export default function NewProjectPage() {
<Textarea id="memo" placeholder="请输入备注信息(选填)" rows={2} />
</div>
<div className="space-y-2">
<Label></Label>
<div className="space-y-3">
{devices.map((device, index) => (
<div key={device.id} className="flex items-center gap-2">
<Input
placeholder={`设备 ${index + 1} 名称`}
value={device.name}
onChange={(e) => handleDeviceChange(device.id, e.target.value)}
/>
{devices.length > 1 && (
<Button type="button" variant="outline" size="icon" onClick={() => handleRemoveDevice(device.id)}>
<Trash className="h-4 w-4" />
</Button>
)}
</div>
))}
<Button type="button" variant="outline" onClick={handleAddDevice} className="flex items-center gap-1">
<Plus className="h-4 w-4" />
</Button>
</div>
</div>
<div className="space-y-2">
<Label htmlFor="description"></Label>
<Textarea id="description" placeholder="请输入项目介绍(选填)" rows={4} />