This commit is contained in:
yangjun 2024-05-23 18:09:39 +08:00
commit c2926ef2a9
22 changed files with 207 additions and 179 deletions

View File

@ -1,5 +1,5 @@
<template>
<div style="background: #fff;height: 600px;padding: 10px 0;overflow-y: auto;overflow-x: hidden;">
<div style="background: #fff;height: calc(100vh - 255px);overflow-y: auto;overflow-x: hidden;padding: 10px 0;">
<!--查询区域-->
<div class="jeecg-basic-table-form-container">
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
@ -30,7 +30,7 @@
</a-form>
</div>
<a-row>
<a-col :span="8" v-for="(item, index) in tableData" :key="index" style="padding: 0px 0px 10px 5px;overflow:hidden;">
<a-col :span="8" v-for="(item, index) in tableData" :key="index" style="padding: 0px 0px 5px 5px;overflow:hidden;">
<div style="width: 100%; height: 20px; background-color: rgb(28, 132, 198);"></div>
<a-card style="height: 280px;">
<div class="rotate" :style="classFun(item.qpublish)">{{item.qpublish =='0'? '待发布':'已发布'}}</div>
@ -210,8 +210,7 @@
function handleFabu(record: Recordable) {
defHttp.get({ url: '/wjxWjxx/wjxWjxx/fbwj', params: { id: record.id,wjlx: "6" } }).then(res => {
total.value = 1;
pageNo.value = 0;
reload();
handlePageChange(1);
});
}
/**
@ -241,16 +240,15 @@
*/
function handleSuccess() {
total.value = 1;
pageNo.value = 0;
reload();
handlePageChange(1);
}
/**
* 查询
*/
function searchQuery() {
pageNo.value = 0;
reload();
total.value = 1;
handlePageChange(1);
}
/**
@ -284,6 +282,7 @@
<style lang="less" scoped>
.jeecg-basic-table-form-container {
padding: 0;
width: 99%;
.table-page-search-submitButtons {
display: block;
margin-bottom: 24px;

View File

@ -1,5 +1,5 @@
<template>
<div style="background: #fff;height: 600px;padding: 10px 0;overflow-y: auto;overflow-x: hidden;">
<div style="background: #fff;height: calc(100vh - 255px);overflow-y: auto;overflow-x: hidden;padding: 10px 0;">
<!--查询区域-->
<div class="jeecg-basic-table-form-container">
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
@ -34,7 +34,7 @@
</a-form>
</div>
<a-row>
<a-col :span="8" v-for="(item, index) in tableData" :key="index" style="padding: 0px 0px 10px 5px;overflow:hidden;">
<a-col :span="8" v-for="(item, index) in tableData" :key="index" style="padding: 0px 0px 5px 5px;overflow:hidden;">
<div style="width: 100%; height: 20px; background-color: rgb(28, 132, 198);"></div>
<a-card style="height: 280px;">
<div class="rotate" :style="classFun(item.qpublish)">{{item.qpublish_dictText}}</div>
@ -304,6 +304,7 @@
<style lang="less" scoped>
.jeecg-basic-table-form-container {
padding: 0;
width:99%;
.table-page-search-submitButtons {
display: block;
margin-bottom: 24px;

View File

@ -1,5 +1,5 @@
<template>
<div style="background: #fff;height: 97%;margin: 10px 0;">
<div style="background: #fff;height: calc(100vh - 225px);overflow-y: auto;overflow-x: hidden;margin: 10px 0;">
<!--查询区域-->
<div class="jeecg-basic-table-form-container">
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
@ -31,7 +31,7 @@
</a-form>
</div>
<a-row>
<a-col :span="8" v-for="(item, index) in tableData" :key="index" style="padding: 0px 0px 10px 5px;overflow:hidden;">
<a-col :span="8" v-for="(item, index) in tableData" :key="index" style="padding: 0px 0px 5px 5px;overflow:hidden;">
<div style="width: 100%; height: 20px; background-color: rgb(28, 132, 198);"></div>
<a-card style="height: 210px;">
<div class="rotate" :style="classFun(item.flag)">{{getStatus(item.flag)}}</div>
@ -152,16 +152,15 @@
*/
function handleSuccess() {
total.value = 1;
pageNo.value = 0;
reload();
handlePageChange(1);
}
/**
* 查询
*/
function searchQuery() {
pageNo.value = 0;
reload();
total.value = 1;
handlePageChange(1);
}
/**
@ -207,6 +206,7 @@
<style lang="less" scoped>
.jeecg-basic-table-form-container {
padding: 0;
width: 99%;
.table-page-search-submitButtons {
display: block;
margin-bottom: 24px;

View File

@ -1,5 +1,5 @@
<template>
<div style="background: #fff;height: 97%;margin: 10px 0;">
<div style="background: #fff;height: calc(100vh - 255px);overflow-y: auto;overflow-x: hidden;margin: 10px 0;">
<!--查询区域-->
<div class="jeecg-basic-table-form-container">
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
@ -30,7 +30,7 @@
</a-form>
</div>
<a-row>
<a-col :span="8" v-for="(item, index) in tableData" :key="index" style="padding: 0px 0px 10px 5px;overflow:hidden;">
<a-col :span="8" v-for="(item, index) in tableData" :key="index" style="padding: 0px 0px 5px 5px;overflow:hidden;">
<div style="width: 100%; height: 20px; background-color: rgb(28, 132, 198);"></div>
<a-card style="height: 280px;">
<div class="rotate" :style="classFun(item.qpublish)">{{item.qpublish =='0'? '待发布':'已发布'}}</div>
@ -207,8 +207,7 @@
function handleFabu(record: Recordable) {
defHttp.get({ url: '/wjxWjxx/wjxWjxx/fbwj', params: { id: record.id,wjlx: "1" } }).then(res => {
total.value = 1;
pageNo.value = 0;
reload();
handlePageChange(1);
});
}
/**
@ -238,16 +237,15 @@
*/
function handleSuccess() {
total.value = 1;
pageNo.value = 0;
reload();
handlePageChange(1);
}
/**
* 查询
*/
function searchQuery() {
pageNo.value = 0;
reload();
total.value = 1;
handlePageChange(1);
}
/**
@ -281,6 +279,7 @@
<style lang="less" scoped>
.jeecg-basic-table-form-container {
padding: 0;
width: 99%;
.table-page-search-submitButtons {
display: block;
margin-bottom: 24px;

View File

@ -1,5 +1,5 @@
<template>
<div style="background: #fff;height: 97%;margin: 10px 0;">
<div style="background: #fff;height: calc(100vh - 255px);overflow-y: auto;overflow-x: hidden;margin: 10px 0;">
<!--查询区域-->
<div class="jeecg-basic-table-form-container">
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
@ -32,7 +32,7 @@
</a-form>
</div>
<a-row>
<a-col :span="8" v-for="(item, index) in tableData" :key="index" style="padding: 0px 0px 10px 5px;overflow:hidden;">
<a-col :span="8" v-for="(item, index) in tableData" :key="index" style="padding: 0px 0px 5px 5px;overflow:hidden;">
<div style="width: 100%; height: 20px; background-color: rgb(28, 132, 198);"></div>
<a-card style="height: 280px;">
<div class="rotate" :style="classFun(item.qpublish)">{{item.qpublish_dictText}}</div>
@ -295,6 +295,7 @@
<style lang="less" scoped>
.jeecg-basic-table-form-container {
padding: 0;
width:99%;
.table-page-search-submitButtons {
display: block;
margin-bottom: 24px;

View File

@ -1,5 +1,5 @@
<template>
<div style="background: #fff;height: 97%;margin: 10px 0;">
<div style="background: #fff;height: calc(100vh - 225px);overflow-y: auto;overflow-x: hidden;margin: 10px 0;">
<!--查询区域-->
<div class="jeecg-basic-table-form-container">
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
@ -31,7 +31,7 @@
</a-form>
</div>
<a-row>
<a-col :span="8" v-for="(item, index) in tableData" :key="index" style="padding: 0px 0px 10px 5px;overflow:hidden;">
<a-col :span="8" v-for="(item, index) in tableData" :key="index" style="padding: 0px 0px 5px 5px;overflow:hidden;">
<div style="width: 100%; height: 20px; background-color: rgb(28, 132, 198);"></div>
<a-card style="height: 210px;">
<div class="rotate" :style="classFun(item.flag)">{{getStatus(item.flag)}}</div>
@ -152,16 +152,15 @@
*/
function handleSuccess() {
total.value = 1;
pageNo.value = 0;
reload();
handlePageChange(1);
}
/**
* 查询
*/
function searchQuery() {
pageNo.value = 0;
reload();
total.value = 1;
handlePageChange(1);
}
/**
@ -207,6 +206,7 @@
<style lang="less" scoped>
.jeecg-basic-table-form-container {
padding: 0;
width: 99%;
.table-page-search-submitButtons {
display: block;
margin-bottom: 24px;

View File

@ -1,5 +1,5 @@
<template>
<div style="margin-top:10px;background:#fff;height:630px;overflow:auto;">
<div style="margin-top:10px;background:#fff;height: calc(100vh - 225px);overflow:auto;">
<a-card>
<div>
<a-row>
@ -42,7 +42,7 @@
<a-col :span="24" v-for="(item,index) in cjwtSource" :key="index">
<a-row>
<a-col :span="24">
<span style="float: left;">{{index+1}}.{{item.question}}</span>
<span style="float: left;">{{(pageNo-1)*pageSize+index+1}}.{{item.question}}</span>
<span style="float: right;">
<a title="修改" @click="handleEdit(item)"><Icon icon="ant-design:form-outlined" /></a>
<a-divider type="vertical" style="height: 30px; background-color: #7cb305" />
@ -95,7 +95,7 @@
const globSetting = useGlobSetting();
const baseApiUrl = globSetting.domainUrl;
//
const { currentRoute } = useRouter();
const { query } = unref(currentRoute);
@ -117,7 +117,7 @@ const baseApiUrl = globSetting.domainUrl;
jxrlFilePath:null,
kcjs:''
});
//
function handleYinyong(){
var record = {xqxn,rwbh}
@ -146,37 +146,38 @@ const baseApiUrl = globSetting.domainUrl;
function openPdf(record){
var url2 = getFileAccessHttpUrl(record.pdfPath)
console.log(`🚀 ~ openPdf ~ url2:`, url2)
// console.log(`🚀 ~ openPdf ~ url2:`, url2)
let url = baseApiUrl+"/generic/web/viewer.html?file="+encodeURIComponent(url2);
window.open(url,"_blank")
}
function openJxrlPdf(record){
var url2 = getFileAccessHttpUrl(record.jxrlPdfPath)
console.log(`🚀 ~ openPdf ~ url2:`, url2)
// console.log(`🚀 ~ openPdf ~ url2:`, url2)
let url = baseApiUrl+"/generic/web/viewer.html?file="+encodeURIComponent(url2);
window.open(url,"_blank")
}
//
function handleCjwtOk() {
console.log('--------cjwt ok -----------')
// console.log('--------cjwt ok -----------')
cjwtData(1);
}
//
function handlePageChange(page: number) {
cjwtData(page);
}
function cjwtData(arg){
pageNo.value = arg;
defHttp.get({ url: '/zyCjwt/zyCjwt/list', params: { pageSize: 3,pageNo:arg, rwbh:rwbh,xqxn:xqxn,column:'createTime',order:'desc' } }).then((res) => {
console.log(`🚀 ~ defHttp.get ~ res:`, res)
// console.log(`🚀 ~ defHttp.get ~ res:`, res)
cjwtSource.value = res.records;
total.value = res.total;
console.log(`🚀 ~ defHttp.get ~ cjwtSource:`, cjwtSource)
// console.log(`🚀 ~ defHttp.get ~ cjwtSource:`, cjwtSource)
});
}
//
@ -192,13 +193,13 @@ const baseApiUrl = globSetting.domainUrl;
var model = jxdgInfo.value;
model.rwbh = rwbh;
model.xqxn = xqxn;
console.log(`🚀 ~ addKcjsHandle ~ model:`, model)
// console.log(`🚀 ~ addKcjsHandle ~ model:`, model)
if(model.id){
if(type=='1'){
model.filePath = '';
}
defHttp.post({ url: '/zyJxdg/zyJxdg/edit', params: model }).then((res) => {
console.log(`🚀 ~ defHttp.post 111~ res:`, res)
// console.log(`🚀 ~ defHttp.post 111~ res:`, res)
getKcjsJxdg();
});
}else{
@ -206,7 +207,7 @@ const baseApiUrl = globSetting.domainUrl;
model.filePath = '';
}
defHttp.post({ url: '/zyJxdg/zyJxdg/add', params: model }).then((res) => {
console.log(`🚀 ~ defHttp.post 222~ res:`, res)
// console.log(`🚀 ~ defHttp.post 222~ res:`, res)
getKcjsJxdg();
});
}
@ -218,7 +219,7 @@ const baseApiUrl = globSetting.domainUrl;
cjwtData(1);
});
</script>
<style lang="less" scoped>
</style>
</style>

View File

@ -32,7 +32,7 @@
import footerPage from '/@/views/site/common/footer.vue';
import dqxqkcMenu from '/@/views/site/renKeJiaoCheng/checkKecheng/dqxqkcMenu.vue';
import dqxqkc from '/@/views/site/renKeJiaoCheng/checkKecheng/dqxqkc.vue';
const maxClassName = ref<any>({});
const selectedKeys = ref<string[]>([]);
//
@ -41,7 +41,7 @@
const { rwbh,xqxn } = query;//
let router = useRouter();
const kcxxInfo = ref<string>('');
//
onMounted(() => {
@ -51,7 +51,7 @@
kcxxInfo.value = res;
});
});
</script>
<style lang="less" scoped>
#siteMain {
@ -90,4 +90,4 @@
}
}
}
</style>
</style>

View File

@ -1,12 +1,12 @@
<template>
<div id="siteMain" style="min-height: calc(100vh - 160px);">
<div id="siteMain" style="min-height: calc(100vh - 205px);">
<a-row>
<a-col :span="24">
<a-menu
v-model:openKeys="openKeys"
v-model:selectedKeys="selectedKeys"
style="width: 98%;min-height: calc(100vh - 142px);margin: 10px 0;"
mode="inline"
v-model:openKeys="openKeys"
v-model:selectedKeys="selectedKeys"
style="width: 98%;min-height: calc(100vh - 225px);margin: 10px 0;"
mode="inline"
>
<a-sub-menu key="sub1">
<template #title>教学内容</template>

View File

@ -1,10 +1,10 @@
<template>
<div id="siteMain" style="min-height: calc(100vh - 160px);">
<div id="siteMain" style="min-height: calc(100vh - 205px);">
<a-row>
<a-col :span="24">
<a-menu
v-model:selectedKeys="selectedKeys"
style="width: 98%;min-height: calc(100vh - 142px);margin: 10px 0;"
style="width: 98%;min-height: calc(100vh - 225px);margin: 10px 0;"
mode="inline"
>
<a-sub-menu key="sub1">

View File

@ -1,10 +1,10 @@
<template>
<div id="siteMain" style="height: 640px;">
<div id="siteMain" style="min-height: calc(100vh - 205px);">
<a-row>
<a-col :span="24">
<a-menu
v-model:selectedKeys="selectedKeys"
style="width: 98%;height:640px; margin: 10px 0;"
style="width: 98%;min-height: calc(100vh - 225px); margin: 10px 0;"
mode="inline"
>
<a-sub-menu key="sub1">

View File

@ -1,5 +1,5 @@
<template>
<div style="margin-top:10px;background:#fff;height:642px;overflow:auto;">
<div style="margin-top:10px;background:#fff;height: calc(100vh - 225px);overflow: auto;">
<a-card>
<div>
<a-row>
@ -44,7 +44,7 @@
<a-col :span="24" v-for="(item,index) in cjwtSource" :key="index">
<a-row>
<a-col :span="24">
<span style="float: left;">{{index+1}}.{{item.question}}</span>
<span style="float: left;">{{(pageNo-1)*pageSize+index+1}}.{{item.question}}</span>
</a-col>
<a-col :span="24"><span><Icon icon="ant-design:caret-right-outlined" />{{item.answer}}</span></a-col>
<a-col :span="24">
@ -93,7 +93,7 @@
const globSetting = useGlobSetting();
const baseApiUrl = globSetting.domainUrl;
//
const { currentRoute } = useRouter();
const { query } = unref(currentRoute);
@ -114,7 +114,7 @@ const baseApiUrl = globSetting.domainUrl;
filePath:'',
kcjs:''
});
//
function handleYinyong(){
var record = {xqxn,rwbh}
@ -143,41 +143,43 @@ const baseApiUrl = globSetting.domainUrl;
function openPdf(record){
var url2 = getFileAccessHttpUrl(record.pdfPath)
console.log(`🚀 ~ openPdf ~ url2:`, url2)
// console.log(`🚀 ~ openPdf ~ url2:`, url2)
let url = baseApiUrl+"/generic/web/viewer.html?file="+encodeURIComponent(url2);
window.open(url,"_blank")
}
function openJxrlPdf(record){
var url2 = getFileAccessHttpUrl(record.jxrlPdfPath)
console.log(`🚀 ~ openPdf ~ url2:`, url2)
// console.log(`🚀 ~ openPdf ~ url2:`, url2)
let url = baseApiUrl+"/generic/web/viewer.html?file="+encodeURIComponent(url2);
window.open(url,"_blank")
}
//
function handleCjwtOk() {
console.log('--------cjwt ok -----------')
// console.log('--------cjwt ok -----------')
cjwtData(1);
}
//
function handlePageChange(page: number) {
cjwtData(page);
}
function cjwtData(arg){
defHttp.get({ url: '/zyCjwt/zyCjwt/list', params: { pageSize: 3,pageNo:arg, rwbh:rwbh,xqxn:xqxn } }).then((res) => {
console.log(`🚀 ~ defHttp.get ~ res:`, res)
pageNo.value = arg;
defHttp.get({ url: '/zyCjwt/zyCjwt/list', params: { pageSize: 3,pageNo:arg, rwbh:rwbh,xqxn:xqxn,column:'createTime',order:'desc' } }).then((res) => {
// console.log(`🚀 ~ defHttp.get ~ res:`, res)
cjwtSource.value = res.records;
console.log(`🚀 ~ defHttp.get ~ cjwtSource:`, cjwtSource)
total.value = res.total;
// console.log(`🚀 ~ defHttp.get ~ cjwtSource:`, cjwtSource)
});
}
//
function getKcjsJxdg(){
defHttp.get({ url: '/zyJxdg/zyJxdg/getKcjsJxdg', params: { rwbh:rwbh} }).then((res) => {
console.log(`🚀 1111111111111~ getKcjsJxdg ~ res:`, res)
// console.log(`🚀 1111111111111~ getKcjsJxdg ~ res:`, res)
if(res){
jxdgInfo.value = res;
}
@ -188,13 +190,13 @@ function openJxrlPdf(record){
var model = jxdgInfo.value;
model.rwbh = rwbh;
model.xqxn = xqxn;
console.log(`🚀 ~ addKcjsHandle ~ model:`, model)
// console.log(`🚀 ~ addKcjsHandle ~ model:`, model)
if(model.id){
if(type=='1'){
model.filePath = '';
}
defHttp.post({ url: '/zyJxdg/zyJxdg/edit', params: model }).then((res) => {
console.log(`🚀 ~ defHttp.post 111~ res:`, res)
// console.log(`🚀 ~ defHttp.post 111~ res:`, res)
getKcjsJxdg();
});
}else{
@ -202,7 +204,7 @@ function openJxrlPdf(record){
model.filePath = '';
}
defHttp.post({ url: '/zyJxdg/zyJxdg/add', params: model }).then((res) => {
console.log(`🚀 ~ defHttp.post 222~ res:`, res)
// console.log(`🚀 ~ defHttp.post 222~ res:`, res)
getKcjsJxdg();
});
}
@ -214,7 +216,7 @@ function openJxrlPdf(record){
cjwtData(1);
});
</script>
<style lang="less" scoped>
</style>
</style>

View File

@ -475,10 +475,12 @@
<style lang="less" scoped>
.max {
height: calc(-132px + 100vh);
height: calc(100vh - 225px);
//height: calc(-132px + 100vh);
// min-height: calc(-132px + 100vh);
// max-height: calc(-132px + 100vh);
overflow: hidden;
overflow: auto;
//overflow: hidden;
.maxDiv {
height: calc(100% - 94px);
overflow-y: auto;

View File

@ -459,10 +459,12 @@
<style lang="less" scoped>
.max {
height: calc(-132px + 100vh);
height: calc(100vh - 225px);
//height: calc(-132px + 100vh);
// min-height: calc(-132px + 100vh);
// max-height: calc(-132px + 100vh);
overflow: hidden;
overflow: auto;
//overflow: hidden;
.maxDiv {
height: calc(100% - 94px);
overflow-y: auto;

View File

@ -1,5 +1,5 @@
<template>
<div style="background: #fff;height:642px;margin-top:10px;">
<div style="background: #fff;height: calc(100vh - 225px);overflow-y: auto;overflow-x: hidden;margin-top:10px;">
<!--查询区域-->
<div class="jeecg-basic-table-form-container">
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
@ -26,7 +26,6 @@
<a-collapse-panel :key="index" >
<template #header>
<sapn style="font-size: 16px; font-weight: bold;">{{index+1}}.{{item.title}}</sapn>
</template>
<div v-html="item.content"></div>
<!-- <setting-outlined /> -->
@ -44,7 +43,7 @@
<a-empty/>
</a-col>
</a-row>
</div>
</template>
@ -84,9 +83,10 @@
* 查询
*/
function searchQuery() {
reload(1);
total.value = 1;
handlePageChange(1);
}
/**
* 重置
*/
@ -95,21 +95,21 @@
queryParam.value.rwbh = rwbh;
queryParam.value.xqxn = xqxn;
queryParam.value.ggStatus='1';
//
reload(1);
total.value = 1;
handlePageChange(1);
}
//
function handlePageChange(page: number) {
reload(page);
pageNo.value = page;
reload();
}
//
onMounted(() => {
reload(1);
});
function reload(arg){
queryParam.pageNo = arg;
function reload(){
queryParam.value.pageNo = pageNo;
queryParam.value.pageSize = pageSize;
queryParam.value.rwbh = rwbh;
queryParam.value.xqxn = xqxn;
console.log(`🚀 ~ reload ~ queryParam:`, queryParam)
defHttp.get({ url: '/zyGonggao/zyGonggao/list', params: queryParam.value }).then((res) => {
console.log(res);
@ -120,12 +120,17 @@
});
}
//
onMounted(() => {
searchQuery();
});
</script>
<style lang="less" scoped>
.jeecg-basic-table-form-container {
padding: 0;
width:99%;
.table-page-search-submitButtons {
display: block;
margin-bottom: 24px;

View File

@ -1,5 +1,5 @@
<template>
<div style="background: #fff;min-height:97.5%;margin-top:10px;">
<div style="background: #fff;height: calc(100vh - 225px);overflow-y: auto;overflow-x: hidden;margin-top:10px;">
<!--查询区域-->
<div class="jeecg-basic-table-form-container" style="border-bottom: 2px solid #f0f0f0;">
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol" style="padding: 20px 10px 0px 10px;">
@ -195,16 +195,15 @@
*/
function handleSuccess() {
total.value = 1;
pageNo.value = 0;
reload()
handlePageChange(1);
}
/**
* 查询
*/
function searchQuery() {
pageNo.value = 0;
reload();
total.value = 1;
handlePageChange(1);
}
/**
@ -246,6 +245,8 @@
<style lang="less" scoped>
.jeecg-basic-table-form-container {
padding: 0;
width:99%;
.table-page-search-submitButtons {
display: block;
margin-bottom: 24px;

View File

@ -1,5 +1,5 @@
<template>
<div style="background: #fff;height: 97%;margin: 10px 0;">
<div style="background: #fff;height: calc(100vh - 225px);overflow-y: auto;overflow-x: hidden;margin: 10px 0;">
<!--查询区域-->
<div class="jeecg-basic-table-form-container">
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
@ -31,7 +31,7 @@
</a-form>
</div>
<a-row>
<a-col :span="8" v-for="(item, index) in tableData" :key="index" style="padding: 0px 0px 10px 5px;overflow:hidden;">
<a-col :span="8" v-for="(item, index) in tableData" :key="index" style="padding: 0px 0px 5px 5px;overflow:hidden;">
<div style="width: 100%; height: 20px; background-color: rgb(28, 132, 198);"></div>
<a-card style="height: 240px;border: 1px solid rgb(28, 132, 198);">
<div class="rotate" :style="classFun(item)">{{callText(item)}}</div>
@ -88,7 +88,7 @@
import XxhbbksListModal from '/@/views/kc/xxhbbks/XxhbbksListModal.vue';
//
const { currentRoute } = useRouter();
const { query } = unref(currentRoute);
@ -106,7 +106,7 @@
const pageNo = ref<number>(0);
const pageSize = ref<number>(6);
const tableData = ref<any>([]);
const labelCol = reactive({
xs: { span: 24 },
@ -117,7 +117,7 @@
sm: { span: 16 },
});
function classFun(record){
if(record.score){
return "background: #18a689";
@ -147,7 +147,7 @@
//
function handleShangchuan(record){
let timestamp = new Date().getTime();
let startTimestamp = Date.parse(record.startTime);
if(timestamp<startTimestamp){
@ -171,30 +171,33 @@
XxhbbksListModalPage.value.disableSubmit = false;
XxhbbksListModalPage.value.init(record);
}
/**
* 成功回调
*/
function handleSuccess() {
reload()
total.value = 1;
handlePageChange(1);
}
/**
* 查询
*/
function searchQuery() {
reload();
total.value = 1;
handlePageChange(1);
}
/**
* 重置
*/
function searchReset() {
queryParam.value = {};
//
reload();
total.value = 1;
handlePageChange(1);
}
function reload(){
@ -213,11 +216,11 @@
tableData.value = res.records;
});
}
function handlePageChange(record){
pageNo.value = record;
searchQuery();
reload();
}
onMounted(() => {
@ -229,6 +232,7 @@
<style lang="less" scoped>
.jeecg-basic-table-form-container {
padding: 0;
width: 99%;
.table-page-search-submitButtons {
display: block;
margin-bottom: 24px;
@ -258,7 +262,7 @@
.zyCon{
line-height: 30px;
}
.rotate {
.rotate {
transform: rotate(45deg);
background: rgb(28, 132, 198);
color: #fff;

View File

@ -1,5 +1,5 @@
<template>
<div style="background: #fff;height: 97%;margin: 10px 0;">
<div style="background: #fff;height: calc(100vh - 225px);overflow-y: auto;margin: 10px 0;">
<!--查询区域-->
<div class="jeecg-basic-table-form-container">
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
@ -37,7 +37,7 @@
</a-form>
</div>
<a-row>
<a-col :span="8" v-for="(item, index) in tableData" :key="index" style="padding: 0px 0px 10px 5px;overflow:hidden;">
<a-col :span="8" v-for="(item, index) in tableData" :key="index" style="padding: 0px 0px 5px 5px;overflow:hidden;">
<div style="width: 100%; height: 20px; background-color: rgb(28, 132, 198);"></div>
<a-card style="height: 210px;border: 1px solid rgb(28, 132, 198);">
<div class="rotate" >{{item.zyStatus_dictText}}</div>
@ -89,7 +89,7 @@
import XxhbbksListModal from '/@/views/kc/xxhbbks/XxhbbksListModal.vue';
//
const { currentRoute } = useRouter();
const { query } = unref(currentRoute);
@ -107,7 +107,7 @@
const pageNo = ref<number>(0);
const pageSize = ref<number>(6);
const tableData = ref<any>([]);
const labelCol = reactive({
xs: { span: 24 },
@ -125,7 +125,7 @@
registerModal.value.disableSubmit = false;
registerModal.value.add();
}
/**
* 编辑事件
*/
@ -133,7 +133,7 @@
registerModal.value.disableSubmit = false;
registerModal.value.edit(record);
}
/**
* 详情
*/
@ -141,7 +141,7 @@
registerModal.value.disableSubmit = true;
registerModal.value.edit(record);
}
//
function openXkrs(record){
console.log(`🚀 ~ openXkrs ~ record:`, record)
@ -152,7 +152,7 @@
function handleZyxx(record){
ZyInfoStudentListModalPage.value.disableSubmit = true;
ZyInfoStudentListModalPage.value.init(record);
}
function handleShangchuan(record){
@ -160,7 +160,7 @@
var param = {mainId:record.id,zyfj:record.filePath}
ZyInfoStudentModalPage.value.edit(param);
}
/**
* 删除事件
*/
@ -184,30 +184,33 @@
}
});
}
/**
* 成功回调
*/
function handleSuccess() {
reload()
total.value = 1;
handlePageChange(1);
}
/**
* 查询
*/
function searchQuery() {
reload();
total.value = 1;
handlePageChange(1);
}
/**
* 重置
*/
function searchReset() {
queryParam.value = {};
//
reload();
total.value = 1;
handlePageChange(1);
}
function reload(){
@ -226,11 +229,11 @@
tableData.value = res.records;
});
}
function handlePageChange(record){
pageNo.value = record;
searchQuery();
reload();
}
onMounted(() => {
@ -242,6 +245,7 @@
<style lang="less" scoped>
.jeecg-basic-table-form-container {
padding: 0;
width: 99%;
.table-page-search-submitButtons {
display: block;
margin-bottom: 24px;
@ -271,7 +275,7 @@
.zyCon{
line-height: 30px;
}
.rotate {
.rotate {
transform: rotate(45deg);
background: rgb(28, 132, 198);
color: #fff;

View File

@ -1,5 +1,5 @@
<template>
<div style="background: #fff;height: 97%;margin: 10px 0;">
<div style="background: #fff;height: calc(100vh - 255px);overflow-y: auto;margin: 10px 0;">
<!--查询区域-->
<div class="jeecg-basic-table-form-container">
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
@ -26,7 +26,7 @@
</a-form>
</div>
<a-row>
<a-col :span="8" v-for="(item, index) in tableData" :key="index" style="padding: 0px 0px 10px 5px;overflow:hidden;">
<a-col :span="8" v-for="(item, index) in tableData" :key="index" style="padding: 0px 0px 5px 5px;overflow:hidden;">
<div style="width: 100%; height: 20px; background-color: rgb(28, 132, 198);"></div>
<a-card style="height: 240px;border: 1px solid rgb(28, 132, 198);">
<div class="rotate" :style="classFun(item.zyStatus)">{{item.zyStatus_dictText}}</div>
@ -37,7 +37,7 @@
<a-col :span="24" class="zyCon">时间{{item.startTime}} - {{item.endTime}}</a-col>
<a-col :span="24" class="zyCon"><div style="float:left">{{item.xnxq}}</div><div style="float:right;" @click="openXkrs(item)"><a>{{item.xkxs}}人选课</a></div></a-col>
<a-col :span="24" class="zyCon"><div style="float:left">未提交{{item.wtjnum?item.wtjnum:0}};</div><div style="float:right;" >已提交{{item.ytjnum?item.ytjnum:0}}</div></a-col>
<a-col :span="24" style="text-align:center;margin-top:20px;">
<a-button type="primary" @click="handleDetail(item)" style="margin-left:5px;background:rgb(28, 132, 198);">详情</a-button>
<a-button type="primary" @click="handleZyxx(item)" style="margin-left:5px;background:rgb(28, 132, 198);" >作业</a-button>
@ -76,7 +76,7 @@
import XxhbbksListModal from '/@/views/kc/xxhbbks/XxhbbksListModal.vue';
//
const { currentRoute } = useRouter();
const { query } = unref(currentRoute);
@ -94,7 +94,7 @@
const pageNo = ref<number>(0);
const pageSize = ref<number>(6);
const tableData = ref<any>([]);
const labelCol = reactive({
xs: { span: 24 },
@ -119,7 +119,7 @@
registerModal.value.disableSubmit = false;
registerModal.value.add();
}
/**
* 编辑事件
*/
@ -127,7 +127,7 @@
registerModal.value.disableSubmit = false;
registerModal.value.edit(record);
}
/**
* 详情
*/
@ -135,12 +135,12 @@
registerModal.value.disableSubmit = true;
registerModal.value.edit(record);
}
//
function handleZyxx(record){
ZyInfoStudentListModalPage.value.disableSubmit = true;
ZyInfoStudentListModalPage.value.init(record);
}
//
@ -156,7 +156,7 @@
ZyInfoStudentModalPage.value.disableSubmit = true;
XxhbbksListModalPage.value.init(record);
}
/**
* 删除事件
*/
@ -181,39 +181,41 @@
}
});
}
/**
* 成功回调
*/
function handleSuccess() {
reload()
total.value = 1;
handlePageChange(1);
}
function handleZySuccess(zyid){
setTimeout(()=>{handleSuccess()}, 1500);
var url = "/zyInfo/zyInfo/editStudent";
defHttp.get({ url: url, params:{id:zyid} }).then((res) => {
});
}
/**
* 查询
*/
function searchQuery() {
reload();
total.value = 1;
handlePageChange(1);
}
/**
* 重置
*/
function searchReset() {
queryParam.value = {};
//
reload();
total.value = 1;
handlePageChange(1);
}
function reload(){
@ -232,11 +234,11 @@
tableData.value = res.records;
});
}
function handlePageChange(record){
pageNo.value = record;
searchQuery();
reload();
}
onMounted(() => {
@ -248,6 +250,7 @@
<style lang="less" scoped>
.jeecg-basic-table-form-container {
padding: 0;
width: 99%;
.table-page-search-submitButtons {
display: block;
margin-bottom: 24px;
@ -277,7 +280,7 @@
.zyCon{
line-height: 30px;
}
.rotate {
.rotate {
transform: rotate(45deg);
// background: rgb(28, 132, 198);
color: #fff;

View File

@ -1,10 +1,10 @@
<template>
<div style="background: #fff;height: 97%;margin: 10px 0;">
<div style="background: #fff;height: calc(100vh - 255px);overflow-y: auto;margin: 10px 0;">
<!--查询区域-->
<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-col :lg="7">
<a-form-item label="作业名称">
<j-input placeholder="请输入作业名称" v-model:value="queryParam.title"></j-input>
</a-form-item>
@ -14,7 +14,7 @@
<j-dict-select-tag placeholder="请选择类型" v-model:value="queryParam.zyType" dictCode="zy_type"/>
</a-form-item>
</a-col> -->
<a-col :lg="8">
<a-col :lg="7">
<a-form-item label="状态">
<j-dict-select-tag placeholder="请选择状态" v-model:value="queryParam.zyStatus" dictCode="zy_status"/>
</a-form-item>
@ -36,8 +36,8 @@
</a-row>
</a-form>
</div>
<a-row>
<a-col :span="8" v-for="(item, index) in tableData" :key="index" style="padding: 0px 0px 10px 5px;overflow:hidden;">
<a-row style="overflow:hidden;">
<a-col :span="8" v-for="(item, index) in tableData" :key="index" style="padding: 0px 0px 5px 5px;overflow:hidden;">
<div style="width: 100%; height: 20px; background-color: rgb(28, 132, 198);"></div>
<a-card style="height: 290px;border: 1px solid rgb(28, 132, 198);">
<div class="rotate" :style="classFun(item.zyStatus)">{{item.zyStatus_dictText}}</div>
@ -213,7 +213,6 @@ import dayjs from 'dayjs';
function handleZySuccess(zyid){
setTimeout(()=>{handleSuccess()}, 1500);
var url = "/zyInfo/zyInfo/editStudent";
defHttp.get({ url: url, params:{id:zyid} }).then((res) => {
});
@ -270,6 +269,7 @@ import dayjs from 'dayjs';
<style lang="less" scoped>
.jeecg-basic-table-form-container {
padding: 0;
width: 99%;
.table-page-search-submitButtons {
display: block;
margin-bottom: 24px;

View File

@ -1,5 +1,5 @@
<template>
<div style="margin-top:10px;background:#fff;">
<div style="margin-top:10px;background:#fff;height: calc(100vh - 225px);overflow-y: auto;overflow-x: hidden;">
<!--查询区域-->
<div class="jeecg-basic-table-form-container" >
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
@ -106,7 +106,7 @@
registerModal.value.disableSubmit = false;
registerModal.value.add();
}
/**
* 编辑事件
*/
@ -114,7 +114,7 @@
registerModal.value.disableSubmit = false;
registerModal.value.edit(record);
}
/**
* 详情
*/
@ -122,21 +122,21 @@
var url = "/site/dqkcTlqjh?id="+record.id;
window.open(url,"_blank")
}
/**
* 删除事件
*/
async function handleDelete(record) {
await deleteOne({ id: record.id }, handleSuccess);
}
/**
* 成功回调
*/
function handleSuccess() {
loadData(1);
}
/**
* 查询
@ -144,7 +144,7 @@
function searchQuery() {
loadData(1);
}
/**
* 重置
*/
@ -171,6 +171,8 @@
<style lang="less" scoped>
.jeecg-basic-table-form-container {
padding: 0;
width:99%;
.table-page-search-submitButtons {
display: block;
margin-bottom: 24px;

View File

@ -1,5 +1,5 @@
<template>
<div style="margin-top:10px;background:#fff;">
<div style="margin-top:10px;background:#fff;height: calc(100vh - 225px);overflow-y: auto;overflow-x: hidden;">
<!--查询区域-->
<div class="jeecg-basic-table-form-container" >
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
@ -115,7 +115,7 @@
registerModal.value.disableSubmit = false;
registerModal.value.add();
}
/**
* 编辑事件
*/
@ -123,7 +123,7 @@
registerModal.value.disableSubmit = false;
registerModal.value.edit(record);
}
/**
* 详情
*/
@ -131,21 +131,21 @@
var url = "/site/dqkcTlqjh?id="+record.id;
window.open(url,"_blank")
}
/**
* 删除事件
*/
async function handleDelete(record) {
await deleteOne({ id: record.id }, handleSuccess);
}
/**
* 成功回调
*/
function handleSuccess() {
loadData(1);
}
/**
* 查询
@ -153,7 +153,7 @@
function searchQuery() {
loadData(1);
}
/**
* 重置
*/
@ -180,6 +180,8 @@
<style lang="less" scoped>
.jeecg-basic-table-form-container {
padding: 0;
width:99%;
.table-page-search-submitButtons {
display: block;
margin-bottom: 24px;