|
@@ -1,6 +1,6 @@
|
|
|
<!-- -->
|
|
<!-- -->
|
|
|
<template>
|
|
<template>
|
|
|
- <div v-if="curQue" class="NNPE-ArticleView" id="notes-model">
|
|
|
|
|
|
|
+ <div v-if="curQue" id="notes-model" class="NNPE-ArticleView">
|
|
|
<div
|
|
<div
|
|
|
v-if="
|
|
v-if="
|
|
|
((curQue.mp3_list && curQue.mp3_list.length > 0 && curQue.mp3_list[0].url) ||
|
|
((curQue.mp3_list && curQue.mp3_list.length > 0 && curQue.mp3_list[0].url) ||
|
|
@@ -78,12 +78,12 @@
|
|
|
}"
|
|
}"
|
|
|
/>
|
|
/>
|
|
|
<video
|
|
<video
|
|
|
|
|
+ v-else
|
|
|
:src="item.sourceList[0].file_url_open"
|
|
:src="item.sourceList[0].file_url_open"
|
|
|
width="100%"
|
|
width="100%"
|
|
|
height="400"
|
|
height="400"
|
|
|
controls
|
|
controls
|
|
|
controlsList="nodownload"
|
|
controlsList="nodownload"
|
|
|
- v-else
|
|
|
|
|
></video>
|
|
></video>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -565,12 +565,12 @@
|
|
|
}"
|
|
}"
|
|
|
/>
|
|
/>
|
|
|
<video
|
|
<video
|
|
|
|
|
+ v-else
|
|
|
:src="item.sourceList[0].file_url_open"
|
|
:src="item.sourceList[0].file_url_open"
|
|
|
width="100%"
|
|
width="100%"
|
|
|
height="400"
|
|
height="400"
|
|
|
controls
|
|
controls
|
|
|
controlsList="nodownload"
|
|
controlsList="nodownload"
|
|
|
- v-else
|
|
|
|
|
></video>
|
|
></video>
|
|
|
</template>
|
|
</template>
|
|
|
</div>
|
|
</div>
|
|
@@ -1051,6 +1051,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<el-dialog
|
|
<el-dialog
|
|
|
|
|
+ v-if="notesFlag"
|
|
|
:visible.sync="notesFlag"
|
|
:visible.sync="notesFlag"
|
|
|
:show-close="true"
|
|
:show-close="true"
|
|
|
:title="'笔记'"
|
|
:title="'笔记'"
|
|
@@ -1058,14 +1059,19 @@
|
|
|
width="367px"
|
|
width="367px"
|
|
|
class="notes-dialog"
|
|
class="notes-dialog"
|
|
|
@close="handleData"
|
|
@close="handleData"
|
|
|
- v-if="notesFlag"
|
|
|
|
|
>
|
|
>
|
|
|
<p>{{ notesObj.title }}</p>
|
|
<p>{{ notesObj.title }}</p>
|
|
|
- <el-input type="textarea" :rows="4" maxlength="200" show-word-limit placeholder="请输入" v-model="notesObj.notes">
|
|
|
|
|
- </el-input>
|
|
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="notesObj.notes"
|
|
|
|
|
+ type="textarea"
|
|
|
|
|
+ :rows="4"
|
|
|
|
|
+ maxlength="200"
|
|
|
|
|
+ show-word-limit
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ />
|
|
|
<div class="btn-box">
|
|
<div class="btn-box">
|
|
|
- <el-button type="danger" plain size="small" @click="deleteNotes" v-if="notesObj.id">删除</el-button>
|
|
|
|
|
- <el-button type="primary" @click="handleSave" size="small" :loading="loading">保存</el-button>
|
|
|
|
|
|
|
+ <el-button v-if="notesObj.id" type="danger" plain size="small" @click="deleteNotes">删除</el-button>
|
|
|
|
|
+ <el-button type="primary" size="small" :loading="loading" @click="handleSave">保存</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
</div>
|
|
</div>
|
|
@@ -1369,7 +1375,6 @@ export default {
|
|
|
.on('selection:create', ({ sources }) => {
|
|
.on('selection:create', ({ sources }) => {
|
|
|
// sources = sources.map(hs => ({hs}));
|
|
// sources = sources.map(hs => ({hs}));
|
|
|
if (sources && sources[0]) {
|
|
if (sources && sources[0]) {
|
|
|
- console.log(sources[0]);
|
|
|
|
|
_this.notesObj.title = sources[0].text;
|
|
_this.notesObj.title = sources[0].text;
|
|
|
_this.notesObj.pos = JSON.stringify({
|
|
_this.notesObj.pos = JSON.stringify({
|
|
|
sent_id: _this.activeSentObj,
|
|
sent_id: _this.activeSentObj,
|
|
@@ -1532,7 +1537,6 @@ export default {
|
|
|
// });
|
|
// });
|
|
|
},
|
|
},
|
|
|
mouseupClick(obj, index) {
|
|
mouseupClick(obj, index) {
|
|
|
- console.log(obj);
|
|
|
|
|
this.activeSentObj = index;
|
|
this.activeSentObj = index;
|
|
|
},
|
|
},
|
|
|
}, // 如果页面有keep-alive缓存功能,这个函数会触发
|
|
}, // 如果页面有keep-alive缓存功能,这个函数会触发
|