feat: 新增文件上传支持,优化移动端UI与巡检功能
1. 新增全局上传配置,设置默认20MB请求体上限与上传目录 2. 重构上传文件处理,按天自动创建子目录存储文件 3. 修复巡检上传表单移动端强制调用相机的问题 4. 为MES与库房客户端添加响应式侧边栏,支持桌面折叠与移动端抽屉模式 5. 补充PAD端巡检页面的独立访问说明文档 6. 删除冗余的前端静态首页文件 7. 更新库房客户端静态资源哈希值
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item label="签到拍照">
|
||||
<input type="file" accept="image/*" capture="environment" class="file-input" @change="handlePhoto($event, checkin)">
|
||||
<input type="file" accept="image/*" class="file-input" @change="handlePhoto($event, checkin)">
|
||||
<div class="photo-box">
|
||||
<el-image v-if="checkin.photo" :src="checkin.photo" :preview-src-list="[checkin.photo]" fit="cover" class="photo-preview" preview-teleported />
|
||||
<span v-else class="photo-tip">点击上方按钮拍照上传</span>
|
||||
@@ -41,7 +41,7 @@
|
||||
</el-checkbox-group>
|
||||
</el-form-item>
|
||||
<el-form-item label="点检拍照">
|
||||
<input type="file" accept="image/*" capture="environment" class="file-input" @change="handlePhoto($event, point)">
|
||||
<input type="file" accept="image/*" class="file-input" @change="handlePhoto($event, point)">
|
||||
<div class="photo-box">
|
||||
<el-image v-if="point.photo" :src="point.photo" :preview-src-list="[point.photo]" fit="cover" class="photo-preview" preview-teleported />
|
||||
<span v-else class="photo-tip">点击上方按钮拍照上传</span>
|
||||
@@ -115,7 +115,7 @@
|
||||
</el-checkbox-group>
|
||||
</el-form-item>
|
||||
<el-form-item label="异常拍照">
|
||||
<input type="file" accept="image/*" capture="environment" class="file-input" @change="handlePhoto($event, alarm)">
|
||||
<input type="file" accept="image/*" class="file-input" @change="handlePhoto($event, alarm)">
|
||||
<div class="photo-box">
|
||||
<el-image v-if="alarm.photo" :src="alarm.photo" :preview-src-list="[alarm.photo]" fit="cover" class="photo-preview" preview-teleported />
|
||||
<span v-else class="photo-tip">点击上方按钮拍照上传</span>
|
||||
|
||||
Reference in New Issue
Block a user