2023年9月4日 修改调用接口返回内容,定时关闭未上线直播间,同时点击按钮拉流
This commit is contained in:
parent
98948e2266
commit
be269e4827
|
@ -125,7 +125,7 @@ const currentItem:Ref<any> = ref({});
|
||||||
const showAllLiveKey:Ref<string> = ref('showAllLiveKey');
|
const showAllLiveKey:Ref<string> = ref('showAllLiveKey');
|
||||||
const isShowAllLive:Ref<boolean> = ref(false);
|
const isShowAllLive:Ref<boolean> = ref(false);
|
||||||
const loading:Ref<boolean> = ref(false);
|
const loading:Ref<boolean> = ref(false);
|
||||||
const { createMessage } = useMessage();
|
const { createMessage, createInfoModal } = useMessage();
|
||||||
const queryParam:Ref<any> = ref({});
|
const queryParam:Ref<any> = ref({});
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
@ -258,6 +258,7 @@ function ylLive(record){
|
||||||
}
|
}
|
||||||
|
|
||||||
function changeLive(record, isEnable){
|
function changeLive(record, isEnable){
|
||||||
|
console.log('createInfoModal ->',createInfoModal);
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
let ids:any = [];
|
let ids:any = [];
|
||||||
let changeLiveEnd:any = [];
|
let changeLiveEnd:any = [];
|
||||||
|
@ -290,10 +291,22 @@ function changeLive(record, isEnable){
|
||||||
// loading.value = false;
|
// loading.value = false;
|
||||||
// });
|
// });
|
||||||
changeAvyLiveApi({ ids:ids.join(','), type: isEnable?1:0 }).then(res => {
|
changeAvyLiveApi({ ids:ids.join(','), type: isEnable?1:0 }).then(res => {
|
||||||
|
|
||||||
|
console.log(`🚀 -------------------------------------------------------🚀`);
|
||||||
|
console.log(`🚀 ~ file: index.vue:295 ~ changeAvyLiveApi ~ res:`, res);
|
||||||
|
console.log(`🚀 -------------------------------------------------------🚀`);
|
||||||
|
|
||||||
loadData();
|
loadData();
|
||||||
|
let content = '';
|
||||||
|
res.forEach(x => {
|
||||||
|
content += x.jsmc + "-" + x.xm
|
||||||
|
content += " " + x.resText + "<br/>"
|
||||||
|
});
|
||||||
|
createInfoModal({ width:'50%', title: '结果',content })
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
|
createInfoModal({title: '错误结果',content:e})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue