mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 04:46:46 +08:00
fix:修改面授作业在线考试投票测评管理直播活动考勤 feat:新增查看作业 签到二维码 导出成绩
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user