Commit e46f1ae9150028b794a9519dda7d66bf77a486c2
Committed by
GitHub
Merge branch '648540858:wvp-28181-2.0' into wvp-28181-2.0
Showing
1 changed file
with
6 additions
and
2 deletions
web_src/src/components/CloudRecordDetail.vue
| @@ -39,11 +39,11 @@ | @@ -39,11 +39,11 @@ | ||
| 39 | <li v-for="(item,index) in detailFiles" :key="index" class="infinite-list-item record-list-item" > | 39 | <li v-for="(item,index) in detailFiles" :key="index" class="infinite-list-item record-list-item" > |
| 40 | <el-tag v-if="choosedFile !== item.filename" @click="chooseFile(item)"> | 40 | <el-tag v-if="choosedFile !== item.filename" @click="chooseFile(item)"> |
| 41 | <i class="el-icon-video-camera" ></i> | 41 | <i class="el-icon-video-camera" ></i> |
| 42 | - {{ item.fileName.substring(0, 17) }} | 42 | + {{ getFileShowName(item.fileName) }} |
| 43 | </el-tag> | 43 | </el-tag> |
| 44 | <el-tag type="danger" v-if="choosedFile === item.filename"> | 44 | <el-tag type="danger" v-if="choosedFile === item.filename"> |
| 45 | <i class="el-icon-video-camera" ></i> | 45 | <i class="el-icon-video-camera" ></i> |
| 46 | - {{ item.fileName.substring(0, 17) }} | 46 | + {{ getFileShowName(item.fileName) }} |
| 47 | </el-tag> | 47 | </el-tag> |
| 48 | <a class="el-icon-download" style="color: #409EFF;font-weight: 600;margin-left: 10px;" | 48 | <a class="el-icon-download" style="color: #409EFF;font-weight: 600;margin-left: 10px;" |
| 49 | :href="`${getFileBasePath(item)}/download.html?url=download/${app}/${stream}/${chooseDate}/${item.fileName}`" | 49 | :href="`${getFileBasePath(item)}/download.html?url=download/${app}/${stream}/${chooseDate}/${item.fileName}`" |
| @@ -327,6 +327,10 @@ | @@ -327,6 +327,10 @@ | ||
| 327 | backToList() { | 327 | backToList() { |
| 328 | this.$router.back() | 328 | this.$router.back() |
| 329 | }, | 329 | }, |
| 330 | + getFileShowName(name) { | ||
| 331 | + return name.substring(0, 2) + ":" + name.substring(2, 4) + ":" + name.substring(4, 6) + "-" + | ||
| 332 | + name.substring(7, 9) + ":" + name.substring(9, 11) + ":" + name.substring(11, 13) | ||
| 333 | + }, | ||
| 330 | chooseMediaChange() { | 334 | chooseMediaChange() { |
| 331 | 335 | ||
| 332 | }, | 336 | }, |