120 lines
2.5 KiB
HTML
120 lines
2.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>附件管理</title>
|
|
<style>
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
background-color: #f8f9fa;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
.header {
|
|
background-color: #2c3e50;
|
|
color: #fff;
|
|
padding: 15px;
|
|
text-align: center;
|
|
font-size: 18px;
|
|
}
|
|
.upload-area {
|
|
background: #fff;
|
|
margin: 15px;
|
|
padding: 15px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
|
|
}
|
|
.upload-area input[type="file"] {
|
|
display: none;
|
|
}
|
|
.upload-label {
|
|
display: block;
|
|
text-align: center;
|
|
padding: 20px;
|
|
border: 2px dashed #ccc;
|
|
border-radius: 8px;
|
|
color: #666;
|
|
cursor: pointer;
|
|
}
|
|
.attachment-list {
|
|
margin: 15px;
|
|
}
|
|
.attachment-item {
|
|
background: #fff;
|
|
border-radius: 8px;
|
|
padding: 10px;
|
|
margin-bottom: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
|
|
}
|
|
.attachment-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
.attachment-thumb {
|
|
width: 50px;
|
|
height: 50px;
|
|
border-radius: 4px;
|
|
object-fit: cover;
|
|
background-color: #eaeaea;
|
|
}
|
|
.attachment-name {
|
|
font-size: 14px;
|
|
color: #333;
|
|
}
|
|
.attachment-actions button {
|
|
margin-left: 5px;
|
|
padding: 5px 10px;
|
|
border-radius: 4px;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
}
|
|
.btn-primary {
|
|
background-color: #2c3e50;
|
|
color: white;
|
|
}
|
|
.btn-danger {
|
|
background-color: #e74c3c;
|
|
color: white;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="header">附件管理</div>
|
|
|
|
<div class="upload-area">
|
|
<label for="file-upload" class="upload-label">点击上传附件</label>
|
|
<input type="file" id="file-upload" multiple />
|
|
</div>
|
|
|
|
<div class="attachment-list">
|
|
<div class="attachment-item">
|
|
<div class="attachment-info">
|
|
<img src="https://via.placeholder.com/50" class="attachment-thumb" />
|
|
<div class="attachment-name">工单图片1.jpg</div>
|
|
</div>
|
|
<div class="attachment-actions">
|
|
<button class="btn-primary">预览</button>
|
|
<button class="btn-danger">删除</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="attachment-item">
|
|
<div class="attachment-info">
|
|
<div class="attachment-thumb"></div>
|
|
<div class="attachment-name">报告文档.pdf</div>
|
|
</div>
|
|
<div class="attachment-actions">
|
|
<button class="btn-primary">预览</button>
|
|
<button class="btn-danger">删除</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|