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

View File

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

View File

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

View File

@@ -1,5 +1,6 @@
<template> <template>
<a-drawer <a-drawer
v-if="Tvisible"
:visible="Tvisible" :visible="Tvisible"
class="drawerStyle ProjectOnlineManage" class="drawerStyle ProjectOnlineManage"
placement="right" placement="right"
@@ -10,19 +11,19 @@
<div class="header"> <div class="header">
<div class="headerTitle"> <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 }} }}{{ title }}
@@ -34,7 +35,8 @@
/> />
</div> </div>
<div class="main"> <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="search">
<div class="sealeft"> <div class="sealeft">
<div class="namecon" style="margin-right: 30px"> <div class="namecon" style="margin-right: 30px">
@@ -80,7 +82,7 @@
<div class="img1"></div> <div class="img1"></div>
<div class="wz">催促学习</div> <div class="wz">催促学习</div>
</div> </div>
<div class="btn btn2"> <div class="btn btn2" @click="exportTaskStu">
<div class="img2"></div> <div class="img2"></div>
<div class="wz">导出数据</div> <div class="wz">导出数据</div>
</div> </div>
@@ -90,7 +92,7 @@
style="border: 1px solid #f2f6fe" style="border: 1px solid #f2f6fe"
:columns="tableDataFunc()" :columns="tableDataFunc()"
:data-source="tabledata" :data-source="tabledata"
:loading="tableDataTotal === -1 ? true : false" :loading="tableDataTotalLoading"
:scroll="{ x: 900 }" :scroll="{ x: 900 }"
:pagination="false" :pagination="false"
/> />
@@ -104,7 +106,7 @@
:current="currentPage" :current="currentPage"
:total="tableDataTotal" :total="tableDataTotal"
class="pagination" class="pagination"
@change="onChange" @change="changePaginationStu"
v-if="tableDataTotal > 10" v-if="tableDataTotal > 10"
/> />
</div> </div>
@@ -112,8 +114,8 @@
</div> </div>
</div> </div>
<div class="btnn"> <div class="btnn">
<button class="btn1">取消</button> <button class="btn1" @click="closeDrawer">取消</button>
<button class="btn2">确定</button> <button class="btn2" @click="closeDrawer">确定</button>
</div> </div>
</div> </div>
</a-drawer> </a-drawer>
@@ -123,6 +125,7 @@
import { toRefs, reactive, onMounted, onUnmounted } from "vue"; import { toRefs, reactive, onMounted, onUnmounted } from "vue";
import { message } from "ant-design-vue"; import { message } from "ant-design-vue";
// import * as api from "../../../api/index"; // import * as api from "../../../api/index";
import * as api from '../../../api/indexTaskManage';
export default { export default {
name: "ProjectOnlineManage", name: "ProjectOnlineManage",
@@ -135,6 +138,10 @@ export default {
type: String, type: String,
default: "", default: "",
}, },
levelName: {
type: String,
default: "",
},
projectTaskId: { projectTaskId: {
type: Number, type: Number,
default: null, default: null,
@@ -143,6 +150,12 @@ export default {
type: Number, type: Number,
default: null, default: null,
}, },
datasource: {
type: Object,
default: function () {
return {};
},
},
}, },
setup(props, ctx) { setup(props, ctx) {
@@ -153,97 +166,101 @@ export default {
pageSize: 10, pageSize: 10,
currentPage: 1, currentPage: 1,
tableDataTotal: 0, tableDataTotal: 0,
projectName: null, projectName: "",
projectNameList: [ projectNameList: [
// {
// id: 1,
// value: "-1",
// label: "未开始",
// },
{ {
id: 1, id: 1,
value: "-1",
label: "未开始",
},
{
id: 2,
value: "0", value: "0",
label: "未完成", label: "未完成",
}, },
{ {
id: 3, id: 2,
value: "1", value: "1",
label: "已完成", label: "已完成",
}, },
], ],
tabledata: [ tabledata: [],
{ tableDataTotalLoading: true, // 表格loading加载配置
workNum: "123",
userName: "li",
deptName: "开发",
jobName: "前端开发",
time: "2022-07-22 14:00:30",
status: "已完成",
},
],
}); });
const tableDataFunc = () => { const tableDataFunc = () => {
if ( const columns = [
props.itemsType == 1 || {
props.itemsType == 3 || title: "工号",
props.itemsType == 6 || dataIndex: "studentUserNo",
props.itemsType == 7 || key: "studentUserNo",
props.itemsType == 8 || width: 50,
props.itemsType == 9 || align: "center",
props.itemsType == 11 className: "h head",
) { },
const columns = [ {
{ title: "姓名",
title: "工号", dataIndex: "studentName",
dataIndex: "workNum", key: "studentName",
key: "workNum", width: 50,
width: 50, align: "center",
align: "center", className: "h head",
className: "h head", },
}, {
{ title: "所在部门",
title: "姓名", dataIndex: "studentDepartName",
dataIndex: "userName", key: "studentDepartName",
key: "userName", width: 60,
width: 50, align: "center",
align: "center", className: "h",
className: "h head", },
}, {
{ title: "所在岗位",
title: "所在部门", dataIndex: "studentJobName",
dataIndex: "deptName", key: "studentJobName",
key: "deptName", width: 60,
width: 60, align: "center",
align: "center", className: "h",
className: "h", },
}, {
{ title: "学员关卡",
title: "所在岗位", dataIndex: "currentStageName",
dataIndex: "jobName", key: "currentStageName",
key: "jobName", width: 60,
width: 60, align: "center",
align: "center", className: "h",
className: "h", customRender: (text) => {
}, return (
{ <div class="racona">
title: "完成时间", <span> {props.levelName}</span>
dataIndex: "time", </div>
key: "time", );
width: 100, }
align: "center", },
className: "h", {
}, title: "完成时间",
{ dataIndex: "endStudyTime",
title: "任务状态", key: "endStudyTime",
dataIndex: "status", width: 100,
key: "status", align: "center",
width: 60, className: "h",
align: "center", },
className: "h", {
}, title: "任务状态",
]; dataIndex: "status",
return columns; 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 = () => { const closeDrawer = () => {
@@ -255,7 +272,9 @@ export default {
}; };
const afterVisibleChange = (bol) => { const afterVisibleChange = (bol) => {
if (bol == true) { if (bol == true) {
// getManageList(); console.log('当前是什么类型',props.datasource.type)
state.tableDataTotalLoading = true;
getData();
} }
}; };
const selectProjectName = (value) => { const selectProjectName = (value) => {
@@ -270,6 +289,82 @@ export default {
console.log("Page: ", pageNumber); 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 { return {
...toRefs(state), ...toRefs(state),
selectProjectName, selectProjectName,
@@ -280,6 +375,10 @@ export default {
onMounted, onMounted,
onUnmounted, onUnmounted,
onChange, onChange,
searchTaskList,
resetTaskList,
changePaginationStu,
exportTaskStu
}; };
}, },
}; };
@@ -517,3 +616,4 @@ export default {
} }
} }
</style> </style>

View File

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

View File

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

View File

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

View File

@@ -492,7 +492,7 @@
item.type === 11 || item.type === 11 ||
item.type === 12 || item.type === 12 ||
item.type === 9 item.type === 9
? commonModel(item) ? commonModel(item, value.name)
: item.type === 2 : item.type === 2
? faceTeachModel(item) ? faceTeachModel(item)
: item.type === 4 : 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> </div>
</template> </template>
@@ -1360,7 +1360,8 @@ export default {
examinationData: '', examinationData: '',
evaluationData: '', evaluationData: '',
homeworkData: '', homeworkData: '',
commonData: '' commonData: '',
commonLevelName: ''
}); });
@@ -1660,7 +1661,8 @@ export default {
// 作业弹框名称 RouterHomeworkManage // 作业弹框名称 RouterHomeworkManage
} }
// 在线、案例、外链、评估、直播、活动点击管理弹框 // 在线、案例、外链、评估、直播、活动点击管理弹框
const commonModel = (data) => { const commonModel = (data, levelname) => {
state.commonLevelName = levelname;
console.log(data) console.log(data)
state.commonModelVisible = true; state.commonModelVisible = true;
state.commonModelVisibleTitle = data.name; state.commonModelVisibleTitle = data.name;

View File

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