Merge branch 'master' of https://gitee.com/mini-org-project/course_information_center_vue
# Conflicts: # src/views/kc/jiaoshi/index.vue
This commit is contained in:
commit
85a8cb20bf
|
@ -35,10 +35,10 @@
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="6">
|
<a-col :span="6">
|
||||||
<div class="numberBlob handleCss" @click="openDetail({ onLineClassType: ['green', 'yellow'] })">
|
<div class="numberBlob handleCss" @click="openDetail({ tjKftkzt:'1' })">
|
||||||
<!-- <div class="numberBlob handleCss" @click="openDetail({ sfyx: '0' })"> -->
|
<!-- <div class="numberBlob handleCss" @click="openDetail({ sfyx: '0' })"> -->
|
||||||
<!-- <div class="numSpan orange">{{ getSysConfig().flag5 == 0?'否': leftList.filter(x => x.sfyx == 0).length || 0}}</div> -->
|
<!-- <div class="numSpan orange">{{ getSysConfig().flag5 == 0?'否': leftList.filter(x => x.sfyx == 0).length || 0}}</div> -->
|
||||||
<div class="numSpan orange">{{ getSysConfig().flag5 == 0?'否': leftList.filter(x => ['green', 'yellow'].indexOf(x.onLineClassType) != -1).length || 0}}</div>
|
<div class="numSpan orange">{{ getSysConfig().flag5 == 0?'否': leftList.filter(x => x.tjKftkzt == 1).length || 0}}</div>
|
||||||
<div class="numberName">
|
<div class="numberName">
|
||||||
<!-- <RiseOutlined class="orange"/> -->
|
<!-- <RiseOutlined class="orange"/> -->
|
||||||
开放听课
|
开放听课
|
||||||
|
@ -101,7 +101,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- <div style="float:right"><a-button type="link" >切换视图</a-button></div> -->
|
<!-- <div style="float:right"><a-button type="link" >切换视图</a-button></div> -->
|
||||||
<div style="float:right">
|
<div style="text-align:right;margin-top: -27px;">
|
||||||
<a-switch checkedChildren="卡片" unCheckedChildren="列表" v-model:checked="twoShowType" />
|
<a-switch checkedChildren="卡片" unCheckedChildren="列表" v-model:checked="twoShowType" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -109,8 +109,8 @@
|
||||||
|
|
||||||
<div v-show="twoShowType" class="" style="padding: 10px 10px 0 10px;">
|
<div v-show="twoShowType" class="" style="padding: 10px 10px 0 10px;">
|
||||||
<a-row :gutter="[16,16]">
|
<a-row :gutter="[16,16]">
|
||||||
<a-col :span="6" v-for="(item,index) of cardList" :key="index">
|
<a-col :span="8" v-for="(item,index) of cardList" :key="index">
|
||||||
<a-card bordered hoverable @click="() => (currentCardIndex = index,searchReset())" :class="currentCardIndex == index?'active':''">
|
<a-card bordered hoverable @click="() => (currentCardIndex = index,queryParam.jxlName = item.jxlName,queryParam.jsmc = null,searchReset())" :class="currentCardIndex == index?'active':''">
|
||||||
<template #title>
|
<template #title>
|
||||||
<div class="fjdskf" style="float: left;font-size: 15px;font-weight: 600;margin-top: 5px;">{{ item.jxlName }}</div>
|
<div class="fjdskf" style="float: left;font-size: 15px;font-weight: 600;margin-top: 5px;">{{ item.jxlName }}</div>
|
||||||
<div class="bgshua" style="float: right">
|
<div class="bgshua" style="float: right">
|
||||||
|
@ -121,12 +121,12 @@
|
||||||
<a-row style="margin-bottom: 10px;text-align: center;border-bottom: 1px #f0f0f0 solid ;padding-bottom: 10px;">
|
<a-row style="margin-bottom: 10px;text-align: center;border-bottom: 1px #f0f0f0 solid ;padding-bottom: 10px;">
|
||||||
<a-col class="hover handleCss" :span="6" style="font-weight: 600;" @click="openDetail({ jxlName: item.jxlName, zbgn: undefined })"><span>{{ item.jsNum }}</span></a-col>
|
<a-col class="hover handleCss" :span="6" style="font-weight: 600;" @click="openDetail({ jxlName: item.jxlName, zbgn: undefined })"><span>{{ item.jsNum }}</span></a-col>
|
||||||
<a-col class="hover" :span="6" style="font-weight: 600;" @click="openDetail({ jxlName: item.jxlName })"><span>{{ item.child.filter(x => x.zbgn == '0').length || 0 }}</span></a-col>
|
<a-col class="hover" :span="6" style="font-weight: 600;" @click="openDetail({ jxlName: item.jxlName })"><span>{{ item.child.filter(x => x.zbgn == '0').length || 0 }}</span></a-col>
|
||||||
<a-col class="hover" :span="6" style="font-weight: 600;" @click="openDetail({ jxlName: item.jxlName, sfyx: '0' })"><span>{{ item.child.filter(x => x.sfyx == 0).length || 0 }}</span></a-col>
|
<a-col class="hover" :span="6" style="font-weight: 600;" @click="openDetail({ jxlName: item.jxlName, sfyx: '0' })"><span>{{ item.child.filter(x => x.tjKftkzt == 1).length || 0 }}</span></a-col>
|
||||||
<a-col class="" :span="6" style="font-weight: 600;" v-if="!statusLogList.length"><span>未检测</span></a-col>
|
<a-col class="" :span="6" style="font-weight: 600;" v-if="!statusLogList.length"><span>未检测</span></a-col>
|
||||||
<a-col class="hover handleCss" :span="6" style="font-weight: 600;" @click="openLogDetail({ jxlName: item.jxlName, forceStateIsBad: 'red' })" v-else><span>{{ statusLogList.filter(x => x.jxlName == item.jxlName && ( x.forceState == 'red' || x.type != 'green') ).length }}</span></a-col>
|
<a-col class="hover handleCss" :span="6" style="font-weight: 600;" @click="openLogDetail({ jxlName: item.jxlName, forceStateIsBad: 'red' })" v-else><span>{{ statusLogList.filter(x => x.jxlName == item.jxlName && ( x.forceState == 'red' || x.type != 'green') ).length }}</span></a-col>
|
||||||
<a-col class="hover" :span="6" @click="openDetail({ jxlName: item.jxlName, zbgn: undefined })"><span>总数</span></a-col>
|
<a-col class="hover" :span="6" @click="openDetail({ jxlName: item.jxlName, zbgn: undefined })"><span>总数</span></a-col>
|
||||||
<a-col class="hover" :span="6" @click="openDetail({ jxlName: item.jxlName })"><span>可直播</span></a-col>
|
<a-col class="hover" :span="6" @click="openDetail({ jxlName: item.jxlName })"><span>可直播</span></a-col>
|
||||||
<a-col class="hover" :span="6" @click="openDetail({ jxlName: item.jxlName, sfyx: '0' })"><span>开放听课</span></a-col>
|
<a-col class="hover" :span="6" @click="openDetail({ jxlName: item.jxlName, tjKftkzt:'1' })"><span>开放听课</span></a-col>
|
||||||
<a-col :span="6" @click="openLogDetail({ jxlName: item.jxlName })">
|
<a-col :span="6" @click="openLogDetail({ jxlName: item.jxlName })">
|
||||||
<div>设备异常</div>
|
<div>设备异常</div>
|
||||||
<!-- <div v-if="statusLogList.length" style="font-size: .5rem;">{{ statusLogList[0]?.createTime }}</div> -->
|
<!-- <div v-if="statusLogList.length" style="font-size: .5rem;">{{ statusLogList[0]?.createTime }}</div> -->
|
||||||
|
@ -198,7 +198,7 @@
|
||||||
|
|
||||||
<a-table-column title="开放听课" data-index="_">
|
<a-table-column title="开放听课" data-index="_">
|
||||||
<template #default="{ record }">
|
<template #default="{ record }">
|
||||||
<span @click="openDetail({ jxlName: record.jxlName, sfyx: '0' })">
|
<span @click="openDetail({ jxlName: record.jxlName, tjKftkzt: '0' })">
|
||||||
{{ record.child.filter(x => x.sfyx == 0).length || 0 }}
|
{{ record.child.filter(x => x.sfyx == 0).length || 0 }}
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
|
@ -260,7 +260,7 @@
|
||||||
</a-table>
|
</a-table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="height: 1rem;"></div>
|
<!-- <div style="height: 1rem;"></div> -->
|
||||||
|
|
||||||
<div class="jeecg-basic-table-form-container">
|
<div class="jeecg-basic-table-form-container">
|
||||||
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
|
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
|
||||||
|
@ -310,7 +310,7 @@
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="5" style="padding: 0 10px 0 0;">
|
<a-col :lg="5" style="padding: 0 10px 0 0;">
|
||||||
<a-form-item label="开放听课">
|
<a-form-item label="前台展示">
|
||||||
<a-select placeholder="请选择" v-model:value="queryParam.sfyx">
|
<a-select placeholder="请选择" v-model:value="queryParam.sfyx">
|
||||||
<a-select-option :value="undefined">请选择</a-select-option>
|
<a-select-option :value="undefined">请选择</a-select-option>
|
||||||
<a-select-option value="0">是</a-select-option>
|
<a-select-option value="0">是</a-select-option>
|
||||||
|
@ -405,7 +405,7 @@
|
||||||
{{ text == 0?'是':'尚未接入' }}
|
{{ text == 0?'是':'尚未接入' }}
|
||||||
</template>
|
</template>
|
||||||
</a-table-column>
|
</a-table-column>
|
||||||
<a-table-column title="开放听课" align="center" data-index="sfyx">
|
<a-table-column title="前台展示" align="center" data-index="sfyx">
|
||||||
<template #default="{ text, record }">
|
<template #default="{ text, record }">
|
||||||
<template v-if="record.zbgn == 0">{{ text == 0?'是':'否' }}</template>
|
<template v-if="record.zbgn == 0">{{ text == 0?'是':'否' }}</template>
|
||||||
<template v-else>-</template>
|
<template v-else>-</template>
|
||||||
|
@ -434,6 +434,12 @@
|
||||||
{{ record?.nextIsClass?'是':'否' }}
|
{{ record?.nextIsClass?'是':'否' }}
|
||||||
</template>
|
</template>
|
||||||
</a-table-column>
|
</a-table-column>
|
||||||
|
<a-table-column title="开放听课" align="center" data-index="sfyx">
|
||||||
|
<template #default="{ text, record }">
|
||||||
|
<template v-if="record.tjKftkzt == 1">是</template>
|
||||||
|
<template v-else>否</template>
|
||||||
|
</template>
|
||||||
|
</a-table-column>
|
||||||
<a-table-column title="备注" data-index="bfStatusInfo"/>
|
<a-table-column title="备注" data-index="bfStatusInfo"/>
|
||||||
|
|
||||||
<!-- <a-table-column title="教师近景" align="center" data-index="child_教师近景">
|
<!-- <a-table-column title="教师近景" align="center" data-index="child_教师近景">
|
||||||
|
@ -473,7 +479,7 @@
|
||||||
</a-table-column> -->
|
</a-table-column> -->
|
||||||
|
|
||||||
<!-- <a-table-column title="数量" data-index="allIsOnLine"/> -->
|
<!-- <a-table-column title="数量" data-index="allIsOnLine"/> -->
|
||||||
<a-table-column width="210px" title="操作" data-index="action">
|
<a-table-column width="310px" title="操作" data-index="action">
|
||||||
<template #default="{ record }">
|
<template #default="{ record }">
|
||||||
<template v-if="record.zbgn == 0">
|
<template v-if="record.zbgn == 0">
|
||||||
<a-button type="link" style="padding: 0" :disabled="record.allIsOnLine == 0" @click="ylLiveNew(record)">预览 |</a-button>
|
<a-button type="link" style="padding: 0" :disabled="record.allIsOnLine == 0" @click="ylLiveNew(record)">预览 |</a-button>
|
||||||
|
@ -481,8 +487,11 @@
|
||||||
<a v-else @click="ylLiveNew(record)" >预览 |</a> -->
|
<a v-else @click="ylLiveNew(record)" >预览 |</a> -->
|
||||||
<a v-if="!record?.child['教师全景']?.isOnLine" @click="changeLive(record,true)">开启直播 |</a>
|
<a v-if="!record?.child['教师全景']?.isOnLine" @click="changeLive(record,true)">开启直播 |</a>
|
||||||
<a v-else @click="changeLive(record,false)">关闭直播 |</a>
|
<a v-else @click="changeLive(record,false)">关闭直播 |</a>
|
||||||
<a v-if="record.sfyx == 1" @click="changeKt(record,true)">开放听课</a>
|
<a v-if="record.sfyx == 1" @click="changeKt(record,true)">开放前台展示</a>
|
||||||
<a v-else-if="record.sfyx == 0" @click="changeKt(record,false)">关闭听课</a>
|
<a v-else-if="record.sfyx == 0" @click="changeKt(record,false)">关闭前台展示</a>
|
||||||
|
<a v-if="record.tjKftkzt == 0" @click="changeKftk(record,'1')"> | 开放听课</a>
|
||||||
|
<a v-else-if="record.tjKftkzt == 1" @click="changeKftk(record,'0')"> | 关闭听课</a>
|
||||||
|
<a @click="changeSdjc(record)"> | 手动检测</a>
|
||||||
|
|
||||||
<a-button type="link" style="padding: 0" @click="jcZhiHuiJiaoShi(record)">检测教室 |</a-button>
|
<a-button type="link" style="padding: 0" @click="jcZhiHuiJiaoShi(record)">检测教室 |</a-button>
|
||||||
<a-button type="link" style="padding: 0" v-if="!record.forceState || record.forceState == 'red'" @click="changeFlag(record, 'green')">标记为有效 |</a-button>
|
<a-button type="link" style="padding: 0" v-if="!record.forceState || record.forceState == 'red'" @click="changeFlag(record, 'green')">标记为有效 |</a-button>
|
||||||
|
@ -494,8 +503,11 @@
|
||||||
<a-button type="link" style="padding: 0" disabled @click="ylLiveNew(record)">预览 |</a-button>
|
<a-button type="link" style="padding: 0" disabled @click="ylLiveNew(record)">预览 |</a-button>
|
||||||
<a-button type="link" style="padding: 0" disabled v-if="!record?.child['教师全景']?.isOnLine" @click="changeLive(record,true)">开启直播 |</a-button>
|
<a-button type="link" style="padding: 0" disabled v-if="!record?.child['教师全景']?.isOnLine" @click="changeLive(record,true)">开启直播 |</a-button>
|
||||||
<a-button type="link" style="padding: 0" disabled v-else @click="changeLive(record,false)">关闭直播 |</a-button>
|
<a-button type="link" style="padding: 0" disabled v-else @click="changeLive(record,false)">关闭直播 |</a-button>
|
||||||
<a-button type="link" style="padding: 0" disabled v-if="record.sfyx == 1" @click="changeKt(record,true)">开放听课</a-button>
|
<a-button type="link" style="padding: 0" disabled v-if="record.sfyx == 1" @click="changeKt(record,true)">开放前台展示</a-button>
|
||||||
<a-button type="link" style="padding: 0" disabled v-else-if="record.sfyx == 0" @click="changeKt(record,false)">关闭听课</a-button>
|
<a-button type="link" style="padding: 0" disabled v-else-if="record.sfyx == 0" @click="changeKt(record,false)">关闭前台展示</a-button>
|
||||||
|
<a-button v-if="record.tjKftkzt == 0" @click="changeKftk(record,'1')"> | 开放听课</a-button>
|
||||||
|
<a-button v-else-if="record.tjKftkzt == 1" @click="changeKftk(record,'0')"> | 关闭听课</a-button>
|
||||||
|
<a-button @click="changeSdjc(record)"> | 手动检测</a-button>
|
||||||
|
|
||||||
<a-button type="link" style="padding: 0" disabled @click="jcZhiHuiJiaoShi(record)">检测教室 |</a-button>
|
<a-button type="link" style="padding: 0" disabled @click="jcZhiHuiJiaoShi(record)">检测教室 |</a-button>
|
||||||
<a-button type="link" style="padding: 0" disabled v-if="!record.forceState || record.forceState == 'red'" @click="changeFlag(record, 'green')">标记为有效 |</a-button>
|
<a-button type="link" style="padding: 0" disabled v-if="!record.forceState || record.forceState == 'red'" @click="changeFlag(record, 'green')">标记为有效 |</a-button>
|
||||||
|
@ -595,6 +607,8 @@ enum Api {
|
||||||
refreshLogs = '/jiaoshi/kcZhihuijiaoshi/refreshLogs',
|
refreshLogs = '/jiaoshi/kcZhihuijiaoshi/refreshLogs',
|
||||||
getRedisKey = '/jiaoshi/kcZhihuijiaoshi/getRedisKey',
|
getRedisKey = '/jiaoshi/kcZhihuijiaoshi/getRedisKey',
|
||||||
resettingRedisKeys = '/jiaoshi/kcZhihuijiaoshi/resettingRedisKeys',
|
resettingRedisKeys = '/jiaoshi/kcZhihuijiaoshi/resettingRedisKeys',
|
||||||
|
updateTkzt = '/jiaoshi/kcZhihuijiaoshi/updateTkzt',
|
||||||
|
sdjc = '/jiaoshi/kcZhihuijiaoshi/sdjc',
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 列表接口
|
* 列表接口
|
||||||
|
@ -608,6 +622,8 @@ const refreshLogs = (params) => defHttp.get({ url: Api.refreshLogs, params,timeo
|
||||||
const getRefreshLogList = (params) => defHttp.get({ url: Api.getRefreshLogList, params,timeout: 9000000 });
|
const getRefreshLogList = (params) => defHttp.get({ url: Api.getRefreshLogList, params,timeout: 9000000 });
|
||||||
const getRedisKey = (params) => defHttp.get({ url: Api.getRedisKey, params,timeout: 9000000 });
|
const getRedisKey = (params) => defHttp.get({ url: Api.getRedisKey, params,timeout: 9000000 });
|
||||||
const resettingRedisKeys = (params) => defHttp.get({ url: Api.resettingRedisKeys, params,timeout: 9000000 });
|
const resettingRedisKeys = (params) => defHttp.get({ url: Api.resettingRedisKeys, params,timeout: 9000000 });
|
||||||
|
const updateTkzt = (params) => defHttp.post({ url: Api.updateTkzt, params,timeout: 9000000 });
|
||||||
|
const sdjc = (params) => defHttp.get({ url: Api.sdjc, params,timeout: 9000000 });
|
||||||
|
|
||||||
const shangXianQuartz = ref<any>({});
|
const shangXianQuartz = ref<any>({});
|
||||||
|
|
||||||
|
@ -857,6 +873,21 @@ function refreshLogsFn(jxlName?){
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 手动检测
|
||||||
|
*/
|
||||||
|
function changeSdjc(record?){
|
||||||
|
sdjc({ id:record.jsbh }).then(res => {
|
||||||
|
let list = (res?.records) ?? (res) ?? [];
|
||||||
|
console.log(`🚀 ----------------------------------------------------------🚀`);
|
||||||
|
console.log(`🚀 ~ file: index.vue:539 ~ refreshLogsFn ~ list:`, list);
|
||||||
|
console.log(`🚀 ----------------------------------------------------------🚀`);
|
||||||
|
statusLogList.value = list;
|
||||||
|
getJianceBtnStatus();
|
||||||
|
})
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
function getRefreshLogListFn(){
|
function getRefreshLogListFn(){
|
||||||
getRefreshLogList({ pageSize: -1 }).then(res => {
|
getRefreshLogList({ pageSize: -1 }).then(res => {
|
||||||
let list = (res?.records) ?? [];
|
let list = (res?.records) ?? [];
|
||||||
|
@ -1030,6 +1061,17 @@ function ylLiveNew(record) {
|
||||||
window.open(routeData.href, '_blank');
|
window.open(routeData.href, '_blank');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//修改开放听课状态
|
||||||
|
function changeKftk(record,tjKftkzt){
|
||||||
|
// record.tjKftkzt = tjKftkzt;
|
||||||
|
updateTkzt({id:record.id,tjKftkzt}).then(res => {
|
||||||
|
loadData();
|
||||||
|
}).catch(e => {
|
||||||
|
console.error(e);
|
||||||
|
loading.value = false;
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
function changeLive(record, isEnable){
|
function changeLive(record, isEnable){
|
||||||
console.log('createInfoModal ->',createInfoModal);
|
console.log('createInfoModal ->',createInfoModal);
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
|
@ -1276,9 +1318,9 @@ function searchQuery() {
|
||||||
* 重置
|
* 重置
|
||||||
*/
|
*/
|
||||||
function searchReset() {
|
function searchReset() {
|
||||||
queryParam.value = {
|
// queryParam.value = {
|
||||||
zbgn: '0'
|
// zbgn: '0'
|
||||||
};
|
// };
|
||||||
//刷新数据
|
//刷新数据
|
||||||
filterComputedDataSource.value = filterDataSource();
|
filterComputedDataSource.value = filterDataSource();
|
||||||
//loadData();
|
//loadData();
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="6">
|
<a-col :lg="6">
|
||||||
<a-form-item label="开放听课">
|
<a-form-item label="前台是否展示">
|
||||||
<a-select placeholder="请选择" v-model:value="queryParam.sfyx">
|
<a-select placeholder="请选择" v-model:value="queryParam.sfyx">
|
||||||
<a-select-option :value="undefined">请选择</a-select-option>
|
<a-select-option :value="undefined">请选择</a-select-option>
|
||||||
<a-select-option value="0">是</a-select-option>
|
<a-select-option value="0">是</a-select-option>
|
||||||
|
@ -61,15 +61,24 @@
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
<a-col :lg="6">
|
||||||
|
<a-form-item label="开放听课">
|
||||||
|
<a-select placeholder="请选择" v-model:value="queryParam.tjKftkzt">
|
||||||
|
<a-select-option :value="undefined">请选择</a-select-option>
|
||||||
|
<a-select-option value="0">否</a-select-option>
|
||||||
|
<a-select-option value="1">是</a-select-option>
|
||||||
|
</a-select>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
<a-col :xl="24" :lg="24" :md="24" :sm="24">
|
<a-col :xl="24" :lg="24" :md="24" :sm="24">
|
||||||
<span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
|
<span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
|
||||||
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery">查询</a-button>
|
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery">查询</a-button>
|
||||||
<a-button type="primary" preIcon="ant-design:reload-outlined" @click="searchReset" style="margin-left: 8px">重置</a-button>
|
<a-button type="primary" preIcon="ant-design:reload-outlined" @click="searchReset" style="margin-left: 8px">重置</a-button>
|
||||||
|
|
||||||
<a-button type="primary" preIcon="ant-design:reload-outlined" :loading="loading" @click="batchLiveOpen" style="margin-left: 8px">批量打开直播</a-button>
|
<!-- <a-button type="primary" preIcon="ant-design:reload-outlined" :loading="loading" @click="batchLiveOpen" style="margin-left: 8px">批量打开直播</a-button>
|
||||||
<a-button type="primary" preIcon="ant-design:reload-outlined" :loading="loading" @click="batchLiveClose" style="margin-left: 8px">批量关闭直播</a-button>
|
<a-button type="primary" preIcon="ant-design:reload-outlined" :loading="loading" @click="batchLiveClose" style="margin-left: 8px">批量关闭直播</a-button>
|
||||||
<a-button type="primary" preIcon="ant-design:reload-outlined" :loading="loading" @click="batchTingkeOpen" style="margin-left: 8px">批量打开听课</a-button>
|
<a-button type="primary" preIcon="ant-design:reload-outlined" :loading="loading" @click="batchTingkeOpen" style="margin-left: 8px">批量打开听课</a-button>
|
||||||
<a-button type="primary" preIcon="ant-design:reload-outlined" :loading="loading" @click="batchTingkeClose" style="margin-left: 8px">批量关闭听课</a-button>
|
<a-button type="primary" preIcon="ant-design:reload-outlined" :loading="loading" @click="batchTingkeClose" style="margin-left: 8px">批量关闭听课</a-button> -->
|
||||||
</span>
|
</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
@ -106,12 +115,18 @@
|
||||||
{{ text == 0?'是':'尚未接入' }}
|
{{ text == 0?'是':'尚未接入' }}
|
||||||
</template>
|
</template>
|
||||||
</a-table-column>
|
</a-table-column>
|
||||||
<a-table-column title="开放听课" align="center" data-index="sfyx">
|
<a-table-column title="前台是否展示" align="center" data-index="sfyx">
|
||||||
<template #default="{ text, record }">
|
<template #default="{ text, record }">
|
||||||
<template v-if="record.zbgn == 0">{{ text == 0?'是':'否' }}</template>
|
<template v-if="record.zbgn == 0">{{ text == 0?'是':'否' }}</template>
|
||||||
<template v-else>-</template>
|
<template v-else>-</template>
|
||||||
</template>
|
</template>
|
||||||
</a-table-column>
|
</a-table-column>
|
||||||
|
<a-table-column title="开放听课" align="center" data-index="tjKftkzt">
|
||||||
|
<template #default="{ text, record }">
|
||||||
|
<template v-if="record.zbgn == 0">{{ text == 1?'是':'否' }}</template>
|
||||||
|
<template v-else>-</template>
|
||||||
|
</template>
|
||||||
|
</a-table-column>
|
||||||
<!-- 5.开放听课(是、否)?? -->
|
<!-- 5.开放听课(是、否)?? -->
|
||||||
<a-table-column title="直播状态" align="center" data-index="child_教师近景">
|
<a-table-column title="直播状态" align="center" data-index="child_教师近景">
|
||||||
<template #default="{ record }">
|
<template #default="{ record }">
|
||||||
|
@ -137,17 +152,14 @@
|
||||||
</a-table-column>
|
</a-table-column>
|
||||||
<a-table-column title="备注" data-index="bfStatusInfo"/>
|
<a-table-column title="备注" data-index="bfStatusInfo"/>
|
||||||
|
|
||||||
<a-table-column width="210px" title="操作" data-index="action">
|
<!-- <a-table-column width="210px" title="操作" data-index="action">
|
||||||
<template #default="{ record }">
|
<template #default="{ record }">
|
||||||
<template v-if="record.zbgn == 0">
|
<template v-if="record.zbgn == 0">
|
||||||
<a-button type="link" style="padding: 0" :disabled="record.allIsOnLine == 0" @click="ylLiveNew(record)">预览 |</a-button>
|
<a-button type="link" style="padding: 0" :disabled="record.allIsOnLine == 0" @click="ylLiveNew(record)">预览 |</a-button>
|
||||||
<!-- <a v-if="record.allIsOnLine == 0" :disabled="true" @click="ylLiveNew(record)" >预览 |</a>
|
|
||||||
<a v-else @click="ylLiveNew(record)" >预览 |</a> -->
|
|
||||||
<a v-if="!record?.child['教师全景']?.isOnLine" @click="changeLive(record,true)">开启直播 |</a>
|
<a v-if="!record?.child['教师全景']?.isOnLine" @click="changeLive(record,true)">开启直播 |</a>
|
||||||
<a v-else @click="changeLive(record,false)">关闭直播 |</a>
|
<a v-else @click="changeLive(record,false)">关闭直播 |</a>
|
||||||
<a v-if="record.sfyx == 1" @click="changeKt(record,true)">开放听课</a>
|
<a v-if="record.sfyx == 1" @click="changeKt(record,true)">开放听课</a>
|
||||||
<a v-else-if="record.sfyx == 0" @click="changeKt(record,false)">关闭听课</a>
|
<a v-else-if="record.sfyx == 0" @click="changeKt(record,false)">关闭听课</a>
|
||||||
<!-- {{ record.id }} -->
|
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<a-button type="link" style="padding: 0" disabled @click="ylLiveNew(record)">预览 |</a-button>
|
<a-button type="link" style="padding: 0" disabled @click="ylLiveNew(record)">预览 |</a-button>
|
||||||
|
@ -157,7 +169,7 @@
|
||||||
<a-button type="link" style="padding: 0" disabled v-else-if="record.sfyx == 0" @click="changeKt(record,false)">关闭听课</a-button>
|
<a-button type="link" style="padding: 0" disabled v-else-if="record.sfyx == 0" @click="changeKt(record,false)">关闭听课</a-button>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
</a-table-column>
|
</a-table-column> -->
|
||||||
</a-table>
|
</a-table>
|
||||||
</div>
|
</div>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
|
@ -541,6 +553,9 @@ function filterDataSource() {
|
||||||
if(qw.zbgn){
|
if(qw.zbgn){
|
||||||
if(isReturn) isReturn = x.zbgn == qw.zbgn;
|
if(isReturn) isReturn = x.zbgn == qw.zbgn;
|
||||||
}
|
}
|
||||||
|
if(qw.tjKftkzt){
|
||||||
|
if(isReturn) isReturn = x.tjKftkzt == qw.tjKftkzt;
|
||||||
|
}
|
||||||
if(qw.onLineClassType){
|
if(qw.onLineClassType){
|
||||||
if(typeof qw.onLineClassType == 'object'){
|
if(typeof qw.onLineClassType == 'object'){
|
||||||
let r = false;
|
let r = false;
|
||||||
|
@ -571,6 +586,7 @@ function filterDataSource() {
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
console.log(`🚀 ~ filterDataSource ~ dataSource:`, dataSource)
|
||||||
return dataSource;
|
return dataSource;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue