|
@@ -9,7 +9,11 @@
|
|
ref="listData"
|
|
ref="listData"
|
|
>
|
|
>
|
|
<el-form-item label="适用业务层级" required>
|
|
<el-form-item label="适用业务层级" required>
|
|
- <el-select v-model="eduType" placeholder="请选择教育类型" @change="changeEduType">
|
|
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="eduType"
|
|
|
|
+ placeholder="请选择教育类型"
|
|
|
|
+ @change="changeEduType"
|
|
|
|
+ >
|
|
<el-option
|
|
<el-option
|
|
v-for="(item, index) in eduTypeOptions"
|
|
v-for="(item, index) in eduTypeOptions"
|
|
:key="index"
|
|
:key="index"
|
|
@@ -17,7 +21,11 @@
|
|
:value="item.id"
|
|
:value="item.id"
|
|
></el-option>
|
|
></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
- <el-select v-model="courType" placeholder="请选择业务层次" @change="changecourseType">
|
|
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="courType"
|
|
|
|
+ placeholder="请选择业务层次"
|
|
|
|
+ @change="changecourseType"
|
|
|
|
+ >
|
|
<el-option
|
|
<el-option
|
|
v-for="(item, index) in newCourTypeOptions"
|
|
v-for="(item, index) in newCourTypeOptions"
|
|
:key="index"
|
|
:key="index"
|
|
@@ -37,7 +45,8 @@
|
|
v-model="checkAll"
|
|
v-model="checkAll"
|
|
@change="handleCheckAllChange"
|
|
@change="handleCheckAllChange"
|
|
:indeterminate="isIndeterminate"
|
|
:indeterminate="isIndeterminate"
|
|
- >全选</el-checkbox>
|
|
|
|
|
|
+ >全选</el-checkbox
|
|
|
|
+ >
|
|
<el-checkbox-group
|
|
<el-checkbox-group
|
|
v-model="sujectArray"
|
|
v-model="sujectArray"
|
|
class="checkboxSty"
|
|
class="checkboxSty"
|
|
@@ -47,39 +56,54 @@
|
|
v-for="(item, index) in newSujectOption"
|
|
v-for="(item, index) in newSujectOption"
|
|
:label="item.newId"
|
|
:label="item.newId"
|
|
:key="index"
|
|
:key="index"
|
|
- >{{ item.subjectName }}</el-checkbox>
|
|
|
|
|
|
+ >{{ item.subjectName }}</el-checkbox
|
|
|
|
+ >
|
|
</el-checkbox-group>
|
|
</el-checkbox-group>
|
|
<div style="display: block; text-align: center; margin-top: 10px">
|
|
<div style="display: block; text-align: center; margin-top: 10px">
|
|
- <el-button size="mini" type="primary" @click="submitSujectArray">确定</el-button>
|
|
|
|
|
|
+ <el-button size="mini" type="primary" @click="submitSujectArray"
|
|
|
|
+ >确定</el-button
|
|
|
|
+ >
|
|
</div>
|
|
</div>
|
|
- <el-button slot="reference" style="margin-left: 12px" @click="getMessage">请选择科目</el-button>
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ slot="reference"
|
|
|
|
+ style="margin-left: 12px"
|
|
|
|
+ @click="getMessage"
|
|
|
|
+ >请选择科目</el-button
|
|
|
|
+ >
|
|
</el-popover>
|
|
</el-popover>
|
|
<span style="margin-left: 10px">注:可多选</span>
|
|
<span style="margin-left: 10px">注:可多选</span>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label>
|
|
<el-form-item label>
|
|
<div :class="changeHeight ? 'ach' : 'clh'">
|
|
<div :class="changeHeight ? 'ach' : 'clh'">
|
|
- <div v-for="(item, index) in newSujectApis" :key="index" class="listBoxStys">
|
|
|
|
|
|
+ <div
|
|
|
|
+ v-for="(item, index) in newSujectApis"
|
|
|
|
+ :key="index"
|
|
|
|
+ class="listBoxStys"
|
|
|
|
+ >
|
|
{{
|
|
{{
|
|
- item.educationName +
|
|
|
|
- " - " +
|
|
|
|
- item.projectName +
|
|
|
|
- " - " +
|
|
|
|
- item.businessName +
|
|
|
|
- " - " +
|
|
|
|
- item.subjectName
|
|
|
|
|
|
+ item.educationName +
|
|
|
|
+ " - " +
|
|
|
|
+ item.projectName +
|
|
|
|
+ " - " +
|
|
|
|
+ item.businessName +
|
|
|
|
+ " - " +
|
|
|
|
+ item.subjectName
|
|
}}
|
|
}}
|
|
- <i
|
|
|
|
- class="el-icon-error closeIcons"
|
|
|
|
- @click="closeType(index)"
|
|
|
|
- ></i>
|
|
|
|
|
|
+ <i class="el-icon-error closeIcons" @click="closeType(index)"></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<el-button
|
|
<el-button
|
|
size="mini"
|
|
size="mini"
|
|
v-if="newSujectApis.length > 1"
|
|
v-if="newSujectApis.length > 1"
|
|
@click="changeType"
|
|
@click="changeType"
|
|
- >{{ changeHeight ? "展开" : "关闭" }}</el-button>
|
|
|
|
- <el-button size="mini" v-if="newSujectApis.length > 0" @click="sujectApis = []">清空</el-button>
|
|
|
|
|
|
+ >{{ changeHeight ? "展开" : "关闭" }}</el-button
|
|
|
|
+ >
|
|
|
|
+ <el-button
|
|
|
|
+ size="mini"
|
|
|
|
+ v-if="newSujectApis.length > 0"
|
|
|
|
+ @click="sujectApis = []"
|
|
|
|
+ >清空</el-button
|
|
|
|
+ >
|
|
<!-- <span v-if="newSujectApis.length === 0">未选项目类型</span> -->
|
|
<!-- <span v-if="newSujectApis.length === 0">未选项目类型</span> -->
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="标题前缀">
|
|
<el-form-item label="标题前缀">
|
|
@@ -88,7 +112,9 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="节标题" prop="name">
|
|
<el-form-item label="节标题" prop="name">
|
|
<el-input v-model="listData.name"></el-input>
|
|
<el-input v-model="listData.name"></el-input>
|
|
- <div style="color: #999">注:请尽量规范易懂,方便在课程目录表呈现给学员</div>
|
|
|
|
|
|
+ <div style="color: #999">
|
|
|
|
+ 注:请尽量规范易懂,方便在课程目录表呈现给学员
|
|
|
|
+ </div>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="节类型">
|
|
<el-form-item label="节类型">
|
|
<el-select
|
|
<el-select
|
|
@@ -109,15 +135,27 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="视频类型" prop="viewSign">
|
|
<el-form-item label="视频类型" prop="viewSign">
|
|
- <el-radio-group v-model="listData.viewSign">
|
|
|
|
|
|
+ <el-radio-group v-model="listData.viewSign" disabled>
|
|
<el-radio :label="1">保利威</el-radio>
|
|
<el-radio :label="1">保利威</el-radio>
|
|
<el-radio :label="2">腾讯</el-radio>
|
|
<el-radio :label="2">腾讯</el-radio>
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
- <el-form-item label="频道号" v-if="listData.sectionType === 2" prop="liveUrl">
|
|
|
|
- <el-input style="width: 300px" v-model="listData.liveUrl" placeholder="请输入频道号"></el-input>
|
|
|
|
- <el-select v-model="newActiveLiveUrl" placeholder="快捷选中频道号" @change="changeLiveUrl">
|
|
|
|
|
|
+ <el-form-item
|
|
|
|
+ label="频道号"
|
|
|
|
+ v-if="listData.sectionType === 2"
|
|
|
|
+ prop="liveUrl"
|
|
|
|
+ >
|
|
|
|
+ <el-input
|
|
|
|
+ style="width: 300px"
|
|
|
|
+ v-model="listData.liveUrl"
|
|
|
|
+ placeholder="请输入频道号"
|
|
|
|
+ ></el-input>
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="newActiveLiveUrl"
|
|
|
|
+ placeholder="快捷选中频道号"
|
|
|
|
+ @change="changeLiveUrl"
|
|
|
|
+ >
|
|
<el-option
|
|
<el-option
|
|
v-for="(item, index) in newLiveUrl"
|
|
v-for="(item, index) in newLiveUrl"
|
|
:key="index"
|
|
:key="index"
|
|
@@ -126,10 +164,19 @@
|
|
></el-option>
|
|
></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
<div v-if="listData.liveUrl" style="margin-top: 10px">
|
|
<div v-if="listData.liveUrl" style="margin-top: 10px">
|
|
- <el-button size="small" type="warning" @click="watchZbVideo(listData.liveUrl)">直播预览</el-button>
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ size="small"
|
|
|
|
+ type="warning"
|
|
|
|
+ @click="watchZbVideo(listData.liveUrl)"
|
|
|
|
+ >直播预览</el-button
|
|
|
|
+ >
|
|
</div>
|
|
</div>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="直播开始时间" prop="liveStartTime" v-if="listData.sectionType === 2">
|
|
|
|
|
|
+ <el-form-item
|
|
|
|
+ label="直播开始时间"
|
|
|
|
+ prop="liveStartTime"
|
|
|
|
+ v-if="listData.sectionType === 2"
|
|
|
|
+ >
|
|
<el-date-picker
|
|
<el-date-picker
|
|
v-model="listData.liveStartTime"
|
|
v-model="listData.liveStartTime"
|
|
type="datetime"
|
|
type="datetime"
|
|
@@ -137,7 +184,11 @@
|
|
value-format="timestamp"
|
|
value-format="timestamp"
|
|
></el-date-picker>
|
|
></el-date-picker>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="直播结束时间" prop="liveEndTime" v-if="listData.sectionType === 2">
|
|
|
|
|
|
+ <el-form-item
|
|
|
|
+ label="直播结束时间"
|
|
|
|
+ prop="liveEndTime"
|
|
|
|
+ v-if="listData.sectionType === 2"
|
|
|
|
+ >
|
|
<el-date-picker
|
|
<el-date-picker
|
|
v-model="listData.liveEndTime"
|
|
v-model="listData.liveEndTime"
|
|
type="datetime"
|
|
type="datetime"
|
|
@@ -152,7 +203,10 @@
|
|
listData.liveStartTime &&
|
|
listData.liveStartTime &&
|
|
listData.liveEndTime
|
|
listData.liveEndTime
|
|
"
|
|
"
|
|
- >{{ compTimeOUT(listData.liveStartTime, listData.liveEndTime) }}</el-form-item>
|
|
|
|
|
|
+ >{{
|
|
|
|
+ compTimeOUT(listData.liveStartTime, listData.liveEndTime)
|
|
|
|
+ }}</el-form-item
|
|
|
|
+ >
|
|
<el-form-item
|
|
<el-form-item
|
|
label="URL地址"
|
|
label="URL地址"
|
|
v-if="listData.sectionType === 1 || listData.sectionType === 3"
|
|
v-if="listData.sectionType === 1 || listData.sectionType === 3"
|
|
@@ -165,13 +219,20 @@
|
|
@change="getApiTime(listData.recordingUrl)"
|
|
@change="getApiTime(listData.recordingUrl)"
|
|
></el-input>
|
|
></el-input>
|
|
<label
|
|
<label
|
|
|
|
+ v-if="listData.viewSign == 1"
|
|
for="mobles"
|
|
for="mobles"
|
|
class="el-button el-button--primary"
|
|
class="el-button el-button--primary"
|
|
style="margin: 0px 6px; padding: 10px 20px"
|
|
style="margin: 0px 6px; padding: 10px 20px"
|
|
- >上传</label>
|
|
|
|
- <input style="display: none" type="file" id="mobles" @change="importMoble" />
|
|
|
|
|
|
+ >上传</label
|
|
|
|
+ >
|
|
|
|
+ <input
|
|
|
|
+ style="display: none"
|
|
|
|
+ type="file"
|
|
|
|
+ id="mobles"
|
|
|
|
+ @change="importMoble"
|
|
|
|
+ />
|
|
<el-select
|
|
<el-select
|
|
- v-if="listData.sectionType === 1"
|
|
|
|
|
|
+ v-if="listData.sectionType === 1 && listData.viewSign == 1"
|
|
v-model="newActiveRecordingUrl1"
|
|
v-model="newActiveRecordingUrl1"
|
|
placeholder="快捷选中录播URL地址"
|
|
placeholder="快捷选中录播URL地址"
|
|
filterable
|
|
filterable
|
|
@@ -199,7 +260,12 @@
|
|
></el-option>
|
|
></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
<div v-if="listData.recordingUrl" style="margin-top: 10px">
|
|
<div v-if="listData.recordingUrl" style="margin-top: 10px">
|
|
- <el-button size="small" type="warning" @click="watchVideo(listData.recordingUrl)">视频预览</el-button>
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ size="small"
|
|
|
|
+ type="warning"
|
|
|
|
+ @click="watchVideo(listData.recordingUrl)"
|
|
|
|
+ >视频预览</el-button
|
|
|
|
+ >
|
|
</div>
|
|
</div>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item
|
|
<el-form-item
|
|
@@ -215,8 +281,15 @@
|
|
placeholder="请填入节时长"
|
|
placeholder="请填入节时长"
|
|
></el-time-picker>
|
|
></el-time-picker>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="讲师" :prop="listData.sectionType === 2 ? 'teacherId' : ''">
|
|
|
|
- <el-select v-model="listData.teacherId" placeholder="请选择讲师" filterable>
|
|
|
|
|
|
+ <el-form-item
|
|
|
|
+ label="讲师"
|
|
|
|
+ :prop="listData.sectionType === 2 ? 'teacherId' : ''"
|
|
|
|
+ >
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="listData.teacherId"
|
|
|
|
+ placeholder="请选择讲师"
|
|
|
|
+ filterable
|
|
|
|
+ >
|
|
<el-option
|
|
<el-option
|
|
v-for="(item, index) in teacherList"
|
|
v-for="(item, index) in teacherList"
|
|
:key="index"
|
|
:key="index"
|
|
@@ -260,9 +333,9 @@
|
|
></el-image>
|
|
></el-image>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="11">
|
|
<el-col :span="11">
|
|
- <span
|
|
|
|
- style="color: #999; font-size: 14px"
|
|
|
|
- >注:请上传小于300kb,尺寸为750*440的图片,支持gif、jpg、jpeg、png等类型</span>
|
|
|
|
|
|
+ <span style="color: #999; font-size: 14px"
|
|
|
|
+ >注:请上传小于300kb,尺寸为750*440的图片,支持gif、jpg、jpeg、png等类型</span
|
|
|
|
+ >
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-button
|
|
<el-button
|
|
@@ -271,7 +344,8 @@
|
|
size="mini"
|
|
size="mini"
|
|
class="margin-top: 20px;"
|
|
class="margin-top: 20px;"
|
|
@click="clearImgs"
|
|
@click="clearImgs"
|
|
- >删除</el-button>
|
|
|
|
|
|
+ >删除</el-button
|
|
|
|
+ >
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="是否发布" prop="publishStatus">
|
|
<el-form-item label="是否发布" prop="publishStatus">
|
|
<el-radio-group v-model="listData.publishStatus">
|
|
<el-radio-group v-model="listData.publishStatus">
|
|
@@ -286,7 +360,8 @@
|
|
@click="submit('listData')"
|
|
@click="submit('listData')"
|
|
:disabled="listData.sectionType === 1 ? !noStudent : false"
|
|
:disabled="listData.sectionType === 1 ? !noStudent : false"
|
|
:loading="disabledBtn"
|
|
:loading="disabledBtn"
|
|
- >确定</el-button>
|
|
|
|
|
|
+ >确定</el-button
|
|
|
|
+ >
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
</div>
|
|
</div>
|
|
@@ -359,21 +434,21 @@ export default {
|
|
cataid: "1639399775001", // 分类ID 可以后端传递 也可以不写 或写死
|
|
cataid: "1639399775001", // 分类ID 可以后端传递 也可以不写 或写死
|
|
tag: "i am tag", // 标签
|
|
tag: "i am tag", // 标签
|
|
luping: 0, // 是否开启视频课件优化处理,对于上传录屏类视频清晰度有所优化:0为不开启,1为开启
|
|
luping: 0, // 是否开启视频课件优化处理,对于上传录屏类视频清晰度有所优化:0为不开启,1为开启
|
|
- keepsource: 1 // 是否源文件播放(不对视频进行编码):0为编码,1为不编码
|
|
|
|
|
|
+ keepsource: 1, // 是否源文件播放(不对视频进行编码):0为编码,1为不编码
|
|
},
|
|
},
|
|
sectionTypeOptions: [
|
|
sectionTypeOptions: [
|
|
{
|
|
{
|
|
label: "录播",
|
|
label: "录播",
|
|
- value: 1
|
|
|
|
|
|
+ value: 1,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
label: "直播",
|
|
label: "直播",
|
|
- value: 2
|
|
|
|
|
|
+ value: 2,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
label: "回放",
|
|
label: "回放",
|
|
- value: 3
|
|
|
|
- }
|
|
|
|
|
|
+ value: 3,
|
|
|
|
+ },
|
|
],
|
|
],
|
|
// 弹窗数据
|
|
// 弹窗数据
|
|
changeHeight: true,
|
|
changeHeight: true,
|
|
@@ -381,7 +456,7 @@ export default {
|
|
listData: {
|
|
listData: {
|
|
recordingUrl: "",
|
|
recordingUrl: "",
|
|
liveUrl: "",
|
|
liveUrl: "",
|
|
- coverUrl: "oss/images/avatar/20211013/1634097664410_1397766697"
|
|
|
|
|
|
+ coverUrl: "oss/images/avatar/20211013/1634097664410_1397766697",
|
|
},
|
|
},
|
|
newActiveLiveUrl: "",
|
|
newActiveLiveUrl: "",
|
|
newLiveUrl: [], //直播地址
|
|
newLiveUrl: [], //直播地址
|
|
@@ -407,7 +482,7 @@ export default {
|
|
//表单验证
|
|
//表单验证
|
|
rules: {
|
|
rules: {
|
|
prefixName: [
|
|
prefixName: [
|
|
- { required: true, message: "请输入标题前缀", trigger: "blur" }
|
|
|
|
|
|
+ { required: true, message: "请输入标题前缀", trigger: "blur" },
|
|
],
|
|
],
|
|
name: [{ required: true, message: "请输入节标题", trigger: "blur" }],
|
|
name: [{ required: true, message: "请输入节标题", trigger: "blur" }],
|
|
// liveDuration: [
|
|
// liveDuration: [
|
|
@@ -415,40 +490,42 @@ export default {
|
|
// { type: "number", message: "节时长必须为数字值" },
|
|
// { type: "number", message: "节时长必须为数字值" },
|
|
// ],
|
|
// ],
|
|
viewSign: [
|
|
viewSign: [
|
|
- { required: true, message: "请选择视频类型", trigger: "change" }
|
|
|
|
|
|
+ { required: true, message: "请选择视频类型", trigger: "change" },
|
|
],
|
|
],
|
|
recordingUrl: [
|
|
recordingUrl: [
|
|
{
|
|
{
|
|
required: true,
|
|
required: true,
|
|
message: "请输入URL地址",
|
|
message: "请输入URL地址",
|
|
- trigger: ["blur", "change"]
|
|
|
|
- }
|
|
|
|
|
|
+ trigger: ["blur", "change"],
|
|
|
|
+ },
|
|
],
|
|
],
|
|
durationTime: [
|
|
durationTime: [
|
|
- { required: false, message: "请选择节时长", trigger: "change" }
|
|
|
|
|
|
+ { required: false, message: "请选择节时长", trigger: "change" },
|
|
],
|
|
],
|
|
liveUrl: [
|
|
liveUrl: [
|
|
{
|
|
{
|
|
required: true,
|
|
required: true,
|
|
message: "请输入频道号",
|
|
message: "请输入频道号",
|
|
- trigger: ["blur", "change"]
|
|
|
|
- }
|
|
|
|
|
|
+ trigger: ["blur", "change"],
|
|
|
|
+ },
|
|
],
|
|
],
|
|
liveStartTime: [
|
|
liveStartTime: [
|
|
- { required: true, message: "请选择直播开始时间", trigger: "change" }
|
|
|
|
|
|
+ { required: true, message: "请选择直播开始时间", trigger: "change" },
|
|
],
|
|
],
|
|
liveEndTime: [
|
|
liveEndTime: [
|
|
- { required: true, message: "请选择直播结束时间", trigger: "change" }
|
|
|
|
|
|
+ { required: true, message: "请选择直播结束时间", trigger: "change" },
|
|
],
|
|
],
|
|
teacherId: [
|
|
teacherId: [
|
|
- { required: true, message: "请选择讲师", trigger: "change" }
|
|
|
|
|
|
+ { required: true, message: "请选择讲师", trigger: "change" },
|
|
],
|
|
],
|
|
publishStatus: [
|
|
publishStatus: [
|
|
- { required: true, message: "请选择是否发布", trigger: "change" }
|
|
|
|
|
|
+ { required: true, message: "请选择是否发布", trigger: "change" },
|
|
|
|
+ ],
|
|
|
|
+ coverUrl: [
|
|
|
|
+ { required: true, message: "请上传封面", trigger: "change" },
|
|
],
|
|
],
|
|
- coverUrl: [{ required: true, message: "请上传封面", trigger: "change" }]
|
|
|
|
},
|
|
},
|
|
- pageId: this.$route.query.id
|
|
|
|
|
|
+ pageId: this.$route.query.id,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
@@ -456,12 +533,12 @@ export default {
|
|
immediate: true,
|
|
immediate: true,
|
|
handler(newName, oldName) {
|
|
handler(newName, oldName) {
|
|
this.changeTypes();
|
|
this.changeTypes();
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ },
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
this.$modal.loading("正在导入数据,请稍后...");
|
|
this.$modal.loading("正在导入数据,请稍后...");
|
|
- this.$api.gradecheckGoodsChange({ sectionId: this.pageId }).then(res => {
|
|
|
|
|
|
+ this.$api.gradecheckGoodsChange({ sectionId: this.pageId }).then((res) => {
|
|
if (res.data > 0) {
|
|
if (res.data > 0) {
|
|
// this.noStudent = false;
|
|
// this.noStudent = false;
|
|
}
|
|
}
|
|
@@ -473,7 +550,7 @@ export default {
|
|
* 复选框点击触发
|
|
* 复选框点击触发
|
|
*/
|
|
*/
|
|
handleCheckedCitiesChange() {
|
|
handleCheckedCitiesChange() {
|
|
- let nid = this.newSujectOption.map(item => {
|
|
|
|
|
|
+ let nid = this.newSujectOption.map((item) => {
|
|
return item.newId;
|
|
return item.newId;
|
|
});
|
|
});
|
|
this.checkAll = this.sujectArray.length === nid.length;
|
|
this.checkAll = this.sujectArray.length === nid.length;
|
|
@@ -496,18 +573,18 @@ export default {
|
|
*/
|
|
*/
|
|
handleCheckAllChange(val) {
|
|
handleCheckAllChange(val) {
|
|
if (val) {
|
|
if (val) {
|
|
- let nid = this.newSujectOption.map(item => {
|
|
|
|
|
|
+ let nid = this.newSujectOption.map((item) => {
|
|
return item.newId;
|
|
return item.newId;
|
|
});
|
|
});
|
|
let arrays = this.sujectArray.concat(nid);
|
|
let arrays = this.sujectArray.concat(nid);
|
|
this.sujectArray = this.setFunc(arrays);
|
|
this.sujectArray = this.setFunc(arrays);
|
|
this.isIndeterminate = false;
|
|
this.isIndeterminate = false;
|
|
} else {
|
|
} else {
|
|
- let nid = this.newSujectOption.map(item => {
|
|
|
|
|
|
+ let nid = this.newSujectOption.map((item) => {
|
|
return item.newId;
|
|
return item.newId;
|
|
});
|
|
});
|
|
let newArr = [];
|
|
let newArr = [];
|
|
- this.sujectArray.forEach(item => {
|
|
|
|
|
|
+ this.sujectArray.forEach((item) => {
|
|
if (!nid.includes(item)) {
|
|
if (!nid.includes(item)) {
|
|
newArr.push(item);
|
|
newArr.push(item);
|
|
}
|
|
}
|
|
@@ -555,7 +632,7 @@ export default {
|
|
this.disabledBtn = true;
|
|
this.disabledBtn = true;
|
|
this.$api
|
|
this.$api
|
|
.inquirevodvideodetail(valueUrl)
|
|
.inquirevodvideodetail(valueUrl)
|
|
- .then(res => {
|
|
|
|
|
|
+ .then((res) => {
|
|
console.log("请求腾讯时长", res.data.duration);
|
|
console.log("请求腾讯时长", res.data.duration);
|
|
if (res.data.duration) {
|
|
if (res.data.duration) {
|
|
self.listData.durationTime = this.$methodsTools.secondToDate(
|
|
self.listData.durationTime = this.$methodsTools.secondToDate(
|
|
@@ -568,7 +645,7 @@ export default {
|
|
self.disabloutime = false;
|
|
self.disabloutime = false;
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- .catch(err => {
|
|
|
|
|
|
+ .catch((err) => {
|
|
self.disabloutime = false;
|
|
self.disabloutime = false;
|
|
})
|
|
})
|
|
.finally(() => {
|
|
.finally(() => {
|
|
@@ -579,7 +656,7 @@ export default {
|
|
this.disabledBtn = true;
|
|
this.disabledBtn = true;
|
|
this.$api
|
|
this.$api
|
|
.inquirepolyvvideo(valueUrl)
|
|
.inquirepolyvvideo(valueUrl)
|
|
- .then(res => {
|
|
|
|
|
|
+ .then((res) => {
|
|
if (res.data.duration) {
|
|
if (res.data.duration) {
|
|
self.listData.durationTime = res.data.duration;
|
|
self.listData.durationTime = res.data.duration;
|
|
self.disabloutime = true;
|
|
self.disabloutime = true;
|
|
@@ -587,7 +664,7 @@ export default {
|
|
self.disabloutime = false;
|
|
self.disabloutime = false;
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- .catch(err => {
|
|
|
|
|
|
+ .catch((err) => {
|
|
self.disabloutime = false;
|
|
self.disabloutime = false;
|
|
})
|
|
})
|
|
.finally(() => {
|
|
.finally(() => {
|
|
@@ -631,11 +708,11 @@ export default {
|
|
height: 533,
|
|
height: 533,
|
|
vid: self.vid,
|
|
vid: self.vid,
|
|
teaser_show: 0,
|
|
teaser_show: 0,
|
|
- playsafe: function(vid, next) {
|
|
|
|
- self.$api.obtainpolyvvideosign(vid).then(res => {
|
|
|
|
|
|
+ playsafe: function (vid, next) {
|
|
|
|
+ self.$api.obtainpolyvvideosign(vid).then((res) => {
|
|
next(res.data);
|
|
next(res.data);
|
|
});
|
|
});
|
|
- }
|
|
|
|
|
|
+ },
|
|
});
|
|
});
|
|
},
|
|
},
|
|
loadPlayer_tencent() {
|
|
loadPlayer_tencent() {
|
|
@@ -652,14 +729,14 @@ export default {
|
|
document
|
|
document
|
|
.getElementById("player")
|
|
.getElementById("player")
|
|
.insertAdjacentElement("afterend", player_tencent);
|
|
.insertAdjacentElement("afterend", player_tencent);
|
|
- self.$api.obtaintcvideosign(self.vid).then(res => {
|
|
|
|
|
|
+ self.$api.obtaintcvideosign(self.vid).then((res) => {
|
|
self.player_tencent = TCPlayer("player-tencent", {
|
|
self.player_tencent = TCPlayer("player-tencent", {
|
|
width: 800,
|
|
width: 800,
|
|
height: 533,
|
|
height: 533,
|
|
fileID: self.vid,
|
|
fileID: self.vid,
|
|
appID: res.data.appID,
|
|
appID: res.data.appID,
|
|
psign: res.data.psign,
|
|
psign: res.data.psign,
|
|
- licenseUrl: res.data.licenseUrl
|
|
|
|
|
|
+ licenseUrl: res.data.licenseUrl,
|
|
});
|
|
});
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -730,7 +807,7 @@ export default {
|
|
width: 800,
|
|
width: 800,
|
|
height: 533,
|
|
height: 533,
|
|
uid: this.uidzb,
|
|
uid: this.uidzb,
|
|
- vid: this.vidzb
|
|
|
|
|
|
+ vid: this.vidzb,
|
|
});
|
|
});
|
|
},
|
|
},
|
|
clearszb() {
|
|
clearszb() {
|
|
@@ -754,7 +831,7 @@ export default {
|
|
* @param: this.fileSetting -> 常规配置 上面有备注
|
|
* @param: this.fileSetting -> 常规配置 上面有备注
|
|
* @param: 回调
|
|
* @param: 回调
|
|
*/
|
|
*/
|
|
- uploadFile(file, this.fileSetting, event => {
|
|
|
|
|
|
+ uploadFile(file, this.fileSetting, (event) => {
|
|
this.listData.recordingUrl = event.vid;
|
|
this.listData.recordingUrl = event.vid;
|
|
this.listData.durationTime = "";
|
|
this.listData.durationTime = "";
|
|
this.getApiTime(event.vid);
|
|
this.getApiTime(event.vid);
|
|
@@ -768,7 +845,7 @@ export default {
|
|
search() {
|
|
search() {
|
|
this.$api
|
|
this.$api
|
|
.obtainCourseSection(this.pageId)
|
|
.obtainCourseSection(this.pageId)
|
|
- .then(res => {
|
|
|
|
|
|
+ .then((res) => {
|
|
this.bfImg = res.data.coverUrl;
|
|
this.bfImg = res.data.coverUrl;
|
|
if (res.data.sectionType === 2) {
|
|
if (res.data.sectionType === 2) {
|
|
res.data.liveStartTime = this.$methodsTools.time10to13(
|
|
res.data.liveStartTime = this.$methodsTools.time10to13(
|
|
@@ -789,9 +866,9 @@ export default {
|
|
}
|
|
}
|
|
this.typeSection = res.data.sectionType;
|
|
this.typeSection = res.data.sectionType;
|
|
this.listData = JSON.parse(JSON.stringify(res.data));
|
|
this.listData = JSON.parse(JSON.stringify(res.data));
|
|
- this.$api.obtaincourseSectionbusiness(this.pageId).then(result => {
|
|
|
|
|
|
+ this.$api.obtaincourseSectionbusiness(this.pageId).then((result) => {
|
|
var arrays = [];
|
|
var arrays = [];
|
|
- result.data.map(item => {
|
|
|
|
|
|
+ result.data.map((item) => {
|
|
arrays.push(item.businessId + "-" + item.subjectId);
|
|
arrays.push(item.businessId + "-" + item.subjectId);
|
|
});
|
|
});
|
|
this.sujectApis = arrays;
|
|
this.sujectApis = arrays;
|
|
@@ -809,7 +886,7 @@ export default {
|
|
var self = this;
|
|
var self = this;
|
|
var arrays = [];
|
|
var arrays = [];
|
|
this.sujectApis.map((item, index) => {
|
|
this.sujectApis.map((item, index) => {
|
|
- this.courTypeOptions.map(items => {
|
|
|
|
|
|
+ this.courTypeOptions.map((items) => {
|
|
if (items.id === item.split("-").map(Number)[0]) {
|
|
if (items.id === item.split("-").map(Number)[0]) {
|
|
var obj = {
|
|
var obj = {
|
|
educationTypeId: items.educationId,
|
|
educationTypeId: items.educationId,
|
|
@@ -817,9 +894,9 @@ export default {
|
|
projectId: items.projectId,
|
|
projectId: items.projectId,
|
|
projectName: items.projectName,
|
|
projectName: items.projectName,
|
|
businessId: items.id,
|
|
businessId: items.id,
|
|
- businessName: items.businessName
|
|
|
|
|
|
+ businessName: items.businessName,
|
|
};
|
|
};
|
|
- self.sujectOption.map(i => {
|
|
|
|
|
|
+ self.sujectOption.map((i) => {
|
|
if (
|
|
if (
|
|
i.id === item.split("-").map(Number)[1] &&
|
|
i.id === item.split("-").map(Number)[1] &&
|
|
i.courseArrays.indexOf(items.projectId) !== -1
|
|
i.courseArrays.indexOf(items.projectId) !== -1
|
|
@@ -851,7 +928,7 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
changeUrl() {
|
|
changeUrl() {
|
|
- var arr = this.newSujectApis.map(val => val.businessId);
|
|
|
|
|
|
+ var arr = this.newSujectApis.map((val) => val.businessId);
|
|
const unique = [...new Set(arr)];
|
|
const unique = [...new Set(arr)];
|
|
var busId = "";
|
|
var busId = "";
|
|
if (unique.length) {
|
|
if (unique.length) {
|
|
@@ -859,11 +936,11 @@ export default {
|
|
} else {
|
|
} else {
|
|
busId = "";
|
|
busId = "";
|
|
}
|
|
}
|
|
- this.$api.inquireCourseStreaming({ status: 1 }).then(res => {
|
|
|
|
|
|
+ this.$api.inquireCourseStreaming({ status: 1 }).then((res) => {
|
|
var arraystt = [];
|
|
var arraystt = [];
|
|
var newarrays1tt = [];
|
|
var newarrays1tt = [];
|
|
var newarrays2tt = [];
|
|
var newarrays2tt = [];
|
|
- res.rows.map(item => {
|
|
|
|
|
|
+ res.rows.map((item) => {
|
|
if (item.streamingType === 1) {
|
|
if (item.streamingType === 1) {
|
|
arraystt.push(item);
|
|
arraystt.push(item);
|
|
}
|
|
}
|
|
@@ -876,11 +953,11 @@ export default {
|
|
});
|
|
});
|
|
this.$api
|
|
this.$api
|
|
.inquireCourseStreaming({ status: 1, businessId: busId })
|
|
.inquireCourseStreaming({ status: 1, businessId: busId })
|
|
- .then(result => {
|
|
|
|
|
|
+ .then((result) => {
|
|
var arrays = [];
|
|
var arrays = [];
|
|
var newarrays1 = [];
|
|
var newarrays1 = [];
|
|
var newarrays2 = [];
|
|
var newarrays2 = [];
|
|
- result.rows.map(item => {
|
|
|
|
|
|
+ result.rows.map((item) => {
|
|
if (item.streamingType === 1) {
|
|
if (item.streamingType === 1) {
|
|
arrays.push(item);
|
|
arrays.push(item);
|
|
}
|
|
}
|
|
@@ -925,7 +1002,7 @@ export default {
|
|
this.$refs.popovers.doClose();
|
|
this.$refs.popovers.doClose();
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- this.newSujectOption.map(item => {
|
|
|
|
|
|
+ this.newSujectOption.map((item) => {
|
|
item.newId = this.courType + "-" + item.id;
|
|
item.newId = this.courType + "-" + item.id;
|
|
});
|
|
});
|
|
this.handleCheckedCitiesChange();
|
|
this.handleCheckedCitiesChange();
|
|
@@ -937,12 +1014,12 @@ export default {
|
|
await this.courseTys();
|
|
await this.courseTys();
|
|
await this.businTys();
|
|
await this.businTys();
|
|
await this.courseSubject();
|
|
await this.courseSubject();
|
|
- await this.Streaming();
|
|
|
|
|
|
+ this.Streaming();
|
|
this.search();
|
|
this.search();
|
|
},
|
|
},
|
|
tearchApi() {
|
|
tearchApi() {
|
|
return new Promise((resolve, reject) => {
|
|
return new Promise((resolve, reject) => {
|
|
- this.$api.inquiresystemteacherlist({ status: 1 }).then(res => {
|
|
|
|
|
|
+ this.$api.inquiresystemteacherlist({ status: 1 }).then((res) => {
|
|
this.teacherList = res.rows;
|
|
this.teacherList = res.rows;
|
|
resolve();
|
|
resolve();
|
|
});
|
|
});
|
|
@@ -950,7 +1027,7 @@ export default {
|
|
},
|
|
},
|
|
eduTys() {
|
|
eduTys() {
|
|
return new Promise((resolve, reject) => {
|
|
return new Promise((resolve, reject) => {
|
|
- this.$api.inquireCourseEducationType({ status: 1 }).then(res => {
|
|
|
|
|
|
+ this.$api.inquireCourseEducationType({ status: 1 }).then((res) => {
|
|
this.eduTypeOptions = res.rows;
|
|
this.eduTypeOptions = res.rows;
|
|
resolve();
|
|
resolve();
|
|
});
|
|
});
|
|
@@ -958,7 +1035,7 @@ export default {
|
|
},
|
|
},
|
|
courseTys() {
|
|
courseTys() {
|
|
return new Promise((resolve, reject) => {
|
|
return new Promise((resolve, reject) => {
|
|
- this.$api.inquireCourseProjectType({ status: 1 }).then(res => {
|
|
|
|
|
|
+ this.$api.inquireCourseProjectType({ status: 1 }).then((res) => {
|
|
this.projectTypeOptions = res.rows;
|
|
this.projectTypeOptions = res.rows;
|
|
resolve();
|
|
resolve();
|
|
});
|
|
});
|
|
@@ -966,7 +1043,7 @@ export default {
|
|
},
|
|
},
|
|
businTys() {
|
|
businTys() {
|
|
return new Promise((resolve, reject) => {
|
|
return new Promise((resolve, reject) => {
|
|
- this.$api.inquirebusinessList({ status: 1 }).then(res => {
|
|
|
|
|
|
+ this.$api.inquirebusinessList({ status: 1 }).then((res) => {
|
|
this.courTypeOptions = res.rows;
|
|
this.courTypeOptions = res.rows;
|
|
this.newCourTypeOptions = res.rows;
|
|
this.newCourTypeOptions = res.rows;
|
|
resolve();
|
|
resolve();
|
|
@@ -975,7 +1052,7 @@ export default {
|
|
},
|
|
},
|
|
courseSubject() {
|
|
courseSubject() {
|
|
return new Promise((resolve, reject) => {
|
|
return new Promise((resolve, reject) => {
|
|
- this.$api.inquireCourseSubject({ status: 1 }).then(res => {
|
|
|
|
|
|
+ this.$api.inquireCourseSubject({ status: 1 }).then((res) => {
|
|
res.rows.map((item, index) => {
|
|
res.rows.map((item, index) => {
|
|
var array = [];
|
|
var array = [];
|
|
item.courseProjectTypes.map((items, indexs) => {
|
|
item.courseProjectTypes.map((items, indexs) => {
|
|
@@ -989,27 +1066,24 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
Streaming() {
|
|
Streaming() {
|
|
- return new Promise((resolve, reject) => {
|
|
|
|
- this.$api.inquireCourseStreaming({ status: 1 }).then(res => {
|
|
|
|
- var arrays = [];
|
|
|
|
- var newarrays1 = [];
|
|
|
|
- var newarrays2 = [];
|
|
|
|
- res.rows.map(item => {
|
|
|
|
- if (item.streamingType === 1) {
|
|
|
|
- arrays.push(item);
|
|
|
|
- }
|
|
|
|
- if (item.streamingType === 2) {
|
|
|
|
- newarrays1.push(item);
|
|
|
|
- }
|
|
|
|
- if (item.streamingType === 3) {
|
|
|
|
- newarrays2.push(item);
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- this.newLiveUrl = arrays;
|
|
|
|
- this.newSteamUrl1 = newarrays1;
|
|
|
|
- this.newSteamUrl2 = newarrays2;
|
|
|
|
- resolve();
|
|
|
|
|
|
+ this.$api.inquireCourseStreaming({ status: 1 }).then((res) => {
|
|
|
|
+ var arrays = [];
|
|
|
|
+ var newarrays1 = [];
|
|
|
|
+ var newarrays2 = [];
|
|
|
|
+ res.rows.map((item) => {
|
|
|
|
+ if (item.streamingType === 1) {
|
|
|
|
+ arrays.push(item);
|
|
|
|
+ }
|
|
|
|
+ if (item.streamingType === 2) {
|
|
|
|
+ newarrays1.push(item);
|
|
|
|
+ }
|
|
|
|
+ if (item.streamingType === 3) {
|
|
|
|
+ newarrays2.push(item);
|
|
|
|
+ }
|
|
});
|
|
});
|
|
|
|
+ this.newLiveUrl = arrays;
|
|
|
|
+ this.newSteamUrl1 = newarrays1;
|
|
|
|
+ this.newSteamUrl2 = newarrays2;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
changeEduType() {
|
|
changeEduType() {
|
|
@@ -1017,7 +1091,7 @@ export default {
|
|
this.courType = "";
|
|
this.courType = "";
|
|
}
|
|
}
|
|
var arrays = [];
|
|
var arrays = [];
|
|
- this.courTypeOptions.map(item => {
|
|
|
|
|
|
+ this.courTypeOptions.map((item) => {
|
|
if (item.educationId === this.eduType) {
|
|
if (item.educationId === this.eduType) {
|
|
arrays.push(item);
|
|
arrays.push(item);
|
|
}
|
|
}
|
|
@@ -1038,7 +1112,7 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
var arrays = [];
|
|
var arrays = [];
|
|
- this.courTypeOptions.map(item => {
|
|
|
|
|
|
+ this.courTypeOptions.map((item) => {
|
|
if (item.educationId === this.eduType) {
|
|
if (item.educationId === this.eduType) {
|
|
arrays.push(item);
|
|
arrays.push(item);
|
|
}
|
|
}
|
|
@@ -1047,7 +1121,7 @@ export default {
|
|
this.$refs.popovers.doClose();
|
|
this.$refs.popovers.doClose();
|
|
},
|
|
},
|
|
submit(formName) {
|
|
submit(formName) {
|
|
- this.$refs[formName].validate(valid => {
|
|
|
|
|
|
+ this.$refs[formName].validate((valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
if (!this.newSujectApis.length) {
|
|
if (!this.newSujectApis.length) {
|
|
this.$message.error("请选择适用业务层级");
|
|
this.$message.error("请选择适用业务层级");
|
|
@@ -1078,7 +1152,7 @@ export default {
|
|
name: this.listData.name,
|
|
name: this.listData.name,
|
|
prefixName: this.listData.prefixName,
|
|
prefixName: this.listData.prefixName,
|
|
publishStatus: this.listData.publishStatus,
|
|
publishStatus: this.listData.publishStatus,
|
|
- teacherId: this.listData.teacherId
|
|
|
|
|
|
+ teacherId: this.listData.teacherId,
|
|
};
|
|
};
|
|
|
|
|
|
if (this.listData.sectionType === 2) {
|
|
if (this.listData.sectionType === 2) {
|
|
@@ -1120,20 +1194,22 @@ export default {
|
|
}
|
|
}
|
|
this.$api
|
|
this.$api
|
|
.editCourseSection(dataInfos)
|
|
.editCourseSection(dataInfos)
|
|
- .then(res => {
|
|
|
|
|
|
+ .then((res) => {
|
|
this.$message.success("修改成功");
|
|
this.$message.success("修改成功");
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
- this.$store.dispatch("tagsView/exitView", this.$route).then(res => {
|
|
|
|
- if (this.$store.getters.festivalPage) {
|
|
|
|
- this.$router.push({
|
|
|
|
- path: this.$store.getters.festivalPage.name
|
|
|
|
- });
|
|
|
|
- } else {
|
|
|
|
- this.$router.push({
|
|
|
|
- path: "festival"
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ this.$store
|
|
|
|
+ .dispatch("tagsView/exitView", this.$route)
|
|
|
|
+ .then((res) => {
|
|
|
|
+ if (this.$store.getters.festivalPage) {
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path: this.$store.getters.festivalPage.name,
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path: "festival",
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ });
|
|
}, 500);
|
|
}, 500);
|
|
})
|
|
})
|
|
.catch(() => {
|
|
.catch(() => {
|
|
@@ -1141,14 +1217,14 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
backPage() {
|
|
backPage() {
|
|
- this.$store.dispatch("tagsView/delView", this.$route).then(res => {
|
|
|
|
|
|
+ this.$store.dispatch("tagsView/delView", this.$route).then((res) => {
|
|
if (this.$store.getters.festivalPage) {
|
|
if (this.$store.getters.festivalPage) {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
- path: this.$store.getters.festivalPage.name
|
|
|
|
|
|
+ path: this.$store.getters.festivalPage.name,
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
- path: "festival"
|
|
|
|
|
|
+ path: "festival",
|
|
});
|
|
});
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -1160,7 +1236,7 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
changeLiveUrl() {
|
|
changeLiveUrl() {
|
|
- this.newLiveUrl.map(item => {
|
|
|
|
|
|
+ this.newLiveUrl.map((item) => {
|
|
if (item.id === this.newActiveLiveUrl) {
|
|
if (item.id === this.newActiveLiveUrl) {
|
|
this.listData.liveUrl = item.liveUrl;
|
|
this.listData.liveUrl = item.liveUrl;
|
|
}
|
|
}
|
|
@@ -1168,7 +1244,7 @@ export default {
|
|
this.newActiveLiveUrl = "";
|
|
this.newActiveLiveUrl = "";
|
|
},
|
|
},
|
|
changeRecordingUrl1() {
|
|
changeRecordingUrl1() {
|
|
- this.newSteamUrl1.map(item => {
|
|
|
|
|
|
+ this.newSteamUrl1.map((item) => {
|
|
if (item.id === this.newActiveRecordingUrl1) {
|
|
if (item.id === this.newActiveRecordingUrl1) {
|
|
this.listData.recordingUrl = item.recordingVideoId;
|
|
this.listData.recordingUrl = item.recordingVideoId;
|
|
this.getApiTime(item.recordingVideoId);
|
|
this.getApiTime(item.recordingVideoId);
|
|
@@ -1177,7 +1253,7 @@ export default {
|
|
this.newActiveRecordingUrl1 = "";
|
|
this.newActiveRecordingUrl1 = "";
|
|
},
|
|
},
|
|
changeRecordingUrl2() {
|
|
changeRecordingUrl2() {
|
|
- this.newSteamUrl2.map(item => {
|
|
|
|
|
|
+ this.newSteamUrl2.map((item) => {
|
|
if (item.id === this.newActiveRecordingUrl2) {
|
|
if (item.id === this.newActiveRecordingUrl2) {
|
|
this.listData.recordingUrl = item.playbackUrl;
|
|
this.listData.recordingUrl = item.playbackUrl;
|
|
this.getApiTime(item.recordingVideoId);
|
|
this.getApiTime(item.recordingVideoId);
|
|
@@ -1196,10 +1272,7 @@ export default {
|
|
self.$message.error("图片不得大于300kb");
|
|
self.$message.error("图片不得大于300kb");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- var type = self.$refs.file.value
|
|
|
|
- .toLowerCase()
|
|
|
|
- .split(".")
|
|
|
|
- .splice(-1);
|
|
|
|
|
|
+ var type = self.$refs.file.value.toLowerCase().split(".").splice(-1);
|
|
if (
|
|
if (
|
|
type[0] != "jpg" &&
|
|
type[0] != "jpg" &&
|
|
type[0] != "png" &&
|
|
type[0] != "png" &&
|
|
@@ -1210,15 +1283,15 @@ export default {
|
|
self.$refs.file.value = "";
|
|
self.$refs.file.value = "";
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- this.$upload.upload(file, 0).then(res => {
|
|
|
|
|
|
+ this.$upload.upload(file, 0).then((res) => {
|
|
self.listData.coverUrl = res;
|
|
self.listData.coverUrl = res;
|
|
self.$refs.listData.validateField("coverUrl");
|
|
self.$refs.listData.validateField("coverUrl");
|
|
});
|
|
});
|
|
- }
|
|
|
|
|
|
+ },
|
|
},
|
|
},
|
|
destroyed() {
|
|
destroyed() {
|
|
this.closePlayer();
|
|
this.closePlayer();
|
|
- }
|
|
|
|
|
|
+ },
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|