|
@@ -144,7 +144,10 @@
|
|
|
<div class="vedioName">{{ media.name }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div style="height: 250px; overflow: auto" v-if="text.length > 0">
|
|
|
+ <div
|
|
|
+ style="height: 250px; overflow: auto"
|
|
|
+ v-if="textList.length > 0"
|
|
|
+ >
|
|
|
<div class="vedioNav">附文本列表</div>
|
|
|
<div
|
|
|
style="width: 160px; margin: 10px auto; position: relative"
|
|
@@ -161,8 +164,13 @@
|
|
|
alt=""
|
|
|
@click="lookVedio(media.url)"
|
|
|
/> -->
|
|
|
- <div style="cursor: pointer" @click="lookText">
|
|
|
- {{ text.length > 0 ? text[0].name : '' }}.doc
|
|
|
+ <div
|
|
|
+ v-for="(text, textIndex) in textList"
|
|
|
+ :key="textIndex"
|
|
|
+ style="cursor: pointer; margin-bottom: 10px"
|
|
|
+ @click="lookText(textIndex)"
|
|
|
+ >
|
|
|
+ {{ textList.length > 0 ? text.name : "" }}.doc
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -752,13 +760,13 @@
|
|
|
>
|
|
|
<el-form style="font-size: 20px">
|
|
|
<el-form-item label="文本标题" class="textTitle">
|
|
|
- <div style="font-size: 20px">{{ text.length > 0 ? text[0].name : '' }}</div>
|
|
|
+ <div style="font-size: 20px">{{ text.name }}</div>
|
|
|
<!-- <el-input v-model="AttText.title" auto-complete="off" placeholder="请输入文本标题..."></el-input> -->
|
|
|
</el-form-item>
|
|
|
<div>附文本内容</div>
|
|
|
<!-- <editor-bar v-model="AttText.text" @change="change"></editor-bar> -->
|
|
|
<div
|
|
|
- v-html="text.length > 0 ? text[0].url : '' "
|
|
|
+ v-html="text.url"
|
|
|
style="font-size: 18px; padding: 40px 0 0 0"
|
|
|
></div>
|
|
|
</el-form>
|
|
@@ -798,6 +806,7 @@ export default {
|
|
|
type: 1,
|
|
|
vedio: [],
|
|
|
text: [],
|
|
|
+ textList: [],
|
|
|
file: [],
|
|
|
rateList: {
|
|
|
ca: 0,
|
|
@@ -1138,7 +1147,7 @@ export default {
|
|
|
"OGM",
|
|
|
];
|
|
|
this.vedio = [];
|
|
|
- this.text = [];
|
|
|
+ this.textList = [];
|
|
|
this.file = [];
|
|
|
var c = a.chapterData;
|
|
|
for (var j = 0; j < c.length; j++) {
|
|
@@ -1154,7 +1163,7 @@ export default {
|
|
|
this.file.push(c[j]);
|
|
|
}
|
|
|
if (c[j].type == 6) {
|
|
|
- this.text.push(c[j]);
|
|
|
+ this.textList.push(c[j]);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1315,7 +1324,8 @@ export default {
|
|
|
this.playerOptions.sources[0].src = u;
|
|
|
this.playerO = this.playerOptions;
|
|
|
},
|
|
|
- lookText() {
|
|
|
+ lookText(i) {
|
|
|
+ this.text = this.textList[i];
|
|
|
this.dialogVisible1 = true;
|
|
|
},
|
|
|
downFile(i) {
|