mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-16 22:36:43 +08:00
视频播放笔记记录时间的控制
This commit is contained in:
@@ -14,8 +14,7 @@
|
||||
</div>
|
||||
<div class="newcote-text">
|
||||
<el-input type="textarea" :autofocus="true" :style="`min-height:${inputHeight}px`" placeholder="好记性不如烂笔头,记录些什么吧~"
|
||||
v-model="content_new" maxlength="200" :autosize="{ minRows: inputRows, maxRows: 20}"
|
||||
show-word-limit>
|
||||
v-model="content_new" maxlength="200" :autosize="{ minRows: inputRows, maxRows: 20}" show-word-limit>
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
@@ -23,8 +22,7 @@
|
||||
<div v-if="notetab == 2">
|
||||
<div class="mycote-content" v-show="!isEdit" :style="`height:${listHeight}px`">
|
||||
<div v-if="noteList.length > 0">
|
||||
<div style="border-bottom:1px solid #4444;padding-bottom:25px;" v-for="note in noteList"
|
||||
:key="note.id">
|
||||
<div style="border-bottom:1px solid #4444;padding-bottom:25px;" v-for="note in noteList" :key="note.id">
|
||||
<span class="mycote-time">{{note.sysUpdateTime}}
|
||||
<span class="sm">{{note.openType == 9?'公开':'私密'}}</span>
|
||||
<span class="more">
|
||||
@@ -32,20 +30,16 @@
|
||||
<span class="el-dropdown-link">
|
||||
<svg-icon style="margin-right: 0;font-size:26px;" icon-class="spot"></svg-icon>
|
||||
</span>
|
||||
<el-dropdown-menu slot="dropdown" class="dropdown-box"
|
||||
style="background:#333333;border: none;">
|
||||
<el-dropdown-menu slot="dropdown" class="dropdown-box" style="background:#333333;border: none;">
|
||||
<el-dropdown-item command="a" style="color:#fff" @click.native="noteDel(note)">
|
||||
<img style="width:13px;height:18px;vertical-align: middle;"
|
||||
src="@/assets/images/icon/note-del.png" /> 删除</el-dropdown-item>
|
||||
<img style="width:13px;height:18px;vertical-align: middle;" src="@/assets/images/icon/note-del.png" /> 删除</el-dropdown-item>
|
||||
<el-dropdown-item command="b" style="color:#fff" @click.native="noteEdit(note)">
|
||||
<img style="width:13px;height:14px;margin-right:4px;vertical-align: middle;"
|
||||
src="@/assets/images/icon/note-edit.png" />编辑</el-dropdown-item>
|
||||
<img style="width:13px;height:14px;margin-right:4px;vertical-align: middle;" src="@/assets/images/icon/note-edit.png" />编辑</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown>
|
||||
</span>
|
||||
</span>
|
||||
<div style="margin-top:10px" class="newcote-time" v-if="note.playTime"
|
||||
@click="onPlayVideo(note.contentId,note.playTime)">
|
||||
<div style="margin-top:10px" class="newcote-time" v-if="note.playTime" @click="onPlayVideo(note.contentId,note.playTime)">
|
||||
<img :src="`${webBaseUrl}/images/coteplay.png`" alt="">
|
||||
{{formatSeconds(note.playTime)}}
|
||||
</div>
|
||||
@@ -73,17 +67,15 @@
|
||||
<img :src="`${webBaseUrl}/images/cotedetel.png`" @click="timeDel()" />
|
||||
</div>
|
||||
<div class="newcote-text">
|
||||
<el-input type="textarea" :autofocus="true" placeholder="好记性不如烂笔头,记录些什么吧~"
|
||||
v-model="mynoteData.content" maxlength="200" :autosize="{ minRows: 18, maxRows: 20}"
|
||||
show-word-limit>
|
||||
<el-input type="textarea" :autofocus="true" :style="`min-height:${inputHeight}px`" placeholder="好记性不如烂笔头,记录些什么吧~"
|
||||
v-model="mynoteData.content" maxlength="200" :autosize="{ minRows: inputRows, maxRows: 20}" show-word-limit>
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="newcote-bottom" v-if="notetab == 1 || isEdit">
|
||||
<span v-if="btnPlayTime" style="cursor: pointer;" @click="videoLocation"> <img :src="`${webBaseUrl}/images/playtime.png`"
|
||||
alt=""> 视频位置</span>
|
||||
<span v-if="btnPlayTime" style="cursor: pointer;" @click="videoLocation"> <img :src="`${webBaseUrl}/images/playtime.png`" alt=""> 视频位置</span>
|
||||
<el-radio v-if="mynoteData.openType == 9" v-model="editRadio" :label="9">公开</el-radio>
|
||||
<el-radio v-model="editRadio" :label="1">私密</el-radio>
|
||||
<el-button size="small" v-if="notetab != 1" v-show="isEdit" @click="editCancel()">取消</el-button>
|
||||
@@ -184,7 +176,7 @@ export default {
|
||||
},
|
||||
data(val){
|
||||
if(val.id) {
|
||||
console.log(val,'val');
|
||||
//console.log(val,'val');
|
||||
this.mynoteData.courseId = this.courseId;
|
||||
this.mynoteData.courseName = this.data.name;
|
||||
// this.mynoteData.contentId = this.data.id;
|
||||
|
||||
Reference in New Issue
Block a user