2023-04-21 00:41:02 +08:00
|
|
|
|
<template>
|
|
|
|
|
<div style="width:100%;height: 100%;">
|
2023-10-22 01:57:24 +08:00
|
|
|
|
|
|
|
|
|
<div class="" style="padding: 1rem 1rem 0 1rem;">
|
|
|
|
|
<a-row :gutter="[16,16]">
|
2023-10-22 19:31:55 +08:00
|
|
|
|
<a-col :span="10">
|
2023-10-22 15:07:24 +08:00
|
|
|
|
<a-card class="cardDiv" title="教室情况">
|
|
|
|
|
<!-- -<i class="fa-sharp fa-solid fa-user"></i>- -->
|
2023-10-22 01:57:24 +08:00
|
|
|
|
<a-row class="" :gutter="[16,16]">
|
2023-10-22 15:07:24 +08:00
|
|
|
|
<a-col :xs="{ span: 8 }" :sm="{ span: 8 }" :lg="{ span: 8 }">
|
2023-10-22 02:10:34 +08:00
|
|
|
|
<div class="numberBlob handleCss" @click="() => queryParam = {}">
|
2023-10-22 15:07:24 +08:00
|
|
|
|
<div class="numSpan">{{ allClassNum }}</div>
|
|
|
|
|
<div class="numberName">
|
|
|
|
|
<!-- <StockOutlined class="blue"/> -->
|
|
|
|
|
总数
|
|
|
|
|
</div>
|
2023-10-22 01:57:24 +08:00
|
|
|
|
</div>
|
|
|
|
|
</a-col>
|
2023-10-22 15:07:24 +08:00
|
|
|
|
<a-col :xs="{ span: 8 }" :sm="{ span: 8 }" :lg="{ span: 8 }">
|
2023-10-23 14:39:46 +08:00
|
|
|
|
<div class="numberBlob handleCss" @click="() => (queryParam = {},queryParam.sfyx = '0')">
|
2023-10-22 15:07:24 +08:00
|
|
|
|
<div class="numSpan blue">{{ leftList.length }}</div>
|
|
|
|
|
<div class="numberName">
|
|
|
|
|
<!-- <RiseOutlined class="orange"/> -->
|
|
|
|
|
可直播
|
|
|
|
|
</div>
|
2023-10-22 01:57:24 +08:00
|
|
|
|
</div>
|
|
|
|
|
</a-col>
|
2023-10-22 15:07:24 +08:00
|
|
|
|
<a-col :xs="{ span: 8 }" :sm="{ span: 8 }" :lg="{ span: 8 }">
|
2023-10-23 14:39:46 +08:00
|
|
|
|
<div class="numberBlob handleCss" @click="() => (queryParam = {},queryParam.onLineClassType = 'red')">
|
2023-10-22 19:31:55 +08:00
|
|
|
|
<div class="numSpan orange" style="font-size: 24px;height: 50px;line-height: 50px;">未检测</div>
|
2023-10-22 15:07:24 +08:00
|
|
|
|
<div class="numberName">
|
|
|
|
|
<!-- <RiseOutlined class="orange"/> -->
|
2023-10-22 19:31:55 +08:00
|
|
|
|
直播异常
|
2023-10-22 15:07:24 +08:00
|
|
|
|
</div>
|
2023-10-22 01:57:24 +08:00
|
|
|
|
</div>
|
|
|
|
|
</a-col>
|
|
|
|
|
</a-row>
|
2023-10-22 15:07:24 +08:00
|
|
|
|
<!-- <a-divider /> -->
|
|
|
|
|
<!-- <div class="buttomDiv"></div> -->
|
2023-10-22 01:57:24 +08:00
|
|
|
|
</a-card>
|
|
|
|
|
</a-col>
|
2023-10-22 19:31:55 +08:00
|
|
|
|
<a-col :span="14">
|
|
|
|
|
<a-card class="cardDiv" title="上课情况">
|
2023-10-22 15:07:24 +08:00
|
|
|
|
<!-- -<i class="fa-sharp fa-solid fa-user"></i>- -->
|
2023-10-22 01:57:24 +08:00
|
|
|
|
<a-row class="" :gutter="[16,16]">
|
2023-10-22 19:31:55 +08:00
|
|
|
|
<a-col :xs="{ span: 6 }" :sm="{ span: 6 }" :lg="{ span: 6 }">
|
2023-10-23 14:39:46 +08:00
|
|
|
|
<div class="numberBlob handleCss" @click="() => (queryParam = {},queryParam.nowIsClass = true)">
|
2023-10-22 15:07:24 +08:00
|
|
|
|
<div class="numSpan">{{ (leftList.filter(x => x?.nowIsClass).length || 0) }}</div>
|
|
|
|
|
<div class="numberName">
|
|
|
|
|
<!-- <StockOutlined class="blue"/> -->
|
|
|
|
|
正在上课
|
|
|
|
|
</div>
|
2023-10-22 01:57:24 +08:00
|
|
|
|
</div>
|
|
|
|
|
</a-col>
|
2023-10-22 19:31:55 +08:00
|
|
|
|
<a-col :xs="{ span: 6 }" :sm="{ span: 6 }" :lg="{ span: 6 }">
|
2023-10-23 14:39:46 +08:00
|
|
|
|
<div class="numberBlob handleCss" @click="() => (queryParam = {},queryParam.sfyx2 = '0')">
|
2023-10-22 19:31:55 +08:00
|
|
|
|
<div class="numSpan orange" style="font-size: 24px;height: 50px;line-height: 50px;">{{ getSysConfig().flag5 == 0?'否':'是' }}</div>
|
|
|
|
|
<div class="numberName">
|
|
|
|
|
<!-- <RiseOutlined class="orange"/> -->
|
|
|
|
|
开放听课
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :xs="{ span: 6 }" :sm="{ span: 6 }" :lg="{ span: 6 }">
|
2023-10-23 14:39:46 +08:00
|
|
|
|
<div class="numberBlob handleCss" @click="() => (queryParam = {},queryParam.onLineClassType = 'green')">
|
2023-10-22 15:07:24 +08:00
|
|
|
|
<div class="numSpan blue">{{ (leftList.filter(x => x?.child['教师近景']?.isOnLine).length || 0) }}</div>
|
|
|
|
|
<div class="numberName">
|
|
|
|
|
<!-- <RiseOutlined class="orange"/> -->
|
|
|
|
|
正在直播
|
|
|
|
|
</div>
|
2023-10-22 01:57:24 +08:00
|
|
|
|
</div>
|
|
|
|
|
</a-col>
|
2023-10-26 00:59:43 +08:00
|
|
|
|
<a-col :xs="{ span: 6 }" :sm="{ span: 6 }" :lg="{ span: 6 }">
|
2023-10-23 14:39:46 +08:00
|
|
|
|
<div class="numberBlob handleCss" @click="() => (queryParam = {},queryParam.onLineClassType = 'red')">
|
2023-10-22 15:07:24 +08:00
|
|
|
|
<div class="numSpan orange">{{ (leftList.filter(x => !x?.child['教师近景']?.isOnLine).length || 0) }}</div>
|
|
|
|
|
<div class="numberName">
|
|
|
|
|
<!-- <RiseOutlined class="orange"/> -->
|
|
|
|
|
直播异常
|
|
|
|
|
</div>
|
2023-10-22 01:57:24 +08:00
|
|
|
|
</div>
|
|
|
|
|
</a-col>
|
|
|
|
|
</a-row>
|
2023-10-22 15:07:24 +08:00
|
|
|
|
<!-- <a-divider /> -->
|
|
|
|
|
<!-- <div class="buttomDiv"></div> -->
|
2023-10-22 01:57:24 +08:00
|
|
|
|
</a-card>
|
|
|
|
|
</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="" style="padding: 1rem;">
|
|
|
|
|
<a-row :gutter="[16,16]">
|
|
|
|
|
<a-col :span="6" v-for="(item,index) of cardList" :key="index">
|
2023-10-23 21:37:58 +08:00
|
|
|
|
<a-card bordered hoverable @click="() => (currentCardIndex = index,searchReset())" :class="currentCardIndex == index?'active':''">
|
2023-10-22 15:07:24 +08:00
|
|
|
|
<div style="font-size: 15px;font-weight: 600;margin-bottom: 10px;">{{ item.jxlName }}</div>
|
2023-10-22 19:31:55 +08:00
|
|
|
|
<a-row style="margin-bottom: 10px;text-align: center;border-bottom: 1px #f0f0f0 solid ;padding-bottom: 10px;">
|
2023-10-22 15:07:24 +08:00
|
|
|
|
<a-col :span="8" style="font-weight: 600;">{{ item.jsNum }}</a-col>
|
2023-10-22 15:37:09 +08:00
|
|
|
|
<a-col :span="8" style="font-weight: 600;">{{ item.child.length }}</a-col>
|
|
|
|
|
<a-col :span="8" style="font-weight: 600;">{{ item.child.filter(x => x.allIsOnLine == 4).length || 0 }}</a-col>
|
2023-10-22 19:31:55 +08:00
|
|
|
|
<a-col :span="8">总数</a-col>
|
|
|
|
|
<a-col :span="8">可直播</a-col>
|
2023-10-22 19:47:52 +08:00
|
|
|
|
<a-col :span="8">数量</a-col>
|
2023-10-22 15:07:24 +08:00
|
|
|
|
</a-row>
|
|
|
|
|
<a-row style="text-align: center;">
|
|
|
|
|
<a-col :span="8" style="font-weight: 600;">{{ item.child.filter(x => x?.nowIsClass).length || 0}}间</a-col>
|
|
|
|
|
<a-col :span="8" style="font-weight: 600;">{{ item.child.filter(x => x?.child['教师近景']?.isOnLine).length || 0}}间</a-col>
|
|
|
|
|
<a-col :span="8" style="font-weight: 600;">{{ item.child.filter(x => !x?.child['教师近景']?.isOnLine).length || 0 }}间</a-col>
|
2023-10-22 19:31:55 +08:00
|
|
|
|
<a-col :span="8">正在上课</a-col>
|
|
|
|
|
<a-col :span="8">正在直播</a-col>
|
|
|
|
|
<a-col :span="8">直播异常</a-col>
|
2023-10-22 15:07:24 +08:00
|
|
|
|
</a-row>
|
2023-10-22 01:57:24 +08:00
|
|
|
|
</a-card>
|
|
|
|
|
</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
|
</div>
|
|
|
|
|
|
2023-06-14 23:26:13 +08:00
|
|
|
|
<div class="jeecg-basic-table-form-container">
|
|
|
|
|
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
|
|
|
|
|
<a-row :gutter="24">
|
2023-10-26 00:59:43 +08:00
|
|
|
|
<a-col :lg="4">
|
2023-10-22 01:57:24 +08:00
|
|
|
|
<a-form-item label="教学楼">
|
2023-06-14 23:26:13 +08:00
|
|
|
|
<!-- <j-dict-select-tag placeholder="请选择教室" v-model:value="queryParam.xqxn" dictCode="kc_xqxn_history,title,title"/> -->
|
2023-10-26 00:59:43 +08:00
|
|
|
|
<a-input placeholder="请输入" v-model:value="queryParam.jxlName"/>
|
2023-10-22 01:57:24 +08:00
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
2023-10-26 00:59:43 +08:00
|
|
|
|
<a-col :lg="4">
|
2023-10-22 01:57:24 +08:00
|
|
|
|
<a-form-item label="教室">
|
2023-10-26 00:59:43 +08:00
|
|
|
|
<a-input placeholder="请输入" v-model:value="queryParam.jsmc"/>
|
2023-10-22 01:57:24 +08:00
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
2023-10-26 00:59:43 +08:00
|
|
|
|
<a-col :lg="4">
|
2023-10-22 01:57:24 +08:00
|
|
|
|
<a-form-item label="直播功能">
|
2023-10-26 00:59:43 +08:00
|
|
|
|
<a-select placeholder="请选择" v-model:value="queryParam.zbgn">
|
2023-10-22 01:57:24 +08:00
|
|
|
|
<a-select-option :value="undefined">请选择</a-select-option>
|
2023-10-23 14:39:46 +08:00
|
|
|
|
<a-select-option value="0">是</a-select-option>
|
|
|
|
|
<a-select-option value="1">否</a-select-option>
|
2023-10-22 01:57:24 +08:00
|
|
|
|
</a-select>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
2023-10-26 00:59:43 +08:00
|
|
|
|
<a-col :lg="4">
|
2023-10-22 01:57:24 +08:00
|
|
|
|
<a-form-item label="开放听课">
|
2023-10-26 00:59:43 +08:00
|
|
|
|
<a-select placeholder="请选择" v-model:value="queryParam.sfyx">
|
2023-10-22 01:57:24 +08:00
|
|
|
|
<a-select-option :value="undefined">请选择</a-select-option>
|
2023-10-23 14:39:46 +08:00
|
|
|
|
<a-select-option value="0">是</a-select-option>
|
|
|
|
|
<a-select-option value="1">否</a-select-option>
|
2023-10-22 01:57:24 +08:00
|
|
|
|
</a-select>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
2023-10-26 00:59:43 +08:00
|
|
|
|
<a-col :lg="4">
|
2023-10-22 01:57:24 +08:00
|
|
|
|
<a-form-item label="直播状态">
|
2023-10-26 00:59:43 +08:00
|
|
|
|
<a-select placeholder="请选择" v-model:value="queryParam.onLineClassType">
|
2023-10-22 01:57:24 +08:00
|
|
|
|
<a-select-option :value="undefined">请选择</a-select-option>
|
|
|
|
|
<a-select-option value="green">正常</a-select-option>
|
|
|
|
|
<a-select-option value="yellow">部分正常</a-select-option>
|
|
|
|
|
<a-select-option value="red">异常</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
2023-10-26 00:59:43 +08:00
|
|
|
|
<a-col :lg="4">
|
2023-10-27 00:52:33 +08:00
|
|
|
|
<a-form-item label="(即将/当前)有课">
|
2023-10-26 00:59:43 +08:00
|
|
|
|
<a-select placeholder="请选择" v-model:value="queryParam.nowIsClass">
|
2023-10-22 01:57:24 +08:00
|
|
|
|
<a-select-option :value="undefined">请选择</a-select-option>
|
2023-10-23 14:39:46 +08:00
|
|
|
|
<a-select-option :value="true">是</a-select-option>
|
|
|
|
|
<a-select-option :value="false">否</a-select-option>
|
2023-10-22 01:57:24 +08:00
|
|
|
|
</a-select>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
2023-10-26 00:59:43 +08:00
|
|
|
|
<a-col :lg="4">
|
2023-10-22 01:57:24 +08:00
|
|
|
|
<a-form-item label="下节有课">
|
2023-10-26 00:59:43 +08:00
|
|
|
|
<a-select placeholder="请选择" v-model:value="queryParam.nextIsClass">
|
2023-10-22 01:57:24 +08:00
|
|
|
|
<a-select-option :value="undefined">请选择</a-select-option>
|
2023-10-23 14:39:46 +08:00
|
|
|
|
<a-select-option :value="true">是</a-select-option>
|
|
|
|
|
<a-select-option :value="false">否</a-select-option>
|
2023-10-22 01:57:24 +08:00
|
|
|
|
</a-select>
|
2023-06-14 23:26:13 +08:00
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
2023-10-23 21:37:58 +08:00
|
|
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
2023-06-14 23:26:13 +08:00
|
|
|
|
<span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
|
2023-10-26 00:59:43 +08:00
|
|
|
|
<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" :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="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:check-square-outlined" @click="closeQuartz" v-if="shangXianQuartz.status == 0" style="margin-left: 8px">停止自动调整教室</a-button> -->
|
|
|
|
|
<!-- 永远开启 <a-button type="primary" preIcon="ant-design:border-outlined" @click="openQuartz" v-if="shangXianQuartz.status == -1" style="margin-left: 8px">开启自动调整教室</a-button> -->
|
|
|
|
|
<!--<a @click="toggleSearchStatus = !toggleSearchStatus" style="margin-left: 8px">
|
|
|
|
|
{{ toggleSearchStatus ? '收起' : '展开' }}
|
|
|
|
|
<Icon :icon="toggleSearchStatus ? 'ant-design:up-outlined' : 'ant-design:down-outlined'" />
|
|
|
|
|
</a>-->
|
2023-06-14 23:26:13 +08:00
|
|
|
|
</span>
|
2023-10-23 21:37:58 +08:00
|
|
|
|
</a-col>
|
2023-06-14 23:26:13 +08:00
|
|
|
|
</a-row>
|
|
|
|
|
</a-form>
|
|
|
|
|
</div>
|
|
|
|
|
|
2023-10-26 00:59:43 +08:00
|
|
|
|
<a-table
|
|
|
|
|
rowKey="jsbh"
|
|
|
|
|
v-show="true"
|
|
|
|
|
:loading="loading"
|
|
|
|
|
:data-source="filterComputedDataSource"
|
|
|
|
|
:pagination="false"
|
|
|
|
|
bordered
|
|
|
|
|
size="middle"
|
|
|
|
|
class="ant-table-striped"
|
|
|
|
|
:scroll="{ y: 650 }"
|
|
|
|
|
:rowSelection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
|
|
|
|
>
|
|
|
|
|
|
2023-10-23 14:39:46 +08:00
|
|
|
|
<a-table-column width="70px" title="序号" align="center" data-index="index">
|
2023-10-22 01:57:24 +08:00
|
|
|
|
<template #default="{ index }">
|
|
|
|
|
{{ index+1 }}
|
|
|
|
|
</template>
|
|
|
|
|
</a-table-column>
|
|
|
|
|
<a-table-column title="教学楼" data-index="jxlName"/>
|
2023-10-22 15:37:09 +08:00
|
|
|
|
<a-table-column title="教室" data-index="jsmc">
|
|
|
|
|
<template #default="{ text, record }">
|
|
|
|
|
<a :href="'http://'+record.ip" target="_blank">{{ text }}</a>
|
|
|
|
|
</template>
|
|
|
|
|
</a-table-column>
|
|
|
|
|
|
2023-10-26 00:59:43 +08:00
|
|
|
|
<a-table-column title="直播功能" align="center" data-index="zbgn">
|
2023-10-22 01:57:24 +08:00
|
|
|
|
<template #default="{ text }">
|
|
|
|
|
{{ text == 0?'是':'否' }}
|
|
|
|
|
</template>
|
|
|
|
|
</a-table-column>
|
|
|
|
|
<a-table-column title="开放听课" align="center" data-index="sfyx">
|
|
|
|
|
<template #default="{ text }">
|
|
|
|
|
{{ text == 0?'是':'否' }}
|
|
|
|
|
</template>
|
|
|
|
|
</a-table-column>
|
|
|
|
|
<!-- 5.开放听课(是、否)?? -->
|
|
|
|
|
<a-table-column title="直播状态" align="center" data-index="child_教师近景">
|
|
|
|
|
<template #default="{ record }">
|
|
|
|
|
<span :class="getIsOnLineClass(record)">
|
|
|
|
|
<i class="fas fa-circle" />
|
|
|
|
|
</span>
|
|
|
|
|
</template>
|
|
|
|
|
</a-table-column>
|
|
|
|
|
<a-table-column title="当前有课" align="center" data-index="nowIsClass">
|
|
|
|
|
<template #default="{ record }">
|
2023-10-23 14:39:46 +08:00
|
|
|
|
{{ record?.nowIsClass?'是':'否' }}
|
2023-10-22 01:57:24 +08:00
|
|
|
|
</template>
|
|
|
|
|
</a-table-column>
|
|
|
|
|
<a-table-column title="下节有课" align="center" data-index="nextIsClass">
|
|
|
|
|
<template #default="{ record }">
|
2023-10-23 14:39:46 +08:00
|
|
|
|
{{ record?.nextIsClass?'是':'否' }}
|
2023-10-22 01:57:24 +08:00
|
|
|
|
</template>
|
|
|
|
|
</a-table-column>
|
|
|
|
|
<a-table-column title="备注" data-index="bfStatusInfo"/>
|
|
|
|
|
|
2023-10-22 20:26:14 +08:00
|
|
|
|
<!-- <a-table-column title="教师近景" align="center" data-index="child_教师近景">
|
|
|
|
|
<template #default="{ record }">
|
|
|
|
|
<span :class="record?.child['教师近景']?.isOnLine?'green':'red'">
|
|
|
|
|
<i class="fas fa-circle"/>
|
|
|
|
|
</span>
|
|
|
|
|
</template>
|
|
|
|
|
</a-table-column>
|
|
|
|
|
<a-table-column title="教师全景" align="center" data-index="child_教师全景">
|
2023-05-15 14:08:47 +08:00
|
|
|
|
<template #default="{ record }">
|
2023-06-18 21:06:57 +08:00
|
|
|
|
<span :class="record?.child['教师全景']?.isOnLine?'green':'red'">
|
2023-05-15 14:08:47 +08:00
|
|
|
|
<i class="fas fa-circle"/>
|
|
|
|
|
</span>
|
|
|
|
|
</template>
|
|
|
|
|
</a-table-column>
|
|
|
|
|
<a-table-column title="学生全景" align="center" data-index="child_学生全景">
|
|
|
|
|
<template #default="{ record }">
|
|
|
|
|
<span :class="record?.child['学生全景']?.isOnLine?'green':'red'">
|
|
|
|
|
<i class="fas fa-circle"/>
|
|
|
|
|
</span>
|
|
|
|
|
</template>
|
|
|
|
|
</a-table-column>
|
|
|
|
|
<a-table-column title="PPT" align="center" data-index="child_PPT">
|
|
|
|
|
<template #default="{ record }">
|
|
|
|
|
<span :class="record?.child['PPT']?.isOnLine?'green':'red'">
|
|
|
|
|
<i class="fas fa-circle"/>
|
|
|
|
|
</span>
|
|
|
|
|
</template>
|
|
|
|
|
</a-table-column>
|
|
|
|
|
<a-table-column title="直播推流" align="center" data-index="child_直播推流">
|
|
|
|
|
<template #default="{ record }">
|
2023-06-18 21:06:57 +08:00
|
|
|
|
<span :class="record?.child['教师全景']?.isOnLine?'green':'red'">
|
2023-05-15 14:08:47 +08:00
|
|
|
|
<i class="fas fa-circle"/>
|
|
|
|
|
</span>
|
|
|
|
|
</template>
|
2023-10-22 01:57:24 +08:00
|
|
|
|
</a-table-column> -->
|
2023-10-22 20:26:14 +08:00
|
|
|
|
|
2023-10-22 20:43:48 +08:00
|
|
|
|
<!-- <a-table-column title="数量" data-index="allIsOnLine"/> -->
|
2023-10-23 14:39:46 +08:00
|
|
|
|
<a-table-column width="210px" title="操作" data-index="action">
|
2023-05-15 14:08:47 +08:00
|
|
|
|
<template #default="{ record }">
|
2023-10-23 14:39:46 +08:00
|
|
|
|
<a-button type="link" :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> -->
|
2023-10-22 01:57:24 +08:00
|
|
|
|
<a v-if="!record?.child['教师全景']?.isOnLine" @click="changeLive(record,true)">开启直播 |</a>
|
|
|
|
|
<a v-else @click="changeLive(record,false)">关闭直播 |</a>
|
|
|
|
|
<a v-if="record.sfyx == 1" @click="changeKt(record,true)">开放听课</a>
|
|
|
|
|
<a v-else-if="record.sfyx == 0" @click="changeKt(record,false)">关闭听课</a>
|
2023-05-15 14:08:47 +08:00
|
|
|
|
<!-- {{ record.id }} -->
|
|
|
|
|
</template>
|
|
|
|
|
</a-table-column>
|
|
|
|
|
</a-table>
|
2023-04-21 00:41:02 +08:00
|
|
|
|
</div>
|
2023-05-19 00:42:23 +08:00
|
|
|
|
<a-modal :visible="isShowAllLive" width="80%" style="top: 20px" title="直播" :ok-button-props="{ style: { display: 'none' } }" cancelText="关闭" @cancel="() => (isShowAllLive = false,showAllLiveRef.close())">
|
2023-06-18 21:06:57 +08:00
|
|
|
|
<showAllLive ref="showAllLiveRef" :currentItem="currentItem" :isShowAllLive="isShowAllLive"/>
|
2023-05-15 14:08:47 +08:00
|
|
|
|
</a-modal>
|
2023-04-21 00:41:02 +08:00
|
|
|
|
</template>
|
|
|
|
|
<script lang="ts" setup name="zhihuijiaoshiIndexPage">
|
|
|
|
|
import { defHttp } from '/@/utils/http/axios';
|
2023-10-22 20:26:14 +08:00
|
|
|
|
import { ref, onMounted, Ref, watch, reactive, computed } from 'vue';
|
2023-04-22 15:16:05 +08:00
|
|
|
|
import { nextTick } from 'vue';
|
2023-05-15 14:08:47 +08:00
|
|
|
|
import videojs from "video.js";
|
|
|
|
|
import { useMessage } from '/@/hooks/web/useMessage';
|
|
|
|
|
import showAllLive from './showAllLive.vue';
|
|
|
|
|
import { execAvyApi, getAvyCtrlLiveOpenOrCloseUrl } from "/@/views/site/utils/index";
|
2023-06-14 23:26:13 +08:00
|
|
|
|
import { JInput } from '/@/components/Form';
|
2023-06-24 13:04:12 +08:00
|
|
|
|
import { resumeJob, pauseJob } from '/@/views/monitor/quartz/quartz.api';
|
2023-10-15 15:07:47 +08:00
|
|
|
|
import { useRouter } from 'vue-router';
|
2023-10-22 01:57:24 +08:00
|
|
|
|
import { getSysConfig } from '/@/views/site/utils/index';
|
2023-04-21 00:41:02 +08:00
|
|
|
|
|
|
|
|
|
|
2023-05-15 14:08:47 +08:00
|
|
|
|
// const _document:any = window.document;
|
|
|
|
|
|
|
|
|
|
const showAllLiveRef = ref();
|
|
|
|
|
|
|
|
|
|
const leftList:Ref<any> = ref([]);
|
2023-10-18 08:15:48 +08:00
|
|
|
|
const cardList:Ref<any> = ref([]);
|
2023-10-26 00:59:43 +08:00
|
|
|
|
const selectedRowKeys :Ref<any> = ref([]);
|
2023-05-15 14:08:47 +08:00
|
|
|
|
const currentItem:Ref<any> = ref({});
|
2023-10-18 08:15:48 +08:00
|
|
|
|
const currentCardIndex:Ref<any> = ref(0);
|
2023-10-22 01:57:24 +08:00
|
|
|
|
const allClassNum:Ref<any> = ref(0);
|
2023-05-15 14:08:47 +08:00
|
|
|
|
// const topWidth:any = ref('0');
|
|
|
|
|
// const isfirst:any = ref(false);
|
|
|
|
|
const showAllLiveKey:Ref<string> = ref('showAllLiveKey');
|
|
|
|
|
const isShowAllLive:Ref<boolean> = ref(false);
|
|
|
|
|
const loading:Ref<boolean> = ref(false);
|
2023-10-26 00:59:43 +08:00
|
|
|
|
const { createMessage, createInfoModal, createErrorModal } = useMessage();
|
2023-10-15 15:07:47 +08:00
|
|
|
|
const route = useRouter();
|
2023-06-14 23:26:13 +08:00
|
|
|
|
const queryParam:Ref<any> = ref({});
|
2023-04-21 00:41:02 +08:00
|
|
|
|
|
|
|
|
|
onMounted(() => {
|
2023-05-15 14:08:47 +08:00
|
|
|
|
loadData();
|
|
|
|
|
});
|
|
|
|
|
|
2023-10-23 21:37:58 +08:00
|
|
|
|
const filterComputedDataSource:Ref<any> = ref([]);
|
|
|
|
|
|
|
|
|
|
// const filterComputedDataSource = computed(() => {
|
|
|
|
|
// return filterDataSource();
|
|
|
|
|
// });
|
2023-05-15 14:08:47 +08:00
|
|
|
|
|
|
|
|
|
enum Api {
|
|
|
|
|
list = '/jiaoshi/kcZhihuijiaoshi/list',
|
2023-05-16 17:02:33 +08:00
|
|
|
|
updateAllLive = '/jiaoshi/kcZhihuijiaoshi/updateAllLive',
|
|
|
|
|
changeAvyLiveApi = '/httpinterface/runAvyApiByIds',
|
2023-10-22 01:57:24 +08:00
|
|
|
|
xxhbjsjbxxList = '/xxhbjsjbxx/xxhbjsjbxx/list',
|
2023-05-15 14:08:47 +08:00
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 列表接口
|
|
|
|
|
* @param params
|
|
|
|
|
*/
|
|
|
|
|
const list = (params) => defHttp.get({ url: Api.list, params });
|
|
|
|
|
const updateAllLive = (params) => defHttp.get({ url: Api.updateAllLive, params });
|
2023-10-27 00:49:17 +08:00
|
|
|
|
const changeAvyLiveApi = (params) => defHttp.get({ url: Api.changeAvyLiveApi, params,timeout: 9000000 });
|
|
|
|
|
const jsjbxxList = (params) => defHttp.get({ url: Api.xxhbjsjbxxList, params,timeout: 9000000 });
|
2023-05-15 14:08:47 +08:00
|
|
|
|
|
2023-06-24 13:04:12 +08:00
|
|
|
|
const shangXianQuartz = ref<any>({});
|
|
|
|
|
|
2023-06-14 23:26:13 +08:00
|
|
|
|
const labelCol = reactive({
|
|
|
|
|
xs: { span: 24 },
|
2023-10-26 00:59:43 +08:00
|
|
|
|
sm: { span: 6 },
|
2023-06-14 23:26:13 +08:00
|
|
|
|
});
|
|
|
|
|
const wrapperCol = reactive({
|
|
|
|
|
xs: { span: 24 },
|
2023-10-26 00:59:43 +08:00
|
|
|
|
sm: { span: 19 },
|
2023-06-14 23:26:13 +08:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const ipagination = ref(
|
|
|
|
|
{
|
|
|
|
|
current: 1,
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
pageSizeOptions: ['10', '20', '30'],
|
|
|
|
|
showTotal: (total, range) => {
|
|
|
|
|
return range[0] + '-' + range[1] + ' 共' + total + '条';
|
|
|
|
|
},
|
|
|
|
|
showQuickJumper: true,
|
|
|
|
|
showSizeChanger: true,
|
|
|
|
|
total: 0,
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
|
2023-05-15 14:08:47 +08:00
|
|
|
|
function loadData(){
|
|
|
|
|
loading.value = true;
|
|
|
|
|
let getListAction:any = [];
|
2023-10-22 20:26:14 +08:00
|
|
|
|
cardList.value = [];
|
2023-05-15 14:08:47 +08:00
|
|
|
|
let liveIsExist = (x) => {
|
|
|
|
|
return new Promise((resolve,reject) => {
|
|
|
|
|
videojs.xhr.get(x.pullUrl,(err, resp, body) => {
|
|
|
|
|
if(err){
|
|
|
|
|
reject(false);
|
|
|
|
|
x.isOnLine = false
|
2023-10-22 20:26:14 +08:00
|
|
|
|
|
|
|
|
|
// reject(true);
|
|
|
|
|
// x.isOnLine = true
|
2023-05-15 14:08:47 +08:00
|
|
|
|
}else{
|
|
|
|
|
resolve(true);
|
|
|
|
|
x.isOnLine = true
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
//此法不行,会跨域
|
|
|
|
|
// defHttp.get({ url: x.pullUrl }, { isExternal: true, withToken: true }).then(res => {
|
|
|
|
|
// resolve(true);
|
|
|
|
|
// x.isOnLine = true;
|
|
|
|
|
// }).catch(eres => {
|
|
|
|
|
// reject(false);
|
|
|
|
|
// x.isOnLine = false;
|
|
|
|
|
// })
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
2023-06-14 23:26:13 +08:00
|
|
|
|
list({ pageSize: -1, changshang: '奥威亚',...queryParam.value }).then(res => {
|
2023-04-22 15:16:05 +08:00
|
|
|
|
let list = (res?.records) ?? [];
|
|
|
|
|
//聚合
|
|
|
|
|
let map = {};
|
2023-10-18 08:15:48 +08:00
|
|
|
|
let jxlMap = {};
|
2023-04-22 15:16:05 +08:00
|
|
|
|
list.forEach(x => {
|
2023-10-26 00:59:43 +08:00
|
|
|
|
x.zbgn = 0;
|
2023-04-22 15:16:05 +08:00
|
|
|
|
let item = map[x.jsmc];
|
2023-05-15 14:08:47 +08:00
|
|
|
|
x.isOnLine = false;
|
2023-04-22 15:16:05 +08:00
|
|
|
|
if(item){
|
|
|
|
|
item.child[x.xm] = x;
|
|
|
|
|
}else{
|
|
|
|
|
let child = {};
|
|
|
|
|
child[x.xm] = x;
|
|
|
|
|
map[x.jsmc] = {
|
|
|
|
|
...x,
|
|
|
|
|
child
|
|
|
|
|
};
|
2023-05-15 14:08:47 +08:00
|
|
|
|
item = map[x.jsmc];
|
2023-04-22 15:16:05 +08:00
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
leftList.value = Object.values(map);
|
2023-10-18 08:15:48 +08:00
|
|
|
|
|
2023-10-22 20:26:14 +08:00
|
|
|
|
let changeAllList = () => {
|
|
|
|
|
leftList.value.forEach(x => {
|
|
|
|
|
let item = jxlMap[x.jxlId];
|
|
|
|
|
if(item){
|
|
|
|
|
item.child.push(x);
|
|
|
|
|
}else{
|
|
|
|
|
let child = [x];
|
|
|
|
|
jxlMap[x.jxlId] = {
|
|
|
|
|
...x,
|
|
|
|
|
child
|
|
|
|
|
};
|
|
|
|
|
item = jxlMap[x.jxlId];
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
cardList.value = Object.values(jxlMap);
|
2023-10-23 21:37:58 +08:00
|
|
|
|
filterComputedDataSource.value = filterDataSource();
|
2023-10-22 20:26:14 +08:00
|
|
|
|
}
|
2023-10-18 08:15:48 +08:00
|
|
|
|
|
|
|
|
|
|
2023-05-15 14:08:47 +08:00
|
|
|
|
loading.value = false;
|
|
|
|
|
nextTick(() => {
|
|
|
|
|
leftList.value.forEach(item => {
|
|
|
|
|
let child = item.child;
|
|
|
|
|
Object.values(child).forEach(item => {
|
|
|
|
|
let x:any = item;
|
|
|
|
|
// if(x.pullUrl == 'https://kczx.nenu.edu.cn:9553/live_hls/yfjxl101s_lbzj.m3u8')
|
|
|
|
|
getListAction.push(liveIsExist(x));
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
Promise.all(getListAction).then(resList => {
|
|
|
|
|
console.log(`🚀 ~ file: index.vue:104 ~ Promise.all ~ ress:`, resList);
|
|
|
|
|
// loading.value = false;
|
2023-10-22 20:26:14 +08:00
|
|
|
|
//queryParam.value._ = resList;
|
|
|
|
|
changeAllList();
|
2023-05-15 14:08:47 +08:00
|
|
|
|
}).catch((e) => {
|
|
|
|
|
console.error(e);
|
2023-10-22 20:26:14 +08:00
|
|
|
|
changeAllList();
|
2023-05-15 14:08:47 +08:00
|
|
|
|
// loading.value = false;
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
2023-10-22 20:26:14 +08:00
|
|
|
|
|
2023-04-24 17:23:07 +08:00
|
|
|
|
//计算左侧菜单高度
|
2023-05-15 14:08:47 +08:00
|
|
|
|
// let mainDiv:any = _document?.querySelector('.ant-layout .jeecg-default-layout-main > div');
|
|
|
|
|
// topWidth.value =mainDiv?.style?.height?? '0';
|
2023-04-21 00:41:02 +08:00
|
|
|
|
});
|
2023-06-24 13:04:12 +08:00
|
|
|
|
|
|
|
|
|
getAutoShangXianQuartz();
|
2023-10-22 01:57:24 +08:00
|
|
|
|
getJsjbxxList();
|
2023-05-15 14:08:47 +08:00
|
|
|
|
}
|
2023-04-21 00:41:02 +08:00
|
|
|
|
|
2023-10-22 01:57:24 +08:00
|
|
|
|
function getJsjbxxList(){
|
|
|
|
|
jsjbxxList({ pageSize: -1, changshang: '奥威亚',...queryParam.value }).then(res => {
|
|
|
|
|
let list = (res?.records) ?? [];
|
|
|
|
|
allClassNum.value = list.length;
|
|
|
|
|
});
|
|
|
|
|
}
|
2023-06-11 20:06:36 +08:00
|
|
|
|
|
2023-10-22 01:57:24 +08:00
|
|
|
|
//获取class样式
|
|
|
|
|
function getIsOnLineClass(record){
|
|
|
|
|
let resClas = 'red';
|
2023-10-22 20:26:14 +08:00
|
|
|
|
// let allIsOnLine = sfYxMap.value[record?.child['教师近景']?.id]?1:0 + sfYxMap.value[record?.child['教师全景']?.id]?1:0 + sfYxMap.value[record?.child['学生全景']?.id]?1:0 + sfYxMap.value[record?.child['PPT']?.id]?1:0;
|
|
|
|
|
let allIsOnLine = (record?.child['教师近景']?.isOnLine?1:0) + (record?.child['教师全景']?.isOnLine?1:0) + (record?.child['学生全景']?.isOnLine?1:0) + (record?.child['PPT']?.isOnLine?1:0);
|
2023-10-22 01:57:24 +08:00
|
|
|
|
|
|
|
|
|
record.allIsOnLine = allIsOnLine;
|
|
|
|
|
let bfStatusInfo = '';
|
2023-10-22 22:02:07 +08:00
|
|
|
|
record.bfStatusInfo = bfStatusInfo;
|
2023-10-23 14:39:46 +08:00
|
|
|
|
let bfStatusInfoList:any = [];
|
2023-10-22 01:57:24 +08:00
|
|
|
|
if(!record?.child['教师近景']?.isOnLine){
|
2023-10-23 14:39:46 +08:00
|
|
|
|
bfStatusInfoList.push('教师近景没有信号');
|
|
|
|
|
}
|
|
|
|
|
if(!record?.child['教师全景']?.isOnLine){
|
|
|
|
|
bfStatusInfoList.push('教师全景没有信号');
|
|
|
|
|
}
|
|
|
|
|
if(!record?.child['学生全景']?.isOnLine){
|
|
|
|
|
bfStatusInfoList.push('学生全景没有信号');
|
|
|
|
|
}
|
|
|
|
|
if(!record?.child['PPT']?.isOnLine){
|
|
|
|
|
bfStatusInfoList.push('PPT没有信号');
|
2023-10-22 01:57:24 +08:00
|
|
|
|
}
|
|
|
|
|
if(allIsOnLine == 4){
|
|
|
|
|
resClas = 'green';
|
|
|
|
|
}else if(allIsOnLine == 0){
|
|
|
|
|
resClas = 'red';
|
|
|
|
|
}else{
|
|
|
|
|
resClas = 'yellow';
|
2023-10-23 14:39:46 +08:00
|
|
|
|
record.bfStatusInfo = bfStatusInfoList.join(',');
|
2023-10-22 01:57:24 +08:00
|
|
|
|
}
|
2023-10-22 20:26:14 +08:00
|
|
|
|
record.onLineClassType = resClas;
|
2023-10-22 01:57:24 +08:00
|
|
|
|
return resClas;
|
|
|
|
|
}
|
2023-06-11 20:06:36 +08:00
|
|
|
|
|
2023-10-22 01:57:24 +08:00
|
|
|
|
function ylLive(record){
|
2023-05-15 14:08:47 +08:00
|
|
|
|
isShowAllLive.value = true
|
|
|
|
|
nextTick(() => {
|
|
|
|
|
currentItem.value = record
|
|
|
|
|
})
|
2023-04-21 00:41:02 +08:00
|
|
|
|
}
|
|
|
|
|
|
2023-10-26 00:59:43 +08:00
|
|
|
|
function onSelectChange(selectedRowKeyList: string | number[]){
|
|
|
|
|
selectedRowKeys.value = selectedRowKeyList;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function checkSelectValue(){
|
|
|
|
|
return checkIsList(selectedRowKeys.value);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function checkIsList(list){
|
|
|
|
|
let r = !!(list??[]).length;
|
|
|
|
|
if(!r){
|
|
|
|
|
createErrorModal({ title: '错误', content: '请选择有效数据!' });
|
|
|
|
|
}
|
|
|
|
|
return !r;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function getSelectData(expression){
|
|
|
|
|
//筛选数据
|
|
|
|
|
let keyMaps = {};
|
|
|
|
|
selectedRowKeys.value.forEach(x => keyMaps[x] = true);
|
|
|
|
|
let changeList = filterComputedDataSource.value.filter(x => keyMaps[x.jsbh] && expression(x));
|
|
|
|
|
return changeList;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function batchLive(type: boolean){
|
|
|
|
|
if(checkSelectValue()) return;
|
|
|
|
|
let changeList = getSelectData((x) => x?.child['教师全景']?.isOnLine == !type);
|
|
|
|
|
if(checkIsList(changeList)) return;
|
|
|
|
|
loading.value = true;
|
|
|
|
|
//调用接口
|
|
|
|
|
let ids:any = [];
|
|
|
|
|
let isEnable = type;
|
|
|
|
|
changeList.forEach(x => ids.push(x?.child['教师全景']?.id))
|
|
|
|
|
if(!ids) return;
|
|
|
|
|
changeAvyLiveApi({ ids:ids.join(','), type: isEnable?1:0 }).then(res => {
|
|
|
|
|
let content = '';
|
|
|
|
|
res.forEach(x => {
|
|
|
|
|
// content += x.jsmc + "-" + x.xm
|
|
|
|
|
content += x.jsmc
|
|
|
|
|
let text = '';
|
|
|
|
|
if(x.resText){
|
|
|
|
|
if(x.resText.includes('ok')){
|
|
|
|
|
text = (isEnable?'开启':'关闭')+'直播-操作成功!'
|
|
|
|
|
}else{
|
|
|
|
|
text = (isEnable?'开启':'关闭')+'直播-操作失败: 录播主机故障,请联系管理员。'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
content += " " + text + "<br/>"
|
|
|
|
|
});
|
|
|
|
|
if(content.includes('直播-操作成功!')){
|
|
|
|
|
//延迟12秒
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
loadData();
|
|
|
|
|
createInfoModal({ width:'50%', title: '结果',content })
|
2023-10-27 00:49:17 +08:00
|
|
|
|
}, 10*1000);//10秒
|
2023-10-26 00:59:43 +08:00
|
|
|
|
}else{
|
|
|
|
|
loadData();
|
|
|
|
|
createInfoModal({ width:'50%', title: '结果',content })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}).catch(e => {
|
|
|
|
|
console.error(e);
|
|
|
|
|
loading.value = false;
|
|
|
|
|
createInfoModal({title: '错误结果',content:e})
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function batchTingke(type: boolean){
|
|
|
|
|
if(checkSelectValue()) return;
|
|
|
|
|
let changeList = getSelectData((x) => x?.sfyx == type?1:0);
|
|
|
|
|
if(checkIsList(changeList)) return;
|
|
|
|
|
//调用接口
|
|
|
|
|
let ids:any = [];
|
|
|
|
|
changeList.forEach(record => Object.values(record.child).forEach(x => {
|
|
|
|
|
let item:any = x;
|
|
|
|
|
ids.push(item.id);
|
|
|
|
|
}))
|
|
|
|
|
|
|
|
|
|
if(!ids) return;
|
|
|
|
|
updateAllLive({ ids: ids.join(','), sfyx: type?0:1}).then(res => {
|
|
|
|
|
loadData();
|
|
|
|
|
}).catch(e => {
|
|
|
|
|
console.error(e);
|
|
|
|
|
loading.value = false;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function batchLiveOpen(){
|
|
|
|
|
batchLive(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function batchLiveClose(){
|
|
|
|
|
batchLive(false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function batchTingkeOpen(){
|
|
|
|
|
batchTingke(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function batchTingkeClose(){
|
|
|
|
|
batchTingke(false);
|
|
|
|
|
}
|
|
|
|
|
|
2023-10-15 15:07:47 +08:00
|
|
|
|
function ylLiveNew(record) {
|
|
|
|
|
let routeData = route.resolve({ path:'/site/liveRoom2',query:{ id: record.jsbh } });
|
|
|
|
|
window.open(routeData.href, '_blank');
|
|
|
|
|
}
|
|
|
|
|
|
2023-05-15 14:08:47 +08:00
|
|
|
|
function changeLive(record, isEnable){
|
2023-09-04 22:59:11 +08:00
|
|
|
|
console.log('createInfoModal ->',createInfoModal);
|
2023-05-15 14:08:47 +08:00
|
|
|
|
loading.value = true;
|
2023-05-16 17:02:33 +08:00
|
|
|
|
let ids:any = [];
|
2023-05-15 14:08:47 +08:00
|
|
|
|
let changeLiveEnd:any = [];
|
|
|
|
|
Object.values(record.child).forEach(x => {
|
|
|
|
|
let item:any = x;
|
2023-05-16 17:02:33 +08:00
|
|
|
|
//收集ID
|
2023-10-18 08:15:48 +08:00
|
|
|
|
if(item.xm == '教师近景'){
|
|
|
|
|
ids.push(item.id);
|
|
|
|
|
}
|
2023-05-15 14:08:47 +08:00
|
|
|
|
});
|
2023-04-21 00:41:02 +08:00
|
|
|
|
|
2023-05-18 00:27:12 +08:00
|
|
|
|
changeAvyLiveApi({ ids:ids.join(','), type: isEnable?1:0 }).then(res => {
|
2023-09-04 22:59:11 +08:00
|
|
|
|
console.log(`🚀 -------------------------------------------------------🚀`);
|
|
|
|
|
console.log(`🚀 ~ file: index.vue:295 ~ changeAvyLiveApi ~ res:`, res);
|
|
|
|
|
console.log(`🚀 -------------------------------------------------------🚀`);
|
|
|
|
|
let content = '';
|
|
|
|
|
res.forEach(x => {
|
2023-10-20 22:16:10 +08:00
|
|
|
|
// content += x.jsmc + "-" + x.xm
|
|
|
|
|
content += x.jsmc
|
2023-10-19 22:50:01 +08:00
|
|
|
|
let text = '';
|
|
|
|
|
if(x.resText){
|
|
|
|
|
if(x.resText.includes('ok')){
|
|
|
|
|
text = (isEnable?'开启':'关闭')+'直播-操作成功!'
|
|
|
|
|
}else{
|
2023-10-23 21:37:58 +08:00
|
|
|
|
text = (isEnable?'开启':'关闭')+'直播-操作失败: 录播主机故障,请联系管理员。'
|
2023-10-19 22:50:01 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
content += " " + text + "<br/>"
|
2023-09-04 22:59:11 +08:00
|
|
|
|
});
|
2023-10-20 22:16:10 +08:00
|
|
|
|
if(content.includes('直播-操作成功!')){
|
|
|
|
|
//延迟12秒
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
loadData();
|
|
|
|
|
createInfoModal({ width:'50%', title: '结果',content })
|
|
|
|
|
}, 12*1000);
|
|
|
|
|
}else{
|
|
|
|
|
loadData();
|
|
|
|
|
createInfoModal({ width:'50%', title: '结果',content })
|
|
|
|
|
}
|
|
|
|
|
|
2023-05-15 14:08:47 +08:00
|
|
|
|
}).catch(e => {
|
|
|
|
|
console.error(e);
|
|
|
|
|
loading.value = false;
|
2023-09-04 22:59:11 +08:00
|
|
|
|
createInfoModal({title: '错误结果',content:e})
|
2023-05-16 17:02:33 +08:00
|
|
|
|
})
|
|
|
|
|
|
2023-04-22 15:16:05 +08:00
|
|
|
|
}
|
|
|
|
|
|
2023-05-15 14:08:47 +08:00
|
|
|
|
function changeKt(record, isEnable){
|
|
|
|
|
loading.value = true;
|
|
|
|
|
let ids:any = [];
|
|
|
|
|
Object.values(record.child).forEach(x => {
|
|
|
|
|
let item:any = x;
|
|
|
|
|
ids.push(item.id);
|
|
|
|
|
});
|
|
|
|
|
if(!ids) return;
|
|
|
|
|
updateAllLive({ ids: ids.join(','), sfyx: isEnable?0:1}).then(res => {
|
|
|
|
|
loadData();
|
|
|
|
|
}).catch(e => {
|
|
|
|
|
console.error(e);
|
|
|
|
|
loading.value = false;
|
|
|
|
|
})
|
2023-04-22 15:54:58 +08:00
|
|
|
|
|
2023-04-22 15:16:05 +08:00
|
|
|
|
}
|
2023-04-21 00:41:02 +08:00
|
|
|
|
|
2023-06-14 23:26:13 +08:00
|
|
|
|
function tableChange(pagination) {
|
|
|
|
|
ipagination.value.current = pagination.current;
|
|
|
|
|
ipagination.value.pageSize = pagination.pageSize;
|
|
|
|
|
loadData();
|
|
|
|
|
}
|
|
|
|
|
|
2023-10-22 01:57:24 +08:00
|
|
|
|
function filterDataSource() {
|
|
|
|
|
let dataSource:any = [];
|
|
|
|
|
let list = cardList.value[currentCardIndex.value]?.child??[];
|
|
|
|
|
let qw = queryParam.value;
|
|
|
|
|
|
2023-10-23 14:39:46 +08:00
|
|
|
|
console.log('->',qw, qw.nowIsClass);
|
|
|
|
|
|
|
|
|
|
|
2023-10-22 01:57:24 +08:00
|
|
|
|
list.forEach(x => {
|
|
|
|
|
let isReturn = true;
|
|
|
|
|
if(qw.jxlName){
|
|
|
|
|
isReturn = x.jxlName?.includes(qw.jxlName);
|
|
|
|
|
}
|
|
|
|
|
if(qw.jsmc){
|
|
|
|
|
isReturn = x.jsmc?.includes(qw.jsmc);
|
|
|
|
|
}
|
|
|
|
|
if(qw.sfyx){
|
|
|
|
|
isReturn = x.sfyx == qw.sfyx;
|
|
|
|
|
}
|
2023-10-26 00:59:43 +08:00
|
|
|
|
if(qw.zbgn){
|
|
|
|
|
isReturn = x.zbgn == qw.zbgn;
|
2023-10-22 20:26:14 +08:00
|
|
|
|
}
|
2023-10-22 01:57:24 +08:00
|
|
|
|
if(qw.onLineClassType){
|
|
|
|
|
isReturn = x.onLineClassType == qw.onLineClassType;
|
|
|
|
|
}
|
2023-10-23 14:39:46 +08:00
|
|
|
|
if(qw.nowIsClass != undefined){
|
|
|
|
|
if(qw.nowIsClass == true){
|
|
|
|
|
isReturn = x.nowIsClass == true;
|
|
|
|
|
}else{
|
|
|
|
|
isReturn = x.nowIsClass == false || x.nowIsClass == undefined || x.nowIsClass == null;
|
|
|
|
|
}
|
2023-10-22 01:57:24 +08:00
|
|
|
|
}
|
2023-10-23 14:39:46 +08:00
|
|
|
|
if(qw.nextIsClass != undefined){
|
|
|
|
|
if(qw.nextIsClass == true){
|
|
|
|
|
isReturn = x.nextIsClass == true;
|
|
|
|
|
}else{
|
|
|
|
|
isReturn = x.nextIsClass == false || x.nextIsClass == undefined || x.nextIsClass == null;
|
|
|
|
|
}
|
2023-10-22 01:57:24 +08:00
|
|
|
|
}
|
|
|
|
|
if(isReturn){
|
|
|
|
|
dataSource.push(x);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
return dataSource;
|
|
|
|
|
}
|
|
|
|
|
|
2023-06-14 23:26:13 +08:00
|
|
|
|
/**
|
|
|
|
|
* 查询
|
|
|
|
|
*/
|
|
|
|
|
function searchQuery() {
|
2023-10-23 21:37:58 +08:00
|
|
|
|
filterComputedDataSource.value = filterDataSource();
|
|
|
|
|
//loadData();
|
2023-06-14 23:26:13 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 重置
|
|
|
|
|
*/
|
|
|
|
|
function searchReset() {
|
|
|
|
|
queryParam.value = {};
|
|
|
|
|
//刷新数据
|
2023-10-23 21:37:58 +08:00
|
|
|
|
filterComputedDataSource.value = filterDataSource();
|
|
|
|
|
//loadData();
|
2023-06-14 23:26:13 +08:00
|
|
|
|
}
|
2023-06-24 13:04:12 +08:00
|
|
|
|
|
|
|
|
|
function getAutoShangXianQuartz(){
|
|
|
|
|
defHttp.get({ url: '/jiaoshi/kcZhihuijiaoshi/getAutoShangXianQuartz', params: {} }).then(res => {
|
|
|
|
|
shangXianQuartz.value = res;
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 启动
|
|
|
|
|
*/
|
|
|
|
|
async function openQuartz(){
|
|
|
|
|
await resumeJob({ id: shangXianQuartz.value.id }, loadData);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 暂停
|
|
|
|
|
*/
|
|
|
|
|
async function closeQuartz(){
|
|
|
|
|
await pauseJob({ id: shangXianQuartz.value.id }, loadData);
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-21 00:41:02 +08:00
|
|
|
|
</script>
|
|
|
|
|
<style lang="less" scoped>
|
2023-04-22 15:16:05 +08:00
|
|
|
|
.videoMax{
|
2023-04-24 22:40:50 +08:00
|
|
|
|
width: 25%;
|
2023-04-22 15:16:05 +08:00
|
|
|
|
}
|
|
|
|
|
.videoCardMain {
|
|
|
|
|
:deep(.ant-card-body) {
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/* 隐藏video 进度条 */
|
|
|
|
|
video::-webkit-media-controls-timeline {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
2023-05-15 14:08:47 +08:00
|
|
|
|
.green {
|
|
|
|
|
color: green;
|
|
|
|
|
}
|
|
|
|
|
.red {
|
|
|
|
|
color: red;
|
|
|
|
|
}
|
2023-10-22 01:57:24 +08:00
|
|
|
|
.yellow {
|
|
|
|
|
color: yellow;
|
|
|
|
|
}
|
|
|
|
|
// .green {
|
|
|
|
|
// color: #1ab394;
|
|
|
|
|
// }
|
|
|
|
|
.orange {
|
|
|
|
|
color: #ed9535;
|
|
|
|
|
}
|
|
|
|
|
.blue {
|
|
|
|
|
color: #1c84c6;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-06-14 23:26:13 +08:00
|
|
|
|
.jeecg-basic-table-form-container {
|
|
|
|
|
.ant-form {
|
|
|
|
|
padding: 12px 10px 6px 10px;
|
|
|
|
|
margin-bottom: 8px;
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
}
|
|
|
|
|
.table-page-search-submitButtons {
|
|
|
|
|
display: block;
|
|
|
|
|
margin-bottom: 24px;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
|
|
|
|
.query-group-cust{
|
|
|
|
|
width: calc(50% - 15px);
|
|
|
|
|
min-width: 100px !important;
|
|
|
|
|
}
|
|
|
|
|
.query-group-split-cust{
|
|
|
|
|
width: 30px;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
text-align: center
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.jeecg-basic-table-form-containera{
|
|
|
|
|
line-height: 24px;
|
|
|
|
|
background: #fff;
|
|
|
|
|
padding: 20px 0 0 10px;
|
|
|
|
|
margin-bottom: -20px;
|
|
|
|
|
}
|
|
|
|
|
.jeecg-basic-table .ant-table-wrapper .ant-table-title {
|
|
|
|
|
min-height: 0px !important;
|
|
|
|
|
padding: 0 0 8px 0 !important;
|
|
|
|
|
}
|
2023-10-18 08:15:48 +08:00
|
|
|
|
.active{
|
|
|
|
|
background-color: #36b395;
|
2023-10-22 15:07:24 +08:00
|
|
|
|
color: #ffffff;
|
2023-10-18 08:15:48 +08:00
|
|
|
|
}
|
2023-10-22 01:57:24 +08:00
|
|
|
|
|
|
|
|
|
.cardDiv {
|
|
|
|
|
:deep(.ant-divider-horizontal) {
|
|
|
|
|
margin: 12px 0;
|
|
|
|
|
}
|
|
|
|
|
:deep(.ant-card-head-title) {
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.numberBlob {
|
|
|
|
|
text-align: center;
|
|
|
|
|
// height: 100px;
|
|
|
|
|
height: 4rem;
|
|
|
|
|
.numSpan {
|
|
|
|
|
font-size: 2rem;
|
|
|
|
|
}
|
|
|
|
|
.numberName {
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
}
|
|
|
|
|
.fs3r {
|
2023-10-22 15:07:24 +08:00
|
|
|
|
font-size: 2rem;
|
2023-10-22 01:57:24 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2023-10-22 02:11:34 +08:00
|
|
|
|
.handleCss{
|
|
|
|
|
cursor:pointer;
|
|
|
|
|
}
|
2023-10-22 15:07:24 +08:00
|
|
|
|
.iconel{
|
|
|
|
|
float: left;
|
|
|
|
|
width: 50px;
|
|
|
|
|
margin-right: 8px;
|
|
|
|
|
}
|
|
|
|
|
.iconer{
|
|
|
|
|
float: left;
|
|
|
|
|
}
|
|
|
|
|
.ictitle{
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
color: #000000;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
text-align: left;
|
|
|
|
|
}
|
|
|
|
|
.ant-form-item{
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
}
|
2023-04-21 00:41:02 +08:00
|
|
|
|
</style>
|