2024年2月26日 修改问题(智慧教室)
This commit is contained in:
parent
e1532bd541
commit
c95ca45540
|
@ -30,9 +30,9 @@
|
|||
<div v-html="text"></div>
|
||||
</template>
|
||||
<!--省市区字段回显插槽-->
|
||||
<template #pcaSlot="{text}">
|
||||
<!-- <template #pcaSlot="{text}">
|
||||
{{ getAreaTextByCode(text) }}
|
||||
</template>
|
||||
</template> -->
|
||||
<template #fileSlot="{text}">
|
||||
<span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
|
||||
<a-button v-else :ghost="true" type="primary" preIcon="ant-design:download-outlined" size="small" @click="downloadFile(text)">下载</a-button>
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
<!-- -<i class="fa-sharp fa-solid fa-user"></i>- -->
|
||||
<a-row class="" :gutter="[16,16]">
|
||||
<a-col :span="6">
|
||||
<div class="numberBlob handleCss" @click="openDetail({ zbgn: undefined })">
|
||||
<div class="numberBlob handleCss" @click="openJxlDetail({ })">
|
||||
<div class="numSpan">{{ allClassNum }}</div>
|
||||
<div class="numberName">
|
||||
<!-- <StockOutlined class="blue"/> -->
|
||||
|
@ -35,8 +35,10 @@
|
|||
</div>
|
||||
</a-col>
|
||||
<a-col :span="6">
|
||||
<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="numberBlob handleCss" @click="openDetail({ onLineClassType: ['green', 'yellow'] })">
|
||||
<!-- <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 => ['green', 'yellow'].indexOf(x.onLineClassType) != -1).length || 0}}</div>
|
||||
<div class="numberName">
|
||||
<!-- <RiseOutlined class="orange"/> -->
|
||||
开放听课
|
||||
|
@ -498,6 +500,7 @@
|
|||
<showAllLive ref="showAllLiveRef" :currentItem="currentItem" :isShowAllLive="isShowAllLive"/>
|
||||
</a-modal>
|
||||
<indexDetail ref="indexDetailRef" :leftList="leftList" @reload="loadData"/>
|
||||
<indexJxlDetail ref="indexJxlDetailRef" @reload="loadData"/>
|
||||
</template>
|
||||
<script lang="ts" setup name="zhihuijiaoshiIndexPage">
|
||||
import { defHttp } from '/@/utils/http/axios';
|
||||
|
@ -507,17 +510,21 @@ import videojs from "video.js";
|
|||
import { useMessage } from '/@/hooks/web/useMessage';
|
||||
import showAllLive from './showAllLive.vue';
|
||||
import indexDetail from './indexDetail.vue';
|
||||
import indexJxlDetail from './indexJxlDetail.vue';
|
||||
import { execAvyApi, getAvyCtrlLiveOpenOrCloseUrl } from "/@/views/site/utils/index";
|
||||
import { JInput } from '/@/components/Form';
|
||||
import { resumeJob, pauseJob } from '/@/views/monitor/quartz/quartz.api';
|
||||
import { useRouter } from 'vue-router';
|
||||
import { getSysConfig } from '/@/views/site/utils/index';
|
||||
import { list as jiaoshirongliangList } from './KcJiaoshirongliang.api';
|
||||
|
||||
|
||||
|
||||
// const _document:any = window.document;
|
||||
|
||||
const showAllLiveRef = ref();
|
||||
const indexDetailRef = ref();
|
||||
const indexJxlDetailRef = ref();
|
||||
|
||||
const leftList:Ref<any> = ref([]);
|
||||
const cardList:Ref<any> = ref([]);
|
||||
|
@ -789,13 +796,14 @@ function loadData(){
|
|||
}
|
||||
|
||||
function openDetail(param){
|
||||
console.log(`🚀 -----------------------------------------------------------------------🚀`);
|
||||
console.log(`🚀 ~ file: index.vue:501 ~ openDetail ~ indexDetailRef:`, indexDetailRef, param);
|
||||
console.log(`🚀 -----------------------------------------------------------------------🚀`);
|
||||
indexDetailRef.value.open(param);
|
||||
// indexDetailRef.value.changeQueryParam(param);
|
||||
}
|
||||
|
||||
function openJxlDetail(param){
|
||||
indexJxlDetailRef.value.open(param);
|
||||
}
|
||||
|
||||
function jxlNameFilterOptionFn(input: string, option: any){
|
||||
console.log(input, option);
|
||||
|
||||
|
@ -804,7 +812,11 @@ function jxlNameFilterOptionFn(input: string, option: any){
|
|||
}
|
||||
|
||||
function getJsjbxxList(){
|
||||
jsjbxxList({ pageSize: -1, changshang: '奥威亚',...queryParam.value }).then(res => {
|
||||
// jsjbxxList({ pageSize: -1, changshang: '奥威亚',...queryParam.value }).then(res => {
|
||||
// let list = (res?.records) ?? [];
|
||||
// allClassNum.value = list.length;
|
||||
// });
|
||||
jiaoshirongliangList({ pageSize: -1 }).then(res => {
|
||||
let list = (res?.records) ?? [];
|
||||
allClassNum.value = list.length;
|
||||
});
|
||||
|
@ -1076,8 +1088,8 @@ function tableChange(pagination) {
|
|||
|
||||
function filterDataSource() {
|
||||
let dataSource:any = [];
|
||||
let list = cardList.value[currentCardIndex.value]?.child??[];
|
||||
// let list = leftList.value??[];
|
||||
//let list = cardList.value[currentCardIndex.value]?.child??[];
|
||||
let list = leftList.value??[];
|
||||
let qw = queryParam.value;
|
||||
|
||||
console.log('->',qw, qw.nowIsClass);
|
||||
|
|
Loading…
Reference in New Issue