mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-06 17:36:44 +08:00
fix:修改面授作业在线考试投票测评管理直播活动考勤 feat:新增查看作业 签到二维码 导出成绩
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
>
|
||||
<div class="drawerMain">
|
||||
<div class="header">
|
||||
<div class="headerTitle">{{ title }}</div>
|
||||
<div class="headerTitle">【{{ title }}】考勤</div>
|
||||
<img
|
||||
style="width: 29px; height: 29px; cursor: pointer"
|
||||
src="../../assets/images/basicinfo/close.png"
|
||||
@@ -76,12 +76,12 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="btnss" style="margin-top: 20px">
|
||||
<div class="btn btn1" @click="signQR">
|
||||
<div class="wz">签到二维码</div>
|
||||
</div>
|
||||
<div class="btn btn2" @click="showqdModal">
|
||||
<div class="wz">批量签到</div>
|
||||
</div>
|
||||
<div class="btn btn2" @click="showqtModal">
|
||||
<div class="wz">批量签退</div>
|
||||
</div>
|
||||
<div class="btn btn1">
|
||||
<div class="img2"></div>
|
||||
<div class="wz">导出数据</div>
|
||||
@@ -173,36 +173,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</a-modal>
|
||||
<!-- 批量签退弹窗 -->
|
||||
<a-modal
|
||||
v-model:visible="qtModal"
|
||||
:footer="null"
|
||||
:closable="closeCopy"
|
||||
wrapClassName="CopyModal"
|
||||
centered="true"
|
||||
>
|
||||
<div class="delete">
|
||||
<div class="del_header"></div>
|
||||
<div class="del_main">
|
||||
<div class="header">
|
||||
<div class="icon"></div>
|
||||
<span>提示</span>
|
||||
<div class="close_exit" @click="closeqtModal"></div>
|
||||
</div>
|
||||
<div class="body">
|
||||
<span>您确定要批量签退吗</span>
|
||||
</div>
|
||||
<div class="del_btnbox">
|
||||
<div class="del_btn btn1">
|
||||
<div class="btnText" @click="delete_exit">取消</div>
|
||||
</div>
|
||||
<div class="del_btn btn2">
|
||||
<div class="btnText" @click="delete_exit">确定</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a-modal>
|
||||
|
||||
<!-- 单独签到弹窗 -->
|
||||
<a-modal
|
||||
v-model:visible="singleqdModal"
|
||||
@@ -293,12 +264,18 @@
|
||||
</div>
|
||||
</div>
|
||||
</a-modal>
|
||||
<!-- 二维码签到弹窗 -->
|
||||
<SignQR v-model:signQRvisible="signQRvisible"/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { toRefs, reactive } from "vue";
|
||||
import SignQR from "./SignQR.vue"
|
||||
export default {
|
||||
name: "ActiveAttendance",
|
||||
components: {
|
||||
SignQR,
|
||||
},
|
||||
props: {
|
||||
AAvisible: {
|
||||
type: Boolean,
|
||||
@@ -320,7 +297,7 @@ export default {
|
||||
currentPage: 1,
|
||||
tableDataTotal: 100,
|
||||
selectedRowKeys: [],
|
||||
qtModal: false, //批量签退
|
||||
signQRvisible:false, //二维码弹窗
|
||||
qdModal: false, //批量签到
|
||||
singleqjModal: false, //单独请假
|
||||
singleqdModal: false, //单独签到
|
||||
@@ -449,31 +426,6 @@ export default {
|
||||
signOut: true, //签退
|
||||
leave: false, //请假
|
||||
},
|
||||
{
|
||||
name: "张三",
|
||||
com: "产研部",
|
||||
gang: "产品经理",
|
||||
cur: "2022-10-31 23:12",
|
||||
jin: "2022-10-31 23:12",
|
||||
time: "签到/签退",
|
||||
state: "正常",
|
||||
signIn: true, //签到
|
||||
signOut: true, //签退
|
||||
leave: false, //请假
|
||||
},
|
||||
{
|
||||
key: 8,
|
||||
name: "张三",
|
||||
com: "产研部",
|
||||
gang: "产品经理",
|
||||
cur: "2022-10-31 23:12",
|
||||
jin: "2022-10-31 23:12",
|
||||
time: "请假",
|
||||
state: "正常",
|
||||
signIn: false, //签到
|
||||
signOut: false, //签退
|
||||
leave: true, //请假
|
||||
},
|
||||
],
|
||||
options: [
|
||||
{
|
||||
@@ -551,13 +503,21 @@ export default {
|
||||
|
||||
const tableDataFunc = () => {
|
||||
const columns = [
|
||||
{
|
||||
title: "工号",
|
||||
dataIndex: "workNum",
|
||||
key: "workNum",
|
||||
width: 50,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "姓名",
|
||||
dataIndex: "name",
|
||||
// width: "30%",
|
||||
key: "name",
|
||||
width: 50,
|
||||
align: "left",
|
||||
align: "center",
|
||||
className: "classify",
|
||||
scopedSlots: { customRender: "action" }, //引入的插槽
|
||||
customRender: (text) => {
|
||||
@@ -640,15 +600,9 @@ export default {
|
||||
const showqdModal = () => {
|
||||
state.qdModal = true;
|
||||
};
|
||||
const showqtModal = () => {
|
||||
state.qtModal = true;
|
||||
};
|
||||
const closeqdModal = () => {
|
||||
state.qdModal = false;
|
||||
};
|
||||
const closeqtModal = () => {
|
||||
state.qtModal = false;
|
||||
};
|
||||
const showsingleqdModal = () => {
|
||||
state.singleqdModal = true;
|
||||
};
|
||||
@@ -667,6 +621,9 @@ export default {
|
||||
const closesingleqjModal = () => {
|
||||
state.singleqjModal = false;
|
||||
};
|
||||
const signQR = ()=> {
|
||||
state.signQRvisible = true
|
||||
}
|
||||
return {
|
||||
...toRefs(state),
|
||||
selectProjectName,
|
||||
@@ -676,8 +633,6 @@ export default {
|
||||
showEntryScore,
|
||||
tableDataFunc,
|
||||
showqdModal,
|
||||
showqtModal,
|
||||
closeqtModal,
|
||||
closeqdModal,
|
||||
showsingleqdModal,
|
||||
showsingleqtModal,
|
||||
@@ -685,6 +640,7 @@ export default {
|
||||
closesingleqdModal,
|
||||
closesingleqtModal,
|
||||
closesingleqjModal,
|
||||
signQR,
|
||||
};
|
||||
},
|
||||
};
|
||||
@@ -737,6 +693,7 @@ export default {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
margin-bottom: 75px;
|
||||
padding-right: 10px;
|
||||
.titl {
|
||||
display: flex;
|
||||
.endtime {
|
||||
|
||||
155
src/components/drawers/CheckVote.vue
Normal file
155
src/components/drawers/CheckVote.vue
Normal file
@@ -0,0 +1,155 @@
|
||||
<template>
|
||||
<a-drawer
|
||||
:visible="CVvisible"
|
||||
class="drawerStyle CheckWork"
|
||||
placement="right"
|
||||
width="40%"
|
||||
@after-visible-change="afterVisibleChange"
|
||||
>
|
||||
<div class="drawerMain">
|
||||
<div class="header">
|
||||
<div class="headerTitle">查看投票</div>
|
||||
<img
|
||||
style="width:29px;height:29px;cursor:pointer"
|
||||
src="../../assets/images/basicinfo/close.png"
|
||||
@click="closeDrawer"
|
||||
/>
|
||||
<!-- <div class="suptit"><span>评估名称:<span>管理者进阶投票</span></span></div> -->
|
||||
</div>
|
||||
<div class="main">
|
||||
<div class="basetext"><span>基础信息</span></div>
|
||||
<div class="HW Name"><span>作业名称:</span ><span style="color:#999ba3">{{"管理者进阶作业"}}</span></div>
|
||||
<div class="HW Need"><span>作业要求:</span ><span style="color:#999ba3">{{"写一篇观后感,字数600字"}}</span></div>
|
||||
<div class="HWText">
|
||||
<span>作业信息:</span>
|
||||
<div class="hwText">
|
||||
<img src="@/assets/images/projectadd/keep.png"/>
|
||||
<div class="hwName">{{"京东方商业模型.jpeg"}}</div>
|
||||
<div class="op"> <span>查看</span> </div>
|
||||
<div class="op"> <span>下载</span> </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btnn">
|
||||
<button class="btn1">取消</button>
|
||||
<button class="btn2">确定</button>
|
||||
</div>
|
||||
</div>
|
||||
</a-drawer>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { toRefs,reactive } from '@vue/reactivity';
|
||||
export default {
|
||||
name:"CheckWork",
|
||||
props:{
|
||||
CVvisible:{
|
||||
type:Boolean,
|
||||
default:false,
|
||||
},
|
||||
},
|
||||
setup(props,ctx){
|
||||
const state = reactive({
|
||||
|
||||
})
|
||||
const closeDrawer = ()=> {
|
||||
ctx.emit("update:CVvisible",false)
|
||||
}
|
||||
const afterVisibleChange = (bool) => {
|
||||
console.log(bool);
|
||||
}
|
||||
return{
|
||||
...toRefs(state),
|
||||
closeDrawer,
|
||||
afterVisibleChange,
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style lang="scss">
|
||||
.CheckWork {
|
||||
.drawerMain {
|
||||
min-width: 400px;
|
||||
margin: 0px 32px 0px 32px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
.header {
|
||||
height: 73px;
|
||||
border-bottom: 1px solid #e8e8e8;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 20px;
|
||||
.headerTitle {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
line-height: 25px;
|
||||
}
|
||||
}
|
||||
.main {
|
||||
width: 100%;
|
||||
overflow-y: auto;
|
||||
margin-bottom: 70px;
|
||||
.basetext{
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
line-height: 25px;
|
||||
margin-bottom: 27px ;
|
||||
}
|
||||
.HW{
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.hwText{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin: 15px auto;
|
||||
img{
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
.hwName{
|
||||
margin:auto 10px;
|
||||
}
|
||||
.op{
|
||||
color:#388be1;
|
||||
margin: auto 20px;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.btnn {
|
||||
height: 72px;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background-color: #fff;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.16);
|
||||
.btn1 {
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
border: 1px solid #4ea6ff;
|
||||
border-radius: 8px;
|
||||
color: #4ea6ff;
|
||||
background-color: #fff;
|
||||
cursor: pointer;
|
||||
}
|
||||
.btn2 {
|
||||
cursor: pointer;
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
background: #4ea6ff;
|
||||
border-radius: 8px;
|
||||
border: 0;
|
||||
margin-left: 15px;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
154
src/components/drawers/CheckWork.vue
Normal file
154
src/components/drawers/CheckWork.vue
Normal file
@@ -0,0 +1,154 @@
|
||||
<template>
|
||||
<a-drawer
|
||||
:visible="CWvisible"
|
||||
class="drawerStyle CheckWork"
|
||||
placement="right"
|
||||
width="40%"
|
||||
@after-visible-change="afterVisibleChange"
|
||||
>
|
||||
<div class="drawerMain">
|
||||
<div class="header">
|
||||
<div class="headerTitle">查看作业</div>
|
||||
<img
|
||||
style="width:29px;height:29px;cursor:pointer"
|
||||
src="../../assets/images/basicinfo/close.png"
|
||||
@click="closeDrawer"
|
||||
/>
|
||||
</div>
|
||||
<div class="main">
|
||||
<div class="basetext"><span>基础信息</span></div>
|
||||
<div class="HW Name"><span>作业名称:</span ><span style="color:#999ba3">{{"管理者进阶作业"}}</span></div>
|
||||
<div class="HW Need"><span>作业要求:</span ><span style="color:#999ba3">{{"写一篇观后感,字数600字"}}</span></div>
|
||||
<div class="HWText">
|
||||
<span>作业信息:</span>
|
||||
<div class="hwText">
|
||||
<img src="@/assets/images/projectadd/keep.png"/>
|
||||
<div class="hwName">{{"京东方商业模型.jpeg"}}</div>
|
||||
<div class="op"> <span>查看</span> </div>
|
||||
<div class="op"> <span>下载</span> </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btnn">
|
||||
<button class="btn1">取消</button>
|
||||
<button class="btn2">确定</button>
|
||||
</div>
|
||||
</div>
|
||||
</a-drawer>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { toRefs,reactive } from '@vue/reactivity';
|
||||
export default {
|
||||
name:"CheckWork",
|
||||
props:{
|
||||
CWvisible:{
|
||||
type:Boolean,
|
||||
default:false,
|
||||
},
|
||||
},
|
||||
setup(props,ctx){
|
||||
const state = reactive({
|
||||
|
||||
})
|
||||
const closeDrawer = ()=> {
|
||||
ctx.emit("update:CWvisible",false)
|
||||
}
|
||||
const afterVisibleChange = (bool) => {
|
||||
console.log(bool);
|
||||
}
|
||||
return{
|
||||
...toRefs(state),
|
||||
closeDrawer,
|
||||
afterVisibleChange,
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style lang="scss">
|
||||
.CheckWork {
|
||||
.drawerMain {
|
||||
min-width: 400px;
|
||||
margin: 0px 32px 0px 32px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
.header {
|
||||
height: 73px;
|
||||
border-bottom: 1px solid #e8e8e8;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 20px;
|
||||
.headerTitle {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
line-height: 25px;
|
||||
}
|
||||
}
|
||||
.main {
|
||||
width: 100%;
|
||||
overflow-y: auto;
|
||||
margin-bottom: 70px;
|
||||
.basetext{
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
line-height: 25px;
|
||||
margin-bottom: 27px ;
|
||||
}
|
||||
.HW{
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.hwText{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin: 15px auto;
|
||||
img{
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
.hwName{
|
||||
margin:auto 10px;
|
||||
}
|
||||
.op{
|
||||
color:#388be1;
|
||||
margin: auto 20px;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.btnn {
|
||||
height: 72px;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background-color: #fff;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.16);
|
||||
.btn1 {
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
border: 1px solid #4ea6ff;
|
||||
border-radius: 8px;
|
||||
color: #4ea6ff;
|
||||
background-color: #fff;
|
||||
cursor: pointer;
|
||||
}
|
||||
.btn2 {
|
||||
cursor: pointer;
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
background: #4ea6ff;
|
||||
border-radius: 8px;
|
||||
border: 0;
|
||||
margin-left: 15px;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
243
src/components/drawers/ExportHWork.vue
Normal file
243
src/components/drawers/ExportHWork.vue
Normal file
@@ -0,0 +1,243 @@
|
||||
<template>
|
||||
<a-modal
|
||||
:visible="exportHWorkvisible"
|
||||
:closable="close"
|
||||
:footer="null"
|
||||
wrapClassName="WorkManage"
|
||||
centered="true"
|
||||
@cancel="closeModal"
|
||||
>
|
||||
<div class="header">
|
||||
<div class="inheader">
|
||||
<div class="left">提示</div>
|
||||
<div class="right" @click="closeModal"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main">
|
||||
<div class="check"></div>
|
||||
<div class="text"><span>作业导出完成,请在下载本地或去下载中心查看</span></div>
|
||||
<div class="btn">
|
||||
<button class="btn1 sabtn" style="margin-right: 20px;">查看</button>
|
||||
<button class="btn2 sabtn">下载</button>
|
||||
</div>
|
||||
</div>
|
||||
</a-modal>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { reactive,toRefs } from '@vue/reactivity';
|
||||
export default {
|
||||
name:"EHWork",
|
||||
props: {
|
||||
exportHWorkvisible:{
|
||||
type:Boolean,
|
||||
default:false,
|
||||
}
|
||||
},
|
||||
setup(props,ctx){
|
||||
const state = reactive({
|
||||
close:false
|
||||
})
|
||||
const closeModal = ()=> {
|
||||
ctx.emit('update:exportHWorkvisible',false)
|
||||
}
|
||||
return {
|
||||
...toRefs(state),
|
||||
closeModal,
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style lang="scss">
|
||||
.WorkManage {
|
||||
.drawerMain {
|
||||
min-width: 550px;
|
||||
margin: 0px 32px 0px 32px;
|
||||
overflow-x: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
.header {
|
||||
height: 73px;
|
||||
border-bottom: 1px solid #e8e8e8;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
// background-color: red;
|
||||
margin-bottom: 20px;
|
||||
.headerTitle {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
line-height: 25px;
|
||||
// margin-left: 24px;
|
||||
}
|
||||
}
|
||||
.main {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
// margin-bottom: 30px;
|
||||
// background-color: #bfa;
|
||||
overflow-y: auto;
|
||||
.endtime {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
color: #333333;
|
||||
}
|
||||
.search {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 20px;
|
||||
justify-content: space-between;
|
||||
|
||||
.sealeft {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
.namecon {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
margin-bottom: 10px;
|
||||
.name {
|
||||
margin-top: 8px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
}
|
||||
.btns {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
|
||||
.btn {
|
||||
cursor: pointer;
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
.img1 {
|
||||
width: 15px;
|
||||
height: 17px;
|
||||
background-image: url(../../assets/images/courseManage/search0.png);
|
||||
background-size: 100% 100%;
|
||||
margin-right: 7px;
|
||||
}
|
||||
.img2 {
|
||||
width: 16px;
|
||||
height: 18px;
|
||||
background-image: url(../../assets/images/courseManage/reset1.png);
|
||||
background-size: 100% 100%;
|
||||
margin-right: 7px;
|
||||
}
|
||||
}
|
||||
|
||||
.btn1 {
|
||||
background: #409eff;
|
||||
|
||||
color: #ffffff;
|
||||
}
|
||||
.btn2 {
|
||||
background: #ffffff;
|
||||
|
||||
color: #388be1;
|
||||
border: 1px solid #388be1;
|
||||
}
|
||||
}
|
||||
}
|
||||
.btnss {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
|
||||
.btn {
|
||||
cursor: pointer;
|
||||
width: 130px;
|
||||
height: 40px;
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
.img1 {
|
||||
width: 17px;
|
||||
height: 16px;
|
||||
background-image: url(../../assets/images/coursewareManage/export1.png);
|
||||
background-size: 100% 100%;
|
||||
margin-right: 7px;
|
||||
}
|
||||
}
|
||||
|
||||
.btn1 {
|
||||
background: #409eff;
|
||||
color: #ffffff;
|
||||
}
|
||||
.btn2 {
|
||||
background: #ffffff;
|
||||
color: #388be1;
|
||||
border: 1px solid #388be1;
|
||||
}
|
||||
}
|
||||
.tab {
|
||||
th.h {
|
||||
background-color: #eff4fc !important;
|
||||
}
|
||||
|
||||
.ant-table-tbody
|
||||
> tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)
|
||||
> td {
|
||||
background: #f6f9fd;
|
||||
}
|
||||
.tableBox {
|
||||
.pa {
|
||||
// left: 0;
|
||||
margin-top: 15px;
|
||||
width: 100%;
|
||||
// height: 20px;
|
||||
// background-color: red;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
// position: absolute;
|
||||
// bottom: 20px;
|
||||
.ant-pagination-prev,
|
||||
.ant-pagination-next,
|
||||
.ant-pagination-item,
|
||||
.ant-pagination-options {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.btnn {
|
||||
height: 72px;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
background-color: #fff;
|
||||
left: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.16);
|
||||
.btn1 {
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
border: 1px solid #4ea6ff;
|
||||
border-radius: 8px;
|
||||
color: #4ea6ff;
|
||||
background-color: #fff;
|
||||
cursor: pointer;
|
||||
}
|
||||
.btn2 {
|
||||
cursor: pointer;
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
background: #409eff;
|
||||
border-radius: 8px;
|
||||
border: 0;
|
||||
margin-left: 15px;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
356
src/components/drawers/ExportScore.vue
Normal file
356
src/components/drawers/ExportScore.vue
Normal file
@@ -0,0 +1,356 @@
|
||||
<template>
|
||||
<a-drawer
|
||||
:visible="eScorevisible"
|
||||
class="drawerStyle ExportScore"
|
||||
placement="right"
|
||||
width="700px"
|
||||
@after-visible-change="afterVisibleChange"
|
||||
>
|
||||
<div class="drawerMain">
|
||||
<div class="header">
|
||||
<div class="headerTitle">导入成绩</div>
|
||||
<img
|
||||
style="width: 29px; height: 29px; cursor: pointer"
|
||||
src="../../assets/images/basicinfo/close.png"
|
||||
@click="closeDrawer"
|
||||
/>
|
||||
</div>
|
||||
<div class="main">
|
||||
<div class="minatitl">
|
||||
<div class="up1">请下载</div>
|
||||
<div class="up2">模板</div>
|
||||
<div class="up1">,按要求填写数据并导入</div>
|
||||
</div>
|
||||
<div class="upload">
|
||||
<div class="text">上传:</div>
|
||||
<div class="right">
|
||||
<div class="load">
|
||||
<div class="cloud"></div>
|
||||
<div class="tip">点击或将文件拖拽到此处上传</div>
|
||||
<div class="tipz">支持扩展名:.xls/.xlsx</div>
|
||||
</div>
|
||||
<div class="loadstate">
|
||||
<div class="loadborder">
|
||||
<div class="content">
|
||||
<div class="img"></div>
|
||||
<div class="timebox">
|
||||
<div class="timetop">
|
||||
<div class="tit">京东方商业模型.xls</div>
|
||||
<div class="stateloading">正在上传</div>
|
||||
</div>
|
||||
<div class="prog">
|
||||
<div class="inprogloading"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="curloading">
|
||||
<div class="cur">55%</div>
|
||||
<div class="cancel" style="margin-left: 20px">暂停</div>
|
||||
<div class="cancel" style="margin-left: 15px">取消</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="loadborder">
|
||||
<div class="content">
|
||||
<div class="img"></div>
|
||||
<div class="timebox">
|
||||
<div class="timetop">
|
||||
<div class="tit">京东方商业模型.xls</div>
|
||||
<div class="statedefeat">上传失败</div>
|
||||
</div>
|
||||
<div class="prog">
|
||||
<div class="inprogdefeat"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="curloading">
|
||||
<div class="cur">55%</div>
|
||||
<div class="cancel" style="margin-left: 20px">暂停</div>
|
||||
<div class="cancel" style="margin-left: 15px">取消</div>
|
||||
</div>
|
||||
<div class="defeat">下载失败数据</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="loadborder">
|
||||
<div class="content">
|
||||
<div class="img"></div>
|
||||
<div class="timebox">
|
||||
<div class="timetop">
|
||||
<div class="tit">京东方商业模型.xls</div>
|
||||
<div class="statesucce">上传成功</div>
|
||||
</div>
|
||||
<div class="prog">
|
||||
<div class="inprogsucce"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="curloading">
|
||||
<div class="cur">100%</div>
|
||||
<div class="cancel" style="margin-left: 20px">删除</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btnn">
|
||||
<button class="btn1">取消</button>
|
||||
<button class="btn2">确定</button>
|
||||
</div>
|
||||
</div>
|
||||
</a-drawer>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { reactive, toRefs } from "vue";
|
||||
export default {
|
||||
name: "EScore",
|
||||
props: {
|
||||
eScorevisible: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
setup(props, ctx) {
|
||||
const state = reactive({});
|
||||
const closeDrawer = () => {
|
||||
ctx.emit("update:eScorevisible", false);
|
||||
};
|
||||
|
||||
const afterVisibleChange = (bool) => {
|
||||
console.log("state", bool);
|
||||
};
|
||||
|
||||
return {
|
||||
...toRefs(state),
|
||||
afterVisibleChange,
|
||||
closeDrawer,
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.ExportScore {
|
||||
.drawerMain {
|
||||
min-width: 600px;
|
||||
margin: 0px 32px 0px 32px;
|
||||
overflow-x: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
.header {
|
||||
height: 73px;
|
||||
border-bottom: 1px solid #e8e8e8;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
// background-color: red;
|
||||
margin-bottom: 20px;
|
||||
flex-shrink: 0;
|
||||
.headerTitle {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
line-height: 25px;
|
||||
// margin-left: 24px;
|
||||
}
|
||||
}
|
||||
.main {
|
||||
overflow-y: auto;
|
||||
.minatitl {
|
||||
display: flex;
|
||||
.up1 {
|
||||
font-size: 16px;
|
||||
font-weight: 400;
|
||||
color: #333333;
|
||||
}
|
||||
.up2 {
|
||||
font-size: 16px;
|
||||
font-weight: 400;
|
||||
color: #388be1;
|
||||
margin-left: 4px;
|
||||
}
|
||||
}
|
||||
.upload {
|
||||
margin-top: 32px;
|
||||
display: flex;
|
||||
.text {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #333333;
|
||||
}
|
||||
.right {
|
||||
margin-left: 6px;
|
||||
.load {
|
||||
width: 500px;
|
||||
height: 176px;
|
||||
background: #f5f9fd;
|
||||
border-radius: 4px;
|
||||
// opacity: 0.3;
|
||||
border: 1px dashed #caddfd;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
margin-bottom: 20px;
|
||||
.cloud {
|
||||
margin-top: 52px;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
background-image: url(../../assets/images/basicinfo/cloud.png);
|
||||
}
|
||||
.tip {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #388be1;
|
||||
margin-top: 15px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.tipz {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #999999;
|
||||
margin-top: 10px;
|
||||
}
|
||||
}
|
||||
.loadstate {
|
||||
width: 500px;
|
||||
margin-bottom: 100px;
|
||||
|
||||
.loadborder {
|
||||
width: 500px;
|
||||
height: 173px;
|
||||
border-radius: 4px;
|
||||
border: 1px dashed #eaeaea;
|
||||
margin-bottom: 30px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.content {
|
||||
display: flex;
|
||||
margin-left: 20px;
|
||||
position: relative;
|
||||
.defeat {
|
||||
position: absolute;
|
||||
left: 46px;
|
||||
top: 38px;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: #ff7474;
|
||||
}
|
||||
.img {
|
||||
width: 30px;
|
||||
height: 34px;
|
||||
background-image: url(../../assets/images/basicinfo/exl.png);
|
||||
}
|
||||
.timebox {
|
||||
margin-left: 15px;
|
||||
margin-top: -5px;
|
||||
.timetop {
|
||||
display: flex;
|
||||
width: 262px;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 8px;
|
||||
.tit {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #333333;
|
||||
}
|
||||
.stateloading {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #388be1;
|
||||
}
|
||||
.statedefeat {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #ff7474;
|
||||
}
|
||||
.statesucce {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #35ae69;
|
||||
}
|
||||
}
|
||||
.prog {
|
||||
width: 262px;
|
||||
height: 5px;
|
||||
background: #eaf1fe;
|
||||
border-radius: 4px;
|
||||
.inprogloading {
|
||||
width: 55%;
|
||||
height: 5px;
|
||||
border-radius: 4px;
|
||||
|
||||
background: #388be1;
|
||||
}
|
||||
//下载失败条
|
||||
.inprogdefeat {
|
||||
width: 55%;
|
||||
height: 5px;
|
||||
border-radius: 4px;
|
||||
|
||||
background: #ff7474;
|
||||
}
|
||||
//下载成功条
|
||||
.inprogsucce {
|
||||
width: 100%;
|
||||
height: 5px;
|
||||
border-radius: 4px;
|
||||
|
||||
background: #57c887;
|
||||
}
|
||||
}
|
||||
}
|
||||
.curloading {
|
||||
margin-left: 15px;
|
||||
margin-top: 15px;
|
||||
display: flex;
|
||||
.cur {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #333333;
|
||||
}
|
||||
.cancel {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #387df7;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.btnn {
|
||||
height: 72px;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
background-color: #fff;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.16);
|
||||
.btn1 {
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
border: 1px solid #4ea6ff;
|
||||
border-radius: 8px;
|
||||
color: #4ea6ff;
|
||||
background-color: #fff;
|
||||
cursor: pointer;
|
||||
}
|
||||
.btn2 {
|
||||
cursor: pointer;
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
background: #4ea6ff;
|
||||
border-radius: 8px;
|
||||
border: 0;
|
||||
margin-left: 15px;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -117,10 +117,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="btnn">
|
||||
<button class="btn1">取消</button>
|
||||
<button class="btn1" @click="ckwork()">取消</button>
|
||||
<button class="btn2">确定</button>
|
||||
</div>
|
||||
|
||||
<a-modal
|
||||
:closable="closable"
|
||||
v-model:visible="showmodal"
|
||||
@@ -151,15 +150,21 @@
|
||||
</a-drawer>
|
||||
<!-- 录入成绩抽屉 -->
|
||||
<entry-scores v-model:Evisible="Evisible" />
|
||||
<!-- 查看作业抽屉 -->
|
||||
<CKWork v-model:CWvisible="CWvisible"/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { toRefs, reactive, onMounted, onUnmounted } from "vue";
|
||||
import CKWork from './CheckWork.vue'
|
||||
import EntryScores from "./EntryScores.vue";
|
||||
import * as api from "../../api/index";
|
||||
export default {
|
||||
name: "FaceManage",
|
||||
components: { EntryScores },
|
||||
components: {
|
||||
EntryScores,
|
||||
CKWork,
|
||||
},
|
||||
props: {
|
||||
Fvisible: {
|
||||
type: Boolean,
|
||||
@@ -178,6 +183,7 @@ export default {
|
||||
setup(props, ctx) {
|
||||
const state = reactive({
|
||||
Evisible: false, //录入成绩抽屉
|
||||
CWvisible: false, //查看作业抽屉
|
||||
name: "",
|
||||
showmodal: false, //勾选提示框
|
||||
closable: false, //modal右上角的关闭按钮
|
||||
@@ -208,6 +214,14 @@ export default {
|
||||
],
|
||||
tabledata: [],
|
||||
tablecolumns: [
|
||||
{
|
||||
title: "工号",
|
||||
dataIndex: "workNum",
|
||||
key: "workNum",
|
||||
width: 50,
|
||||
align: "left",
|
||||
className: "h head",
|
||||
},
|
||||
{
|
||||
title: "姓名",
|
||||
dataIndex: "userName",
|
||||
@@ -233,13 +247,21 @@ export default {
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "课程成绩",
|
||||
title: "作业成绩",
|
||||
dataIndex: "score",
|
||||
key: "score",
|
||||
width: 60,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "评分",
|
||||
dataIndex: "testscore",
|
||||
key: "testscore",
|
||||
width: 60,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "任务状态",
|
||||
dataIndex: "status",
|
||||
@@ -274,7 +296,7 @@ export default {
|
||||
<div
|
||||
class="studentopea1"
|
||||
onClick={() => {
|
||||
console.log('---------')
|
||||
state.CWvisible = true
|
||||
}}
|
||||
>
|
||||
查看作业
|
||||
@@ -414,8 +436,12 @@ export default {
|
||||
onUnmounted(() => {
|
||||
clearInterval(timer);
|
||||
});
|
||||
const ckwork = ()=> {
|
||||
state.CWvisible = true
|
||||
}
|
||||
return {
|
||||
...toRefs(state),
|
||||
ckwork,
|
||||
selectProjectName,
|
||||
check,
|
||||
closeDrawer,
|
||||
@@ -821,6 +847,26 @@ export default {
|
||||
background: #f6f9fd;
|
||||
}
|
||||
|
||||
.studentopea1 {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #387df7;
|
||||
line-height: 22px;
|
||||
padding-right: 8px;
|
||||
border-right: 1px solid #e9e9e9;
|
||||
cursor: pointer;
|
||||
}
|
||||
.studentopea2 {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #387df7;
|
||||
line-height: 22px;
|
||||
padding-right: 8px;
|
||||
padding-left: 8px;
|
||||
border-right: 1px solid #e9e9e9;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.pa {
|
||||
// left: 0;
|
||||
margin-top: 15px;
|
||||
|
||||
@@ -76,16 +76,16 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="btnss" style="margin-top: 20px">
|
||||
<div class="btn btn1" style="margin-right: 20px">
|
||||
<div class="btn btn1" style="margin-right: 20px" @click="signQR">
|
||||
<div class="wz">签到二维码</div>
|
||||
</div>
|
||||
<div class="btn btn1" style="margin-right: 20px" @click="showImpStu">
|
||||
<div class="img1"></div>
|
||||
<div class="wz" @click="showImpStu">导入学员</div>
|
||||
<div class="wz">导入学员</div>
|
||||
</div>
|
||||
<div class="btn btn2" @click="showCopyModal">
|
||||
<div class="wz">批量签到</div>
|
||||
</div>
|
||||
<div class="btn btn2" @click="showStopModal">
|
||||
<div class="wz" @click="showEntryScore">批量签退</div>
|
||||
</div>
|
||||
<div class="btn btn2">
|
||||
<div class="img2"></div>
|
||||
<div class="wz">导出数据</div>
|
||||
@@ -149,6 +149,8 @@
|
||||
<button class="btn2">确定</button>
|
||||
</div>
|
||||
</a-drawer>
|
||||
<!-- 二维码签到弹窗 -->
|
||||
<SignQR v-model:signQRvisible="signQRvisible"/>
|
||||
<!-- 导入学员抽屉 -->
|
||||
<imp-stu v-model:AddImpStuvisible="AddImpStuvisible" />
|
||||
<!-- 批量签到弹窗 -->
|
||||
@@ -181,44 +183,18 @@
|
||||
</div>
|
||||
</div>
|
||||
</a-modal>
|
||||
<!-- 批量签退弹窗 -->
|
||||
<a-modal
|
||||
v-model:visible="stopModal"
|
||||
:footer="null"
|
||||
:closable="closeStop"
|
||||
wrapClassName="CopyModal"
|
||||
centered="true"
|
||||
>
|
||||
<div class="delete">
|
||||
<div class="del_header"></div>
|
||||
<div class="del_main">
|
||||
<div class="header">
|
||||
<div class="icon"></div>
|
||||
<span>提示</span>
|
||||
<div class="close_exit" @click="closeStopModal"></div>
|
||||
</div>
|
||||
<div class="body">
|
||||
<span>您确定要批量签退吗</span>
|
||||
</div>
|
||||
<div class="del_btnbox">
|
||||
<div class="del_btn btn1">
|
||||
<div class="btnText" @click="delete_exit">取消</div>
|
||||
</div>
|
||||
<div class="del_btn btn2">
|
||||
<div class="btnText" @click="delete_exit">确定</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a-modal>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { toRefs, reactive } from "vue";
|
||||
import ImpStu from "../../components/drawers/AddLevelImportStu";
|
||||
import SignQR from "./SignQR.vue"
|
||||
export default {
|
||||
name: "FaceManage",
|
||||
components: { ImpStu },
|
||||
components: {
|
||||
ImpStu,
|
||||
SignQR,
|
||||
},
|
||||
props: {
|
||||
FSvisible: {
|
||||
type: Boolean,
|
||||
@@ -234,6 +210,7 @@ export default {
|
||||
closeCopy: false, //签到弹窗关闭图标
|
||||
stopModal: false, //签退弹窗
|
||||
closeStop: false, //签退弹窗关闭图标
|
||||
signQRvisible:false, //二维码弹窗
|
||||
name: null,
|
||||
showmodal: false, //勾选提示框
|
||||
closable: false, //modal右上角的关闭按钮
|
||||
@@ -424,18 +401,14 @@ export default {
|
||||
const closeCopyModal = () => {
|
||||
state.copyModal = false;
|
||||
};
|
||||
const showStopModal = () => {
|
||||
state.stopModal = true;
|
||||
};
|
||||
const closeStopModal = () => {
|
||||
state.stopModal = false;
|
||||
};
|
||||
const showEntryScore = () => {
|
||||
state.Evisible = true;
|
||||
};
|
||||
const signQR = ()=> {
|
||||
state.signQRvisible = true
|
||||
}
|
||||
const onSelectChange = (selectedRowKeys) => {
|
||||
console.log("selectedRowKeys changed: ", selectedRowKeys);
|
||||
|
||||
state.selectedRowKeys = selectedRowKeys;
|
||||
};
|
||||
|
||||
@@ -578,14 +551,13 @@ export default {
|
||||
selectProjectName2,
|
||||
closeDrawer,
|
||||
onSelectChange,
|
||||
showEntryScore,
|
||||
tableDataFunc,
|
||||
getTableData,
|
||||
showImpStu,
|
||||
showCopyModal,
|
||||
closeCopyModal,
|
||||
showStopModal,
|
||||
closeStopModal,
|
||||
signQR,
|
||||
};
|
||||
},
|
||||
};
|
||||
@@ -746,6 +718,7 @@ export default {
|
||||
height: 100%;
|
||||
// background-color: #bfa;
|
||||
// overflow-y: auto;
|
||||
padding-right: 10px;
|
||||
.titl {
|
||||
display: flex;
|
||||
.endtime {
|
||||
|
||||
171
src/components/drawers/SignQR.vue
Normal file
171
src/components/drawers/SignQR.vue
Normal file
@@ -0,0 +1,171 @@
|
||||
<template>
|
||||
<a-modal
|
||||
:visible="signQRvisible"
|
||||
:footer="null"
|
||||
:closable="closeCopy"
|
||||
wrapClassName="signQRModal"
|
||||
centered="true"
|
||||
@cancel="closeModal"
|
||||
>
|
||||
<div class="delete">
|
||||
<div class="del_header"></div>
|
||||
<div class="del_main">
|
||||
<div class="header">
|
||||
<div class="icon"></div>
|
||||
<span>签到二维码</span>
|
||||
<div class="close_exit" @click="closeModal"></div>
|
||||
</div>
|
||||
<div class="body">
|
||||
<div class="tit">{{"时间管理面授课程"}}</div>
|
||||
<div><img src="../../assets/images/taskpage/erweima.png" /></div>
|
||||
</div>
|
||||
<div class="footerr">
|
||||
<div class="onload">下载二维码</div>
|
||||
<div class="onloadpx">200*200</div>
|
||||
<div class="onloadpx">400*400</div>
|
||||
<div class="onloadpx">800*800</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a-modal>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { reactive,toRefs } from '@vue/reactivity';
|
||||
export default {
|
||||
name:"SignQR",
|
||||
props:{
|
||||
signQRvisible:{
|
||||
type:Boolean,
|
||||
default:false,
|
||||
},
|
||||
},
|
||||
setup(props,ctx){
|
||||
const state = reactive({
|
||||
signQRvisible:false,
|
||||
closeCopy: false, //二维码关闭图标
|
||||
})
|
||||
const closeModal = ()=> {
|
||||
ctx.emit("update:signQRvisible",false)
|
||||
}
|
||||
const afterVisibleChange = (bool) => {
|
||||
console.log(bool);
|
||||
}
|
||||
return{
|
||||
...toRefs(state),
|
||||
closeModal,
|
||||
afterVisibleChange,
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style lang="scss">
|
||||
.signQRModal {
|
||||
.ant-modal {
|
||||
width: 532px !important;
|
||||
height: 428px !important;
|
||||
|
||||
.ant-modal-content {
|
||||
width: 532px !important;
|
||||
height: 428px !important;
|
||||
|
||||
.ant-modal-body {
|
||||
width: 532px !important;
|
||||
height: 428px !important;
|
||||
padding: 0 !important;
|
||||
|
||||
.delete {
|
||||
z-index: 999;
|
||||
width: 532px;
|
||||
height: 428px;
|
||||
background: #ffffff;
|
||||
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21);
|
||||
border-radius: 4px;
|
||||
|
||||
// position: absolute;
|
||||
// left: 50%;
|
||||
// top: 10%;
|
||||
// transform: translate(-50%, -50%);
|
||||
.del_header {
|
||||
position: absolute;
|
||||
width: calc(100%);
|
||||
height: 68px;
|
||||
background: linear-gradient(
|
||||
rgba(78, 166, 255, 0.2) 0%,
|
||||
rgba(78, 166, 255, 0) 100%
|
||||
);
|
||||
}
|
||||
|
||||
.del_main {
|
||||
width: 100%;
|
||||
position: relative;
|
||||
|
||||
.header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding-top: 20px;
|
||||
padding-left: 26px;
|
||||
font-size: 16px;
|
||||
|
||||
.icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
margin-right: 10px;
|
||||
background-image: url(@/assets/images/coursewareManage/QR.png);
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
||||
.close_exit {
|
||||
position: absolute;
|
||||
right: 42px;
|
||||
cursor: pointer;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background-image: url(@/assets/images/coursewareManage/close.png);
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
}
|
||||
.body {
|
||||
width: 100%;
|
||||
margin: 20px auto 36px auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
.tit{
|
||||
margin-bottom: 15px;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
|
||||
.footerr {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
.onload {
|
||||
color: rgba(51, 51, 51, 1);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.onloadpx {
|
||||
width: 80px;
|
||||
height: 32px;
|
||||
border: 1px solid rgba(56, 125, 247, 1);
|
||||
border-radius: 4px;
|
||||
color: rgba(56, 125, 247, 1);
|
||||
margin-left: 20px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -74,7 +74,7 @@
|
||||
<div class="tab" style="margin-top: 20px; margin-bottom: 100px">
|
||||
<a-table
|
||||
style="border: 1px solid #f2f6fe"
|
||||
:columns="tablecolumns"
|
||||
:columns="tableDataFunc()"
|
||||
:data-source="tabledata"
|
||||
:loading="tableDataTotal === -1 ? true : false"
|
||||
expandRowByClick="true"
|
||||
@@ -128,6 +128,10 @@ export default {
|
||||
type: Number,
|
||||
default: null,
|
||||
},
|
||||
itemsType:{
|
||||
type: Number,
|
||||
default:null,
|
||||
}
|
||||
},
|
||||
|
||||
setup(props, ctx) {
|
||||
@@ -137,7 +141,7 @@ export default {
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
currentPage: 1,
|
||||
tableDataTotal: 100,
|
||||
tableDataTotal: 0,
|
||||
projectName: "",
|
||||
projectNameList: [
|
||||
{
|
||||
@@ -156,61 +160,177 @@ export default {
|
||||
label: "已完成",
|
||||
},
|
||||
],
|
||||
tabledata: [
|
||||
// {
|
||||
// key: 1,
|
||||
// name: "哈哈",
|
||||
// bum: "产品部",
|
||||
// gangw: "产品经理",
|
||||
// comp: "-",
|
||||
// score: "-",
|
||||
// time: "-",
|
||||
// state: "未完成",
|
||||
// },
|
||||
],
|
||||
tablecolumns: [
|
||||
{
|
||||
title: "姓名",
|
||||
dataIndex: "userName",
|
||||
key: "userName",
|
||||
width: 50,
|
||||
align: "left",
|
||||
className: "h head",
|
||||
},
|
||||
{
|
||||
title: "所在部门",
|
||||
dataIndex: "deptName",
|
||||
key: "userName",
|
||||
width: 60,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "所在岗位",
|
||||
dataIndex: "jobName",
|
||||
key: "jobName",
|
||||
width: 60,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "课程成绩",
|
||||
dataIndex: "score",
|
||||
key: "score",
|
||||
width: 60,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "任务状态",
|
||||
dataIndex: "status",
|
||||
key: "status",
|
||||
width: 60,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
],
|
||||
tabledata: [],
|
||||
});
|
||||
const tableDataFunc = () => {
|
||||
if(props.itemsType == 10){
|
||||
const columns = [
|
||||
{
|
||||
title: "工号",
|
||||
dataIndex: "workNum",
|
||||
key: "workNum",
|
||||
width: 50,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "姓名",
|
||||
dataIndex: "name",
|
||||
key: "name",
|
||||
width: 50,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "所在部门",
|
||||
dataIndex: "deptName",
|
||||
key: "deptName",
|
||||
width: 50,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "所在岗位",
|
||||
dataIndex: "jobName",
|
||||
key: "jobName",
|
||||
width: 50,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "提交时间",
|
||||
dataIndex: "cur",
|
||||
key: "cur",
|
||||
width: 110,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "任务状态",
|
||||
dataIndex: "state",
|
||||
key: "state",
|
||||
width: 50,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "PDF状态",
|
||||
dataIndex: "pdfstate",
|
||||
key: "pdfstate",
|
||||
width: 50,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
];
|
||||
return columns;
|
||||
} else if(props.itemsType == 5){
|
||||
const columns = [
|
||||
{
|
||||
title: "工号",
|
||||
dataIndex: "workNum",
|
||||
key: "workNum",
|
||||
width: 50,
|
||||
align: "center",
|
||||
className: "h head",
|
||||
},
|
||||
{
|
||||
title: "姓名",
|
||||
dataIndex: "userName",
|
||||
key: "userName",
|
||||
width: 50,
|
||||
align: "left",
|
||||
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: "testNum",
|
||||
key: "testNum",
|
||||
width: 60,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "成绩",
|
||||
dataIndex: "score",
|
||||
key: "score",
|
||||
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",
|
||||
},
|
||||
{
|
||||
title: "操作",
|
||||
dataIndex: "operation",
|
||||
key: "operation",
|
||||
width: 60,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
]
|
||||
return columns;
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
//考试、测评管理列表操作
|
||||
const ListOpera = () => {
|
||||
let arr = state.tabledata;
|
||||
console.log(arr,'-=-=-=-=-=-=-=-=--=-==----=-=-=-');
|
||||
arr.map((value) => {
|
||||
value.operation = (
|
||||
<div
|
||||
style={{
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
justifyContent: "center",
|
||||
}}
|
||||
>
|
||||
<div
|
||||
class="operation"
|
||||
onClick={() => {
|
||||
console.log(state.tabledata,'++++++++++++');
|
||||
}}
|
||||
>
|
||||
查看
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
});
|
||||
state.tabledata = arr;
|
||||
console.log(state.tabledata,'-----------');
|
||||
};
|
||||
ListOpera();
|
||||
const selectProjectName = (value, index) => {
|
||||
console.log("value", value, index);
|
||||
state.projectName = value;
|
||||
@@ -291,8 +411,9 @@ export default {
|
||||
let timer;
|
||||
onMounted(() => {
|
||||
setTimeout(() => {
|
||||
// getManageList();
|
||||
getManageList();
|
||||
}, 1000);
|
||||
|
||||
timer = setInterval(() => {
|
||||
state.open = false;
|
||||
}, 3000);
|
||||
@@ -304,6 +425,7 @@ export default {
|
||||
...toRefs(state),
|
||||
selectProjectName,
|
||||
closeDrawer,
|
||||
tableDataFunc,
|
||||
showopen,
|
||||
onMounted,
|
||||
onUnmounted,
|
||||
@@ -317,26 +439,10 @@ export default {
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
// .drawerStyle {
|
||||
// .ant-drawer-content-wrapper {
|
||||
// // max-width: 1000px;
|
||||
// .ant-drawer-header {
|
||||
// display: none !important;
|
||||
// }
|
||||
// .ant-drawer-body {
|
||||
// padding: 0;
|
||||
// }
|
||||
// }
|
||||
|
||||
// }
|
||||
//作业管理弹窗
|
||||
|
||||
//作业管理弹窗
|
||||
.TestManage {
|
||||
.drawerMain {
|
||||
min-width: 520px;
|
||||
margin: 0px 32px 0px 32px;
|
||||
// overflow-x: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
@@ -363,20 +469,17 @@ export default {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
// background-color: red;
|
||||
margin-bottom: 20px;
|
||||
.headerTitle {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
line-height: 25px;
|
||||
// margin-left: 24px;
|
||||
}
|
||||
}
|
||||
.main {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
// background-color: #bfa;
|
||||
overflow-y: auto;
|
||||
padding-right: 10px;
|
||||
.endtime {
|
||||
@@ -497,15 +600,10 @@ export default {
|
||||
}
|
||||
.tableBox {
|
||||
.pa {
|
||||
// left: 0;
|
||||
margin-top: 15px;
|
||||
width: 100%;
|
||||
// height: 20px;
|
||||
// background-color: red;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
// position: absolute;
|
||||
// bottom: 20px;
|
||||
.ant-pagination-prev,
|
||||
.ant-pagination-next,
|
||||
.ant-pagination-item,
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
<div class="tab" style="margin-top: 20px; margin-bottom: 100px">
|
||||
<a-table
|
||||
style="border: 1px solid #f2f6fe"
|
||||
:columns="tablecolumns"
|
||||
:columns="tableDataFunc()"
|
||||
:data-source="tabledata"
|
||||
:loading="tableDataTotal === -1 ? true : false"
|
||||
expandRowByClick="true"
|
||||
@@ -95,22 +95,27 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="btnn">
|
||||
<button class="btn1">取消</button>
|
||||
<button class="btn1" @click="test()">取消</button>
|
||||
<button class="btn2">确定</button>
|
||||
</div>
|
||||
<div class="noticebox" v-show="open">
|
||||
<div><img src="../../assets/images/taskpage/check.png" /></div>
|
||||
<div class="notext">催促学员成功</div>
|
||||
</div>
|
||||
<CVote v-model:CVvisible="CVvisible"/>
|
||||
</div>
|
||||
</a-drawer>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { toRefs, reactive, onMounted, onUnmounted } from "vue";
|
||||
import CVote from "./CheckVote.vue"
|
||||
import * as api from "../../api/index";
|
||||
export default {
|
||||
name: "TimeManage",
|
||||
components:{
|
||||
CVote,
|
||||
},
|
||||
props: {
|
||||
Tvisible: {
|
||||
type: Boolean,
|
||||
@@ -124,17 +129,22 @@ export default {
|
||||
type: Number,
|
||||
default: null,
|
||||
},
|
||||
itemsType:{
|
||||
type:Number,
|
||||
default:null,
|
||||
}
|
||||
},
|
||||
|
||||
setup(props, ctx) {
|
||||
const state = reactive({
|
||||
visible: props.Tvisible,
|
||||
CVvisible:false, //查看投票抽屉
|
||||
name: "",
|
||||
open: false,
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
currentPage: 1,
|
||||
tableDataTotal: 100,
|
||||
tableDataTotal: 0,
|
||||
projectName: "",
|
||||
projectNameList: [
|
||||
{
|
||||
@@ -153,59 +163,158 @@ export default {
|
||||
label: "已完成",
|
||||
},
|
||||
],
|
||||
tabledata: [
|
||||
// {
|
||||
// key: 1,
|
||||
// userName: "哈哈",
|
||||
// deptName: "产品部",
|
||||
// gangw: "产品经理",
|
||||
// time: "-",
|
||||
// state: "未完成",
|
||||
// },
|
||||
],
|
||||
tablecolumns: [
|
||||
{
|
||||
title: "姓名",
|
||||
dataIndex: "userName",
|
||||
key: "userName",
|
||||
width: 50,
|
||||
align: "left",
|
||||
className: "h head",
|
||||
},
|
||||
{
|
||||
title: "所在部门",
|
||||
dataIndex: "deptName",
|
||||
key: "userName",
|
||||
width: 60,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "所在岗位",
|
||||
dataIndex: "jobName",
|
||||
key: "jobName",
|
||||
width: 60,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "课程成绩",
|
||||
dataIndex: "score",
|
||||
key: "score",
|
||||
width: 60,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "任务状态",
|
||||
dataIndex: "status",
|
||||
key: "status",
|
||||
width: 60,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
],
|
||||
tabledata: [],
|
||||
});
|
||||
const tableDataFunc = ()=> {
|
||||
if(
|
||||
props.itemsType == 1 ||
|
||||
props.itemsType == 3 ||
|
||||
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: "userName",
|
||||
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;
|
||||
} else if(props.itemsType ==12 ){
|
||||
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: "userName",
|
||||
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",
|
||||
},
|
||||
{
|
||||
title: "操作",
|
||||
dataIndex: "operation",
|
||||
key: "operation",
|
||||
width: 60,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
]
|
||||
return columns;
|
||||
}
|
||||
};
|
||||
//在线投票等管理列表操作
|
||||
const ListOpera = () => {
|
||||
let arr = state.tabledata;
|
||||
console.log(arr,'-=-=-=-=-=-=-=-=--=-==----=-=-=-');
|
||||
arr.map((value) => {
|
||||
value.operation = (
|
||||
<div
|
||||
style={{
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
justifyContent: "center",
|
||||
}}
|
||||
>
|
||||
<div
|
||||
class="operation"
|
||||
onClick={() => {
|
||||
state.CVvisible = true;
|
||||
}}
|
||||
>
|
||||
查看
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
});
|
||||
state.tabledata = arr;
|
||||
console.log(state.tabledata,'-----------');
|
||||
};
|
||||
ListOpera();
|
||||
const selectProjectName = (value, index) => {
|
||||
console.log("value", value, index);
|
||||
state.projectName = value;
|
||||
@@ -282,7 +391,9 @@ export default {
|
||||
state.tabledata = [];
|
||||
getManageList();
|
||||
};
|
||||
|
||||
const test = ()=> {
|
||||
state.CVvisible = true
|
||||
}
|
||||
let timer;
|
||||
onMounted(() => {
|
||||
setTimeout(() => {
|
||||
@@ -296,9 +407,11 @@ export default {
|
||||
clearInterval(timer);
|
||||
});
|
||||
return {
|
||||
test,
|
||||
...toRefs(state),
|
||||
selectProjectName,
|
||||
closeDrawer,
|
||||
tableDataFunc,
|
||||
showopen,
|
||||
onMounted,
|
||||
onUnmounted,
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
@click="closeDrawer"
|
||||
/>
|
||||
</div>
|
||||
<div class="main">
|
||||
<div class="main" style="padding-right:10px">
|
||||
<div class="endtime">起止时间:2022-07-21 14:00 ~ 2022-7-30 14:00</div>
|
||||
<div class="search">
|
||||
<div class="sealeft">
|
||||
@@ -62,10 +62,10 @@
|
||||
<div class="img1"></div>
|
||||
<div class="wz">导出数据</div>
|
||||
</div>
|
||||
<div class="btn btn2" @click="showModal">
|
||||
<div class="btn btn2" @click="showEHWorkModal" style="margin-right:20px">
|
||||
<div class="wz">导出作业</div>
|
||||
</div>
|
||||
<div class="btn btn2" @click="showModal">
|
||||
<div class="btn btn2" @click="showEScoreModal">
|
||||
<div class="wz">导入成绩</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -101,29 +101,10 @@
|
||||
<button class="btn2">确定</button>
|
||||
</div>
|
||||
|
||||
<a-modal
|
||||
v-model:visible="visible"
|
||||
:closable="close"
|
||||
:footer="null"
|
||||
wrapClassName="WorkManage"
|
||||
centered="true"
|
||||
>
|
||||
<div class="header">
|
||||
<div class="inheader">
|
||||
<div class="left">提示</div>
|
||||
<div class="right" @click="closeModal"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main">
|
||||
<div class="check"></div>
|
||||
<div class="text">作业导出完成,请在下载中心查看</div>
|
||||
<div class="btn">
|
||||
<button class="btn1 sabtn" @click="closeModal">取消</button>
|
||||
<button class="btn2 sabtn">查看</button>
|
||||
</div>
|
||||
</div>
|
||||
</a-modal>
|
||||
|
||||
<!-- 导出作业弹窗 -->
|
||||
<EHWork v-model:exportHWorkvisible="exportHWorkvisible"/>
|
||||
<!-- 导出成绩抽屉 -->
|
||||
<EScore v-model:eScorevisible="eScorevisible"/>
|
||||
<!-- 作业详情抽屉 -->
|
||||
<work-detail v-model:WDvisible="WDvisible" />
|
||||
</div>
|
||||
@@ -132,11 +113,17 @@
|
||||
|
||||
<script>
|
||||
import { toRefs, reactive, onMounted } from "vue";
|
||||
import EHWork from "./ExportHWork.vue"
|
||||
import EScore from "./ExportScore.vue"
|
||||
import WorkDetail from "../drawers/WorkDetail.vue";
|
||||
import * as api from "../../api/index";
|
||||
export default {
|
||||
name: "WorkManage",
|
||||
components: { WorkDetail },
|
||||
components: {
|
||||
WorkDetail,
|
||||
EHWork,
|
||||
EScore,
|
||||
},
|
||||
props: {
|
||||
Wvisible: {
|
||||
type: Boolean,
|
||||
@@ -155,8 +142,8 @@ export default {
|
||||
setup(props, ctx) {
|
||||
const state = reactive({
|
||||
name: null,
|
||||
visible: false, //导出数据弹窗
|
||||
close: false, //导出弹窗的关闭按钮
|
||||
exportHWorkvisible:false, //导出作业弹窗
|
||||
eScorevisible:false, //导入成绩抽屉
|
||||
WDvisible: false, //作业详情
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
@@ -180,18 +167,16 @@ export default {
|
||||
label: "已完成",
|
||||
},
|
||||
],
|
||||
tabledata: [
|
||||
// {
|
||||
// key: 1,
|
||||
// userName: "哈哈",
|
||||
// deptName: "产品部",
|
||||
// jobName: "产品经理",
|
||||
// comp: "好好学习",
|
||||
// time: "-",
|
||||
// state: "未完成",
|
||||
// },
|
||||
],
|
||||
tabledata: [],
|
||||
tablecolumns: [
|
||||
{
|
||||
title: "工号",
|
||||
dataIndex: "workNum",
|
||||
key: "workNum",
|
||||
width: 50,
|
||||
align: "left",
|
||||
className: "h head",
|
||||
},
|
||||
{
|
||||
title: "姓名",
|
||||
dataIndex: "userName",
|
||||
@@ -217,13 +202,21 @@ export default {
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "课程成绩",
|
||||
title: "作业成绩",
|
||||
dataIndex: "score",
|
||||
key: "score",
|
||||
width: 60,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "评分",
|
||||
dataIndex: "testscore",
|
||||
key: "testscore",
|
||||
width: 60,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "任务状态",
|
||||
dataIndex: "status",
|
||||
@@ -232,8 +225,44 @@ export default {
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "操作",
|
||||
dataIndex: "operation",
|
||||
key: "operation",
|
||||
width: 100,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
],
|
||||
});
|
||||
//作业管理列表操作
|
||||
const ListOpera = () => {
|
||||
let arr = state.tabledata;
|
||||
console.log(arr,'-=-=-=-=-=-=-=-=--=-==----=-=-=-');
|
||||
arr.map((value) => {
|
||||
value.operation = (
|
||||
<div
|
||||
style={{
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
justifyContent: "center",
|
||||
}}
|
||||
>
|
||||
<div
|
||||
class="operation"
|
||||
onClick={() => {
|
||||
console.log(state.tabledata,'++++++++++++');
|
||||
}}
|
||||
>
|
||||
查看
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
});
|
||||
state.tabledata = arr;
|
||||
console.log(state.tabledata,'-----------');
|
||||
};
|
||||
ListOpera();
|
||||
const selectProjectName = (value, index) => {
|
||||
console.log("value", value, index);
|
||||
state.projectName = value;
|
||||
@@ -241,15 +270,15 @@ export default {
|
||||
const closeDrawer = () => {
|
||||
ctx.emit("update:Wvisible", false);
|
||||
};
|
||||
const showModal = () => {
|
||||
state.visible = true;
|
||||
};
|
||||
const closeModal = () => {
|
||||
state.visible = false;
|
||||
const showEHWorkModal = () => {
|
||||
state.exportHWorkvisible = true;
|
||||
};
|
||||
const showWorkDetail = () => {
|
||||
state.WDvisible = true;
|
||||
};
|
||||
const showEScoreModal = ()=> {
|
||||
state.eScorevisible = true;
|
||||
}
|
||||
const onChange = (pageNumber) => {
|
||||
console.log("Page: ", pageNumber);
|
||||
};
|
||||
@@ -326,8 +355,8 @@ export default {
|
||||
...toRefs(state),
|
||||
selectProjectName,
|
||||
closeDrawer,
|
||||
showModal,
|
||||
closeModal,
|
||||
showEHWorkModal,
|
||||
showEScoreModal,
|
||||
showWorkDetail,
|
||||
onChange,
|
||||
getManageList,
|
||||
@@ -339,19 +368,6 @@ export default {
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
// .drawerStyle {
|
||||
// .ant-drawer-content-wrapper {
|
||||
// // max-width: 1000px;
|
||||
// .ant-drawer-header {
|
||||
// display: none !important;
|
||||
// }
|
||||
// .ant-drawer-body {
|
||||
// padding: 0;
|
||||
// }
|
||||
// }
|
||||
|
||||
// }
|
||||
//作业管理弹窗
|
||||
.WorkManage {
|
||||
.ant-modal {
|
||||
width: 473px;
|
||||
@@ -400,13 +416,10 @@ export default {
|
||||
}
|
||||
|
||||
.main {
|
||||
// background-color: red;
|
||||
width: 100%;
|
||||
// height: 100%;
|
||||
margin-top: 32px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
// justify-content: center;
|
||||
align-items: center;
|
||||
overflow-y: auto;
|
||||
padding-right: 10px;
|
||||
@@ -453,198 +466,5 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
//作业管理弹窗
|
||||
.WorkManage {
|
||||
.drawerMain {
|
||||
min-width: 550px;
|
||||
margin: 0px 32px 0px 32px;
|
||||
overflow-x: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
.header {
|
||||
height: 73px;
|
||||
border-bottom: 1px solid #e8e8e8;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
// background-color: red;
|
||||
margin-bottom: 20px;
|
||||
.headerTitle {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
line-height: 25px;
|
||||
// margin-left: 24px;
|
||||
}
|
||||
}
|
||||
.main {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
// margin-bottom: 30px;
|
||||
// background-color: #bfa;
|
||||
overflow-y: auto;
|
||||
.endtime {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
color: #333333;
|
||||
}
|
||||
.search {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 20px;
|
||||
justify-content: space-between;
|
||||
|
||||
.sealeft {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
.namecon {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
margin-bottom: 10px;
|
||||
.name {
|
||||
margin-top: 8px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
}
|
||||
.btns {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
|
||||
.btn {
|
||||
cursor: pointer;
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
.img1 {
|
||||
width: 15px;
|
||||
height: 17px;
|
||||
background-image: url(../../assets/images/courseManage/search0.png);
|
||||
background-size: 100% 100%;
|
||||
margin-right: 7px;
|
||||
}
|
||||
.img2 {
|
||||
width: 16px;
|
||||
height: 18px;
|
||||
background-image: url(../../assets/images/courseManage/reset1.png);
|
||||
background-size: 100% 100%;
|
||||
margin-right: 7px;
|
||||
}
|
||||
}
|
||||
|
||||
.btn1 {
|
||||
background: #409eff;
|
||||
|
||||
color: #ffffff;
|
||||
}
|
||||
.btn2 {
|
||||
background: #ffffff;
|
||||
|
||||
color: #388be1;
|
||||
border: 1px solid #388be1;
|
||||
}
|
||||
}
|
||||
}
|
||||
.btnss {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
|
||||
.btn {
|
||||
cursor: pointer;
|
||||
width: 130px;
|
||||
height: 40px;
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
.img1 {
|
||||
width: 17px;
|
||||
height: 16px;
|
||||
background-image: url(../../assets/images/coursewareManage/export1.png);
|
||||
background-size: 100% 100%;
|
||||
margin-right: 7px;
|
||||
}
|
||||
}
|
||||
|
||||
.btn1 {
|
||||
background: #409eff;
|
||||
|
||||
color: #ffffff;
|
||||
}
|
||||
.btn2 {
|
||||
background: #ffffff;
|
||||
|
||||
color: #388be1;
|
||||
border: 1px solid #388be1;
|
||||
}
|
||||
}
|
||||
.tab {
|
||||
th.h {
|
||||
background-color: #eff4fc !important;
|
||||
}
|
||||
|
||||
.ant-table-tbody
|
||||
> tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)
|
||||
> td {
|
||||
background: #f6f9fd;
|
||||
}
|
||||
.tableBox {
|
||||
.pa {
|
||||
// left: 0;
|
||||
margin-top: 15px;
|
||||
width: 100%;
|
||||
// height: 20px;
|
||||
// background-color: red;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
// position: absolute;
|
||||
// bottom: 20px;
|
||||
.ant-pagination-prev,
|
||||
.ant-pagination-next,
|
||||
.ant-pagination-item,
|
||||
.ant-pagination-options {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.btnn {
|
||||
height: 72px;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
background-color: #fff;
|
||||
left: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.16);
|
||||
.btn1 {
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
border: 1px solid #4ea6ff;
|
||||
border-radius: 8px;
|
||||
color: #4ea6ff;
|
||||
background-color: #fff;
|
||||
cursor: pointer;
|
||||
}
|
||||
.btn2 {
|
||||
cursor: pointer;
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
background: #409eff;
|
||||
border-radius: 8px;
|
||||
border: 0;
|
||||
margin-left: 15px;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
@@ -67,9 +67,6 @@
|
||||
{{ element.name }}
|
||||
</div>
|
||||
</template>
|
||||
<!-- <template #title>
|
||||
<span>关卡说明</span>
|
||||
</template> -->
|
||||
<div class="nname">
|
||||
{{ element.name }}
|
||||
</div>
|
||||
@@ -450,7 +447,7 @@
|
||||
</div>
|
||||
<div class="lin"></div>
|
||||
</div>
|
||||
<div class="item" @click="showDrawerAddVote">
|
||||
<div class="item" @click="showDrawerAddProj">
|
||||
<div class="itcon">
|
||||
<div class="img">
|
||||
<img
|
||||
@@ -684,7 +681,7 @@
|
||||
</div>
|
||||
<div class="draw" style="position: relative">
|
||||
<a-drawer
|
||||
v-model:visible="visible"
|
||||
v-model:visible="addprojvisible"
|
||||
class="drawerStyle ProjectDrawer"
|
||||
title="关联项目"
|
||||
placement="right"
|
||||
@@ -697,7 +694,7 @@
|
||||
<img
|
||||
style="width: 29px; height: 29px; cursor: pointer"
|
||||
src="../../assets/images/basicinfo/close.png"
|
||||
@click="closeDrawer"
|
||||
@click="leaveProjDrawer"
|
||||
/>
|
||||
</div>
|
||||
<div class="drawerbox">
|
||||
@@ -712,8 +709,8 @@
|
||||
</a-table>
|
||||
</div>
|
||||
<div class="btnn">
|
||||
<button @click="showDrawer" class="btn1">取消</button>
|
||||
<button @click="showDrawer" class="btn2">确定</button>
|
||||
<button @click="leaveProjDrawer" class="btn1">取消</button>
|
||||
<button @click="updateTask" class="btn2">确定</button>
|
||||
</div>
|
||||
</div>
|
||||
</a-drawer>
|
||||
@@ -984,7 +981,7 @@ import { storage } from "../../api/storage";
|
||||
import { deleteStudyTask } from "../../api/indexStudy";
|
||||
import draggable from "vuedraggable";
|
||||
import { editTask } from "../../api/indexTaskadd";
|
||||
import * as apiProj from "../../api/indexInvist.js";
|
||||
import * as apiProj from "../../api/index.js";
|
||||
import { RouterEditTask } from "@/api/indexTask";
|
||||
import dayjs from "dayjs";
|
||||
import { toDate } from "../../api/method";
|
||||
@@ -1325,7 +1322,6 @@ export default {
|
||||
//关闭项目抽屉
|
||||
const leaveProjDrawer = () => {
|
||||
state.addprojvisible = false;
|
||||
state.isLevel = false;
|
||||
};
|
||||
//在线抽屉
|
||||
const showDrawerAddOnline = (id,eleId)=>{
|
||||
@@ -1935,22 +1931,25 @@ export default {
|
||||
//获取全部项目信息接口
|
||||
const getAllProjText = () => {
|
||||
apiProj
|
||||
.queryAssessmentDetailList({
|
||||
assessmentName: "",
|
||||
pageNo: state.currentPage,
|
||||
pageSize: state.pageSize,
|
||||
.getProjectList({
|
||||
"beginTime": 0,
|
||||
"createName": "",
|
||||
"endTime": 0,
|
||||
"manager": "",
|
||||
"name": "",
|
||||
"pageNo": 0,
|
||||
"pageSize": 0,
|
||||
"status": 0
|
||||
})
|
||||
.then((res) => {
|
||||
let arr = res.data.data.rows;
|
||||
if (res.status === 200) {
|
||||
getTableDate(arr);
|
||||
console.log('---------------项目信息---------------------------');
|
||||
let arr = res.data.data.rows;
|
||||
console.log(arr,'-------------------------------');
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("获取全部项目信息接口失败", err);
|
||||
console.log('+++++++++++++++++++++++++++++++++++++++++++++++');
|
||||
// state.createLoading = false;
|
||||
});
|
||||
};
|
||||
const updateTask = () => {
|
||||
@@ -2054,10 +2053,6 @@ export default {
|
||||
background: #ffffff;
|
||||
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21);
|
||||
border-radius: 4px;
|
||||
// position: absolute;
|
||||
// left: 50%;
|
||||
// top: 10%;
|
||||
// transform: translate(-50%, -50%);
|
||||
.del_header {
|
||||
position: absolute;
|
||||
width: calc(100%);
|
||||
@@ -2100,7 +2095,6 @@ export default {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
// background-color: red;
|
||||
position: relative;
|
||||
.back {
|
||||
position: absolute;
|
||||
@@ -2159,7 +2153,6 @@ export default {
|
||||
width: 549px !important;
|
||||
height: 245px !important;
|
||||
.con {
|
||||
// background-color: #bfa;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
@@ -2263,7 +2256,6 @@ export default {
|
||||
height: 388px !important;
|
||||
border-radius: 4px !important;
|
||||
.ant-modal-body {
|
||||
// background-color: blue;
|
||||
width: 100% !important;
|
||||
height: 100% !important;
|
||||
padding: 0 !important;
|
||||
@@ -2300,13 +2292,11 @@ export default {
|
||||
.main {
|
||||
width: 100%;
|
||||
height: calc(100% - 68px);
|
||||
// background-color: #bfa;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
.inma {
|
||||
width: 75%;
|
||||
height: 100%;
|
||||
// background-color: lightblue;
|
||||
.name {
|
||||
display: flex;
|
||||
position: relative;
|
||||
@@ -2392,19 +2382,9 @@ export default {
|
||||
}
|
||||
}
|
||||
.ProjectDrawer {
|
||||
// .ant-drawer-content-wrapper {
|
||||
|
||||
// .ant-drawer-header {
|
||||
// display: none !important;
|
||||
// }
|
||||
// .ant-drawer-body {
|
||||
// padding: 0;
|
||||
// }
|
||||
// }
|
||||
.drawerMain {
|
||||
min-width: 600px;
|
||||
margin: 0px 32px 0px 32px;
|
||||
overflow-x: scroll;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
.header {
|
||||
@@ -2413,7 +2393,6 @@ export default {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
// background-color: red;
|
||||
margin-bottom: 20px;
|
||||
flex-shrink: 0;
|
||||
.headerTitle {
|
||||
@@ -2421,11 +2400,10 @@ export default {
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
line-height: 25px;
|
||||
// margin-left: 24px;
|
||||
}
|
||||
}
|
||||
.drawerbox {
|
||||
margin: 20px 38px 30px;
|
||||
overflow-y: auto;
|
||||
th {
|
||||
background-color: #eff4fc !important;
|
||||
}
|
||||
|
||||
@@ -406,7 +406,7 @@
|
||||
<div
|
||||
class="operation"
|
||||
style="cursor: pointer"
|
||||
@click="showAA(item.type)"
|
||||
@click="showAA(item.name,)"
|
||||
:style="{
|
||||
display:
|
||||
item.type == '6' || item.type == '9'
|
||||
@@ -433,10 +433,11 @@
|
||||
item.type == '7' ||
|
||||
item.type == '8' ||
|
||||
item.type == '9' ||
|
||||
item.type == '11'
|
||||
? showTime(item.name, item.projectTaskId)
|
||||
item.type == '11' ||
|
||||
item.type == '12'
|
||||
? showTime(item.name, item.projectTaskId, item.type)
|
||||
: item.type == '5' || item.type == '10'
|
||||
? showTest(item.name, item.projectTaskId)
|
||||
? showTest(item.name, item.projectTaskId, item.type)
|
||||
: item.type == '2' || item.type == '6'
|
||||
? showFace(item.name,item.projectTaskId)
|
||||
: item.type == '4'
|
||||
@@ -1024,6 +1025,7 @@
|
||||
v-if="visible"
|
||||
:projectTaskId="projectTaskId"
|
||||
:title="showTimeText"
|
||||
:itemsType="itemstype"
|
||||
/>
|
||||
<!-- 面授管理抽屉 -->
|
||||
<face-manage
|
||||
@@ -1067,7 +1069,7 @@
|
||||
:title="showWorkText"
|
||||
/>
|
||||
<!-- 考试管理抽屉 -->
|
||||
<test-manage v-model:TMvisible.sync="TMvisible" v-if="TMvisible" :title="showTestText" :projectTaskId="projectTaskId" />
|
||||
<test-manage v-model:TMvisible.sync="TMvisible" v-if="TMvisible" :title="showTestText" :projectTaskId="projectTaskId" :itemsType="itemstype"/>
|
||||
<!-- 批量面授报名 -->
|
||||
<task-imp-stu v-model:TaskFaceImpStuvisible="TaskFaceImpStuvisible" />
|
||||
|
||||
@@ -2019,7 +2021,8 @@ export default {
|
||||
showWorkText:"",
|
||||
//直播、活动页面传递参数
|
||||
showkaoqinText: "",
|
||||
|
||||
//所有抽屉的传过去的type
|
||||
itemstype:null,
|
||||
|
||||
//排行榜时间
|
||||
rankStartTime: null,
|
||||
@@ -2311,11 +2314,12 @@ export default {
|
||||
state.TaskFaceImpStuvisible = true;
|
||||
};
|
||||
//新增
|
||||
const showTime = (name, id) => {
|
||||
const showTime = (name, id, type) => {
|
||||
console.log("点击管理并传了id");
|
||||
state.visible = true;
|
||||
state.showTimeText = name;
|
||||
state.projectTaskId = id;
|
||||
state.itemstype = Number(type);
|
||||
};
|
||||
//新增
|
||||
const showFace = (name, id) => {
|
||||
@@ -2340,9 +2344,9 @@ export default {
|
||||
state.chooseGroupId = id;
|
||||
};
|
||||
//活动考勤的抽屉
|
||||
const showAA = (course) => {
|
||||
const showAA = (title) => {
|
||||
state.AAvisible = true;
|
||||
state.showkaoqinText = "【" + course + "】" + "考勤";
|
||||
state.showkaoqinText = title;
|
||||
};
|
||||
//作业管理的抽屉
|
||||
const showWork = (name,id) => {
|
||||
@@ -2350,11 +2354,12 @@ export default {
|
||||
state.showWorkText = name;
|
||||
state.projectTaskId = id;
|
||||
};
|
||||
//考试管理的抽屉
|
||||
const showTest = (name, id) => {
|
||||
//考试、测评管理的抽屉
|
||||
const showTest = (name, id, type) => {
|
||||
state.TMvisible = true;
|
||||
state.showTestText = name;
|
||||
state.projectTaskId = id;
|
||||
state.itemstype = Number(type);
|
||||
};
|
||||
const showStuAdd = () => {
|
||||
state.Stuvisible = true;
|
||||
|
||||
@@ -5,7 +5,8 @@ module.exports = defineConfig({
|
||||
port:8080,
|
||||
proxy: {
|
||||
"/api": {
|
||||
target: "http://111.231.196.214:30001/", //这里后台的地址模拟的;应该填写你们真实的后台接口
|
||||
target: "http://192.168.100.208:30019/",
|
||||
// target: "http://111.231.196.214:30001/", //这里后台的地址模拟的;应该填写你们真实的后台接口
|
||||
changeOrigin: true, //表示是否改变原域名
|
||||
// secure: false,
|
||||
// ws: false, //表示WebSocket协议
|
||||
|
||||
Reference in New Issue
Block a user