|
@@ -91,7 +91,8 @@ export default {
|
|
},
|
|
},
|
|
// 获取正在转码的视频
|
|
// 获取正在转码的视频
|
|
getMyVideoProcessingList() {
|
|
getMyVideoProcessingList() {
|
|
- this.isRequest();
|
|
|
|
|
|
+ this.loading = true;
|
|
|
|
+ // this.isRequest();
|
|
GetMyVideoListByTranscoding({ pageIndex: 1, pageSize: 1000, name: "" })
|
|
GetMyVideoListByTranscoding({ pageIndex: 1, pageSize: 1000, name: "" })
|
|
.then(({ data }) => {
|
|
.then(({ data }) => {
|
|
if (data.isSuccess) {
|
|
if (data.isSuccess) {
|
|
@@ -101,8 +102,10 @@ export default {
|
|
this.$toast(data.ResultMsg);
|
|
this.$toast(data.ResultMsg);
|
|
}
|
|
}
|
|
Toast.clear();
|
|
Toast.clear();
|
|
|
|
+ this.loading = false;
|
|
})
|
|
})
|
|
.catch(error => {
|
|
.catch(error => {
|
|
|
|
+ this.loading = false;
|
|
Toast.clear();
|
|
Toast.clear();
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -110,13 +113,13 @@ export default {
|
|
// 获取已发布的视频列表
|
|
// 获取已发布的视频列表
|
|
getMyVideoList() {
|
|
getMyVideoList() {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
- this.isRequest();
|
|
|
|
|
|
+ // this.isRequest();
|
|
getDoctorProduction(this.videoParams)
|
|
getDoctorProduction(this.videoParams)
|
|
.then(({ data }) => {
|
|
.then(({ data }) => {
|
|
// return;
|
|
// return;
|
|
|
|
+ this.loading = false;
|
|
if (data.isSuccess) {
|
|
if (data.isSuccess) {
|
|
Toast.clear();
|
|
Toast.clear();
|
|
- this.loading = false;
|
|
|
|
this.videoListTotal = data.pager.totalItemCount;
|
|
this.videoListTotal = data.pager.totalItemCount;
|
|
if (data.resultObject.length === 0 && this.videoParams.pageIndex === 1) {
|
|
if (data.resultObject.length === 0 && this.videoParams.pageIndex === 1) {
|
|
this.isShow = true;
|
|
this.isShow = true;
|
|
@@ -134,7 +137,10 @@ export default {
|
|
Toast('服务器异常,请稍后重试');
|
|
Toast('服务器异常,请稍后重试');
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- .catch(err => { Toast.clear() })
|
|
|
|
|
|
+ .catch(err => {
|
|
|
|
+ Toast.clear()
|
|
|
|
+ this.loading = false;
|
|
|
|
+ })
|
|
},
|
|
},
|
|
|
|
|
|
// 跳转视频播放页面
|
|
// 跳转视频播放页面
|