feat:合并

This commit is contained in:
lixg
2023-01-04 16:05:05 +08:00
11 changed files with 484 additions and 364 deletions

View File

@@ -4,3 +4,9 @@ import http from "./config";
// 获取考试管理的信息
export const ExamManagementMessage = (obj) => http.post('/admin/exam/manage/queryExamManagementMessage',obj)
// 获取评估管理的信息
export const AssessmentManagementMessage = (obj) => http.get(`/admin/student/getTaskStudent`, {params: obj})
// 导出学员信息
export const ExportTaskStudent = (obj) => http.get('/admin/student/exportTaskStudent', {params: obj})

View File

@@ -3,13 +3,13 @@
<div>
<Upload v-model:value="files" ref="uploadRef" :file-type="fileType">
<div class="accessory" style="cursor: pointer">
<button v-if="againUpload" class="xkbtn" type="button">上传附件</button>
<span class="fujian">附件</span><button v-if="againUpload" class="xkbtn" type="button">上传附件</button>
<button v-else class="xkbtn" type="button" @click="notClick">附件上传中</button>
</div>
</Upload>
<div class ="tips" style="color: rgb(153, 155, 163);">支持.pdf,.ppt,.pptx,.doc,.docx,.xls,.xlsx,.jpg,.jpeg,.png,.gif,.zip</div>
</div>
<div class="mbl_items12" style="margin-left: 0">
<div class="mbl_items12" >
<div
class="i12_box1"
v-for="(item, index) in files"
@@ -124,9 +124,11 @@ function notClick(event) {
</script>
<style lang="scss">
.mbl_items12 {
width: 440px;
margin-left: 100px;
margin-top: 20px;
margin-right: 13px;
.i12_box1 {
display: flex;

View File

@@ -1142,17 +1142,18 @@ export default {
top: 10px;
}
.accessory{
margin-left: 92px;
margin-left: 54px;
}
}
}
.tips{
font-size: 12px;
margin-top: 10px;
}
.mbl_items12{
width: 373px;
margin-left: 10px;
margin-left:-13px;
}
}
}

View File

@@ -570,7 +570,7 @@ export default {
.item_inp {
flex: 1;
position: relative;
margin-left: 19px;
margin-left: -25px;
.inp_num {
position: absolute;
left: 398px;

View File

@@ -1,28 +1,29 @@
<template>
<a-drawer
v-if="Tvisible"
:visible="Tvisible"
class="drawerStyle ProjectOnlineManage"
placement="right"
width="60%"
@after-visible-change="afterVisibleChange"
>
>
<div class="drawerMain">
<div class="header">
<div class="headerTitle">
{{
itemsType === 1
datasource.type === 1
? "在线"
: itemsType === 3
: datasource.type === 3
? "案例"
: itemsType === 6
: datasource.type === 6
? "直播"
: itemsType === 7
: datasource.type === 7
? "外链"
: itemsType === 8
: datasource.type === 8
? "讨论"
: itemsType === 9
: datasource.type === 9
? "活动"
: itemsType === 11
: datasource.type === 11
? "评估"
: "-"
}}{{ title }}
@@ -34,7 +35,8 @@
/>
</div>
<div class="main">
<div class="endtime">起止时间2022-07-21 14:00 2022-7-30 14:00</div>
<div v-if="datasource.type !==6 || datasource.type !==9 " class="endtime">起止时间</div>
<div v-else class="endtime">起止时间{{datasource.startTime}} {{datasource.endTime}}</div>
<div class="search">
<div class="sealeft">
<div class="namecon" style="margin-right: 30px">
@@ -64,7 +66,7 @@
<div
class="btn btn1"
style="margin-right: 20px"
@click="searchTaskList"
@click="searchTaskList"
>
<div class="img1"></div>
<div class="wz">搜索</div>
@@ -80,8 +82,8 @@
<div class="img1"></div>
<div class="wz">催促学习</div>
</div>
<div class="btn btn2">
<div class="img2"></div>
<div class="btn btn2" @click="exportTaskStu">
<div class="img2"></div>
<div class="wz">导出数据</div>
</div>
</div>
@@ -90,7 +92,7 @@
style="border: 1px solid #f2f6fe"
:columns="tableDataFunc()"
:data-source="tabledata"
:loading="tableDataTotal === -1 ? true : false"
:loading="tableDataTotalLoading"
:scroll="{ x: 900 }"
:pagination="false"
/>
@@ -104,7 +106,7 @@
:current="currentPage"
:total="tableDataTotal"
class="pagination"
@change="onChange"
@change="changePaginationStu"
v-if="tableDataTotal > 10"
/>
</div>
@@ -112,8 +114,8 @@
</div>
</div>
<div class="btnn">
<button class="btn1">取消</button>
<button class="btn2">确定</button>
<button class="btn1" @click="closeDrawer">取消</button>
<button class="btn2" @click="closeDrawer">确定</button>
</div>
</div>
</a-drawer>
@@ -123,6 +125,7 @@
import { toRefs, reactive, onMounted, onUnmounted } from "vue";
import { message } from "ant-design-vue";
// import * as api from "../../../api/index";
import * as api from '../../../api/indexTaskManage';
export default {
name: "ProjectOnlineManage",
@@ -135,6 +138,10 @@ export default {
type: String,
default: "",
},
levelName: {
type: String,
default: "",
},
projectTaskId: {
type: Number,
default: null,
@@ -143,6 +150,12 @@ export default {
type: Number,
default: null,
},
datasource: {
type: Object,
default: function () {
return {};
},
},
},
setup(props, ctx) {
@@ -153,97 +166,101 @@ export default {
pageSize: 10,
currentPage: 1,
tableDataTotal: 0,
projectName: null,
projectName: "",
projectNameList: [
// {
// id: 1,
// value: "-1",
// label: "未开始",
// },
{
id: 1,
value: "-1",
label: "未开始",
},
{
id: 2,
value: "0",
label: "未完成",
},
{
id: 3,
id: 2,
value: "1",
label: "已完成",
},
],
tabledata: [
{
workNum: "123",
userName: "li",
deptName: "开发",
jobName: "前端开发",
time: "2022-07-22 14:00:30",
status: "已完成",
},
],
tabledata: [],
tableDataTotalLoading: true, // 表格loading加载配置
});
const tableDataFunc = () => {
if (
props.itemsType == 1 ||
props.itemsType == 3 ||
props.itemsType == 6 ||
props.itemsType == 7 ||
props.itemsType == 8 ||
props.itemsType == 9 ||
props.itemsType == 11
) {
const columns = [
{
title: "工号",
dataIndex: "workNum",
key: "workNum",
width: 50,
align: "center",
className: "h head",
},
{
title: "姓名",
dataIndex: "userName",
key: "userName",
width: 50,
align: "center",
className: "h head",
},
{
title: "所在部门",
dataIndex: "deptName",
key: "deptName",
width: 60,
align: "center",
className: "h",
},
{
title: "所在岗位",
dataIndex: "jobName",
key: "jobName",
width: 60,
align: "center",
className: "h",
},
{
title: "完成时间",
dataIndex: "time",
key: "time",
width: 100,
align: "center",
className: "h",
},
{
title: "任务状态",
dataIndex: "status",
key: "status",
width: 60,
align: "center",
className: "h",
},
];
return columns;
}
const columns = [
{
title: "工号",
dataIndex: "studentUserNo",
key: "studentUserNo",
width: 50,
align: "center",
className: "h head",
},
{
title: "姓名",
dataIndex: "studentName",
key: "studentName",
width: 50,
align: "center",
className: "h head",
},
{
title: "所在部门",
dataIndex: "studentDepartName",
key: "studentDepartName",
width: 60,
align: "center",
className: "h",
},
{
title: "所在岗位",
dataIndex: "studentJobName",
key: "studentJobName",
width: 60,
align: "center",
className: "h",
},
{
title: "学员关卡",
dataIndex: "currentStageName",
key: "currentStageName",
width: 60,
align: "center",
className: "h",
customRender: (text) => {
return (
<div class="racona">
<span> {props.levelName}</span>
</div>
);
}
},
{
title: "完成时间",
dataIndex: "endStudyTime",
key: "endStudyTime",
width: 100,
align: "center",
className: "h",
},
{
title: "任务状态",
dataIndex: "status",
key: "status",
width: 60,
align: "center",
className: "h",
customRender: (text) => {
return (
<div class="racona">
<span> {text.record.status==0?"未完成":"已完成"}</span>
</div>
);
}
},
];
return columns;
};
const closeDrawer = () => {
@@ -255,7 +272,9 @@ export default {
};
const afterVisibleChange = (bol) => {
if (bol == true) {
// getManageList();
console.log('当前是什么类型',props.datasource.type)
state.tableDataTotalLoading = true;
getData();
}
};
const selectProjectName = (value) => {
@@ -270,6 +289,82 @@ export default {
console.log("Page: ", pageNumber);
};
// 获取数据
function getData() {
if(props.datasource.type==11){
// 此处为获取评估学员的接口 - 如后续还有用到此接口的公共任务可直接在if里面加||判断即可
console.log('我是传递的查询参数',{
pageNo:state.currentPage,
pageSize:state.pageSize,
currentStageId:props.datasource.stageId,
type: 1,
pid: props.datasource.projectId,
status: state.projectName,
studentName: state.name
})
api.AssessmentManagementMessage({
pageNo:state.currentPage,
pageSize:state.pageSize,
currentStageId:props.datasource.stageId,
type: 1,
pid: props.datasource.projectId,
status: state.projectName,
studentName: state.name
}).then(res=>{
console.log(res)
if(res.status==200){
state.tabledata = res.data.data.records;
state.tableDataTotal =res.data.data.total;
state.tableDataTotalLoading = false;
}
}).catch(err=>{
console.log(err)
state.tableDataTotalLoading = false;
state.tabledata = [];
})
}else{
state.tableDataTotalLoading = false;
state.tabledata = [];
}
}
// 搜索按钮
function searchTaskList() {
state.currentPage = 1;
state.tableDataTotalLoading = true;
getData();
}
// 重置按钮
function resetTaskList() {
state.tableDataTotalLoading = true;
state.currentPage = 1;
state.name = "";
state.projectName = "";
getData();
}
//分页
const changePaginationStu = (page) => {
state.tableDataTotalLoading = true;
state.currentPage = page;
getData();
};
// 导出数据
function exportTaskStu() {
api.ExportTaskStudent({
pageNo:state.currentPage,
pageSize:state.pageSize,
currentStageId:props.datasource.stageId,
type: 1,
pid: props.datasource.projectId
}).then(res=>{
console.log(res)
}).catch(err=>{
console.log(err)
})
}
return {
...toRefs(state),
selectProjectName,
@@ -280,6 +375,10 @@ export default {
onMounted,
onUnmounted,
onChange,
searchTaskList,
resetTaskList,
changePaginationStu,
exportTaskStu
};
},
};
@@ -517,3 +616,4 @@ export default {
}
}
</style>

View File

@@ -66,7 +66,7 @@
<div
class="btn btn1"
style="margin-right: 20px"
@click="searchTaskList"
@click="searchTaskList"
>
<div class="img1"></div>
<div class="wz">搜索</div>
@@ -82,8 +82,8 @@
<div class="img1"></div>
<div class="wz">催促学习</div>
</div>
<div class="btn btn2">
<div class="img2"></div>
<div class="btn btn2" @click="exportTaskStu">
<div class="img2"></div>
<div class="wz">导出数据</div>
</div>
</div>
@@ -92,7 +92,7 @@
style="border: 1px solid #f2f6fe"
:columns="tableDataFunc()"
:data-source="tabledata"
:loading="tableDataTotal === -1 ? true : false"
:loading="tableDataTotalLoading"
:scroll="{ x: 900 }"
:pagination="false"
/>
@@ -106,7 +106,7 @@
:current="currentPage"
:total="tableDataTotal"
class="pagination"
@change="onChange"
@change="changePaginationStu"
v-if="tableDataTotal > 10"
/>
</div>
@@ -114,8 +114,8 @@
</div>
</div>
<div class="btnn">
<button class="btn1">取消</button>
<button class="btn2">确定</button>
<button class="btn1" @click="closeDrawer">取消</button>
<button class="btn2" @click="closeDrawer">确定</button>
</div>
</div>
</a-drawer>
@@ -125,6 +125,7 @@
import { toRefs, reactive, onMounted, onUnmounted } from "vue";
import { message } from "ant-design-vue";
// import * as api from "../../../api/index";
import * as api from '../../../api/indexTaskManage';
export default {
name: "RouterCommonManage",
@@ -137,6 +138,10 @@ export default {
type: String,
default: "",
},
levelName: {
type: String,
default: "",
},
projectTaskId: {
type: Number,
default: null,
@@ -161,82 +166,80 @@ export default {
pageSize: 10,
currentPage: 1,
tableDataTotal: 0,
projectName: null,
projectName: "",
projectNameList: [
// {
// id: 1,
// value: "-1",
// label: "未开始",
// },
{
id: 1,
value: "-1",
label: "未开始",
},
{
id: 2,
value: "0",
label: "未完成",
},
{
id: 3,
id: 2,
value: "1",
label: "已完成",
},
],
tabledata: [
{
workNum: "123",
userName: "li",
deptName: "开发",
jobName: "前端开发",
level:"关卡一",
time: "2022-07-22 14:00:30",
status: "已完成",
},
],
tabledata: [],
tableDataTotalLoading: true, // 表格loading加载配置
});
const tableDataFunc = () => {
const columns = [
{
title: "工号",
dataIndex: "workNum",
key: "workNum",
dataIndex: "studentUserNo",
key: "studentUserNo",
width: 50,
align: "center",
className: "h head",
},
{
title: "姓名",
dataIndex: "userName",
key: "userName",
dataIndex: "studentName",
key: "studentName",
width: 50,
align: "center",
className: "h head",
},
{
title: "所在部门",
dataIndex: "deptName",
key: "deptName",
dataIndex: "studentDepartName",
key: "studentDepartName",
width: 60,
align: "center",
className: "h",
},
{
title: "所在岗位",
dataIndex: "jobName",
key: "jobName",
dataIndex: "studentJobName",
key: "studentJobName",
width: 60,
align: "center",
className: "h",
},
{
title: "学员关卡",
dataIndex: "level",
key: "level",
dataIndex: "currentStageName",
key: "currentStageName",
width: 60,
align: "center",
className: "h",
customRender: (text) => {
return (
<div class="racona">
<span> {props.levelName}</span>
</div>
);
}
},
{
title: "完成时间",
dataIndex: "time",
key: "time",
dataIndex: "endStudyTime",
key: "endStudyTime",
width: 100,
align: "center",
className: "h",
@@ -248,6 +251,13 @@ export default {
width: 60,
align: "center",
className: "h",
customRender: (text) => {
return (
<div class="racona">
<span> {text.record.status==0?"未完成":"已完成"}</span>
</div>
);
}
},
];
return columns;
@@ -262,6 +272,8 @@ export default {
};
const afterVisibleChange = (bol) => {
if (bol == true) {
console.log('当前是什么类型',props.datasource.type)
state.tableDataTotalLoading = true;
getData();
}
};
@@ -277,18 +289,80 @@ export default {
console.log("Page: ", pageNumber);
};
// 获取数据
function getData() {
state.tabledata = [
{
workNum: "123",
userName: "li",
deptName: "开发",
jobName: "前端开发",
level:"关卡一",
time: "2022-07-22 14:00:30",
status: "已完成",
},
]
if(props.datasource.type==11){
// 此处为获取评估学员的接口 - 如后续还有用到此接口的公共任务可直接在if里面加||判断即可
console.log('我是传递的查询参数',{
pageNo:state.currentPage,
pageSize:state.pageSize,
currentStageId:props.datasource.chapterId,
type: 2,
pid: props.datasource.routerId,
status: state.projectName,
studentName: state.name
})
api.AssessmentManagementMessage({
pageNo:state.currentPage,
pageSize:state.pageSize,
currentStageId:props.datasource.chapterId,
type: 2,
pid: props.datasource.routerId,
status: state.projectName,
studentName: state.name
}).then(res=>{
console.log(res)
if(res.status==200){
state.tabledata = res.data.data.records;
state.tableDataTotal =res.data.data.total;
state.tableDataTotalLoading = false;
}
}).catch(err=>{
console.log(err)
state.tableDataTotalLoading = false;
state.tabledata = [];
})
}else{
state.tableDataTotalLoading = false;
state.tabledata = [];
}
}
// 搜索按钮
function searchTaskList() {
state.currentPage = 1;
state.tableDataTotalLoading = true;
getData();
}
// 重置按钮
function resetTaskList() {
state.tableDataTotalLoading = true;
state.currentPage = 1;
state.name = "";
state.projectName = "";
getData();
}
//分页
const changePaginationStu = (page) => {
state.tableDataTotalLoading = true;
state.currentPage = page;
getData();
};
// 导出数据
function exportTaskStu() {
api.ExportTaskStudent({
pageNo:state.currentPage,
pageSize:state.pageSize,
currentStageId:props.datasource.chapterId,
type: 2,
pid: props.datasource.routerId
}).then(res=>{
console.log(res)
}).catch(err=>{
console.log(err)
})
}
return {
@@ -301,6 +375,10 @@ export default {
onMounted,
onUnmounted,
onChange,
searchTaskList,
resetTaskList,
changePaginationStu,
exportTaskStu
};
},
};

View File

@@ -347,6 +347,7 @@
}
// 搜索
function searchTableData() {
state.currentPage = 1;
state.loadingData = true;
getData();
}

View File

@@ -1490,6 +1490,8 @@
/>
</div>
</div>
<div class="cstm_items">
<div class="signbox">
<div class="sign">
@@ -1507,6 +1509,9 @@
></ProjectManager>
</div>
</div>
<div class="cstm_items">
<div class="signbox">
<span style="margin-right: 3px">报名设置</span>
@@ -6029,109 +6034,113 @@ export default defineComponent({
}
}
.mbl_items12 {
width: 440px;
margin-left: 100px;
.i12_box1 {
display: flex;
align-items: center;
padding: 17px 0px 17px 21px;
border: 1px solid #eff4fc;
border-radius: 8px;
margin-bottom: 10px;
.file_img {
width: 27px;
height: 32px;
background-image: url(@/assets/images/coursewareManage/imgs.png);
margin-right: 22px;
img {
width: 100%;
height: 100%;
}
}
.file_detail {
width: 250px;
margin-right: 21px;
.file_updata {
display: flex;
align-items: center;
.updatabox {
position: relative;
width: 230px;
height: 5px;
background-color: rgba(192, 192, 192, 0.25);
border-radius: 3px;
.updatacolor {
position: absolute;
left: 0;
width: 100%;
height: 5px;
background-color: #57c887;
border-radius: 3px;
}
.updatacolor2 {
position: absolute;
left: 0;
width: 80%;
height: 5px;
background-color: #ff7474;
border-radius: 3px;
}
.updatacolor3 {
position: absolute;
left: 0;
width: 60%;
height: 5px;
background-color: #4ea6ff;
border-radius: 3px;
}
.updataxq {
position: absolute;
right: 2px;
top: -30px;
color: #57c887;
}
.updataxq2 {
position: absolute;
right: 2px;
top: -30px;
color: #ff7474;
}
.updataxq3 {
position: absolute;
right: 2px;
top: -30px;
color: #4ea6ff;
}
}
}
}
.file_operation {
display: flex;
.fobox {
margin-right: 5px;
cursor: pointer;
}
}
}
}
.items_fj {
margin-bottom: 1px;
.fujian{
display: none;
}
.mbl_items12 {
width: 440px;
margin-right:56px;
.i12_box1 {
display: flex;
align-items: center;
padding: 17px 0px 17px 21px;
border: 1px solid #eff4fc;
border-radius: 8px;
margin-bottom: 10px;
.file_img {
width: 27px;
height: 32px;
background-image: url(@/assets/images/coursewareManage/imgs.png);
margin-right: 22px;
img {
width: 100%;
height: 100%;
}
}
.file_detail {
width: 250px;
margin-right: 21px;
.file_updata {
display: flex;
align-items: center;
.updatabox {
position: relative;
width: 230px;
height: 5px;
background-color: rgba(192, 192, 192, 0.25);
border-radius: 3px;
.updatacolor {
position: absolute;
left: 0;
width: 100%;
height: 5px;
background-color: #57c887;
border-radius: 3px;
}
.updatacolor2 {
position: absolute;
left: 0;
width: 80%;
height: 5px;
background-color: #ff7474;
border-radius: 3px;
}
.updatacolor3 {
position: absolute;
left: 0;
width: 60%;
height: 5px;
background-color: #4ea6ff;
border-radius: 3px;
}
.updataxq {
position: absolute;
right: 2px;
top: -30px;
color: #57c887;
}
.updataxq2 {
position: absolute;
right: 2px;
top: -30px;
color: #ff7474;
}
.updataxq3 {
position: absolute;
right: 2px;
top: -30px;
color: #4ea6ff;
}
}
}
}
.file_operation {
display: flex;
.fobox {
margin-right: 5px;
cursor: pointer;
}
}
}
}
}
.items_btn {
@@ -6981,106 +6990,7 @@ export default defineComponent({
}
}
.mbl_items12 {
width: 440px;
margin-left: 100px;
.i12_box1 {
display: flex;
align-items: center;
padding: 17px 0px 17px 21px;
border: 1px solid #eff4fc;
border-radius: 8px;
margin-bottom: 10px;
.file_img {
width: 27px;
height: 32px;
background-image: url(@/assets/images/coursewareManage/imgs.png);
margin-right: 22px;
img {
width: 100%;
height: 100%;
}
}
.file_detail {
width: 250px;
margin-right: 21px;
.file_updata {
display: flex;
align-items: center;
.updatabox {
position: relative;
width: 230px;
height: 5px;
background-color: rgba(192, 192, 192, 0.25);
border-radius: 3px;
.updatacolor {
position: absolute;
left: 0;
width: 100%;
height: 5px;
background-color: #57c887;
border-radius: 3px;
}
.updatacolor2 {
position: absolute;
left: 0;
width: 80%;
height: 5px;
background-color: #ff7474;
border-radius: 3px;
}
.updatacolor3 {
position: absolute;
left: 0;
width: 60%;
height: 5px;
background-color: #4ea6ff;
border-radius: 3px;
}
.updataxq {
position: absolute;
right: 2px;
top: -30px;
color: #57c887;
}
.updataxq2 {
position: absolute;
right: 2px;
top: -30px;
color: #ff7474;
}
.updataxq3 {
position: absolute;
right: 2px;
top: -30px;
color: #4ea6ff;
}
}
}
}
.file_operation {
display: flex;
.fobox {
margin-right: 5px;
cursor: pointer;
}
}
}
}
}
}

View File

@@ -75,7 +75,7 @@
</div>
</div>
<div class="mbl_items2">
<div class="item_nam">
<div class="item_nam" style="margin-top: 8px;">
<div class="asterisk_icon">
<img src="@/assets/images/coursewareManage/asterisk.png" alt="" />
</div>
@@ -235,13 +235,17 @@
</div>
</div>
</div>
<div class="mb_right">
<!--
<div class="mbl_items">
<div class="item_nam" style="margin-top:5px;">
<div class="asterisk_icon">
<img src="@/assets/images/coursewareManage/asterisk.png" alt="asterisk" />
</div>
<!-- 授课教师1 -->
<span style="margin-right: 14px">授课教师</span>
</div>
<div class="item_inp">
@@ -250,8 +254,10 @@
</div>
</div>
</div>
-->
<div class="mbl_items2">
<div class="item_nam">
<div class="item_nam" style="margin-top: 8px;">
<div class="asterisk_icon">
<img src="@/assets/images/coursewareManage/asterisk.png" alt="asterisk" />
</div>
@@ -270,7 +276,7 @@
</div>
</div>
<div class="mbl_items">
<div class="item_nam">
<div class="item_nam" style="margin-top: 8px;">
<span style="margin-right: 10px">附件</span>
</div>
<div class="item_inp">
@@ -278,6 +284,8 @@
</div>
</div>
</div>
</div>
<div class="m_footer">
<div class="fotnam">
@@ -328,7 +336,7 @@ import { fileUp } from "../../api/indexEval";
import * as api1 from "../../api/index1";
import "@wangeditor/editor/dist/css/style.css";
import { Editor, Toolbar } from "@wangeditor/editor-for-vue";
import ProjectManager from "@/components/project/ProjectManagerNew";
//import ProjectManager from "@/components/project/ProjectManagerNew";
import NameInput from "@/components/project/NameInput";
import FJUpload from "@/components/common/FJUpload";
import * as moment from "moment";
@@ -340,7 +348,7 @@ export default defineComponent({
Toolbar,
FJUpload,
NameInput,
ProjectManager,
//ProjectManager,
},
props: {
xzinputV1: {
@@ -1028,7 +1036,7 @@ export default defineComponent({
}
}
}
.mbl_items2 {
display: flex;
align-items: start;
@@ -1179,12 +1187,15 @@ export default defineComponent({
left: 395px;
bottom: 10px;
}
}
}
.fujian{
display: none;
}
.mbl_items12 {
width: 440px;
margin-left: 100px;
margin-right:56px;
.i12_box1 {
display: flex;

View File

@@ -492,7 +492,7 @@
item.type === 11 ||
item.type === 12 ||
item.type === 9
? commonModel(item)
? commonModel(item, value.name)
: item.type === 2
? faceTeachModel(item)
: item.type === 4
@@ -1118,7 +1118,7 @@
<!-- 作业管理抽屉 结束-->
<!-- 公共管理抽屉 开始-->
<router-common-manage v-model:CommonModelVisible="commonModelVisible" :title="commonModelVisibleTitle" :datasource="commonData" />
<router-common-manage v-model:CommonModelVisible="commonModelVisible" :title="commonModelVisibleTitle" :datasource="commonData" :levelName="commonLevelName" />
<!-- 公共管理抽屉 结束-->
</div>
</template>
@@ -1360,7 +1360,8 @@ export default {
examinationData: '',
evaluationData: '',
homeworkData: '',
commonData: ''
commonData: '',
commonLevelName: ''
});
@@ -1660,7 +1661,8 @@ export default {
// 作业弹框名称 RouterHomeworkManage
}
// 在线、案例、外链、评估、直播、活动点击管理弹框
const commonModel = (data) => {
const commonModel = (data, levelname) => {
state.commonLevelName = levelname;
console.log(data)
state.commonModelVisible = true;
state.commonModelVisibleTitle = data.name;

View File

@@ -614,7 +614,9 @@
? showOnline(
item.name,
item.projectTaskId,
item.type
item.type,
item,
value.name
)
: item.type == '2'
? showFace(item.name, item.projectTaskId, item)
@@ -1091,6 +1093,8 @@
:projectTaskId="projectTaskId"
:title="showTimeText"
:itemsType="itemstype"
:datasource="commonData"
:levelName="commonLevelName"
/>
<!-- 面授管理抽屉 -->
@@ -2445,6 +2449,8 @@ export default {
codeInfo: null, //二维码标题
examData: "",
commonData: "",
commonLevelName: "",
});
const levelList = reactive({
@@ -2691,8 +2697,11 @@ export default {
state.TaskFaceImpStuvisible = true;
};
//在线、案例、外链、讨论、评估、直播、活动管理页面
const showOnline = (name, id, type) => {
console.log("点击管理并传了id");
const showOnline = (name, id, type, datasource, levelname) => {
console.log("点击管理并传了id", datasource);
state.commonLevelName = levelname;
state.commonData = datasource;
state.onlineVisible = true;
state.showTimeText = name;
state.projectTaskId = id;