2023年6月14日 修复问题
This commit is contained in:
parent
5567f0d480
commit
c8bacfec52
|
@ -1,6 +1,31 @@
|
||||||
<template>
|
<template>
|
||||||
<div style="width:100%;height: 100%;">
|
<div style="width:100%;height: 100%;">
|
||||||
<a-table :loading="loading" :data-source="leftList" :pagination="false" bordered size="middle" class="ant-table-striped">
|
<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">
|
||||||
|
<a-col :lg="8">
|
||||||
|
<a-form-item label="教室名称">
|
||||||
|
<!-- <j-dict-select-tag placeholder="请选择教室" v-model:value="queryParam.xqxn" dictCode="kc_xqxn_history,title,title"/> -->
|
||||||
|
<j-input placeholder="请输入教室名称" v-model:value="queryParam.jsmc"/>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
||||||
|
<span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
|
||||||
|
<a-col :lg="6">
|
||||||
|
<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 @click="toggleSearchStatus = !toggleSearchStatus" style="margin-left: 8px">
|
||||||
|
{{ toggleSearchStatus ? '收起' : '展开' }}
|
||||||
|
<Icon :icon="toggleSearchStatus ? 'ant-design:up-outlined' : 'ant-design:down-outlined'" />
|
||||||
|
</a>-->
|
||||||
|
</a-col>
|
||||||
|
</span>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</a-form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<a-table :loading="loading" :data-source="leftList" :pagination="false" bordered size="middle" class="ant-table-striped" :scroll="{ y: 750 }">
|
||||||
<a-table-column title="教室" data-index="jsmc"/>
|
<a-table-column title="教室" data-index="jsmc"/>
|
||||||
<a-table-column title="教师近景" align="center" data-index="child_教师全景">
|
<a-table-column title="教师近景" align="center" data-index="child_教师全景">
|
||||||
<template #default="{ record }">
|
<template #default="{ record }">
|
||||||
|
@ -76,12 +101,13 @@
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup name="zhihuijiaoshiIndexPage">
|
<script lang="ts" setup name="zhihuijiaoshiIndexPage">
|
||||||
import { defHttp } from '/@/utils/http/axios';
|
import { defHttp } from '/@/utils/http/axios';
|
||||||
import { ref, onMounted, Ref, watch } from 'vue';
|
import { ref, onMounted, Ref, watch, reactive } from 'vue';
|
||||||
import { nextTick } from 'vue';
|
import { nextTick } from 'vue';
|
||||||
import videojs from "video.js";
|
import videojs from "video.js";
|
||||||
import { useMessage } from '/@/hooks/web/useMessage';
|
import { useMessage } from '/@/hooks/web/useMessage';
|
||||||
import showAllLive from './showAllLive.vue';
|
import showAllLive from './showAllLive.vue';
|
||||||
import { execAvyApi, getAvyCtrlLiveOpenOrCloseUrl } from "/@/views/site/utils/index";
|
import { execAvyApi, getAvyCtrlLiveOpenOrCloseUrl } from "/@/views/site/utils/index";
|
||||||
|
import { JInput } from '/@/components/Form';
|
||||||
|
|
||||||
|
|
||||||
// const _document:any = window.document;
|
// const _document:any = window.document;
|
||||||
|
@ -96,6 +122,7 @@ 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 } = useMessage();
|
||||||
|
const queryParam:Ref<any> = ref({});
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
loadData();
|
loadData();
|
||||||
|
@ -115,6 +142,29 @@ const list = (params) => defHttp.get({ url: Api.list, params });
|
||||||
const updateAllLive = (params) => defHttp.get({ url: Api.updateAllLive, params });
|
const updateAllLive = (params) => defHttp.get({ url: Api.updateAllLive, params });
|
||||||
const changeAvyLiveApi = (params) => defHttp.get({ url: Api.changeAvyLiveApi, params });
|
const changeAvyLiveApi = (params) => defHttp.get({ url: Api.changeAvyLiveApi, params });
|
||||||
|
|
||||||
|
const labelCol = reactive({
|
||||||
|
xs: { span: 24 },
|
||||||
|
sm: { span: 7 },
|
||||||
|
});
|
||||||
|
const wrapperCol = reactive({
|
||||||
|
xs: { span: 24 },
|
||||||
|
sm: { span: 16 },
|
||||||
|
});
|
||||||
|
|
||||||
|
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,
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
function loadData(){
|
function loadData(){
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
let getListAction:any = [];
|
let getListAction:any = [];
|
||||||
|
@ -141,7 +191,7 @@ function loadData(){
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
list({ pageSize: -1, changshang: '奥威亚' }).then(res => {
|
list({ pageSize: -1, changshang: '奥威亚',...queryParam.value }).then(res => {
|
||||||
let list = (res?.records) ?? [];
|
let list = (res?.records) ?? [];
|
||||||
//聚合
|
//聚合
|
||||||
let map = {};
|
let map = {};
|
||||||
|
@ -270,6 +320,27 @@ function changeKt(record, isEnable){
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function tableChange(pagination) {
|
||||||
|
ipagination.value.current = pagination.current;
|
||||||
|
ipagination.value.pageSize = pagination.pageSize;
|
||||||
|
loadData();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询
|
||||||
|
*/
|
||||||
|
function searchQuery() {
|
||||||
|
loadData();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 重置
|
||||||
|
*/
|
||||||
|
function searchReset() {
|
||||||
|
queryParam.value = {};
|
||||||
|
//刷新数据
|
||||||
|
loadData();
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.videoMax{
|
.videoMax{
|
||||||
|
@ -290,4 +361,36 @@ video::-webkit-media-controls-timeline {
|
||||||
.red {
|
.red {
|
||||||
color: red;
|
color: red;
|
||||||
}
|
}
|
||||||
|
.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;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
|
@ -30,7 +30,7 @@
|
||||||
<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 @click="toggleSearchStatus = !toggleSearchStatus" style="margin-left: 8px">
|
<!--<a @click="toggleSearchStatus = !toggleSearchStatus" style="margin-left: 8px">
|
||||||
{{ toggleSearchStatus ? '收起' : '展开' }}
|
{{ toggleSearchStatus ? '收起' : '展开' }}
|
||||||
<Icon :icon="toggleSearchStatus ? 'ant-design:up-outlined' : 'ant-design:down-outlined'" />
|
<Icon :icon="toggleSearchStatus ? 'ant-design:up-outlined' : 'ant-design:down-outlined'"/>
|
||||||
</a>-->
|
</a>-->
|
||||||
</a-col>
|
</a-col>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -25,6 +25,11 @@
|
||||||
<JInput placeholder="请输入听课身份" v-model:value="queryParam.tksf"></JInput>
|
<JInput placeholder="请输入听课身份" v-model:value="queryParam.tksf"></JInput>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
<a-col :lg="8">
|
||||||
|
<a-form-item label="所属学院">
|
||||||
|
<JInput placeholder="请输入所属学院" v-model:value="queryParam.ssxy"></JInput>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
<!--</template>-->
|
<!--</template>-->
|
||||||
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
||||||
<span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
|
<span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
|
||||||
|
|
Loading…
Reference in New Issue