学生端,作业、测试、问卷卡片页面分页调整
This commit is contained in:
parent
6593aa7e93
commit
db0b90370a
|
@ -210,8 +210,7 @@
|
||||||
function handleFabu(record: Recordable) {
|
function handleFabu(record: Recordable) {
|
||||||
defHttp.get({ url: '/wjxWjxx/wjxWjxx/fbwj', params: { id: record.id,wjlx: "6" } }).then(res => {
|
defHttp.get({ url: '/wjxWjxx/wjxWjxx/fbwj', params: { id: record.id,wjlx: "6" } }).then(res => {
|
||||||
total.value = 1;
|
total.value = 1;
|
||||||
pageNo.value = 0;
|
handlePageChange(1);
|
||||||
reload();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
@ -241,16 +240,15 @@
|
||||||
*/
|
*/
|
||||||
function handleSuccess() {
|
function handleSuccess() {
|
||||||
total.value = 1;
|
total.value = 1;
|
||||||
pageNo.value = 0;
|
handlePageChange(1);
|
||||||
reload();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询
|
* 查询
|
||||||
*/
|
*/
|
||||||
function searchQuery() {
|
function searchQuery() {
|
||||||
pageNo.value = 0;
|
total.value = 1;
|
||||||
reload();
|
handlePageChange(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -152,16 +152,15 @@
|
||||||
*/
|
*/
|
||||||
function handleSuccess() {
|
function handleSuccess() {
|
||||||
total.value = 1;
|
total.value = 1;
|
||||||
pageNo.value = 0;
|
handlePageChange(1);
|
||||||
reload();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询
|
* 查询
|
||||||
*/
|
*/
|
||||||
function searchQuery() {
|
function searchQuery() {
|
||||||
pageNo.value = 0;
|
total.value = 1;
|
||||||
reload();
|
handlePageChange(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -207,8 +207,7 @@
|
||||||
function handleFabu(record: Recordable) {
|
function handleFabu(record: Recordable) {
|
||||||
defHttp.get({ url: '/wjxWjxx/wjxWjxx/fbwj', params: { id: record.id,wjlx: "1" } }).then(res => {
|
defHttp.get({ url: '/wjxWjxx/wjxWjxx/fbwj', params: { id: record.id,wjlx: "1" } }).then(res => {
|
||||||
total.value = 1;
|
total.value = 1;
|
||||||
pageNo.value = 0;
|
handlePageChange(1);
|
||||||
reload();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
@ -238,16 +237,15 @@
|
||||||
*/
|
*/
|
||||||
function handleSuccess() {
|
function handleSuccess() {
|
||||||
total.value = 1;
|
total.value = 1;
|
||||||
pageNo.value = 0;
|
handlePageChange(1);
|
||||||
reload();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询
|
* 查询
|
||||||
*/
|
*/
|
||||||
function searchQuery() {
|
function searchQuery() {
|
||||||
pageNo.value = 0;
|
total.value = 1;
|
||||||
reload();
|
handlePageChange(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -152,16 +152,15 @@
|
||||||
*/
|
*/
|
||||||
function handleSuccess() {
|
function handleSuccess() {
|
||||||
total.value = 1;
|
total.value = 1;
|
||||||
pageNo.value = 0;
|
handlePageChange(1);
|
||||||
reload();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询
|
* 查询
|
||||||
*/
|
*/
|
||||||
function searchQuery() {
|
function searchQuery() {
|
||||||
pageNo.value = 0;
|
total.value = 1;
|
||||||
reload();
|
handlePageChange(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -88,7 +88,7 @@
|
||||||
import XxhbbksListModal from '/@/views/kc/xxhbbks/XxhbbksListModal.vue';
|
import XxhbbksListModal from '/@/views/kc/xxhbbks/XxhbbksListModal.vue';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//当前路由信息
|
//当前路由信息
|
||||||
const { currentRoute } = useRouter();
|
const { currentRoute } = useRouter();
|
||||||
const { query } = unref(currentRoute);
|
const { query } = unref(currentRoute);
|
||||||
|
@ -106,7 +106,7 @@
|
||||||
const pageNo = ref<number>(0);
|
const pageNo = ref<number>(0);
|
||||||
const pageSize = ref<number>(6);
|
const pageSize = ref<number>(6);
|
||||||
const tableData = ref<any>([]);
|
const tableData = ref<any>([]);
|
||||||
|
|
||||||
|
|
||||||
const labelCol = reactive({
|
const labelCol = reactive({
|
||||||
xs: { span: 24 },
|
xs: { span: 24 },
|
||||||
|
@ -117,7 +117,7 @@
|
||||||
sm: { span: 16 },
|
sm: { span: 16 },
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
function classFun(record){
|
function classFun(record){
|
||||||
if(record.score){
|
if(record.score){
|
||||||
return "background: #1f77f8";
|
return "background: #1f77f8";
|
||||||
|
@ -147,7 +147,7 @@
|
||||||
//上传作业附件
|
//上传作业附件
|
||||||
function handleShangchuan(record){
|
function handleShangchuan(record){
|
||||||
|
|
||||||
|
|
||||||
let timestamp = new Date().getTime();
|
let timestamp = new Date().getTime();
|
||||||
let startTimestamp = Date.parse(record.startTime);
|
let startTimestamp = Date.parse(record.startTime);
|
||||||
if(timestamp<startTimestamp){
|
if(timestamp<startTimestamp){
|
||||||
|
@ -171,30 +171,33 @@
|
||||||
XxhbbksListModalPage.value.disableSubmit = false;
|
XxhbbksListModalPage.value.disableSubmit = false;
|
||||||
XxhbbksListModalPage.value.init(record);
|
XxhbbksListModalPage.value.init(record);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 成功回调
|
* 成功回调
|
||||||
*/
|
*/
|
||||||
function handleSuccess() {
|
function handleSuccess() {
|
||||||
reload()
|
total.value = 1;
|
||||||
|
handlePageChange(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询
|
* 查询
|
||||||
*/
|
*/
|
||||||
function searchQuery() {
|
function searchQuery() {
|
||||||
reload();
|
total.value = 1;
|
||||||
|
handlePageChange(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 重置
|
* 重置
|
||||||
*/
|
*/
|
||||||
function searchReset() {
|
function searchReset() {
|
||||||
queryParam.value = {};
|
queryParam.value = {};
|
||||||
//刷新数据
|
//刷新数据
|
||||||
reload();
|
total.value = 1;
|
||||||
|
handlePageChange(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
function reload(){
|
function reload(){
|
||||||
|
@ -213,11 +216,11 @@
|
||||||
tableData.value = res.records;
|
tableData.value = res.records;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function handlePageChange(record){
|
function handlePageChange(record){
|
||||||
pageNo.value = record;
|
pageNo.value = record;
|
||||||
searchQuery();
|
reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
@ -258,7 +261,7 @@
|
||||||
.zyCon{
|
.zyCon{
|
||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
}
|
}
|
||||||
.rotate {
|
.rotate {
|
||||||
transform: rotate(45deg);
|
transform: rotate(45deg);
|
||||||
background: rgb(28, 132, 198);
|
background: rgb(28, 132, 198);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
|
|
@ -89,7 +89,7 @@
|
||||||
import XxhbbksListModal from '/@/views/kc/xxhbbks/XxhbbksListModal.vue';
|
import XxhbbksListModal from '/@/views/kc/xxhbbks/XxhbbksListModal.vue';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//当前路由信息
|
//当前路由信息
|
||||||
const { currentRoute } = useRouter();
|
const { currentRoute } = useRouter();
|
||||||
const { query } = unref(currentRoute);
|
const { query } = unref(currentRoute);
|
||||||
|
@ -107,7 +107,7 @@
|
||||||
const pageNo = ref<number>(0);
|
const pageNo = ref<number>(0);
|
||||||
const pageSize = ref<number>(6);
|
const pageSize = ref<number>(6);
|
||||||
const tableData = ref<any>([]);
|
const tableData = ref<any>([]);
|
||||||
|
|
||||||
|
|
||||||
const labelCol = reactive({
|
const labelCol = reactive({
|
||||||
xs: { span: 24 },
|
xs: { span: 24 },
|
||||||
|
@ -125,7 +125,7 @@
|
||||||
registerModal.value.disableSubmit = false;
|
registerModal.value.disableSubmit = false;
|
||||||
registerModal.value.add();
|
registerModal.value.add();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 编辑事件
|
* 编辑事件
|
||||||
*/
|
*/
|
||||||
|
@ -133,7 +133,7 @@
|
||||||
registerModal.value.disableSubmit = false;
|
registerModal.value.disableSubmit = false;
|
||||||
registerModal.value.edit(record);
|
registerModal.value.edit(record);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 详情
|
* 详情
|
||||||
*/
|
*/
|
||||||
|
@ -141,7 +141,7 @@
|
||||||
registerModal.value.disableSubmit = true;
|
registerModal.value.disableSubmit = true;
|
||||||
registerModal.value.edit(record);
|
registerModal.value.edit(record);
|
||||||
}
|
}
|
||||||
|
|
||||||
//获取选课人数
|
//获取选课人数
|
||||||
function openXkrs(record){
|
function openXkrs(record){
|
||||||
console.log(`🚀 ~ openXkrs ~ record:`, record)
|
console.log(`🚀 ~ openXkrs ~ record:`, record)
|
||||||
|
@ -152,7 +152,7 @@
|
||||||
function handleZyxx(record){
|
function handleZyxx(record){
|
||||||
ZyInfoStudentListModalPage.value.disableSubmit = true;
|
ZyInfoStudentListModalPage.value.disableSubmit = true;
|
||||||
ZyInfoStudentListModalPage.value.init(record);
|
ZyInfoStudentListModalPage.value.init(record);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleShangchuan(record){
|
function handleShangchuan(record){
|
||||||
|
@ -160,7 +160,7 @@
|
||||||
var param = {mainId:record.id,zyfj:record.filePath}
|
var param = {mainId:record.id,zyfj:record.filePath}
|
||||||
ZyInfoStudentModalPage.value.edit(param);
|
ZyInfoStudentModalPage.value.edit(param);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除事件
|
* 删除事件
|
||||||
*/
|
*/
|
||||||
|
@ -184,30 +184,33 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 成功回调
|
* 成功回调
|
||||||
*/
|
*/
|
||||||
function handleSuccess() {
|
function handleSuccess() {
|
||||||
reload()
|
total.value = 1;
|
||||||
|
handlePageChange(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询
|
* 查询
|
||||||
*/
|
*/
|
||||||
function searchQuery() {
|
function searchQuery() {
|
||||||
reload();
|
total.value = 1;
|
||||||
|
handlePageChange(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 重置
|
* 重置
|
||||||
*/
|
*/
|
||||||
function searchReset() {
|
function searchReset() {
|
||||||
queryParam.value = {};
|
queryParam.value = {};
|
||||||
//刷新数据
|
//刷新数据
|
||||||
reload();
|
total.value = 1;
|
||||||
|
handlePageChange(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
function reload(){
|
function reload(){
|
||||||
|
@ -226,11 +229,11 @@
|
||||||
tableData.value = res.records;
|
tableData.value = res.records;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function handlePageChange(record){
|
function handlePageChange(record){
|
||||||
pageNo.value = record;
|
pageNo.value = record;
|
||||||
searchQuery();
|
reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
@ -271,7 +274,7 @@
|
||||||
.zyCon{
|
.zyCon{
|
||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
}
|
}
|
||||||
.rotate {
|
.rotate {
|
||||||
transform: rotate(45deg);
|
transform: rotate(45deg);
|
||||||
background: rgb(28, 132, 198);
|
background: rgb(28, 132, 198);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
|
Loading…
Reference in New Issue