|
@@ -22,7 +22,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="备注">
|
|
|
- <el-input type="textarea" v-model="radios.comments" placeholder="请输入备注" />
|
|
|
+ <el-input type="textarea" v-model="workForm.comments" placeholder="请输入备注" />
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div class="btBox">
|
|
@@ -37,16 +37,15 @@
|
|
|
|
|
|
</div>
|
|
|
<div class="box_right">
|
|
|
- <video class="video" id="video" ref="video" controlslist="nodownload" disablePictureInPicture oncontextmenu = "return false" :controls="showCtrl"></video>
|
|
|
<!--视频上方中间时间-->
|
|
|
<p class="duration">持续时间区间:{{ formatTime(startTime)}} - {{formatTime(endTime)}}</p>
|
|
|
-
|
|
|
+ <video class="video" id="video" ref="video" controlslist="nodownload" disablePictureInPicture oncontextmenu = "return false" :controls="showCtrl"></video>
|
|
|
<!--视频右边工具图标-->
|
|
|
<div class="v-okc tool-wrap">
|
|
|
<!--v-hasPermi="['okc:videoPro:remove']"-->
|
|
|
- <el-button v-if="!disabled" class="tool-btn" plain circle icon="el-icon-plus" @click="changeProject" />
|
|
|
- <el-button class="tool-btn" plain circle icon="el-icon-edit" @click="openDrawer('draw')" />
|
|
|
- <el-button class="tool-btn" plain circle icon="el-icon-upload2" @click="openDrawer('export')" />
|
|
|
+ <el-button v-if="!disabled" title="导入视频" class="tool-btn" plain circle icon="el-icon-plus" @click="changeProject" />
|
|
|
+ <el-button class="tool-btn" title="绘制图表" plain circle icon="el-icon-edit" @click="openDrawer('draw')" />
|
|
|
+ <el-button class="tool-btn" title="导出图表" plain circle icon="el-icon-upload2" @click="openDrawer('export')" />
|
|
|
</div>
|
|
|
|
|
|
<!--视频左边工具图标-->
|
|
@@ -508,7 +507,19 @@ export default {
|
|
|
this.$modal.msgSuccess('所选文件格式不支持!')
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
+ changeUpdateVideoPro(){
|
|
|
+ updateVideoPro(this.projectForm).then((res) => {
|
|
|
+ this.$modal.msgSuccess('视频导入成功')
|
|
|
+ this.$refs.video.src = URL.createObjectURL(this.projectForm.file)
|
|
|
+ this.showCtrl = true
|
|
|
+ this.$refs.video.autoplay = true
|
|
|
+ yuxStorage.setItem(this.projectForm.id, this.projectForm.file).catch(err => console.log(err))
|
|
|
+ this.projectDialog = false
|
|
|
+ }).finally(() => {
|
|
|
+ this.pLoading = false
|
|
|
+ this.disabled = true
|
|
|
+ })
|
|
|
+ },
|
|
|
// 提交新建项目
|
|
|
submitProjectForm() {
|
|
|
this.$refs.projectForm.validate((valid) => {
|
|
@@ -516,20 +527,17 @@ export default {
|
|
|
this.pLoading = true
|
|
|
if (this.projectForm.id) {
|
|
|
if (this.projectForm.videoDur == this.projectTemp.videoDur || this.projectTemp.videoDur === null) {
|
|
|
- updateVideoPro(this.projectForm).then((res) => {
|
|
|
- this.$modal.msgSuccess('视频导入成功')
|
|
|
- this.$refs.video.src = URL.createObjectURL(this.projectForm.file)
|
|
|
- this.showCtrl = true
|
|
|
- this.$refs.video.autoplay = true
|
|
|
- yuxStorage.setItem(this.projectForm.id, this.projectForm.file).catch(err => console.log(err))
|
|
|
- this.projectDialog = false
|
|
|
- }).finally(() => {
|
|
|
- this.pLoading = false
|
|
|
- this.disabled = true
|
|
|
- })
|
|
|
+ this.changeUpdateVideoPro();
|
|
|
} else {
|
|
|
- this.$modal.msgError('导入的视频非本项目原视频,请重试!')
|
|
|
- this.pLoading = false
|
|
|
+ this.$confirm('导入的视频非本项目原视频,确定导入?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ this.changeUpdateVideoPro();
|
|
|
+ }).catch(() => {});
|
|
|
+ // this.$modal.msgError('导入的视频非本项目原视频,请重试!')
|
|
|
+ // this.pLoading = false
|
|
|
}
|
|
|
} else {
|
|
|
// 生成项目ID
|
|
@@ -610,11 +618,11 @@ export default {
|
|
|
// 开始截取
|
|
|
getStartTime() {
|
|
|
let currentTime = this.$refs.video.currentTime
|
|
|
- if (this.startTime === 0) {
|
|
|
+ // if (this.startTime === 0) {
|
|
|
this.startTime = currentTime
|
|
|
- } else {
|
|
|
- this.$modal.msgSuccess('开始截取时间必须为上次结束时间!')
|
|
|
- }
|
|
|
+ // } else {
|
|
|
+ // this.$modal.msgSuccess('开始截取时间必须为上次结束时间!')
|
|
|
+ // }
|
|
|
},
|
|
|
|
|
|
// 结束截取
|
|
@@ -693,8 +701,8 @@ export default {
|
|
|
if (response.code === 200) {
|
|
|
response.rows.forEach((item, index) => {
|
|
|
item.orderId = index + 1
|
|
|
- item.startShowTime = this.timeTranslate(item.startTime)
|
|
|
- item.endShowTime = this.timeTranslate(item.endTime)
|
|
|
+ item.startShowTime = this.formatTime(item.startTime)
|
|
|
+ item.endShowTime = this.formatTime(item.endTime)
|
|
|
})
|
|
|
this.history = response.rows
|
|
|
}
|
|
@@ -721,7 +729,7 @@ export default {
|
|
|
if (this.currentRecord) {
|
|
|
this.$refs.video.currentTime = Number(this.currentRecord.startTime)
|
|
|
this.startTime = Number(this.currentRecord.startTime)
|
|
|
- this.endTime = 0
|
|
|
+ this.endTime = Number(this.currentRecord.endTime)
|
|
|
this.workForm = {
|
|
|
id: this.currentRecord.id,
|
|
|
behavior: this.currentRecord.behavior,
|
|
@@ -836,7 +844,7 @@ export default {
|
|
|
return item
|
|
|
})
|
|
|
this.chartsData.unshift(
|
|
|
- ['时间', 'B1', 'B2', 'B3', 'B4', 'B5', 'B6', 'B7', 'B8', 'B9', 'B10', 'B11', 'B12', 'B13', 'B14', 'B15', 'B16', 'IL', 'II', 'IC', 'IP', 'IA', 'IX', 'TL', 'TI', 'TP', 'ID', 'Verbal', 'Non_media', 'CK', 'PK', 'TK', 'PCK', 'TCK', 'TPK', 'TPACK']
|
|
|
+ ['时间', 'B1', 'B2', 'B3', 'B4', 'B5', 'B6', 'B7', 'B8', 'B9', 'B10', 'B11', 'B12', 'B13', 'B14', 'B15', 'B16', 'M1', 'M2', 'M3', 'M4', 'M5', 'M6', 'M7', 'M8', 'M9', 'M10', 'M11', 'M12', 'CK', 'PK', 'TK', 'PCK', 'TCK', 'TPK', 'TPACK']
|
|
|
)
|
|
|
} else {
|
|
|
this.$modal.msgWarning('暂无RC数据!')
|
|
@@ -1157,6 +1165,8 @@ export default {
|
|
|
width: 85%;
|
|
|
height: 100%;
|
|
|
position: relative;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
video {
|
|
|
width: 100%;
|
|
|
background-color: #000;
|
|
@@ -1171,8 +1181,8 @@ export default {
|
|
|
|
|
|
}
|
|
|
.duration {
|
|
|
- position: absolute;
|
|
|
- top: 1%;
|
|
|
+ /*position: relative;*/
|
|
|
+ /*top: 1%;*/
|
|
|
width: 100%;
|
|
|
margin: 0;
|
|
|
text-align: center;
|