Compare commits
4 Commits
44cce42a69
...
8038477f54
| Author | SHA1 | Date |
|---|---|---|
|
|
8038477f54 | |
|
|
9304426bb0 | |
|
|
5f80b5c854 | |
|
|
ac6d3ada70 |
|
|
@ -27,6 +27,7 @@ Object.keys(modules).forEach((key) => {
|
||||||
if(modList[0] && modList[0]?.meta?.isAddStaticPath){
|
if(modList[0] && modList[0]?.meta?.isAddStaticPath){
|
||||||
routeModuleStaticList.push(...modList)
|
routeModuleStaticList.push(...modList)
|
||||||
}
|
}
|
||||||
|
// console.log(`🚀 ~ Object.keys ~ modList:`, modList, routeModuleStaticList)
|
||||||
routeModuleList.push(...modList);
|
routeModuleList.push(...modList);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,14 @@ const zuoye: AppRouteModule = {
|
||||||
title: '历史作业',
|
title: '历史作业',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: 'studentMain',
|
||||||
|
name: 'studentMain_',
|
||||||
|
component: () => import('/@/views/site/studentWdkc/studentMain.vue'),
|
||||||
|
meta: {
|
||||||
|
title: '我的课程',
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: 'dqkcGongju',
|
path: 'dqkcGongju',
|
||||||
name: 'dqkcGongju',
|
name: 'dqkcGongju',
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@
|
||||||
<a-col :lg="6">
|
<a-col :lg="6">
|
||||||
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery">查询</a-button>
|
<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-button type="primary" preIcon="ant-design:reload-outlined" @click="searchReset" style="margin-left: 8px">重置</a-button>
|
||||||
|
<a-button type="primary" preIcon="ant-design:plus-outlined" @click="handleAdd" style="margin-left: 8px"> 新增</a-button>
|
||||||
</a-col>
|
</a-col>
|
||||||
</span>
|
</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|
@ -21,11 +22,10 @@
|
||||||
</a-form>
|
</a-form>
|
||||||
</div>
|
</div>
|
||||||
<!--引用表格-->
|
<!--引用表格-->
|
||||||
<BasicTable @register="registerTable" :rowSelection="rowSelection">
|
<BasicTable @register="registerTable" >
|
||||||
<!--插槽:table标题-->
|
<!--插槽:table标题-->
|
||||||
<template #tableTitle>
|
<template #tableTitle>
|
||||||
<a-button type="primary" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增</a-button>
|
<!-- <a-button type="primary" @click="init" preIcon="ant-design:plus-outlined"> 登录</a-button> -->
|
||||||
<a-button type="primary" @click="init" preIcon="ant-design:plus-outlined"> 登录</a-button>
|
|
||||||
</template>
|
</template>
|
||||||
<!--操作栏-->
|
<!--操作栏-->
|
||||||
<template #action="{ record }">
|
<template #action="{ record }">
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<a-form-item label="问卷类型" v-bind="validateInfos.title">
|
<a-form-item label="问卷类型" v-bind="validateInfos.atype">
|
||||||
<a-select
|
<a-select
|
||||||
ref="select"
|
ref="select"
|
||||||
v-model:value="formData.atype"
|
v-model:value="formData.atype"
|
||||||
|
|
@ -65,6 +65,7 @@
|
||||||
//表单验证
|
//表单验证
|
||||||
const validatorRules = {
|
const validatorRules = {
|
||||||
title: [{ required: true, message: '请输入问卷名称!'},],
|
title: [{ required: true, message: '请输入问卷名称!'},],
|
||||||
|
atype: [{ required: true, message: '请选择问卷类型!'},],
|
||||||
};
|
};
|
||||||
const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: true });
|
const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: true });
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@
|
||||||
const { query } = unref(currentRoute);
|
const { query } = unref(currentRoute);
|
||||||
const { rwbh } = query;//获取传递参数
|
const { rwbh } = query;//获取传递参数
|
||||||
let router = useRouter();
|
let router = useRouter();
|
||||||
|
console.log(`🚀 ~ router:`, router)
|
||||||
|
|
||||||
|
|
||||||
//进入就加载
|
//进入就加载
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@
|
||||||
var href = "/zy/dqkcDqzy";
|
var href = "/zy/dqkcDqzy";
|
||||||
if(zytype=='dqzy'){
|
if(zytype=='dqzy'){
|
||||||
href = "/zy/dqkcDqzy";
|
href = "/zy/dqkcDqzy";
|
||||||
}else if(type=='dqwj'){
|
}else if(zytype=='dqwj'){
|
||||||
href = "/zy/dqkcWenjuan";
|
href = "/zy/dqkcWenjuan";
|
||||||
}else if(zytype=='lszy'){
|
}else if(zytype=='lszy'){
|
||||||
href = "/zy/dqkcLszy";
|
href = "/zy/dqkcLszy";
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,28 @@
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="24"></a-col>
|
<a-col :xs="{ span: 24 }" :sm="{ span: 12 }" :lg="{ span: 6 }" style="padding: 0 10px;margin-bottom: 10px;" v-for="(item,index2) in dataSource" :key="index2">
|
||||||
|
<div style="border: 2px #eef1f2 solid;">
|
||||||
|
<div>
|
||||||
|
<div class="jtkcTitleClass"></div>
|
||||||
|
<div style="width:100%;white-space:normal; word-break:break-all;overflow:hidden;padding: 15px;font-weight: 600;font-size: 16px;color: #a50a0a; height: 70px;">
|
||||||
|
<span>{{ item.kcmc }}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a-divider style="margin: 0px;color: #eef1f2;" />
|
||||||
|
<div style="padding: 20px;font-weight: 600;">
|
||||||
|
<a-row>
|
||||||
|
<a-col :span="24">
|
||||||
|
<div style="font-size: 16px;margin-top: 0px; padding: 0px; height: 45px;color:#0e6393;">{{ item.skdd }}</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="24" style="text-align: center;">
|
||||||
|
<span style="font-size: 16px;margin-top: 0px; padding: 0px; height: 45px;width:50%;float:left;overflow: hidden;">{{ item.skjs }}</span>
|
||||||
|
<span style="font-size: 16px;margin-top: 0px; padding: 0px; height: 45px;width:50%;float:right;"><a-button type="primary" @click="openKecheng(item)">进入课程</a-button></span>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -15,16 +36,37 @@
|
||||||
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';
|
||||||
|
|
||||||
|
const dataSource = ref([]);
|
||||||
//进入就加载
|
//进入就加载
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
defHttp.get({ url: '/ktgl/kcKechengbiao/getStudentKclist',params:{pageSize:-1} }).then((res) => {
|
||||||
|
console.log(`🚀 ~ defHttp.get ~ res:`, res)
|
||||||
|
dataSource.value = res.records;
|
||||||
|
console.log(`🚀 ~ defHttp.get ~ dataSource:`, dataSource)
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function openKecheng(record){
|
||||||
|
var url = "/stuzy/studentMain?rwbh="+record.rwbh+"&xqxn="+record.xqxn;
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
.jtkcTitleClass{
|
||||||
|
background-image: linear-gradient(to right ,#1c84c6, #67b4e5);
|
||||||
|
color: white;
|
||||||
|
line-height: 30px;
|
||||||
|
padding: 3px 0 0 10px;
|
||||||
|
font-weight: 600;
|
||||||
|
height: 30px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@
|
||||||
<a-button type="primary" @click="handleFabu(item)" style="margin-left:5px;background:rgb(28, 132, 198);" v-if="item.zyStatus==0">发布</a-button>
|
<a-button type="primary" @click="handleFabu(item)" style="margin-left:5px;background:rgb(28, 132, 198);" v-if="item.zyStatus==0">发布</a-button>
|
||||||
<a-button type="primary" @click="handleDetail(item)" style="margin-left:5px;background:rgb(28, 132, 198);">详情</a-button>
|
<a-button type="primary" @click="handleDetail(item)" style="margin-left:5px;background:rgb(28, 132, 198);">详情</a-button>
|
||||||
<a-button type="primary" @click="handleZyxx(item)" style="margin-left:5px;background:rgb(28, 132, 198);" v-if="item.zyStatus==1||item.zyStatus==2||item.zyStatus==3">作业</a-button>
|
<a-button type="primary" @click="handleZyxx(item)" style="margin-left:5px;background:rgb(28, 132, 198);" v-if="item.zyStatus==1||item.zyStatus==2||item.zyStatus==3">作业</a-button>
|
||||||
<!-- <a-button type="primary" @click="handleShangchuan(item)" style="margin-left:5px;" v-if="item.zyStatus==1||item.zyStatus==2||item.zyStatus==3">上传</a-button> -->
|
<a-button type="primary" @click="handleShangchuan(item)" style="margin-left:5px;background:rgb(28, 132, 198);" v-if="item.zyStatus==1||item.zyStatus==2||item.zyStatus==3">上传</a-button>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</a-card>
|
</a-card>
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
<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" ></j-upload>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue