更新功能
This commit is contained in:
parent
fa77f0c470
commit
7f2aa6df5c
|
@ -78,6 +78,24 @@ const site: AppRouteModule = {
|
||||||
title: '公开课',
|
title: '公开课',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: 'teacherYiyueMore',
|
||||||
|
name: 'teacherYiyueMore',
|
||||||
|
component: () => import('/@/views/site/studentWdkc/teacherYiyueMore.vue'),
|
||||||
|
meta: {
|
||||||
|
// affix: true,
|
||||||
|
title: '教师已读',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'studentYiyueMore',
|
||||||
|
name: 'studentYiyueMore',
|
||||||
|
component: () => import('/@/views/site/studentWdkc/studentYiyueMore.vue'),
|
||||||
|
meta: {
|
||||||
|
// affix: true,
|
||||||
|
title: '学生已读',
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: 'ktsbMore',
|
path: 'ktsbMore',
|
||||||
name: 'ktsbMore',
|
name: 'ktsbMore',
|
||||||
|
|
|
@ -147,11 +147,6 @@
|
||||||
* 操作栏
|
* 操作栏
|
||||||
*/
|
*/
|
||||||
function getTableAction(record) {
|
function getTableAction(record) {
|
||||||
|
|
||||||
|
|
||||||
// <a-button type="primary" @click="handleDj(item)" style="margin-left:5px;padding: 0px 8px;background:rgb(28, 132, 198);" v-if="item.flag=='-1'">开始测验</a-button>
|
|
||||||
// <a-button type="primary" style="margin-left:5px;padding: 0px 8px;background:rgb(28, 132, 198);color:#ffffff" v-if="item.flag=='0'" disabled>正在批卷</a-button>
|
|
||||||
// <a-button type="primary" @click="handleDjjg(item)" style="margin-left:5px;padding: 0px 8px;background:rgb(28, 132, 198);" v-if="item.flag=='1'">查看结果</a-button>
|
|
||||||
if(record.flag == '-1'){
|
if(record.flag == '-1'){
|
||||||
var list = [
|
var list = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,12 +3,58 @@
|
||||||
<div style="margin-top: 20px;">
|
<div style="margin-top: 20px;">
|
||||||
<span style="margin-left: 30px;font-size: 24px;font-weight: 600;">工作台</span>
|
<span style="margin-left: 30px;font-size: 24px;font-weight: 600;">工作台</span>
|
||||||
</div>
|
</div>
|
||||||
<div style="min-height:70px;">
|
|
||||||
|
<a-tabs v-model:activeKey="activeKey" style="padding: 10px;">
|
||||||
|
<a-tab-pane key="1" tab="未读">
|
||||||
|
<div style="min-height:70px;">
|
||||||
|
<a-row>
|
||||||
|
<a-col :span="24" style="padding: 0 10px;margin-bottom: 10px;" v-for="(item,index2) in dataSource" :key="index2">
|
||||||
|
<a-row style="margin-top: 15px;">
|
||||||
|
<a-col :span="22" style="text-align:left;padding-left:15px;">
|
||||||
|
<div style="margin-top: 5px;">{{index2+1}}、{{item.content}}</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="2" style="text-align:right">
|
||||||
|
<a-button type="primary" @click="openKecheng(item)" style="margin-left:10px;">查看</a-button>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="24" v-show="dataSource.length == 0" style="text-align: center;">
|
||||||
|
<span style="line-height:60px;">暂无提醒</span>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</div>
|
||||||
|
</a-tab-pane>
|
||||||
|
<a-tab-pane key="2" tab="已读" force-render>
|
||||||
|
<div style="width: 100%; text-align: right; ">
|
||||||
|
<RouterLink target='_blank' to="/site/studentYiyueMore">查看更多</RouterLink>
|
||||||
|
</div>
|
||||||
|
<div style="min-height:70px;">
|
||||||
|
<a-row>
|
||||||
|
<a-col :span="24" style="padding: 0 10px;margin-bottom: 10px;" v-for="(item,index2) in dataYySource" :key="index2">
|
||||||
|
<a-row style="margin-top: 15px;">
|
||||||
|
<a-col :span="22" style="text-align:left;padding-left:15px;">
|
||||||
|
<div style="margin-top: 5px;">{{index2+1}}、{{item.content}}</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="2" style="text-align:right">
|
||||||
|
<a-button type="primary" @click="openKecheng(item)" style="margin-left:10px;">已读</a-button>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="24" v-show="dataYySource.length == 0" style="text-align: center;">
|
||||||
|
<span style="line-height:60px;">暂无提醒</span>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</a-tab-pane>
|
||||||
|
</a-tabs>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- <div style="min-height:70px;">
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="24" style="padding: 0 10px;margin-bottom: 10px;" v-for="(item,index2) in dataSource" :key="index2">
|
<a-col :span="24" style="padding: 0 10px;margin-bottom: 10px;" v-for="(item,index2) in dataSource" :key="index2">
|
||||||
<a-row style="margin-top: 15px;">
|
<a-row style="margin-top: 15px;">
|
||||||
<a-col :span="18" style="text-align:left;padding-left:15px;">
|
<a-col :span="18" style="text-align:left;padding-left:15px;">
|
||||||
<!-- {{item.content}} -->
|
|
||||||
<div>{{index2+1}}、{{item.content}}</div>
|
<div>{{index2+1}}、{{item.content}}</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="6" style="text-align:right">
|
<a-col :span="6" style="text-align:right">
|
||||||
|
@ -18,11 +64,10 @@
|
||||||
</a-row>
|
</a-row>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="24" v-show="dataSource.length == 0" style="text-align: center;">
|
<a-col :span="24" v-show="dataSource.length == 0" style="text-align: center;">
|
||||||
<!-- <a-empty/> -->
|
|
||||||
<span>暂无通知</span>
|
<span>暂无通知</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</div>
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -34,6 +79,8 @@ import { getSysConfig } from '/@/views/site/utils/index';
|
||||||
import { useUserStore } from '/@/store/modules/user';
|
import { useUserStore } from '/@/store/modules/user';
|
||||||
const userStore = useUserStore();
|
const userStore = useUserStore();
|
||||||
const dataSource = ref([]);
|
const dataSource = ref([]);
|
||||||
|
const dataYySource = ref([]);
|
||||||
|
const activeKey = ref('1');
|
||||||
//进入就加载
|
//进入就加载
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
loaddata()
|
loaddata()
|
||||||
|
@ -42,9 +89,17 @@ onMounted(() => {
|
||||||
}, 60*1000);
|
}, 60*1000);
|
||||||
});
|
});
|
||||||
function loaddata(){
|
function loaddata(){
|
||||||
defHttp.get({ url: '/zyDbtx/zyDbtx/list',params:{pageSize:10,pageNo:1,createBy:userStore.getUserInfo.username} }).then((res) => {
|
// defHttp.get({ url: '/zyDbtx/zyDbtx/list',params:{pageSize:10,pageNo:1,createBy:userStore.getUserInfo.username} }).then((res) => {
|
||||||
|
// dataSource.value = res.records;
|
||||||
|
// });
|
||||||
|
|
||||||
|
defHttp.get({ url: '/zyDbtx/zyDbtx/list',params:{pageSize:10,pageNo:1,createBy:userStore.getUserInfo.username,flag:'0'} }).then((res) => {
|
||||||
dataSource.value = res.records;
|
dataSource.value = res.records;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
defHttp.get({ url: '/zyDbtx/zyDbtx/list',params:{pageSize:10,pageNo:1,createBy:userStore.getUserInfo.username,flag:'1'} }).then((res) => {
|
||||||
|
dataYySource.value = res.records;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function openKecheng(record){
|
function openKecheng(record){
|
||||||
|
|
|
@ -0,0 +1,216 @@
|
||||||
|
<template>
|
||||||
|
<div id="siteMain">
|
||||||
|
<div id="maxSite">
|
||||||
|
<a-layout>
|
||||||
|
<!-- 页头 -->
|
||||||
|
<headerPage />
|
||||||
|
<!-- 主体部分 -->
|
||||||
|
<a-layout-content>
|
||||||
|
<a-card class="rowGutter" id="jcgkkDom">
|
||||||
|
<template #title>
|
||||||
|
<div style="font-size: 24px; font-weight: bold">教师已阅信息</div>
|
||||||
|
</template>
|
||||||
|
<a-row :gutter="[16, 16]" style="margin-top: 20px">
|
||||||
|
<a-col v-for="(item, index) in listData" :key="index" :span="24">
|
||||||
|
<a-row style="margin-top: 15px">
|
||||||
|
<a-col :span="22" style="text-align: left; padding-left: 15px">
|
||||||
|
<div style="margin-top: 5px">{{ index + 1 }}、{{ item.content }}</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="2" style="text-align: right">
|
||||||
|
<a-button type="primary" @click="openKecheng(item)" style="margin-left: 10px">已读</a-button>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</a-col>
|
||||||
|
<a-col v-if="listData.length > 0">
|
||||||
|
<a-pagination v-model:current="pageNo" size="small" :total="current" show-quick-jumper @change="onPageChange" />
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="24" style="line-height: 50px" v-if="listData.length == 0">
|
||||||
|
<div style="text-align: center"> 暂无数据 </div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</a-card>
|
||||||
|
</a-layout-content>
|
||||||
|
<!-- 页尾 -->
|
||||||
|
<footerPage />
|
||||||
|
</a-layout>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script setup lang="ts">
|
||||||
|
import { ref, onMounted } from 'vue';
|
||||||
|
import { defHttp } from '/@/utils/http/axios';
|
||||||
|
import { dateFormat } from '/@/utils/common/compUtils';
|
||||||
|
import { Image as AImage } from 'ant-design-vue';
|
||||||
|
import { getFileAccessHttpUrl } from '/@/utils/common/compUtils';
|
||||||
|
import { useMessage } from '/@/hooks/web/useMessage';
|
||||||
|
import { useUserStore } from '/@/store/modules/user';
|
||||||
|
import headerPage from '/@/views/site/common/header.vue';
|
||||||
|
import footerPage from '/@/views/site/common/footer.vue';
|
||||||
|
import { JDictSelectTag, JInput } from '/@/components/Form';
|
||||||
|
|
||||||
|
import { getSysConfig } from '/@/views/site/utils/index';
|
||||||
|
|
||||||
|
import { Pagination } from 'ant-design-vue';
|
||||||
|
const APagination = Pagination;
|
||||||
|
const userStore = useUserStore();
|
||||||
|
let listData = ref<any>([]);
|
||||||
|
const list = (params) => defHttp.get({ url: '/zyDbtx/zyDbtx/list', params });
|
||||||
|
|
||||||
|
const { createMessage } = useMessage();
|
||||||
|
const queryParam = ref<any>({});
|
||||||
|
const pageNo = ref(1);
|
||||||
|
let current = 0;
|
||||||
|
|
||||||
|
async function onPageChange() {
|
||||||
|
console.log('onPageChange', pageNo.value);
|
||||||
|
await loadData();
|
||||||
|
}
|
||||||
|
function openKecheng(record) {
|
||||||
|
var url = '/zy/zuoyeMain';
|
||||||
|
if (record.type == '5') {
|
||||||
|
//当前作业
|
||||||
|
url = '/zy/dqkcDqzy';
|
||||||
|
} else if (record.type == '6') {
|
||||||
|
//测验消息
|
||||||
|
url = '/zy/ceshiWenjuan';
|
||||||
|
} else if (record.type == '7') {
|
||||||
|
//问卷消息
|
||||||
|
url = '/zy/dcwjWenjuan';
|
||||||
|
}
|
||||||
|
url = url + '?rwbh=' + record.rwbh + '&xqxn=' + getSysConfig().flag1 + '&teano=' + record.fbr;
|
||||||
|
window.open(url, '_blank');
|
||||||
|
}
|
||||||
|
//进入就加载
|
||||||
|
onMounted(() => {
|
||||||
|
loadData();
|
||||||
|
});
|
||||||
|
/**
|
||||||
|
* 加载数据
|
||||||
|
*/
|
||||||
|
function loadData() {
|
||||||
|
queryParam.value.pageSize = 10;
|
||||||
|
queryParam.value.pageNo = pageNo;
|
||||||
|
queryParam.value.createBy = userStore.getUserInfo.username;
|
||||||
|
queryParam.value.flag = '1'
|
||||||
|
listData.value = [];
|
||||||
|
list(queryParam.value).then((res) => {
|
||||||
|
console.log('🤞', res);
|
||||||
|
var list = res.records;
|
||||||
|
listData.value = list;
|
||||||
|
current = res.total;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style lang="less" scoped>
|
||||||
|
.ggkTimeClass {
|
||||||
|
display: inline-block;
|
||||||
|
width: 90%;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
margin-left: 12px;
|
||||||
|
padding: 0 15px;
|
||||||
|
height: 40px;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 500;
|
||||||
|
line-height: 39px;
|
||||||
|
border-radius: 36px;
|
||||||
|
background-color: #f3f3f3;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.ggkTitle {
|
||||||
|
line-height: 2rem;
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
.ggkTwoTitle {
|
||||||
|
color: black;
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 25px;
|
||||||
|
}
|
||||||
|
.ggkThreeTitle {
|
||||||
|
font-size: 16px;
|
||||||
|
color: #337ab7;
|
||||||
|
font-weight: 700;
|
||||||
|
line-height: 50px;
|
||||||
|
}
|
||||||
|
.ggkFourTitle {
|
||||||
|
line-height: 40px;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
.ggkButton {
|
||||||
|
width: 100%;
|
||||||
|
height: 40px;
|
||||||
|
background: #1c84c6;
|
||||||
|
color: #fff;
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 18px;
|
||||||
|
border-radius: 5px;
|
||||||
|
line-height: 37px;
|
||||||
|
}
|
||||||
|
.ggkCcxs {
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
.redImgClass {
|
||||||
|
background: linear-gradient(45deg, #b23d59, #d3718a);
|
||||||
|
}
|
||||||
|
.blueImgClass {
|
||||||
|
background: linear-gradient(45deg, #53637a, #8590a6);
|
||||||
|
}
|
||||||
|
.greenImgClass {
|
||||||
|
background: linear-gradient(45deg, #7999fc, #79bdfc);
|
||||||
|
}
|
||||||
|
|
||||||
|
#siteMain {
|
||||||
|
// font-size: ;
|
||||||
|
// height: 100%;
|
||||||
|
background: #f3f3f4;
|
||||||
|
#maxSite {
|
||||||
|
//最大宽度
|
||||||
|
max-width: 1170px;
|
||||||
|
//居中
|
||||||
|
margin: 0 auto;
|
||||||
|
.rowGutter {
|
||||||
|
margin-top: 1rem;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-layout-header {
|
||||||
|
color: #fff;
|
||||||
|
background: #1ab394;
|
||||||
|
}
|
||||||
|
.ant-layout-footer {
|
||||||
|
line-height: 1.5;
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
.ant-layout-sider {
|
||||||
|
color: #fff;
|
||||||
|
line-height: 120px;
|
||||||
|
background: #3ba0e9;
|
||||||
|
}
|
||||||
|
.ant-layout-content {
|
||||||
|
min-height: 120px;
|
||||||
|
color: #000;
|
||||||
|
line-height: 120px;
|
||||||
|
background: #f3f3f4;
|
||||||
|
}
|
||||||
|
.dictBox :deep(.ant-select) {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/**暗黑模式特殊配色*/
|
||||||
|
[data-theme='dark'] #siteMain #maxSite {
|
||||||
|
.ant-layout-header,
|
||||||
|
.ant-layout-footer {
|
||||||
|
background: #6aa0c7;
|
||||||
|
}
|
||||||
|
.ant-layout-content {
|
||||||
|
background: #107bcb;
|
||||||
|
}
|
||||||
|
.ant-layout-sider {
|
||||||
|
background: #3499ec;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -1,79 +1,123 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="indexBackClass" id="stuwdkcDom">
|
<div class="indexBackClass" id="stuwdkcDom">
|
||||||
<div style="margin-top: 20px;">
|
<div style="margin-top: 20px">
|
||||||
<span style="margin-left: 30px;font-size: 24px;font-weight: 600;">提醒信息</span>
|
<span style="margin-left: 30px; font-size: 24px; font-weight: 600">提醒信息</span>
|
||||||
</div>
|
</div>
|
||||||
<div style="min-height:70px;">
|
<a-tabs v-model:activeKey="activeKey" style="padding: 10px">
|
||||||
<a-row>
|
<a-tab-pane key="1" tab="未读">
|
||||||
<a-col :span="24" style="padding: 0 10px;margin-bottom: 10px;" v-for="(item,index2) in dataSource" :key="index2">
|
<div style="min-height: 70px">
|
||||||
<a-row style="margin-top: 15px;">
|
<a-row>
|
||||||
<a-col :span="18" style="text-align:left;padding-left:15px;">
|
<a-col :span="24" style="padding: 0 10px; margin-bottom: 10px" v-for="(item, index2) in dataSource" :key="index2">
|
||||||
<div>{{index2+1}}、{{item.content}}</div>
|
<a-row style="margin-top: 15px">
|
||||||
|
<a-col :span="22" style="text-align: left; padding-left: 15px">
|
||||||
|
<div style="margin-top: 5px">{{ index2 + 1 }}、{{ item.content }}</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="2" style="text-align: right">
|
||||||
|
<a-button type="primary" @click="openKecheng(item)" style="margin-left: 10px">查看</a-button>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="6" style="text-align:right">
|
<a-col :span="24" v-show="dataSource.length == 0" style="text-align: center">
|
||||||
<span>提醒时间:{{item.createTime}}</span>
|
<span style="line-height: 60px">暂无提醒</span>
|
||||||
<a-button type="primary" @click="openKecheng(item)" style="margin-left:10px;">查看</a-button>
|
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</a-col>
|
</div>
|
||||||
<a-col :span="24" v-show="dataSource.length == 0" style="text-align: center;">
|
</a-tab-pane>
|
||||||
<span style="line-height:60px;">暂无提醒</span>
|
<a-tab-pane key="2" tab="已读" force-render>
|
||||||
</a-col>
|
<div style="width: 100%; text-align: right; ">
|
||||||
</a-row>
|
<RouterLink target='_blank' to="/site/teacherYiyueMore">查看更多</RouterLink>
|
||||||
</div>
|
</div>
|
||||||
|
<div style="min-height: 70px">
|
||||||
|
<a-row>
|
||||||
|
<a-col :span="24" style="padding: 0 10px; margin-bottom: 10px" v-for="(item, index2) in dataYySource" :key="index2">
|
||||||
|
<a-row style="margin-top: 15px">
|
||||||
|
<a-col :span="22" style="text-align: left; padding-left: 15px">
|
||||||
|
<div style="margin-top: 5px">{{ index2 + 1 }}、{{ item.content }}</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="2" style="text-align: right">
|
||||||
|
<a-button type="primary" @click="openKecheng(item)" style="margin-left: 10px">已读</a-button>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="24" v-show="dataYySource.length == 0" style="text-align: center">
|
||||||
|
<span style="line-height: 60px">暂无提醒</span>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</div>
|
||||||
|
</a-tab-pane>
|
||||||
|
</a-tabs>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { defHttp } from '/@/utils/http/axios';
|
import { defHttp } from '/@/utils/http/axios';
|
||||||
import { ref, onMounted } from 'vue';
|
import { ref, onMounted } from 'vue';
|
||||||
import { getSysConfig } from '/@/views/site/utils/index';
|
import { getSysConfig } from '/@/views/site/utils/index';
|
||||||
//用户相关
|
//用户相关
|
||||||
import { useUserStore } from '/@/store/modules/user';
|
import { useUserStore } from '/@/store/modules/user';
|
||||||
const userStore = useUserStore();
|
const userStore = useUserStore();
|
||||||
const dataSource = ref([]);
|
const dataSource = ref([]);
|
||||||
//进入就加载
|
const dataYySource = ref([]);
|
||||||
|
const activeKey = ref('1');
|
||||||
|
//进入就加载
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
loaddata()
|
loaddata();
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
loaddata()
|
loaddata();
|
||||||
}, 60*1000);
|
}, 60 * 1000);
|
||||||
});
|
});
|
||||||
function loaddata(){
|
function loaddata() {
|
||||||
defHttp.get({ url: '/zyDbtx/zyDbtx/list',params:{pageSize:10,pageNo:1,createBy:userStore.getUserInfo.username} }).then((res) => {
|
defHttp
|
||||||
dataSource.value = res.records;
|
.get({ url: '/zyDbtx/zyDbtx/list', params: { pageSize: 10, pageNo: 1, createBy: userStore.getUserInfo.username, flag: '0' } })
|
||||||
});
|
.then((res) => {
|
||||||
|
dataSource.value = res.records;
|
||||||
|
});
|
||||||
|
|
||||||
|
defHttp
|
||||||
|
.get({ url: '/zyDbtx/zyDbtx/list', params: { pageSize: 10, pageNo: 1, createBy: userStore.getUserInfo.username, flag: '1' } })
|
||||||
|
.then((res) => {
|
||||||
|
dataYySource.value = res.records;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function openKecheng(record){
|
function handleMore() {
|
||||||
console.log(`🚀 ~ openKecheng ~ record:`, record)
|
console.log('111111111111');
|
||||||
|
|
||||||
defHttp.post({ url: '/zyDbtx/zyDbtx/deleteById',params:{id:record.id} }).then((res) => {
|
|
||||||
loaddata()
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function openKecheng(record) {
|
||||||
|
console.log(`🚀 ~ openKecheng ~ record:`, record);
|
||||||
|
|
||||||
|
defHttp.post({ url: '/zyDbtx/zyDbtx/deleteById', params: { id: record.id } }).then((res) => {
|
||||||
|
loaddata();
|
||||||
});
|
});
|
||||||
var url = "/zy/zuoyeMain";
|
var url = '/zy/zuoyeMain';
|
||||||
if(record.type=='5'){//当前作业
|
if (record.type == '5') {
|
||||||
url = "/zy/dqkcDqzy";
|
//当前作业
|
||||||
}else if(record.type=='6'){//测验消息
|
url = '/zy/dqkcDqzy';
|
||||||
url = "/zy/ceshiWenjuan";
|
} else if (record.type == '6') {
|
||||||
}else if(record.type=='7'){//问卷消息
|
//测验消息
|
||||||
url = "/zy/dcwjWenjuan";
|
url = '/zy/ceshiWenjuan';
|
||||||
|
} else if (record.type == '7') {
|
||||||
|
//问卷消息
|
||||||
|
url = '/zy/dcwjWenjuan';
|
||||||
}
|
}
|
||||||
url = url +"?rwbh="+record.rwbh+"&xqxn="+getSysConfig().flag1+"&teano="+record.fbr;
|
url = url + '?rwbh=' + record.rwbh + '&xqxn=' + getSysConfig().flag1 + '&teano=' + record.fbr;
|
||||||
window.open(url,'_blank')
|
window.open(url, '_blank');
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.indexBackClass{
|
.indexBackClass {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
margin: 20px 0;
|
margin: 20px 0;
|
||||||
padding-bottom: 20px;
|
padding-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.jtkcTitleClass{
|
.jtkcTitleClass {
|
||||||
background-image: linear-gradient(to right ,#1c84c6, #67b4e5);
|
background-image: linear-gradient(to right, #1c84c6, #67b4e5);
|
||||||
color: white;
|
color: white;
|
||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
padding: 3px 0 0 10px;
|
padding: 3px 0 0 10px;
|
||||||
|
|
|
@ -0,0 +1,216 @@
|
||||||
|
<template>
|
||||||
|
<div id="siteMain">
|
||||||
|
<div id="maxSite">
|
||||||
|
<a-layout>
|
||||||
|
<!-- 页头 -->
|
||||||
|
<headerPage />
|
||||||
|
<!-- 主体部分 -->
|
||||||
|
<a-layout-content>
|
||||||
|
<a-card class="rowGutter" id="jcgkkDom">
|
||||||
|
<template #title>
|
||||||
|
<div style="font-size: 24px; font-weight: bold">教师已阅信息</div>
|
||||||
|
</template>
|
||||||
|
<a-row :gutter="[16, 16]" style="margin-top: 20px">
|
||||||
|
<a-col v-for="(item, index) in listData" :key="index" :span="24">
|
||||||
|
<a-row style="margin-top: 15px">
|
||||||
|
<a-col :span="22" style="text-align: left; padding-left: 15px">
|
||||||
|
<div style="margin-top: 5px">{{ index + 1 }}、{{ item.content }}</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="2" style="text-align: right">
|
||||||
|
<a-button type="primary" @click="openKecheng(item)" style="margin-left: 10px">已读</a-button>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</a-col>
|
||||||
|
<a-col v-if="listData.length > 0">
|
||||||
|
<a-pagination v-model:current="pageNo" size="small" :total="current" show-quick-jumper @change="onPageChange" />
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="24" style="line-height: 50px" v-if="listData.length == 0">
|
||||||
|
<div style="text-align: center"> 暂无数据 </div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</a-card>
|
||||||
|
</a-layout-content>
|
||||||
|
<!-- 页尾 -->
|
||||||
|
<footerPage />
|
||||||
|
</a-layout>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script setup lang="ts">
|
||||||
|
import { ref, onMounted } from 'vue';
|
||||||
|
import { defHttp } from '/@/utils/http/axios';
|
||||||
|
import { dateFormat } from '/@/utils/common/compUtils';
|
||||||
|
import { Image as AImage } from 'ant-design-vue';
|
||||||
|
import { getFileAccessHttpUrl } from '/@/utils/common/compUtils';
|
||||||
|
import { useMessage } from '/@/hooks/web/useMessage';
|
||||||
|
import { useUserStore } from '/@/store/modules/user';
|
||||||
|
import headerPage from '/@/views/site/common/header.vue';
|
||||||
|
import footerPage from '/@/views/site/common/footer.vue';
|
||||||
|
import { JDictSelectTag, JInput } from '/@/components/Form';
|
||||||
|
|
||||||
|
import { getSysConfig } from '/@/views/site/utils/index';
|
||||||
|
|
||||||
|
import { Pagination } from 'ant-design-vue';
|
||||||
|
const APagination = Pagination;
|
||||||
|
const userStore = useUserStore();
|
||||||
|
let listData = ref<any>([]);
|
||||||
|
const list = (params) => defHttp.get({ url: '/zyDbtx/zyDbtx/list', params });
|
||||||
|
|
||||||
|
const { createMessage } = useMessage();
|
||||||
|
const queryParam = ref<any>({});
|
||||||
|
const pageNo = ref(1);
|
||||||
|
let current = 0;
|
||||||
|
|
||||||
|
async function onPageChange() {
|
||||||
|
console.log('onPageChange', pageNo.value);
|
||||||
|
await loadData();
|
||||||
|
}
|
||||||
|
function openKecheng(record) {
|
||||||
|
var url = '/zy/zuoyeMain';
|
||||||
|
if (record.type == '5') {
|
||||||
|
//当前作业
|
||||||
|
url = '/zy/dqkcDqzy';
|
||||||
|
} else if (record.type == '6') {
|
||||||
|
//测验消息
|
||||||
|
url = '/zy/ceshiWenjuan';
|
||||||
|
} else if (record.type == '7') {
|
||||||
|
//问卷消息
|
||||||
|
url = '/zy/dcwjWenjuan';
|
||||||
|
}
|
||||||
|
url = url + '?rwbh=' + record.rwbh + '&xqxn=' + getSysConfig().flag1 + '&teano=' + record.fbr;
|
||||||
|
window.open(url, '_blank');
|
||||||
|
}
|
||||||
|
//进入就加载
|
||||||
|
onMounted(() => {
|
||||||
|
loadData();
|
||||||
|
});
|
||||||
|
/**
|
||||||
|
* 加载数据
|
||||||
|
*/
|
||||||
|
function loadData() {
|
||||||
|
queryParam.value.pageSize = 10;
|
||||||
|
queryParam.value.pageNo = pageNo;
|
||||||
|
queryParam.value.createBy = userStore.getUserInfo.username;
|
||||||
|
queryParam.value.flag = '1'
|
||||||
|
listData.value = [];
|
||||||
|
list(queryParam.value).then((res) => {
|
||||||
|
console.log('🤞', res);
|
||||||
|
var list = res.records;
|
||||||
|
listData.value = list;
|
||||||
|
current = res.total;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style lang="less" scoped>
|
||||||
|
.ggkTimeClass {
|
||||||
|
display: inline-block;
|
||||||
|
width: 90%;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
margin-left: 12px;
|
||||||
|
padding: 0 15px;
|
||||||
|
height: 40px;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 500;
|
||||||
|
line-height: 39px;
|
||||||
|
border-radius: 36px;
|
||||||
|
background-color: #f3f3f3;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.ggkTitle {
|
||||||
|
line-height: 2rem;
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
.ggkTwoTitle {
|
||||||
|
color: black;
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 25px;
|
||||||
|
}
|
||||||
|
.ggkThreeTitle {
|
||||||
|
font-size: 16px;
|
||||||
|
color: #337ab7;
|
||||||
|
font-weight: 700;
|
||||||
|
line-height: 50px;
|
||||||
|
}
|
||||||
|
.ggkFourTitle {
|
||||||
|
line-height: 40px;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
.ggkButton {
|
||||||
|
width: 100%;
|
||||||
|
height: 40px;
|
||||||
|
background: #1c84c6;
|
||||||
|
color: #fff;
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 18px;
|
||||||
|
border-radius: 5px;
|
||||||
|
line-height: 37px;
|
||||||
|
}
|
||||||
|
.ggkCcxs {
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
.redImgClass {
|
||||||
|
background: linear-gradient(45deg, #b23d59, #d3718a);
|
||||||
|
}
|
||||||
|
.blueImgClass {
|
||||||
|
background: linear-gradient(45deg, #53637a, #8590a6);
|
||||||
|
}
|
||||||
|
.greenImgClass {
|
||||||
|
background: linear-gradient(45deg, #7999fc, #79bdfc);
|
||||||
|
}
|
||||||
|
|
||||||
|
#siteMain {
|
||||||
|
// font-size: ;
|
||||||
|
// height: 100%;
|
||||||
|
background: #f3f3f4;
|
||||||
|
#maxSite {
|
||||||
|
//最大宽度
|
||||||
|
max-width: 1170px;
|
||||||
|
//居中
|
||||||
|
margin: 0 auto;
|
||||||
|
.rowGutter {
|
||||||
|
margin-top: 1rem;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-layout-header {
|
||||||
|
color: #fff;
|
||||||
|
background: #1ab394;
|
||||||
|
}
|
||||||
|
.ant-layout-footer {
|
||||||
|
line-height: 1.5;
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
.ant-layout-sider {
|
||||||
|
color: #fff;
|
||||||
|
line-height: 120px;
|
||||||
|
background: #3ba0e9;
|
||||||
|
}
|
||||||
|
.ant-layout-content {
|
||||||
|
min-height: 120px;
|
||||||
|
color: #000;
|
||||||
|
line-height: 120px;
|
||||||
|
background: #f3f3f4;
|
||||||
|
}
|
||||||
|
.dictBox :deep(.ant-select) {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/**暗黑模式特殊配色*/
|
||||||
|
[data-theme='dark'] #siteMain #maxSite {
|
||||||
|
.ant-layout-header,
|
||||||
|
.ant-layout-footer {
|
||||||
|
background: #6aa0c7;
|
||||||
|
}
|
||||||
|
.ant-layout-content {
|
||||||
|
background: #107bcb;
|
||||||
|
}
|
||||||
|
.ant-layout-sider {
|
||||||
|
background: #3499ec;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -641,10 +641,10 @@ function getTableAction(record) {
|
||||||
label: '撤回发布',
|
label: '撤回发布',
|
||||||
onClick: handleNoScoreFabu.bind(null, record),
|
onClick: handleNoScoreFabu.bind(null, record),
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
label: '标记作业',
|
// label: '标记作业',
|
||||||
onClick: handleSzyb.bind(null, record),
|
// onClick: handleSzyb.bind(null, record),
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
label: '下载',
|
label: '下载',
|
||||||
onClick: handleDown.bind(null, record.filePath),
|
onClick: handleDown.bind(null, record.filePath),
|
||||||
|
|
|
@ -150,12 +150,12 @@ export const newcolumns: BasicColumn[] = [
|
||||||
// sorter: true,
|
// sorter: true,
|
||||||
// },
|
// },
|
||||||
|
|
||||||
{
|
// {
|
||||||
title: '标记作业',
|
// title: '标记作业',
|
||||||
align: "center",
|
// align: "center",
|
||||||
dataIndex: 'cdlx_dictText',
|
// dataIndex: 'cdlx_dictText',
|
||||||
sorter: true,
|
// sorter: true,
|
||||||
},
|
// },
|
||||||
];
|
];
|
||||||
|
|
||||||
//列表数据
|
//列表数据
|
||||||
|
|
Loading…
Reference in New Issue