修改历史课程功能
This commit is contained in:
parent
cc8e9c4fc0
commit
09530e076b
|
@ -20,7 +20,7 @@ VITE_GLOB_API_URL=/jeecg-boot
|
||||||
|
|
||||||
#后台接口全路径地址(必填)
|
#后台接口全路径地址(必填)
|
||||||
#VITE_GLOB_DOMAIN_URL=https://zxkccx.webvpn.nenu.edu.cn/jeecg-boot
|
#VITE_GLOB_DOMAIN_URL=https://zxkccx.webvpn.nenu.edu.cn/jeecg-boot
|
||||||
VITE_GLOB_DOMAIN_URL=https://kczxcs.nenu.edu.cn/jeecg-boot
|
VITE_GLOB_DOMAIN_URL=http://210.47.29.100/jeecg-boot
|
||||||
|
|
||||||
#RTC服务器地址
|
#RTC服务器地址
|
||||||
VITE_GLOB_RTC_SERVER = https://zxkccx.webvpn.nenu.edu.cn:8081
|
VITE_GLOB_RTC_SERVER = https://zxkccx.webvpn.nenu.edu.cn:8081
|
||||||
|
|
|
@ -46,6 +46,22 @@ const zuoyehistory: AppRouteModule = {
|
||||||
title: '到课识别率',
|
title: '到课识别率',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: 'hisKccy',
|
||||||
|
name: 'hisKccy',
|
||||||
|
component: () => import('/@/views/kc/wjxCswj/WjxCswjHisMainList.vue'),
|
||||||
|
meta: {
|
||||||
|
title: '课程测验',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'hisWjdc',
|
||||||
|
name: 'hisWjdc',
|
||||||
|
component: () => import('/@/views/kc/wjxDcwj/WjxDcwjHisMainList.vue'),
|
||||||
|
meta: {
|
||||||
|
title: '问卷调查',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,329 @@
|
||||||
|
<template>
|
||||||
|
<div style="background: #fff;height: 600px;padding: 10px 0;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">
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :lg="7">
|
||||||
|
<a-form-item label="问卷名称">
|
||||||
|
<a-input placeholder="请输入问卷名称" v-model:value="queryParam.title"></a-input>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
<a-col :lg="7">
|
||||||
|
<a-form-item label="问卷类型">
|
||||||
|
<a-select placeholder="请选择问卷状态" ref="select" v-model:value="queryParam.qpublish">
|
||||||
|
<a-select-option value="">全部</a-select-option>
|
||||||
|
<a-select-option value="0">未发布</a-select-option>
|
||||||
|
<a-select-option value="1">已发布</a-select-option>
|
||||||
|
</a-select>
|
||||||
|
</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-col>
|
||||||
|
</span>
|
||||||
|
</a-col>
|
||||||
|
</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;">
|
||||||
|
<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>
|
||||||
|
<a-row style="top: -48px;position: relative;">
|
||||||
|
<a-col :span="24" style="margin-bottom: 10px;height:53px;overflow:hidden;">
|
||||||
|
<div style="font-size: 18px;font-weight: bold;">{{item.title}}</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="24" class="zyCon">
|
||||||
|
<a-row>
|
||||||
|
<a-col :span="6" class="zyCon">时间:
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="16" class="zyCon">
|
||||||
|
<a-col :span="24" class="zyCon">从{{item.startTime}}</a-col>
|
||||||
|
<a-col :span="24" class="zyCon">至{{item.endTime}}</a-col>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="24" class="zyCon">
|
||||||
|
<a-row>
|
||||||
|
<a-col :span="12" class="zyCon">{{item.xqxn}}</a-col>
|
||||||
|
<a-col :span="12" class="zyCon"><div style="float:right;" @click="openXkrs(item)"><a>{{item.xkrs}}人选课</a></div></a-col>
|
||||||
|
</a-row>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="24" class="zyCon">
|
||||||
|
<a-row>
|
||||||
|
<a-col :span="12" class="zyCon"><div style="float:left;" @click="handleDjjgs(item,'0')" v-if="item.wwcrs>0"><a>未提交:{{item.wwcrs}}人</a></div></a-col>
|
||||||
|
<a-col :span="12" class="zyCon"><div style="float:right;" @click="handleDjjgs(item,'1')" v-if="item.ywcrs>0"><a>已提交:{{item.ywcrs}}人</a></div></a-col>
|
||||||
|
</a-row>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="24" style="text-align:center;margin-top:20px;">
|
||||||
|
<a-button type="primary" @click="handleDetail(item)" style="margin-left:5px;padding: 0px 8px;background:rgb(28, 132, 198);" >详情</a-button>
|
||||||
|
<a-button type="primary" @click="handlePeizhiXq(item)" style="margin-left:5px;padding: 0px 8px;background:rgb(28, 132, 198);" v-if="item.qpublish==1">配置</a-button>
|
||||||
|
<a-button type="primary" @click="handleDjjgs(item,'')" style="margin-left:5px;padding: 0px 8px;background:rgb(28, 132, 198);" v-if="item.qpublish==1">结果</a-button>
|
||||||
|
</a-col>
|
||||||
|
<!-- <a-col :span="24" style="text-align:center;margin-top:20px;">-->
|
||||||
|
<!-- <a-button type="primary" @click="handleDj(item)" style="margin-left:5px;padding: 0px 8px;background:rgb(28, 132, 198);" v-if="item.qpublish==1">答卷</a-button>-->
|
||||||
|
<!-- <a-button type="primary" @click="handleDjjg(item)" style="margin-left:5px;padding: 0px 8px;background:rgb(28, 132, 198);" v-if="item.qpublish==1">查看答卷</a-button>-->
|
||||||
|
<!-- </a-col>-->
|
||||||
|
</a-row>
|
||||||
|
</a-card>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="24">
|
||||||
|
<div v-show="tableData.length>0">
|
||||||
|
<a-pagination v-model="current" :total="total" @change="handlePageChange" :pageSize="pageSize" style="text-align: right;"/>
|
||||||
|
</div>
|
||||||
|
<div v-show="tableData.length==0">
|
||||||
|
<a-empty/>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<!-- 表单区域 -->
|
||||||
|
<WjxWjxxModal ref="registerModal" @success="handleSuccess"></WjxWjxxModal>
|
||||||
|
<WjxWjxxTmlbModal ref="WjxWjxxTmlbModalPage" @success="handleSuccess"></WjxWjxxTmlbModal>
|
||||||
|
<WjxWjxxTmlbDjModal ref="WjxWjxxTmlbDjModalPage" @success="handleSuccess"></WjxWjxxTmlbDjModal>
|
||||||
|
<WjxWjxxTmlbDjjgsModal ref="WjxWjxxTmlbDjjgsModalPage" @success="handleSuccess"></WjxWjxxTmlbDjjgsModal>
|
||||||
|
<XxhbbksListModal ref="XxhbbksListModalPage"></XxhbbksListModal>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts" name="wjxWjxx-wjxWjxx" setup>
|
||||||
|
import {ref, reactive, defineExpose, unref, onMounted} from 'vue';
|
||||||
|
import { defHttp } from '/@/utils/http/axios';
|
||||||
|
import { Input, Popover, Pagination, Empty } from 'ant-design-vue';
|
||||||
|
import { list ,deleteOne } from '/@/views/kc/wjxWjxx/WjxWjxx.api';
|
||||||
|
import WjxWjxxModal from '/@/views/kc/wjxWjxx/components/WjxWjxxModal.vue'
|
||||||
|
import WjxWjxxTmlbModal from '/@/views/kc/wjxWjxx/components/WjxWjxxTmlbModal.vue'
|
||||||
|
import WjxWjxxTmlbDjModal from '/@/views/kc/wjxWjxx/components/WjxWjxxTmlbDjModal.vue'
|
||||||
|
import WjxWjxxTmlbDjjgsModal from '/@/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgsModal.vue'
|
||||||
|
import XxhbbksListModal from '/@/views/kc/xxhbbks/XxhbbksListModal.vue';
|
||||||
|
import {useRouter} from "vue-router";
|
||||||
|
|
||||||
|
//当前路由信息
|
||||||
|
const { currentRoute } = useRouter();
|
||||||
|
const { query } = unref(currentRoute);
|
||||||
|
const { rwbh,xqxn,typa } = query;//获取传递参数
|
||||||
|
|
||||||
|
const APagination = Pagination;
|
||||||
|
const queryParam = ref<any>({});
|
||||||
|
const current = ref<number>(0);
|
||||||
|
const total = ref<number>(0);
|
||||||
|
const pageNo = ref<number>(0);
|
||||||
|
const pageSize = ref<number>(6);
|
||||||
|
const tableData = ref<any>([]);
|
||||||
|
|
||||||
|
const registerModal = ref();
|
||||||
|
const WjxWjxxTmlbModalPage = ref();
|
||||||
|
const WjxWjxxTmlbDjModalPage = ref();
|
||||||
|
const WjxWjxxTmlbDjjgsModalPage = ref()
|
||||||
|
const WjxWjxxTmlbDjjgsDcModalPage = ref();
|
||||||
|
const XxhbbksListModalPage = ref();
|
||||||
|
|
||||||
|
const labelCol = reactive({
|
||||||
|
xs: { span: 24 },
|
||||||
|
sm: { span: 7 },
|
||||||
|
});
|
||||||
|
const wrapperCol = reactive({
|
||||||
|
xs: { span: 24 },
|
||||||
|
sm: { span: 16 },
|
||||||
|
});
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增事件
|
||||||
|
*/
|
||||||
|
function handleAdd() {
|
||||||
|
registerModal.value.disableSubmit = false;
|
||||||
|
registerModal.value.add("6");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 编辑事件
|
||||||
|
*/
|
||||||
|
function handleEdit(record: Recordable) {
|
||||||
|
registerModal.value.disableSubmit = false;
|
||||||
|
registerModal.value.edit(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取选课人数
|
||||||
|
*/
|
||||||
|
function openXkrs(record){
|
||||||
|
// console.log(`🚀 ~ openXkrs ~ record:`, record)
|
||||||
|
XxhbbksListModalPage.value.disableSubmit = true;
|
||||||
|
XxhbbksListModalPage.value.init(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 配置
|
||||||
|
*/
|
||||||
|
function handlePeizhi(record: Recordable) {
|
||||||
|
WjxWjxxTmlbModalPage.value.disableSubmit = false;
|
||||||
|
WjxWjxxTmlbModalPage.value.edit(record,"6");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 配置详情
|
||||||
|
*/
|
||||||
|
function handlePeizhiXq(record: Recordable) {
|
||||||
|
WjxWjxxTmlbDjModalPage.value.disableSubmit = true;
|
||||||
|
WjxWjxxTmlbDjModalPage.value.edit(record,true,"6",'ls');
|
||||||
|
}
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * 答卷详情
|
||||||
|
// */
|
||||||
|
// function handleDj(record: Recordable) {
|
||||||
|
// WjxWjxxTmlbDjModalPage.value.disableSubmit = false;
|
||||||
|
// WjxWjxxTmlbDjModalPage.value.edit(record,false);
|
||||||
|
// }
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * 答卷详情
|
||||||
|
// */
|
||||||
|
// function handleDjjg(record: Recordable) {
|
||||||
|
// WjxWjxxTmlbDjjgModalPage.value.disableSubmit = true;
|
||||||
|
// WjxWjxxTmlbDjjgModalPage.value.edit(record,false);
|
||||||
|
// }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 学生答卷列表
|
||||||
|
*/
|
||||||
|
function handleDjjgs(record: Recordable,flag) {
|
||||||
|
WjxWjxxTmlbDjjgsModalPage.value.disableSubmit = true;
|
||||||
|
WjxWjxxTmlbDjjgsModalPage.value.edit(record,flag);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 详情
|
||||||
|
*/
|
||||||
|
function handleDetail(record: Recordable) {
|
||||||
|
registerModal.value.disableSubmit = true;
|
||||||
|
registerModal.value.edit(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 发布
|
||||||
|
*/
|
||||||
|
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();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 删除事件
|
||||||
|
*/
|
||||||
|
async function handleDelete(record) {
|
||||||
|
await deleteOne({ id: record.id }, handleSuccess);
|
||||||
|
}
|
||||||
|
|
||||||
|
function reload(){
|
||||||
|
queryParam.value.pageNo = pageNo;
|
||||||
|
queryParam.value.pageSize = pageSize;
|
||||||
|
queryParam.value.rwbh = rwbh;
|
||||||
|
queryParam.value.xqxn = xqxn;
|
||||||
|
queryParam.value.atype = "6";
|
||||||
|
defHttp.get({ url: '/wjxWjxx/wjxWjxx/list', params: queryParam.value }).then(res => {
|
||||||
|
// console.log(`🚀 ~ defHttp.get ~ res:`, res)
|
||||||
|
total.value = res.total;
|
||||||
|
pageNo.value = res.pages;
|
||||||
|
current.value = res.current;
|
||||||
|
tableData.value = res.records;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 成功回调
|
||||||
|
*/
|
||||||
|
function handleSuccess() {
|
||||||
|
total.value = 1;
|
||||||
|
pageNo.value = 0;
|
||||||
|
reload();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询
|
||||||
|
*/
|
||||||
|
function searchQuery() {
|
||||||
|
pageNo.value = 0;
|
||||||
|
reload();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 重置
|
||||||
|
*/
|
||||||
|
function searchReset() {
|
||||||
|
queryParam.value = {};
|
||||||
|
total.value = 1;
|
||||||
|
handlePageChange(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
function handlePageChange(record){
|
||||||
|
pageNo.value = record;
|
||||||
|
reload();
|
||||||
|
}
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
searchQuery();
|
||||||
|
});
|
||||||
|
|
||||||
|
function classFun(type){
|
||||||
|
if(type == '0'){
|
||||||
|
return "background: #a7a6a6";
|
||||||
|
}else if(type == '1'){
|
||||||
|
return "background: #18a689";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
.jeecg-basic-table-form-container {
|
||||||
|
padding: 0;
|
||||||
|
.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-container .ant-form {
|
||||||
|
padding: 12px 10px 0px 10px;
|
||||||
|
margin-bottom: 0px;
|
||||||
|
background-color: #fff;
|
||||||
|
border-radius: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ellipsis {
|
||||||
|
overflow: hidden; /* 确保超出容器的内容被裁剪 */
|
||||||
|
white-space: nowrap; /* 确保文本在一行内显示 */
|
||||||
|
text-overflow: ellipsis; /* 超出部分显示省略号 */
|
||||||
|
}
|
||||||
|
.zyCon{
|
||||||
|
line-height: 30px;
|
||||||
|
}
|
||||||
|
.rotate {
|
||||||
|
transform: rotate(45deg);
|
||||||
|
background: rgb(28, 132, 198);
|
||||||
|
color: #fff;
|
||||||
|
padding: 19px 10px 3px 10px;
|
||||||
|
position: relative;
|
||||||
|
top: -54px;
|
||||||
|
right: -131px;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -0,0 +1,27 @@
|
||||||
|
<template>
|
||||||
|
<div style="background: #fff;height: 97%;margin: 10px 0;">
|
||||||
|
<div style="text-align:right;width:100%;">
|
||||||
|
<a-switch v-model:checked="checked1" @change="onChange1"/>
|
||||||
|
</div>
|
||||||
|
<div v-show="checked1">
|
||||||
|
<WjxCswjList/>
|
||||||
|
</div>
|
||||||
|
<div v-show="!checked1">
|
||||||
|
<WjxCswjTableList/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts" name="wjx-cswj" setup>
|
||||||
|
import { ref, reactive, onMounted,unref } from 'vue';
|
||||||
|
import WjxCswjTableList from '/@/views/kc/wjxCswj/WjxCswjHisTableList.vue'
|
||||||
|
import WjxCswjList from '/@/views/kc/wjxCswj/WjxCswjHisList.vue'
|
||||||
|
|
||||||
|
const checked1 = ref(true);
|
||||||
|
|
||||||
|
function onChange1(record){
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
</style>
|
|
@ -0,0 +1,297 @@
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<!--查询区域-->
|
||||||
|
<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="7">
|
||||||
|
<a-form-item label="问卷名称">
|
||||||
|
<a-input placeholder="请输入问卷名称" v-model:value="queryParam.title"></a-input>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
<a-col :lg="7">
|
||||||
|
<a-form-item label="问卷类型">
|
||||||
|
<a-select placeholder="请选择问卷状态" ref="select" v-model:value="queryParam.qpublish">
|
||||||
|
<a-select-option value="">全部</a-select-option>
|
||||||
|
<a-select-option value="0">未发布</a-select-option>
|
||||||
|
<a-select-option value="1">已发布</a-select-option>
|
||||||
|
</a-select>
|
||||||
|
</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-col>
|
||||||
|
</span>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</a-form>
|
||||||
|
</div>
|
||||||
|
<!--引用表格-->
|
||||||
|
<BasicTable @register="registerTable" >
|
||||||
|
<!--操作栏-->
|
||||||
|
<template #action="{ record }">
|
||||||
|
<TableAction :actions="getTableAction(record)"/>
|
||||||
|
</template>
|
||||||
|
</BasicTable>
|
||||||
|
<!-- 表单区域 -->
|
||||||
|
<WjxWjxxModal ref="registerModal" @success="handleSuccess"></WjxWjxxModal>
|
||||||
|
<WjxWjxxTmlbModal ref="WjxWjxxTmlbModalPage" @success="handleSuccess"></WjxWjxxTmlbModal>
|
||||||
|
<WjxWjxxTmlbDjModal ref="WjxWjxxTmlbDjModalPage" @success="handleSuccess"></WjxWjxxTmlbDjModal>
|
||||||
|
<WjxWjxxTmlbDjjgModal ref="WjxWjxxTmlbDjjgModalPage" @success="handleSuccess"></WjxWjxxTmlbDjjgModal>
|
||||||
|
<WjxWjxxTmlbDjjgsModal ref="WjxWjxxTmlbDjjgsModalPage" @success="handleSuccess"></WjxWjxxTmlbDjjgsModal>
|
||||||
|
<XxhbbksListModal ref="XxhbbksListModalPage"></XxhbbksListModal>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts" name="wjxWjxx-wjxWjxx" setup>
|
||||||
|
import {ref, reactive, defineExpose, unref} from 'vue';
|
||||||
|
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
||||||
|
import { defHttp } from '/@/utils/http/axios';
|
||||||
|
import { useListPage } from '/@/hooks/system/useListPage';
|
||||||
|
import { columns } from '/@/views/kc/wjxWjxx/WjxWjxx.data';
|
||||||
|
import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from '/@/views/kc/wjxWjxx/WjxWjxx.api';
|
||||||
|
import { downloadFile } from '/@/utils/common/renderUtils';
|
||||||
|
import WjxWjxxModal from '/@/views/kc/wjxWjxx/components/WjxWjxxModal.vue'
|
||||||
|
import WjxWjxxTmlbModal from '/@/views/kc/wjxWjxx/components/WjxWjxxTmlbModal.vue'
|
||||||
|
import WjxWjxxTmlbDjModal from '/@/views/kc/wjxWjxx/components/WjxWjxxTmlbDjModal.vue'
|
||||||
|
import WjxWjxxTmlbDjjgModal from '/@/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgModal.vue'
|
||||||
|
import WjxWjxxTmlbDjjgsModal from '/@/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgsModal.vue'
|
||||||
|
import XxhbbksListModal from '/@/views/kc/xxhbbks/XxhbbksListModal.vue';
|
||||||
|
import {useRouter} from "vue-router";
|
||||||
|
|
||||||
|
//当前路由信息
|
||||||
|
const { currentRoute } = useRouter();
|
||||||
|
const { query } = unref(currentRoute);
|
||||||
|
const { rwbh,xqxn,typa} = query;//获取传递参数
|
||||||
|
|
||||||
|
const queryParam = ref<any>({rwbh : rwbh,xqxn : xqxn,atype : "6"});
|
||||||
|
const toggleSearchStatus = ref<boolean>(false);
|
||||||
|
|
||||||
|
const registerModal = ref();
|
||||||
|
const WjxWjxxTmlbModalPage = ref();
|
||||||
|
const WjxWjxxTmlbDjModalPage = ref();
|
||||||
|
const WjxWjxxTmlbDjjgsModalPage = ref();
|
||||||
|
const XxhbbksListModalPage = ref();
|
||||||
|
|
||||||
|
//注册table数据
|
||||||
|
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
||||||
|
tableProps: {
|
||||||
|
title: '',
|
||||||
|
api: list,
|
||||||
|
columns,
|
||||||
|
canResize:false,
|
||||||
|
useSearchForm: false,
|
||||||
|
actionColumn: {
|
||||||
|
width: 230,
|
||||||
|
fixed: 'right',
|
||||||
|
},
|
||||||
|
beforeFetch: (params) => {
|
||||||
|
params.column = '',params.order = '';//新生成的默认不带排序
|
||||||
|
return Object.assign(params, queryParam.value);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
exportConfig: {
|
||||||
|
name: "问卷信息",
|
||||||
|
url: getExportUrl,
|
||||||
|
},
|
||||||
|
importConfig: {
|
||||||
|
url: getImportUrl,
|
||||||
|
success: handleSuccess
|
||||||
|
},
|
||||||
|
});
|
||||||
|
const [registerTable, { reload, collapseAll, updateTableDataRecord, findTableDataRecord, getDataSource }, { rowSelection, selectedRowKeys }] = tableContext;
|
||||||
|
const labelCol = reactive({
|
||||||
|
xs: { span: 24 },
|
||||||
|
sm: { span: 7 },
|
||||||
|
});
|
||||||
|
const wrapperCol = reactive({
|
||||||
|
xs: { span: 24 },
|
||||||
|
sm: { span: 16 },
|
||||||
|
});
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增事件
|
||||||
|
*/
|
||||||
|
function handleAdd() {
|
||||||
|
registerModal.value.disableSubmit = false;
|
||||||
|
registerModal.value.add("6");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 编辑事件
|
||||||
|
*/
|
||||||
|
function handleEdit(record: Recordable) {
|
||||||
|
registerModal.value.disableSubmit = false;
|
||||||
|
registerModal.value.edit(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 配置
|
||||||
|
*/
|
||||||
|
function handlePeizhi(record: Recordable) {
|
||||||
|
WjxWjxxTmlbModalPage.value.disableSubmit = false;
|
||||||
|
WjxWjxxTmlbModalPage.value.edit(record,"6");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 配置详情
|
||||||
|
*/
|
||||||
|
function handlePeizhiXq(record: Recordable) {
|
||||||
|
WjxWjxxTmlbDjModalPage.value.disableSubmit = true;
|
||||||
|
WjxWjxxTmlbDjModalPage.value.edit(record,true,"6",'ls');
|
||||||
|
}
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * 答卷详情
|
||||||
|
// */
|
||||||
|
// function handlePeizhiDj(record: Recordable) {
|
||||||
|
// WjxWjxxTmlbDjModalPage.value.disableSubmit = false;
|
||||||
|
// WjxWjxxTmlbDjModalPage.value.edit(record,false);
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// /**
|
||||||
|
// * 答卷详情
|
||||||
|
// */
|
||||||
|
// function handlePeizhiDjjg(record: Recordable) {
|
||||||
|
// WjxWjxxTmlbDjjgModalPage.value.disableSubmit = true;
|
||||||
|
// WjxWjxxTmlbDjjgModalPage.value.edit(record,false);
|
||||||
|
// }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 详情
|
||||||
|
*/
|
||||||
|
function handleDetail(record: Recordable) {
|
||||||
|
registerModal.value.disableSubmit = true;
|
||||||
|
registerModal.value.edit(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 学生答卷列表
|
||||||
|
*/
|
||||||
|
function handleDjjgs(record: Recordable,flag) {
|
||||||
|
WjxWjxxTmlbDjjgsModalPage.value.disableSubmit = true;
|
||||||
|
WjxWjxxTmlbDjjgsModalPage.value.edit(record, flag);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 发布
|
||||||
|
*/
|
||||||
|
function handleFabu(record: Recordable) {
|
||||||
|
defHttp.get({ url: '/wjxWjxx/wjxWjxx/fbwj', params: { id: record.id,wjlx: "6" } }).then(res => {
|
||||||
|
reload();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 删除事件
|
||||||
|
*/
|
||||||
|
async function handleDelete(record) {
|
||||||
|
await deleteOne({ id: record.id }, handleSuccess);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除事件
|
||||||
|
*/
|
||||||
|
async function batchHandleDelete() {
|
||||||
|
await batchDelete({ ids: selectedRowKeys.value }, handleSuccess);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 成功回调
|
||||||
|
*/
|
||||||
|
function handleSuccess() {
|
||||||
|
(selectedRowKeys.value = []) && reload();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 操作栏
|
||||||
|
*/
|
||||||
|
function getTableAction(record) {
|
||||||
|
if(record.qpublish == '1'){
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
label: '详情',
|
||||||
|
onClick: handleDetail.bind(null, record),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '配置详情',
|
||||||
|
onClick: handlePeizhiXq.bind(null, record),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '学生列表',
|
||||||
|
onClick: handleDjjgs.bind(null, record,"1"),
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}else{
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
label: '详情',
|
||||||
|
onClick: handleDetail.bind(null, record),
|
||||||
|
},
|
||||||
|
]
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 下拉操作栏
|
||||||
|
*/
|
||||||
|
function getDropDownAction(record) {
|
||||||
|
return [
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询
|
||||||
|
*/
|
||||||
|
function searchQuery() {
|
||||||
|
reload();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 重置
|
||||||
|
*/
|
||||||
|
function searchReset() {
|
||||||
|
queryParam.value = {};
|
||||||
|
queryParam.value.rwbh = rwbh;
|
||||||
|
queryParam.value.xqxn = xqxn;
|
||||||
|
queryParam.value.atype = "6";
|
||||||
|
selectedRowKeys.value = [];
|
||||||
|
//刷新数据
|
||||||
|
reload();
|
||||||
|
}
|
||||||
|
|
||||||
|
function init(){
|
||||||
|
defHttp.get({url:'/wjxWjxx/wjxWjxx/getWjxLogin',params:{}}).then(res =>{
|
||||||
|
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
defineExpose({
|
||||||
|
init
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
.jeecg-basic-table-form-container {
|
||||||
|
padding: 0;
|
||||||
|
.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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -0,0 +1,326 @@
|
||||||
|
<template>
|
||||||
|
<div style="background: #fff;height: 97%;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="7">
|
||||||
|
<a-form-item label="问卷名称">
|
||||||
|
<a-input placeholder="请输入问卷名称" v-model:value="queryParam.title"></a-input>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
<a-col :lg="7">
|
||||||
|
<a-form-item label="问卷类型">
|
||||||
|
<a-select placeholder="请选择问卷状态" ref="select" v-model:value="queryParam.qpublish">
|
||||||
|
<a-select-option value="">全部</a-select-option>
|
||||||
|
<a-select-option value="0">未发布</a-select-option>
|
||||||
|
<a-select-option value="1">已发布</a-select-option>
|
||||||
|
</a-select>
|
||||||
|
</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-col>
|
||||||
|
</span>
|
||||||
|
</a-col>
|
||||||
|
</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;">
|
||||||
|
<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>
|
||||||
|
<a-row style="top: -48px;position: relative;">
|
||||||
|
<a-col :span="24" style="margin-bottom: 10px;height:53px;overflow:hidden;">
|
||||||
|
<div style="font-size: 18px;font-weight: bold;">{{item.title}}</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="24" class="zyCon">
|
||||||
|
<a-row>
|
||||||
|
<a-col :span="6" class="zyCon">时间:
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="16" class="zyCon">
|
||||||
|
<a-col :span="24" class="zyCon">从{{item.startTime}}</a-col>
|
||||||
|
<a-col :span="24" class="zyCon">至{{item.endTime}}</a-col>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="24" class="zyCon">
|
||||||
|
<a-row>
|
||||||
|
<a-col :span="12" class="zyCon">{{item.xqxn}}</a-col>
|
||||||
|
<a-col :span="12" class="zyCon"><div style="float:right;" @click="openXkrs(item)"><a>{{item.xkrs}}人选课</a></div></a-col>
|
||||||
|
</a-row>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="24" class="zyCon">
|
||||||
|
<a-row>
|
||||||
|
<a-col :span="12" class="zyCon"><div style="float:left;" @click="handleDjjgs(item,'0')" v-if="item.wwcrs>0"><a>未提交:{{item.wwcrs}}人</a></div></a-col>
|
||||||
|
<a-col :span="12" class="zyCon"><div style="float:right;" @click="handleDjjgs(item,'1')" v-if="item.ywcrs>0"><a>已提交:{{item.ywcrs}}人</a></div></a-col>
|
||||||
|
</a-row>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="24" style="text-align:center;margin-top:20px;">
|
||||||
|
<a-button type="primary" @click="handleDetail(item)" style="margin-left:5px;padding: 0px 8px;background:rgb(28, 132, 198);" >详情</a-button>
|
||||||
|
<a-button type="primary" @click="handlePeizhiXq(item)" style="margin-left:5px;padding: 0px 8px;background:rgb(28, 132, 198);" v-if="item.qpublish==1">配置</a-button>
|
||||||
|
<a-button type="primary" @click="handleDjjgs(item,'')" style="margin-left:5px;padding: 0px 8px;background:rgb(28, 132, 198);" v-if="item.qpublish==1">结果</a-button>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</a-card>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="24">
|
||||||
|
<div v-show="tableData.length>0">
|
||||||
|
<a-pagination v-model="current" :total="total" @change="handlePageChange" :pageSize="pageSize" style="text-align: right;"/>
|
||||||
|
</div>
|
||||||
|
<div v-show="tableData.length==0">
|
||||||
|
<a-empty/>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<!-- 表单区域 -->
|
||||||
|
<WjxWjxxModal ref="registerModal" @success="handleSuccess"></WjxWjxxModal>
|
||||||
|
<WjxWjxxTmlbModal ref="WjxWjxxTmlbModalPage" @success="handleSuccess"></WjxWjxxTmlbModal>
|
||||||
|
<WjxWjxxTmlbDjModal ref="WjxWjxxTmlbDjModalPage" @success="handleSuccess"></WjxWjxxTmlbDjModal>
|
||||||
|
<WjxWjxxTmlbDjjgModal ref="WjxWjxxTmlbDjjgModalPage" @success="handleSuccess"></WjxWjxxTmlbDjjgModal>
|
||||||
|
<WjxWjxxTmlbDjjgsDcModal ref="WjxWjxxTmlbDjjgsDcModalPage" @success="handleSuccess"></WjxWjxxTmlbDjjgsDcModal>
|
||||||
|
<XxhbbksListModal ref="XxhbbksListModalPage"></XxhbbksListModal>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts" name="wjxWjxx-wjxWjxx" setup>
|
||||||
|
import {ref, reactive, defineExpose, unref, onMounted} from 'vue';
|
||||||
|
import { defHttp } from '/@/utils/http/axios';
|
||||||
|
import { Input, Popover, Pagination, Empty } from 'ant-design-vue';
|
||||||
|
import { list ,deleteOne } from '/@/views/kc/wjxWjxx/WjxWjxx.api';
|
||||||
|
import WjxWjxxModal from '/@/views/kc/wjxWjxx/components/WjxWjxxModal.vue'
|
||||||
|
import WjxWjxxTmlbModal from '/@/views/kc/wjxWjxx/components/WjxWjxxTmlbModal.vue'
|
||||||
|
import WjxWjxxTmlbDjModal from '/@/views/kc/wjxWjxx/components/WjxWjxxTmlbDjModal.vue'
|
||||||
|
import WjxWjxxTmlbDjjgModal from '/@/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgModal.vue'
|
||||||
|
import WjxWjxxTmlbDjjgsDcModal from '/@/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgsDcModal.vue'
|
||||||
|
import XxhbbksListModal from '/@/views/kc/xxhbbks/XxhbbksListModal.vue';
|
||||||
|
import {useRouter} from "vue-router";
|
||||||
|
|
||||||
|
//当前路由信息
|
||||||
|
const { currentRoute } = useRouter();
|
||||||
|
const { query } = unref(currentRoute);
|
||||||
|
const { rwbh,xqxn,typa} = query;//获取传递参数
|
||||||
|
|
||||||
|
const APagination = Pagination;
|
||||||
|
const queryParam = ref<any>({});
|
||||||
|
const current = ref<number>(0);
|
||||||
|
const total = ref<number>(0);
|
||||||
|
const pageNo = ref<number>(0);
|
||||||
|
const pageSize = ref<number>(6);
|
||||||
|
const tableData = ref<any>([]);
|
||||||
|
|
||||||
|
const registerModal = ref();
|
||||||
|
const WjxWjxxTmlbModalPage = ref();
|
||||||
|
const WjxWjxxTmlbDjModalPage = ref();
|
||||||
|
const WjxWjxxTmlbDjjgsDcModalPage = ref();
|
||||||
|
const XxhbbksListModalPage = ref();
|
||||||
|
|
||||||
|
const labelCol = reactive({
|
||||||
|
xs: { span: 24 },
|
||||||
|
sm: { span: 7 },
|
||||||
|
});
|
||||||
|
const wrapperCol = reactive({
|
||||||
|
xs: { span: 24 },
|
||||||
|
sm: { span: 16 },
|
||||||
|
});
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增事件
|
||||||
|
*/
|
||||||
|
function handleAdd() {
|
||||||
|
registerModal.value.disableSubmit = false;
|
||||||
|
registerModal.value.add("1");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 编辑事件
|
||||||
|
*/
|
||||||
|
function handleEdit(record: Recordable) {
|
||||||
|
registerModal.value.disableSubmit = false;
|
||||||
|
registerModal.value.edit(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取选课人数
|
||||||
|
*/
|
||||||
|
function openXkrs(record){
|
||||||
|
// console.log(`🚀 ~ openXkrs ~ record:`, record)
|
||||||
|
XxhbbksListModalPage.value.disableSubmit = true;
|
||||||
|
XxhbbksListModalPage.value.init(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 配置
|
||||||
|
*/
|
||||||
|
function handlePeizhi(record: Recordable) {
|
||||||
|
WjxWjxxTmlbModalPage.value.disableSubmit = false;
|
||||||
|
WjxWjxxTmlbModalPage.value.edit(record,"1");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 配置详情
|
||||||
|
*/
|
||||||
|
function handlePeizhiXq(record: Recordable) {
|
||||||
|
WjxWjxxTmlbDjModalPage.value.disableSubmit = true;
|
||||||
|
WjxWjxxTmlbDjModalPage.value.edit(record,true,"1",'ls');
|
||||||
|
}
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * 答卷详情
|
||||||
|
// */
|
||||||
|
// function handleDj(record: Recordable) {
|
||||||
|
// WjxWjxxTmlbDjModalPage.value.disableSubmit = false;
|
||||||
|
// WjxWjxxTmlbDjModalPage.value.edit(record,false);
|
||||||
|
// }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 答卷详情
|
||||||
|
*/
|
||||||
|
// function handleDjjg(record: Recordable) {
|
||||||
|
// WjxWjxxTmlbDjjgModalPage.value.disableSubmit = true;
|
||||||
|
// WjxWjxxTmlbDjjgModalPage.value.edit(record,false);
|
||||||
|
// }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 学生答卷列表
|
||||||
|
*/
|
||||||
|
function handleDjjgs(record: Recordable,flag) {
|
||||||
|
WjxWjxxTmlbDjjgsDcModalPage.value.disableSubmit = true;
|
||||||
|
WjxWjxxTmlbDjjgsDcModalPage.value.edit(record, flag);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 详情
|
||||||
|
*/
|
||||||
|
function handleDetail(record: Recordable) {
|
||||||
|
registerModal.value.disableSubmit = true;
|
||||||
|
registerModal.value.edit(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 发布
|
||||||
|
*/
|
||||||
|
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();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 删除事件
|
||||||
|
*/
|
||||||
|
async function handleDelete(record) {
|
||||||
|
await deleteOne({ id: record.id }, handleSuccess);
|
||||||
|
}
|
||||||
|
|
||||||
|
function reload(){
|
||||||
|
queryParam.value.pageNo = pageNo;
|
||||||
|
queryParam.value.pageSize = pageSize;
|
||||||
|
queryParam.value.rwbh = rwbh;
|
||||||
|
queryParam.value.xqxn = xqxn;
|
||||||
|
queryParam.value.atype = "1";
|
||||||
|
defHttp.get({ url: '/wjxWjxx/wjxWjxx/list', params: queryParam.value }).then(res => {
|
||||||
|
// console.log(`🚀 ~ defHttp.get ~ res:`, res)
|
||||||
|
total.value = res.total;
|
||||||
|
pageNo.value = res.pages;
|
||||||
|
current.value = res.current;
|
||||||
|
tableData.value = res.records;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 成功回调
|
||||||
|
*/
|
||||||
|
function handleSuccess() {
|
||||||
|
total.value = 1;
|
||||||
|
pageNo.value = 0;
|
||||||
|
reload();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询
|
||||||
|
*/
|
||||||
|
function searchQuery() {
|
||||||
|
pageNo.value = 0;
|
||||||
|
reload();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 重置
|
||||||
|
*/
|
||||||
|
function searchReset() {
|
||||||
|
queryParam.value = {};
|
||||||
|
total.value = 1;
|
||||||
|
handlePageChange(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
function handlePageChange(record){
|
||||||
|
pageNo.value = record;
|
||||||
|
reload();
|
||||||
|
}
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
searchQuery();
|
||||||
|
});
|
||||||
|
|
||||||
|
function classFun(type){
|
||||||
|
if(type == '0'){
|
||||||
|
return "background: #a7a6a6";
|
||||||
|
}else if(type == '1'){
|
||||||
|
return "background: #18a689";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
.jeecg-basic-table-form-container {
|
||||||
|
padding: 0;
|
||||||
|
.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-container .ant-form {
|
||||||
|
padding: 12px 10px 0px 10px;
|
||||||
|
margin-bottom: 0px;
|
||||||
|
background-color: #fff;
|
||||||
|
border-radius: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ellipsis {
|
||||||
|
overflow: hidden; /* 确保超出容器的内容被裁剪 */
|
||||||
|
white-space: nowrap; /* 确保文本在一行内显示 */
|
||||||
|
text-overflow: ellipsis; /* 超出部分显示省略号 */
|
||||||
|
}
|
||||||
|
.zyCon{
|
||||||
|
line-height: 30px;
|
||||||
|
}
|
||||||
|
.rotate {
|
||||||
|
transform: rotate(45deg);
|
||||||
|
background: rgb(28, 132, 198);
|
||||||
|
color: #fff;
|
||||||
|
padding: 19px 10px 3px 10px;
|
||||||
|
position: relative;
|
||||||
|
top: -54px;
|
||||||
|
right: -131px;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -0,0 +1,27 @@
|
||||||
|
<template>
|
||||||
|
<div style="background: #fff;height: 97%;margin: 10px 0;">
|
||||||
|
<div style="text-align:right;width:100%;">
|
||||||
|
<a-switch v-model:checked="checked1" @change="onChange1"/>
|
||||||
|
</div>
|
||||||
|
<div v-show="checked1">
|
||||||
|
<WjxDcwjList/>
|
||||||
|
</div>
|
||||||
|
<div v-show="!checked1">
|
||||||
|
<WjxDcwjTableList/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts" name="wjx-dcwj" setup>
|
||||||
|
import { ref, reactive, onMounted,unref } from 'vue';
|
||||||
|
import WjxDcwjTableList from '/@/views/kc/wjxDcwj/WjxDcwjHisTableList.vue'
|
||||||
|
import WjxDcwjList from '/@/views/kc/wjxDcwj/WjxDcwjHisList.vue'
|
||||||
|
|
||||||
|
const checked1 = ref(true);
|
||||||
|
|
||||||
|
function onChange1(record){
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
</style>
|
|
@ -0,0 +1,297 @@
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<!--查询区域-->
|
||||||
|
<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="7">
|
||||||
|
<a-form-item label="问卷名称">
|
||||||
|
<a-input placeholder="请输入问卷名称" v-model:value="queryParam.title"></a-input>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
<a-col :lg="7">
|
||||||
|
<a-form-item label="问卷类型">
|
||||||
|
<a-select placeholder="请选择问卷状态" ref="select" v-model:value="queryParam.qpublish">
|
||||||
|
<a-select-option value="">全部</a-select-option>
|
||||||
|
<a-select-option value="0">未发布</a-select-option>
|
||||||
|
<a-select-option value="1">已发布</a-select-option>
|
||||||
|
</a-select>
|
||||||
|
</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-col>
|
||||||
|
</span>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</a-form>
|
||||||
|
</div>
|
||||||
|
<!--引用表格-->
|
||||||
|
<BasicTable @register="registerTable" >
|
||||||
|
<!--操作栏-->
|
||||||
|
<template #action="{ record }">
|
||||||
|
<TableAction :actions="getTableAction(record)"/>
|
||||||
|
</template>
|
||||||
|
</BasicTable>
|
||||||
|
<!-- 表单区域 -->
|
||||||
|
<WjxWjxxModal ref="registerModal" @success="handleSuccess"></WjxWjxxModal>
|
||||||
|
<WjxWjxxTmlbModal ref="WjxWjxxTmlbModalPage" @success="handleSuccess"></WjxWjxxTmlbModal>
|
||||||
|
<WjxWjxxTmlbDjModal ref="WjxWjxxTmlbDjModalPage" @success="handleSuccess"></WjxWjxxTmlbDjModal>
|
||||||
|
<WjxWjxxTmlbDjjgModal ref="WjxWjxxTmlbDjjgModalPage" @success="handleSuccess"></WjxWjxxTmlbDjjgModal>
|
||||||
|
<WjxWjxxTmlbDjjgsDcModal ref="WjxWjxxTmlbDjjgsDcModalPage" @success="handleSuccess"></WjxWjxxTmlbDjjgsDcModal>
|
||||||
|
<XxhbbksListModal ref="XxhbbksListModalPage"></XxhbbksListModal>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts" name="wjxWjxx-wjxWjxx" setup>
|
||||||
|
import {ref, reactive, defineExpose, unref} from 'vue';
|
||||||
|
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
||||||
|
import { defHttp } from '/@/utils/http/axios';
|
||||||
|
import { useListPage } from '/@/hooks/system/useListPage';
|
||||||
|
import { columns } from '/@/views/kc/wjxWjxx/WjxWjxx.data';
|
||||||
|
import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from '/@/views/kc/wjxWjxx/WjxWjxx.api';
|
||||||
|
import { downloadFile } from '/@/utils/common/renderUtils';
|
||||||
|
import WjxWjxxModal from '/@/views/kc/wjxWjxx/components/WjxWjxxModal.vue'
|
||||||
|
import WjxWjxxTmlbModal from '/@/views/kc/wjxWjxx/components/WjxWjxxTmlbModal.vue'
|
||||||
|
import WjxWjxxTmlbDjModal from '/@/views/kc/wjxWjxx/components/WjxWjxxTmlbDjModal.vue'
|
||||||
|
import WjxWjxxTmlbDjjgModal from '/@/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgModal.vue'
|
||||||
|
import WjxWjxxTmlbDjjgsDcModal from '/@/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgsDcModal.vue'
|
||||||
|
import XxhbbksListModal from '/@/views/kc/xxhbbks/XxhbbksListModal.vue';
|
||||||
|
import {useRouter} from "vue-router";
|
||||||
|
|
||||||
|
//当前路由信息
|
||||||
|
const { currentRoute } = useRouter();
|
||||||
|
const { query } = unref(currentRoute);
|
||||||
|
const { rwbh,xqxn,typa} = query;//获取传递参数
|
||||||
|
|
||||||
|
const queryParam = ref<any>({rwbh : rwbh,xqxn : xqxn,atype : "1"});
|
||||||
|
const toggleSearchStatus = ref<boolean>(false);
|
||||||
|
|
||||||
|
const registerModal = ref();
|
||||||
|
const WjxWjxxTmlbModalPage = ref();
|
||||||
|
const WjxWjxxTmlbDjModalPage = ref();
|
||||||
|
const WjxWjxxTmlbDjjgsDcModalPage = ref();
|
||||||
|
const XxhbbksListModalPage = ref();
|
||||||
|
|
||||||
|
//注册table数据
|
||||||
|
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
||||||
|
tableProps: {
|
||||||
|
title: '',
|
||||||
|
api: list,
|
||||||
|
columns,
|
||||||
|
canResize:false,
|
||||||
|
useSearchForm: false,
|
||||||
|
actionColumn: {
|
||||||
|
width: 280,
|
||||||
|
fixed: 'right',
|
||||||
|
},
|
||||||
|
beforeFetch: (params) => {
|
||||||
|
params.column = '',params.order = '';//新生成的默认不带排序
|
||||||
|
return Object.assign(params, queryParam.value);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
exportConfig: {
|
||||||
|
name: "问卷信息",
|
||||||
|
url: getExportUrl,
|
||||||
|
},
|
||||||
|
importConfig: {
|
||||||
|
url: getImportUrl,
|
||||||
|
success: handleSuccess
|
||||||
|
},
|
||||||
|
});
|
||||||
|
const [registerTable, { reload, collapseAll, updateTableDataRecord, findTableDataRecord, getDataSource }, { rowSelection, selectedRowKeys }] = tableContext;
|
||||||
|
const labelCol = reactive({
|
||||||
|
xs: { span: 24 },
|
||||||
|
sm: { span: 7 },
|
||||||
|
});
|
||||||
|
const wrapperCol = reactive({
|
||||||
|
xs: { span: 24 },
|
||||||
|
sm: { span: 16 },
|
||||||
|
});
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增事件
|
||||||
|
*/
|
||||||
|
function handleAdd() {
|
||||||
|
registerModal.value.disableSubmit = false;
|
||||||
|
registerModal.value.add("1");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 编辑事件
|
||||||
|
*/
|
||||||
|
function handleEdit(record: Recordable) {
|
||||||
|
registerModal.value.disableSubmit = false;
|
||||||
|
registerModal.value.edit(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 配置
|
||||||
|
*/
|
||||||
|
function handlePeizhi(record: Recordable) {
|
||||||
|
WjxWjxxTmlbModalPage.value.disableSubmit = false;
|
||||||
|
WjxWjxxTmlbModalPage.value.edit(record,"1");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 配置详情
|
||||||
|
*/
|
||||||
|
function handlePeizhiXq(record: Recordable) {
|
||||||
|
WjxWjxxTmlbDjModalPage.value.disableSubmit = true;
|
||||||
|
WjxWjxxTmlbDjModalPage.value.edit(record,true,"1",'ls');
|
||||||
|
}
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * 答卷详情
|
||||||
|
// */
|
||||||
|
// function handlePeizhiDj(record: Recordable) {
|
||||||
|
// WjxWjxxTmlbDjModalPage.value.disableSubmit = false;
|
||||||
|
// WjxWjxxTmlbDjModalPage.value.edit(record,false);
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// /**
|
||||||
|
// * 答卷详情
|
||||||
|
// */
|
||||||
|
// function handlePeizhiDjjg(record: Recordable) {
|
||||||
|
// WjxWjxxTmlbDjjgModalPage.value.disableSubmit = true;
|
||||||
|
// WjxWjxxTmlbDjjgModalPage.value.edit(record,false);
|
||||||
|
// }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 详情
|
||||||
|
*/
|
||||||
|
function handleDetail(record: Recordable) {
|
||||||
|
registerModal.value.disableSubmit = true;
|
||||||
|
registerModal.value.edit(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 学生答卷列表
|
||||||
|
*/
|
||||||
|
function handleDjjgs(record: Recordable,flag) {
|
||||||
|
WjxWjxxTmlbDjjgsDcModalPage.value.disableSubmit = true;
|
||||||
|
WjxWjxxTmlbDjjgsDcModalPage.value.edit(record, flag);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 发布
|
||||||
|
*/
|
||||||
|
function handleFabu(record: Recordable) {
|
||||||
|
defHttp.get({ url: '/wjxWjxx/wjxWjxx/fbwj', params: { id: record.id,wjlx: "1" } }).then(res => {
|
||||||
|
reload();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 删除事件
|
||||||
|
*/
|
||||||
|
async function handleDelete(record) {
|
||||||
|
await deleteOne({ id: record.id }, handleSuccess);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除事件
|
||||||
|
*/
|
||||||
|
async function batchHandleDelete() {
|
||||||
|
await batchDelete({ ids: selectedRowKeys.value }, handleSuccess);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 成功回调
|
||||||
|
*/
|
||||||
|
function handleSuccess() {
|
||||||
|
(selectedRowKeys.value = []) && reload();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 操作栏
|
||||||
|
*/
|
||||||
|
function getTableAction(record) {
|
||||||
|
if(record.qpublish == '1'){
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
label: '详情',
|
||||||
|
onClick: handleDetail.bind(null, record),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '配置详情',
|
||||||
|
onClick: handlePeizhiXq.bind(null, record),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '学生列表',
|
||||||
|
onClick: handleDjjgs.bind(null, record,"1"),
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}else{
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
label: '详情',
|
||||||
|
onClick: handleDetail.bind(null, record),
|
||||||
|
},
|
||||||
|
]
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 下拉操作栏
|
||||||
|
*/
|
||||||
|
function getDropDownAction(record) {
|
||||||
|
return [
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询
|
||||||
|
*/
|
||||||
|
function searchQuery() {
|
||||||
|
reload();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 重置
|
||||||
|
*/
|
||||||
|
function searchReset() {
|
||||||
|
queryParam.value = {};
|
||||||
|
queryParam.value.rwbh = rwbh;
|
||||||
|
queryParam.value.xqxn = xqxn;
|
||||||
|
queryParam.value.atype = "1";
|
||||||
|
selectedRowKeys.value = [];
|
||||||
|
//刷新数据
|
||||||
|
reload();
|
||||||
|
}
|
||||||
|
|
||||||
|
function init(){
|
||||||
|
defHttp.get({url:'/wjxWjxx/wjxWjxx/getWjxLogin',params:{}}).then(res =>{
|
||||||
|
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
defineExpose({
|
||||||
|
init
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
.jeecg-basic-table-form-container {
|
||||||
|
padding: 0;
|
||||||
|
.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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -230,11 +230,15 @@ async function submitForm(){
|
||||||
let param = values[i];
|
let param = values[i];
|
||||||
console.log(`🚀 ~ submitForm ~ param:`, param)
|
console.log(`🚀 ~ submitForm ~ param:`, param)
|
||||||
values[i].itemSelected = param.itemSelected+"";
|
values[i].itemSelected = param.itemSelected+"";
|
||||||
|
console.log(`🚀 ~ submitForm ~ isShow:`, isShow)
|
||||||
|
if(isShow.value){
|
||||||
if(!param.wjScore){
|
if(!param.wjScore){
|
||||||
createMessage.error('请填写题目分数');
|
createMessage.error('请填写题目分数');
|
||||||
sfjx = "0";
|
sfjx = "0";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(!param.wjTitle){
|
if(!param.wjTitle){
|
||||||
createMessage.error('请填写题目信息');
|
createMessage.error('请填写题目信息');
|
||||||
sfjx = "0";
|
sfjx = "0";
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div id="leftDiv" v-show="props.showRightButton">
|
<div id="leftDiv" v-show="props.showRightButton">
|
||||||
<a-row >
|
<a-row >
|
||||||
<a-col :xs="{ span: 0 }" :sm="{ span: 24 }" :lg="{ span: 24 }">
|
<a-col :xs="{ span: 0 }" :sm="{ span: 24 }" :lg="{ span: 24 }" v-if="getUserSf()=='T'">
|
||||||
<a-menu style="margin-top: 20px;" :selectable="false">
|
<a-menu style="margin-top: 20px;" :selectable="false">
|
||||||
<a-menu-item key="1" v-if="getSysConfig().flag7=='1'">
|
<a-menu-item key="1" v-if="getSysConfig().flag7=='1'">
|
||||||
<a class="abox" @click="toDom('tkzjDom')">听课足迹</a>
|
<a class="abox" @click="toDom('tkzjDom')">听课足迹</a>
|
||||||
|
@ -50,6 +50,22 @@
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
</a-menu>
|
</a-menu>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
<a-col :xs="{ span: 0 }" :sm="{ span: 24 }" :lg="{ span: 24 }" v-if="getUserSf()=='S'">
|
||||||
|
<a-menu style="margin-top: 20px;" :selectable="false">
|
||||||
|
<a-menu-item key="1" >
|
||||||
|
<a class="abox" @click="toDom('ktsbDom')">听课笔记</a>
|
||||||
|
</a-menu-item>
|
||||||
|
<a-menu-item key="2" >
|
||||||
|
<a class="abox" @click="toDom('stujrkbDom')">今日课表</a>
|
||||||
|
</a-menu-item>
|
||||||
|
<a-menu-item key="3" >
|
||||||
|
<a class="abox" @click="toDom('stujlrkbDom')">进六日课表</a>
|
||||||
|
</a-menu-item>
|
||||||
|
<a-menu-item key="4" >
|
||||||
|
<a class="abox" @click="toDom('stuwdkcDom')">我的课程</a>
|
||||||
|
</a-menu-item>
|
||||||
|
</a-menu>
|
||||||
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -65,9 +65,9 @@
|
||||||
}else if(zytype=='kczy'){//课程作业
|
}else if(zytype=='kczy'){//课程作业
|
||||||
href = "/history/hisKczy";
|
href = "/history/hisKczy";
|
||||||
}else if(zytype=='kccy'){//课程测验
|
}else if(zytype=='kccy'){//课程测验
|
||||||
href = "/history/dqkcLszy";
|
href = "/history/hisKccy";
|
||||||
}else if(zytype=='wjdc'){//问卷调查
|
}else if(zytype=='wjdc'){//问卷调查
|
||||||
href = "/history/ceshiWenjuan";
|
href = "/history/hisWjdc";
|
||||||
}else if(zytype=='dksbl'){//到课率识别
|
}else if(zytype=='dksbl'){//到课率识别
|
||||||
href = "/history/hisdksbl";
|
href = "/history/hisdksbl";
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="indexBackClass">
|
<div class="indexBackClass" id="stujlrkbDom">
|
||||||
<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>
|
||||||
<span style="margin-left: 10px;"><a href="javascript:void(0);" @click="openChangeKcPage">修改课程提醒</a></span>
|
<span style="margin-left: 10px;"><a href="javascript:void(0);" @click="openChangeKcPage">修改课程提醒</a></span>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="indexBackClass">
|
<div class="indexBackClass" id="stujrkbDom">
|
||||||
<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>
|
||||||
<span style="margin-left: 30px; color: #1c84c6; font-weight: 600">{{ sjtime }} {{ sjtitle }}</span>
|
<span style="margin-left: 30px; color: #1c84c6; font-weight: 600">{{ sjtime }} {{ sjtitle }}</span>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="indexBackClass" >
|
<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>
|
||||||
|
|
|
@ -7,6 +7,7 @@ enum Api {
|
||||||
list = '/zyInfoStudent/zyInfoStudent/list',
|
list = '/zyInfoStudent/zyInfoStudent/list',
|
||||||
save='/zyInfoStudent/zyInfoStudent/add',
|
save='/zyInfoStudent/zyInfoStudent/add',
|
||||||
edit='/zyInfoStudent/zyInfoStudent/edit',
|
edit='/zyInfoStudent/zyInfoStudent/edit',
|
||||||
|
zyscStu='/zyInfoStudent/zyInfoStudent/zyscStu',
|
||||||
deleteOne = '/zyInfoStudent/zyInfoStudent/delete',
|
deleteOne = '/zyInfoStudent/zyInfoStudent/delete',
|
||||||
deleteBatch = '/zyInfoStudent/zyInfoStudent/deleteBatch',
|
deleteBatch = '/zyInfoStudent/zyInfoStudent/deleteBatch',
|
||||||
importExcel = '/zyInfoStudent/zyInfoStudent/importExcel',
|
importExcel = '/zyInfoStudent/zyInfoStudent/importExcel',
|
||||||
|
@ -70,3 +71,10 @@ export const saveOrUpdate = (params, isUpdate) => {
|
||||||
let url = isUpdate ? Api.edit : Api.save;
|
let url = isUpdate ? Api.edit : Api.save;
|
||||||
return defHttp.post({ url: url, params }, { isTransformResponse: false });
|
return defHttp.post({ url: url, params }, { isTransformResponse: false });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const zyscStu = (params, isUpdate) => {
|
||||||
|
let url = Api.zyscStu;
|
||||||
|
return defHttp.post({ url: url, params }, { isTransformResponse: false });
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -37,14 +37,14 @@
|
||||||
<!--<template #pcaSlot="{text}">
|
<!--<template #pcaSlot="{text}">
|
||||||
{{ getAreaTextByCode(text) }}
|
{{ getAreaTextByCode(text) }}
|
||||||
</template>-->
|
</template>-->
|
||||||
<template #fileSlot="{text}">
|
<!-- <template #fileSlot="{text}">
|
||||||
<span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
|
<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>
|
<a-button v-else :ghost="true" type="primary" preIcon="ant-design:download-outlined" size="small" @click="downloadFile(text)">下载</a-button>
|
||||||
</template>
|
</template> -->
|
||||||
<template #fileZxSlot="{text}">
|
<!-- <template #fileZxSlot="{text,record}">
|
||||||
<span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
|
<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="yulanFile(text)">预览</a-button>
|
<a-button v-else :ghost="true" type="primary" preIcon="ant-design:download-outlined" size="small" @click="yulanFile(text)">预览</a-button>
|
||||||
</template>
|
</template> -->
|
||||||
</BasicTable>
|
</BasicTable>
|
||||||
<!-- 表单区域 -->
|
<!-- 表单区域 -->
|
||||||
<ZyInfoStudentModal ref="registerModal" @success="handleSuccess"></ZyInfoStudentModal>
|
<ZyInfoStudentModal ref="registerModal" @success="handleSuccess"></ZyInfoStudentModal>
|
||||||
|
@ -64,7 +64,10 @@
|
||||||
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
|
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
|
||||||
import { getFileAccessHttpUrl } from '/@/utils/common/compUtils';
|
import { getFileAccessHttpUrl } from '/@/utils/common/compUtils';
|
||||||
import ZyInfoStudentScoreModal from '/@/views/zy/zyInfoStudent/components/ZyInfoStudentScoreModal.vue'
|
import ZyInfoStudentScoreModal from '/@/views/zy/zyInfoStudent/components/ZyInfoStudentScoreModal.vue'
|
||||||
|
import { useGlobSetting } from '/@/hooks/setting';
|
||||||
|
|
||||||
|
const globSetting = useGlobSetting();
|
||||||
|
const baseApiUrl = globSetting.domainUrl;
|
||||||
|
|
||||||
const queryParam = ref<any>({});
|
const queryParam = ref<any>({});
|
||||||
const mainId = ref<string>('');
|
const mainId = ref<string>('');
|
||||||
|
@ -108,10 +111,15 @@ import { getFileAccessHttpUrl } from '/@/utils/common/compUtils';
|
||||||
sm: { span: 16 },
|
sm: { span: 16 },
|
||||||
});
|
});
|
||||||
|
|
||||||
function yulanFile(text){
|
function yulanFile(record){
|
||||||
// let url = "https://view.officeapps.live.com/op/view.aspx?src="+encodeURIComponent(getFileAccessHttpUrl(text));
|
// let url = "https://view.officeapps.live.com/op/view.aspx?src="+encodeURIComponent(getFileAccessHttpUrl(text));
|
||||||
// let url = "https://view.officeapps.live.com/op/view.aspx?src="+encodeURIComponent(getFileAccessHttpUrl(text));
|
// let url = "https://view.officeapps.live.com/op/view.aspx?src="+encodeURIComponent(getFileAccessHttpUrl(text));
|
||||||
let url = "https://view.xdocin.com/view?src="+encodeURIComponent('https://view.xdocin.com/demo/view.docx');
|
// let url = "https://view.xdocin.com/view?src="+encodeURIComponent('https://view.xdocin.com/demo/view.docx');
|
||||||
|
// window.open(url,"_blank")
|
||||||
|
|
||||||
|
var url2 = getFileAccessHttpUrl(record.pdfPath)
|
||||||
|
console.log(`🚀 ~ openPdf ~ url2:`, url2)
|
||||||
|
let url = baseApiUrl+"/generic/web/viewer.html?file="+encodeURIComponent(url2);
|
||||||
window.open(url,"_blank")
|
window.open(url,"_blank")
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<a-form-item label="上传作业" v-bind="validateInfos.filePath">
|
<a-form-item label="上传作业" v-bind="validateInfos.filePath">
|
||||||
<j-upload v-model:value="formData.filePath" :disabled="disabled" ></j-upload>
|
<j-upload v-model:value="formData.filePath" :disabled="disabled" maxCount="1" accept=".doc,.docx,.pdf" :forceAcceptVerify="true" ></j-upload>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
import { useMessage } from '/@/hooks/web/useMessage';
|
import { useMessage } from '/@/hooks/web/useMessage';
|
||||||
import JUpload from '/@/components/Form/src/jeecg/components/JUpload/JUpload.vue';
|
import JUpload from '/@/components/Form/src/jeecg/components/JUpload/JUpload.vue';
|
||||||
import { getValueType } from '/@/utils';
|
import { getValueType } from '/@/utils';
|
||||||
import { saveOrUpdate } from '../ZyInfoStudent.api';
|
import { saveOrUpdate,zyscStu } from '../ZyInfoStudent.api';
|
||||||
import { Form } from 'ant-design-vue';
|
import { Form } from 'ant-design-vue';
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
|
@ -98,7 +98,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
await saveOrUpdate(model, isUpdate.value)
|
await zyscStu(model, isUpdate.value)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
createMessage.success(res.message);
|
createMessage.success(res.message);
|
||||||
|
|
|
@ -14,12 +14,12 @@ export const columns: BasicColumn[] = [
|
||||||
align: "center",
|
align: "center",
|
||||||
dataIndex: 'kcjs'
|
dataIndex: 'kcjs'
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
title: '教学大纲',
|
// title: '教学大纲',
|
||||||
align: "center",
|
// align: "center",
|
||||||
dataIndex: 'filePath',
|
// dataIndex: 'filePath',
|
||||||
slots: { customRender: 'fileSlot' },
|
// slots: { customRender: 'fileSlot' },
|
||||||
},
|
// },
|
||||||
];
|
];
|
||||||
|
|
||||||
//查询数据
|
//查询数据
|
||||||
|
|
|
@ -95,7 +95,7 @@
|
||||||
function handleEdit(record: Recordable) {
|
function handleEdit(record: Recordable) {
|
||||||
// registerModal.value.disableSubmit = false;
|
// registerModal.value.disableSubmit = false;
|
||||||
// registerModal.value.edit(record);
|
// registerModal.value.edit(record);
|
||||||
defHttp.post({url: '/zyJxdg/zyJxdg/editJxdgyy', params: {filePath:record.filePath,kcjs:record.kcjs,pdfPath:record.pdfPath,rwbh,xqxn }}).then(res => {
|
defHttp.post({url: '/zyJxdg/zyJxdg/editJxdgyy', params: {kcjs:record.kcjs,rwbh,xqxn }}).then(res => {
|
||||||
console.log(`🚀 ~ defHttp.post ~ res:`, res)
|
console.log(`🚀 ~ defHttp.post ~ res:`, res)
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue