Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
yuping
2023-02-23 17:04:08 +08:00
13 changed files with 625 additions and 1043 deletions

View File

@@ -20,7 +20,6 @@
<div style="display: flex; flex-direction: row; padding-top: 0px; margin-top: 20px; margin-left: 32px;">
<div>
<button
:disabled="taskIndex >= 0"
style="width: 100px; cursor: pointer;"
@click="changeOuter(1)"
:class="formData.examType === 1 ? 'outer' : 'notOuter'"
@@ -437,6 +436,7 @@ const disabledDate = (current) => {
// 系统考试
async function confirm() {
debugger
await validate().catch(({errorFields}) => {
message.warning(errorFields[0].errors.join());
throw Error("数据校验不通过")
@@ -447,7 +447,7 @@ async function confirm() {
} else {
const data = props.taskList[taskIndex.value]
data.name = formData.value.examinationName
data.info = formData.value
data.info = {...formData.value}
}
emit('update:taskList', [...props.taskList])
closeDrawer()
@@ -467,6 +467,9 @@ const delTag = () => {
}
function changeOuter(v) {
if (taskIndex.value >= 0) {
return message.warn("编辑状态不允许切换。")
}
formData.value.examType = v;
}

View File

@@ -1,20 +1,12 @@
<template>
<a-drawer
:visible="eScorevisible"
class="drawerStyle ExportScore"
placement="right"
width="700px"
@after-visible-change="afterVisibleChange"
>
<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"
/>
<img style="width: 29px; height: 29px; cursor: pointer" src="../../assets/images/basicinfo/close.png"
@click="closeDrawer" />
</div>
<div class="main">
<div class="minatitl">
@@ -28,20 +20,13 @@
<div class="text">上传</div>
<div class="right">
<div style="height: 176px; margin-bottom: 20px">
<a-upload-dragger
v-model:fileList="fileList"
:action="importHomeWork"
name="uploadFile"
:multiple="true"
@change="handleChange"
:showUploadList="false"
:data="{
<a-upload-dragger v-model:fileList="fileList" :action="importHomeWork" name="uploadFile" :multiple="true"
@change="handleChange" :showUploadList="false" :data="{
type: type,
taskId: Number(id),
workId: datesource.info.id,
targetId: Number(id),
}"
>
}">
<p class="ant-upload-drag-icon">
<inbox-outlined></inbox-outlined>
</p>
@@ -49,16 +34,13 @@
<p class="ant-upload-hint">支持扩展名.xls/.xlsx</p>
</a-upload-dragger>
</div>
<!-- <div class="load">
<!-- <div class="load">
<div class="cloud"></div>
<div class="tip">点击或将文件拖拽到此处上传</div>
<div class="tipz">支持扩展名.xls/.xlsx</div>
</div> -->
</div> -->
<div class="loadstate">
<div
class="loadborder"
v-if="uploadpercent < 100 && uploadpercent !== -1"
>
<div class="loadborder" v-if="uploadpercent < 100 && uploadpercent !== -1">
<div class="content">
<div class="img"></div>
<div class="timebox">
@@ -67,14 +49,14 @@
<div class="stateloading">正在上传</div>
</div>
<a-progress :percent="uploadpercent" />
<!-- <div class="prog">
<!-- <div class="prog">
<div class="inprogloading"></div>
</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 class="cancel" style="margin-left: 20px">暂停</div>
<div class="cancel" style="margin-left: 15px">取消</div> -->
</div>
</div>
</div>
@@ -87,25 +69,20 @@
<div class="statedefeat">上传失败</div>
</div>
<a-progress :percent="uploadpercent" />
<!-- <div class="prog">
<!-- <div class="prog">
<div class="inprogdefeat"></div>
</div> -->
</div> -->
</div>
<div class="curloading">
<!-- <div class="cur">55%</div> -->
<div
style="color: #387df7; margin-left: 20px; cursor: pointer"
>
<div style="color: #387df7; margin-left: 20px; cursor: pointer">
下载失败数据
</div>
<!-- <div class="cancel" style="margin-left: 20px">暂停</div>
<div class="cancel" style="margin-left: 15px">取消</div> -->
<!-- <div class="cancel" style="margin-left: 20px">暂停</div>
<div class="cancel" style="margin-left: 15px">取消</div> -->
</div>
<div
class="defeat"
style="display: flex; align-items: center"
>
<div class="defeat" style="display: flex; align-items: center">
<div style="color: #ff7474">
{{ succNum }}条数据导入成功{{ errNum }}条数据导入失败
</div>
@@ -122,17 +99,13 @@
<div class="statesucce">上传成功</div>
</div>
<a-progress :percent="uploadpercent" />
<!-- <div class="prog">
<!-- <div class="prog">
<div class="inprogsucce"></div>
</div> -->
</div> -->
</div>
<div class="curloading">
<!-- <div class="cur">100%</div> -->
<div
class="cancel"
style="margin-left: 20px; cursor: pointer"
@click="removeUpload"
>
<div class="cancel" style="margin-left: 20px; cursor: pointer" @click="removeUpload">
删除
</div>
</div>
@@ -143,33 +116,22 @@
</div>
</div>
</div>
<div
v-if="uploadpercent === 100"
class="defeat"
style="
display: flex;
align-items: center;
width: 500px;
height: 40px;"
:style="{
background: errNum
? 'rgba(255, 116, 116, 0.1)'
: 'rgba(53, 174, 105, 0.1)',
border: errNum ? '1px solid #ff7474' : '1px solid #35AE69',
}"
>
<img
style="width: 14px; height: 14px; margin-left: 16px"
:src="
errNum
? require('../../assets/images/err.png')
: require('../../assets/images/success.png')
"
/>
<div
style="margin-left: 8px"
:style="{ color: errNum ? '#ff7474' : 'rgba(0,0,0,0.65)' }"
>
<div v-if="uploadpercent === 100" class="defeat" style="
display: flex;
align-items: center;
width: 500px;
height: 40px;" :style="{
background: errNum
? 'rgba(255, 116, 116, 0.1)'
: 'rgba(53, 174, 105, 0.1)',
border: errNum ? '1px solid #ff7474' : '1px solid #35AE69',
}">
<img style="width: 14px; height: 14px; margin-left: 16px" :src="
errNum
? require('../../assets/images/err.png')
: require('../../assets/images/success.png')
" />
<div style="margin-left: 8px" :style="{ color: errNum ? '#ff7474' : 'rgba(0,0,0,0.65)' }">
{{ succNum }}条数据导入成功{{ errNum }}条数据导入失败
</div>
</div>
@@ -189,7 +151,7 @@
</a-drawer>
</template>
<script>
import {reactive, toRefs} from "vue";
import { reactive, toRefs } from "vue";
import { message } from "ant-design-vue";
import * as api from "../../api/index1";
import { BATCH_IMPORT_SCORE } from "@/api/config";
@@ -225,7 +187,7 @@ export default {
},
},
setup(props, ctx) {
debugger
// debugger
const state = reactive({
fileType: ["xls", "xlsx"],
importHomeWork:
@@ -295,7 +257,7 @@ export default {
console.log("props.getStudent", props.getStudent);
clearInterval(timer);
}
}else{
} else {
state.addLoading = false;
message.destroy();
message.error(`文件导入超时`);
@@ -398,6 +360,7 @@ export default {
overflow-x: auto;
display: flex;
flex-direction: column;
.header {
height: 73px;
border-bottom: 1px solid #e8e8e8;
@@ -407,6 +370,7 @@ export default {
// background-color: red;
margin-bottom: 20px;
flex-shrink: 0;
.headerTitle {
font-size: 18px;
font-weight: 600;
@@ -415,15 +379,19 @@ export default {
// 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;
@@ -431,16 +399,20 @@ export default {
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;
@@ -452,12 +424,14 @@ export default {
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;
@@ -465,6 +439,7 @@ export default {
margin-top: 15px;
cursor: pointer;
}
.tipz {
font-size: 14px;
font-weight: 400;
@@ -472,6 +447,7 @@ export default {
margin-top: 10px;
}
}
.loadstate {
width: 500px;
margin-bottom: 100px;
@@ -486,10 +462,12 @@ export default {
flex-direction: column;
justify-content: center;
position: relative;
.content {
display: flex;
margin-left: 20px;
position: relative;
.defeat {
width: 400px;
position: absolute;
@@ -499,45 +477,54 @@ export default {
font-weight: 500;
justify-content: space-between;
}
.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: #4ea6ff;
}
.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;
@@ -545,6 +532,7 @@ export default {
background: #4ea6ff;
}
//下载失败条
.inprogdefeat {
width: 55%;
@@ -553,6 +541,7 @@ export default {
background: #ff7474;
}
//下载成功条
.inprogsucce {
width: 100%;
@@ -563,15 +552,18 @@ export default {
}
}
}
.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;
@@ -579,6 +571,7 @@ export default {
}
}
}
.downloadErr {
width: 120px;
height: 32px;
@@ -602,6 +595,7 @@ export default {
}
}
}
.btnn {
height: 72px;
width: 100%;
@@ -613,6 +607,7 @@ export default {
align-items: center;
justify-content: center;
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.16);
.btn1 {
width: 100px;
height: 40px;
@@ -622,6 +617,7 @@ export default {
background-color: #fff;
cursor: pointer;
}
.btn2 {
cursor: pointer;
width: 100px;

View File

@@ -3,32 +3,33 @@
<slot></slot>
</div>
<a-drawer
:visible="visible"
class="drawerStyle unlockmode"
placement="right"
width="700"
:visible="visible"
class="drawerStyle unlockmode"
placement="right"
width="700"
>
<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"
style="width: 29px; height: 29px; cursor: pointer"
src="../../assets/images/basicinfo/close.png"
@click="closeDrawer"
/>
</div>
<div class="main">
<div class="classify">
<div
v-for="(item, index) in classify"
:key="index"
class="classifyItem"
@click="selectClassify(item)"
:style="{
color: item.type === classifyActive ? '#FFFFFF' : '#999999',
v-for="(item, index) in classify"
:key="index"
class="classifyItem"
@click="selectClassify(item)"
:style="{
color: item.type === classifyActive ? '#FFFFFF' : '#999999',
'background-color':
item.type === classifyActive ? '#4ea6ff' : '#FFFFFF',
border: item.type === classifyActive
border:
item.type === classifyActive
? '1px solid #4ea6ff'
: '1px solid #999999',
}"
@@ -36,12 +37,19 @@
{{ item.text }}
</div>
</div>
<div v-if="classifyActive === 1" @click="updateLockMode(1)" class="type1">
<div
v-if="classifyActive === 1"
@click="updateLockMode(1)"
class="type1"
>
<span style="font-weight: 500">描述</span
><span>不设学习限制学员可以在任何时间学习</span>
</div>
<div v-if="classifyActive === 2" @click="updateLockMode(2)"
class="type1 type3">
<div
v-if="classifyActive === 2"
@click="updateLockMode(2)"
class="type1 type3"
>
<div>
<span style="font-weight: 500">描述</span
><span>前一个阶段达成目标后解锁下一个阶段</span>
@@ -51,15 +59,13 @@
<a-radio-group v-model:value="routerInfoData.unlockMode">
<div>
<a-radio :value="2"
>逐个任务解锁完成一个任务后解锁下一个
</a-radio
>
>逐个任务解锁完成一个任务后解锁下一个
</a-radio>
</div>
<div v-if="types!==1" style="margin-top: 24px">
<div v-if="types !== 1" style="margin-top: 24px">
<a-radio :value="3"
>完成当前阶段所有必修任务解锁下一阶段
</a-radio
>
>完成当前阶段所有必修任务解锁下一阶段
</a-radio>
</div>
</a-radio-group>
</div>
@@ -74,11 +80,11 @@
</template>
<script setup>
import {computed, defineEmits, defineProps, ref, watch} from "vue";
import {editProjectModel, editRouterModel} from "@/api/indexLearningPath";
import { computed, defineEmits, defineProps, ref, watch } from "vue";
import { editProjectModel, editRouterModel } from "@/api/indexLearningPath";
const emit = defineEmits({})
const visible = ref(false)
const emit = defineEmits({});
const visible = ref(false);
const classify = [
{
type: 1,
@@ -91,45 +97,58 @@ const classify = [
];
const props = defineProps({
routerInfo: {},
types: Number
})
const routerInfoData = ref({})
const classifyActive = computed(() => routerInfoData.value.unlockMode === 1 ? 1 : 2)
watch(() => props.routerInfo, () => {
routerInfoData.value = props.routerInfo
})
types: Number,
});
const routerInfoData = ref({});
const classifyActive = computed(() =>
routerInfoData.value.unlockMode === 1 ? 1 : 2
);
watch(
() => props.routerInfo,
() => {
routerInfoData.value = props.routerInfo;
console.log("routerInfoData", routerInfoData);
}
);
const closeDrawer = () => {
visible.value = false
visible.value = false;
};
function selectClassify(e) {
if (e.type === 1) {
routerInfoData.value.unlockMode = e.type
console.log("选择模式", e, props.types);
if (routerInfoData.value.status !== 3 && props.types === 2) {
routerInfoData.value.unlockMode = e.type;
}
// 当为学习路径图时候 直接默认第一个选项 不用选中
if (e.type === 2 && props.types === 1) {
routerInfoData.value.unlockMode = e.type
if (routerInfoData.value.status !== 1 && props.types === 1) {
routerInfoData.value.unlockMode = e.type;
}
// if (e.type === 1) {
// routerInfoData.value.unlockMode = e.type;
// }
// // 当为学习路径图时候 直接默认第一个选项 不用选中
// if (e.type === 2 && props.types === 1) {
// routerInfoData.value.unlockMode = e.type;
// }
}
const saveUnlock = () => {
emit("update:userInfo", routerInfoData.value)
emit("update:userInfo", routerInfoData.value);
if (props.types === 2) {
editProjectModel(routerInfoData.value)
editProjectModel(routerInfoData.value);
} else {
editRouterModel(routerInfoData.value)
editRouterModel(routerInfoData.value);
}
closeDrawer()
}
closeDrawer();
};
function updateLockMode(type) {
routerInfoData.value.unlockMode = type
console.log("22222", type);
routerInfoData.value.unlockMode = type;
}
function openDrawer() {
visible.value = true
visible.value = true;
}
</script>
<style lang="scss">
.unlockmode {

View File

@@ -1,42 +1,26 @@
<template>
<a-drawer
:visible="ACertificate"
class="drawerStyle AddCertificate"
width="80%"
title="添加证书"
placement="right"
@after-visible-change="afterVisibleChange"
>
<a-drawer :visible="ACertificate" class="drawerStyle AddCertificate" width="80%" title="添加证书" placement="right"
@after-visible-change="afterVisibleChange">
<div class="drawerMain">
<div class="header">
<div class="headerTitle">
{{ ACertificateEditId ? "编辑" : "添加" }}证书
</div>
<img
style="width: 29px; height: 29px; cursor: pointer"
src="../../../assets/images/basicinfo/close.png"
@click="closeDrawer"
/>
<img style="width: 29px; height: 29px; cursor: pointer" src="../../../assets/images/basicinfo/close.png"
@click="closeDrawer" />
</div>
<div class="contentMain">
<div class="main_left">
<div class="main_item">
<div class="signbox">
<div class="sign">
<img
src="@/assets/images/coursewareManage/asterisk.png"
alt=""
/>
<img src="@/assets/images/coursewareManage/asterisk.png" alt="" />
</div>
<span style="margin-right: 3px">证书名称</span>
</div>
<div class="btnbox">
<a-input
v-model:value="certificateName"
style="width: 400px; height: 40px; border-radius: 8px"
placeholder="请输入证书名称"
maxlength="20"
/>
<a-input v-model:value="certificateName" style="width: 400px; height: 40px; border-radius: 8px"
placeholder="请输入证书名称" maxlength="20" />
</div>
</div>
@@ -63,28 +47,13 @@
<div class="main_item" style="align-items: flex-start">
<div class="signbox">
<div class="sign">
<img
src="@/assets/images/coursewareManage/asterisk.png"
alt=""
/>
<img src="@/assets/images/coursewareManage/asterisk.png" alt="" />
</div>
<span style="margin-right: 3px">证书封面</span>
</div>
<div
class="btnbox"
style="flex-direction: column; align-items: flex-start"
>
<a-upload
v-model:file-list="fileList"
name="file"
style="width: 200px"
list-type="picture-card"
class="avatar-uploader"
:show-upload-list="false"
action="/manageApi/file/uploadFile"
@change="handleChange"
:before-upload="beforeUpload"
>
<div class="btnbox" style="flex-direction: column; align-items: flex-start">
<a-upload v-model:file-list="fileList" name="file" style="width: 200px" list-type="picture-card"
class="avatar-uploader" :show-upload-list="false" :before-upload="beforeUpload">
<img v-if="imageUrl" :src="imageUrl" alt="avatar" />
<div v-else>
<loading-outlined v-if="loading"></loading-outlined>
@@ -102,90 +71,58 @@
<span style="margin-right: 3px">证书说明</span>
</div>
<div class="textarea" style="width: 400px">
<a-textarea
v-model:value="certificateRemark"
placeholder="请输入证书说明"
allow-clear
:rows="8"
show-count
:maxlength="200"
/>
<a-textarea v-model:value="certificateRemark" placeholder="请输入证书说明" allow-clear :rows="8" show-count
:maxlength="200" />
</div>
</div>
<div class="main_item" style="margin-bottom: 16px">
<div class="signbox">
<div class="sign">
<img
src="@/assets/images/coursewareManage/asterisk.png"
alt=""
/>
<img src="@/assets/images/coursewareManage/asterisk.png" alt="" />
</div>
<span
style="
margin-right: 3px;
font-size: 16px;
color: #333;
font-size: 14px;
"
>设置获得条件</span
>
<span style="
margin-right: 3px;
font-size: 16px;
color: #333;
font-size: 14px;
">设置获得条件</span>
</div>
<div class="btnbox"></div>
</div>
<div
class="main_item"
style="
border: 1px solid rgba(0, 0, 0, 0.1);
width: ;
margin-left: 35px;
padding-top: 30px;
margin-top: 0px;
"
>
<div class="main_item" style="
border: 1px solid rgba(0, 0, 0, 0.1);
width: ;
margin-left: 35px;
padding-top: 30px;
margin-top: 0px;
">
<div class="signbox" style="width: 30px">
<span
style="margin-right: 3px; font-size: 16px; color: #333"
></span>
<span style="margin-right: 3px; font-size: 16px; color: #333"></span>
</div>
<div class="btnbox">
<a-radio-group
v-model:value="condition"
@change="selectCondition"
>
<a-radio-group v-model:value="condition" @change="selectCondition">
<a-radio v-model:checked="checked" :value="1">
完成项目
<a-popover>
<template #content>
<div
style="font-size: 12px; color: rgba(153, 153, 153, 1)"
>
<div style="font-size: 12px; color: rgba(153, 153, 153, 1)">
后续新增自动包括
</div>
</template>
<img
style="width: 16px; height: 16px"
src="../../../assets/images/project/tishi.png"
/>
<img style="width: 16px; height: 16px" src="../../../assets/images/project/tishi.png" />
</a-popover>
</a-radio>
<br />
<div
style="
height: 60px;
margin-left: 24px;
display: flex;
align-items: center;
"
>
<a-radio-group
v-model:value="large"
size="small"
@change="selectlarge"
:disabled="condition !== 1"
>
<div style="
height: 60px;
margin-left: 24px;
display: flex;
align-items: center;
">
<a-radio-group v-model:value="large" size="small" @change="selectlarge" :disabled="condition !== 1">
<a-radio-button value="1">全部任务</a-radio-button>
<a-radio-button value="2">完成必修任务</a-radio-button>
</a-radio-group>
@@ -194,132 +131,84 @@
完成阶段
</a-radio>
<br />
<div
style="
height: 60px;
margin-left: 24px;
display: flex;
align-items: center;
"
>
<a-select
ref="select"
size="small"
placeholder="请选择阶段"
v-model:value="selectStageName"
style="width: 120px"
@focus="focus"
@change="selectStage"
:options="stageList"
:fieldNames="{
<div style="
height: 60px;
margin-left: 24px;
display: flex;
align-items: center;
">
<a-select ref="select" size="small" placeholder="请选择阶段" v-model:value="selectStageName"
style="width: 120px" @focus="focus" @change="selectStage" :options="stageList" :fieldNames="{
key: 'id',
title: 'name',
value: 'name',
}"
:disabled="condition !== 2"
>
}" :disabled="condition !== 2">
</a-select>
</div>
<a-radio v-model:checked="checked" :value="3">
完成任务
</a-radio>
<br />
<div
style="
height: 60px;
margin-left: 24px;
display: flex;
align-items: center;
"
>
<a-select
ref="select"
size="small"
placeholder="请选择任务"
v-model:value="selectTaskName"
style="width: 120px"
@focus="focus"
@change="selectTask"
:options="taskList"
:fieldNames="{
<div style="
height: 60px;
margin-left: 24px;
display: flex;
align-items: center;
">
<a-select ref="select" size="small" placeholder="请选择任务" v-model:value="selectTaskName"
style="width: 120px" @focus="focus" @change="selectTask" :options="taskList" :fieldNames="{
key: 'id',
title: 'name',
value: 'name',
}"
:disabled="condition !== 3"
>
}" :disabled="condition !== 3">
</a-select>
</div>
<a-radio v-model:checked="checked" :value="4">
考试合格
</a-radio>
<br />
<div
style="
height: 60px;
margin-left: 24px;
display: flex;
align-items: center;
"
>
<a-select
ref="select"
size="small"
placeholder="请选择考试"
v-model:value="selectExamName"
style="width: 120px"
@focus="focus"
@change="selectExam"
:options="examList"
:fieldNames="{
<div style="
height: 60px;
margin-left: 24px;
display: flex;
align-items: center;
">
<a-select ref="select" size="small" placeholder="请选择考试" v-model:value="selectExamName"
style="width: 120px" @focus="focus" @change="selectExam" :options="examList" :fieldNames="{
key: 'id',
title: 'name',
value: 'name',
}"
:disabled="condition !== 4"
>
}" :disabled="condition !== 4">
</a-select>
</div>
<a-radio v-model:checked="checked" :value="5">
获得积分
</a-radio>
<br />
<div
style="
height: 60px;
margin-left: 24px;
display: flex;
align-items: center;
"
>
<div
style="
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 20px;
margin-right: 5px;
"
>
<div style="
height: 60px;
margin-left: 24px;
display: flex;
align-items: center;
">
<div style="
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 20px;
margin-right: 5px;
">
高于
</div>
<a-input-number
id="inputNumber"
v-model:value="score"
:min="1"
:max="projectPoints"
style="width: 70px"
:disabled="condition !== 5"
/>
<div
style="
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 20px;
margin-left: 5px;
"
>
<a-input-number id="inputNumber" v-model:value="score" :min="1" :max="projectPoints" style="width: 70px"
:disabled="condition !== 5" />
<div style="
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 20px;
margin-left: 5px;
">
分可获得当前项目积分为 {{ projectPoints }}
</div>
</div>
@@ -708,14 +597,14 @@ export default {
state.condition == 1
? state.large
: state.condition == 2
? state.selectStageId
: state.condition == 3
? state.selectTaskId
: state.condition == 4
? state.selectExamId
: state.condition == 5
? state.score
: "",
? state.selectStageId
: state.condition == 3
? state.selectTaskId
: state.condition == 4
? state.selectExamId
: state.condition == 5
? state.score
: "",
type: 1,
};
if (props.ACertificateEdit) {
@@ -853,6 +742,7 @@ export default {
display: flex;
align-items: flex-start;
margin-bottom: 32px;
.textarea {
width: 400px;
@@ -874,6 +764,7 @@ export default {
border-radius: 8px;
}
}
.signbox {
width: 120px;
display: flex;

View File

@@ -1,51 +1,28 @@
<template>
<a-drawer
v-if="ExaminationModelVisible"
:visible="ExaminationModelVisible"
class="drawerStyle ProjectExamManage"
placement="right"
width="80%"
@after-visible-change="afterVisibleChange"
>
<a-drawer v-if="ExaminationModelVisible" :visible="ExaminationModelVisible" class="drawerStyle ProjectExamManage"
placement="right" width="80%" @after-visible-change="afterVisibleChange">
<div class="drawerMain">
<div class="header">
<div class="headerTitle">考试{{ title }}</div>
<img
style="width: 29px; height: 29px; cursor: pointer"
src="../../../assets/images/basicinfo/close.png"
@click="closeDrawer"
/>
<img style="width: 29px; height: 29px; cursor: pointer" src="../../../assets/images/basicinfo/close.png"
@click="closeDrawer" />
</div>
<div class="main">
<div class="endtime">起止时间{{datasource.startTime}} {{datasource.endTime}}</div>
<div class="endtime">起止时间{{ datasource.startTime }} {{ datasource.endTime }}</div>
<div class="search">
<div class="namecon" style="margin-right: 30px">
<div class="name">姓名</div>
<a-input
v-model:value="name"
style="width: 200px; height: 40px; border-radius: 8px"
placeholder="请输入姓名"
/>
<a-input v-model:value="name" style="width: 200px; height: 40px; border-radius: 8px" placeholder="请输入姓名" />
</div>
<div v-if="datasource.type !==5" class="namecon" style="margin-right: 50px">
<div v-if="datasource.type !== 5" class="namecon" style="margin-right: 50px">
<div class="name">任务状态</div>
<div class="select">
<a-select
v-model:value="projectName"
style="width: 200px"
placeholder="请选择"
:options="projectNameList"
@change="selectProjectName"
allowClear
></a-select>
<a-select v-model:value="projectName" style="width: 200px" placeholder="请选择" :options="projectNameList"
@change="selectProjectName" allowClear></a-select>
</div>
</div>
<div class="btns">
<div
class="btn btn1"
style="margin-right: 20px"
@click="searchTableData"
>
<div class="btn btn1" style="margin-right: 20px" @click="searchTableData">
<div class="img1"></div>
<div class="wz">搜索</div>
</div>
@@ -82,31 +59,17 @@
</div>
</div> -->
<div class="tableBox" style="margin-top: 20px; margin-bottom: 100px">
<a-table
style="border: 1px solid #f2f6fe"
:columns="tablecolumns"
:data-source="tabledata"
:loading="loadingData"
:scroll="{ x: 900 }"
:pagination="false"
/>
<a-table style="border: 1px solid #f2f6fe" :columns="tablecolumns" :data-source="tabledata"
:loading="loadingData" :scroll="{ x: 900 }" :pagination="false" />
<div class="pa">
<a-pagination
:showSizeChanger="false"
showQuickJumper="true"
hideOnSinglePage="true"
:pageSize="pageSize"
:current="currentPage"
:total="tableDataTotal"
class="pagination"
v-if="tableDataTotal > 10"
@change="changePaginationStu"
/>
<a-pagination :showSizeChanger="false" showQuickJumper="true" hideOnSinglePage="true" :pageSize="pageSize"
:current="currentPage" :total="tableDataTotal" class="pagination" v-if="tableDataTotal > 10"
@change="changePaginationStu" />
</div>
</div>
</div>
<!--
<!--
<div class="btnn">
<button class="btn1" @click="closeDrawer">取消</button>
<button class="btn2" @click="closeDrawer">确定</button>
@@ -115,8 +78,8 @@
<!-- 导出成绩抽屉 -->
<EScore v-model:eScorevisible="eScorevisible" />
</a-drawer>
<!-- 查看答卷抽屉 -->
<CheckAnsware v-model:CAvisible="CAvisible" :datasource="datasource"/>
<!-- 查看答卷抽屉 -->
<CheckAnsware v-model:CAvisible="CAvisible" :datasource="datasource" />
</template>
<script>
@@ -198,7 +161,7 @@ export default {
customRender: (text) => {
return (
<div class="racona">
<span> {text.record.studentCode?text.record.studentCode:"-"}</span>
<span> {text.record.studentCode ? text.record.studentCode : "-"}</span>
</div>
);
},
@@ -213,7 +176,7 @@ export default {
customRender: (text) => {
return (
<div class="racona">
<span> {text.record.studentName?text.record.studentName:"-"}</span>
<span> {text.record.studentName ? text.record.studentName : "-"}</span>
</div>
);
},
@@ -228,7 +191,7 @@ export default {
customRender: (text) => {
return (
<div class="racona">
<span> {text.record.studentDepartName?text.record.studentDepartName:"-"}</span>
<span> {text.record.studentDepartName ? text.record.studentDepartName : "-"}</span>
</div>
);
},
@@ -244,7 +207,7 @@ export default {
customRender: (text) => {
return (
<div class="racona">
<span> {text.record.studentJobName?text.record.studentJobName:"-"}</span>
<span> {text.record.studentJobName ? text.record.studentJobName : "-"}</span>
</div>
);
},
@@ -258,7 +221,7 @@ export default {
ellipsis: true,
className: "h",
customRender: () => {
return (
return (
<div class="racona">
<span> {props.levelName}</span>
</div>
@@ -276,7 +239,7 @@ export default {
customRender: (text) => {
return (
<div class="racona">
<span> {text.record.num?text.record.num:"-"}</span>
<span> {text.record.num ? text.record.num : "-"}</span>
</div>
);
},
@@ -292,7 +255,7 @@ export default {
customRender: (text) => {
return (
<div class="racona">
<span> {text.record.examinationScore?text.record.examinationScore:"-"}</span>
<span> {text.record.examinationScore ? text.record.examinationScore : "-"}</span>
</div>
);
},
@@ -309,7 +272,7 @@ export default {
customRender: (text) => {
return (
<div class="racona">
<span> {text.record.examinationSubmitTime?text.record.examinationSubmitTime:"-"}</span>
<span> {text.record.examinationSubmitTime ? text.record.examinationSubmitTime : "-"}</span>
</div>
);
},
@@ -322,7 +285,7 @@ export default {
align: "center",
ellipsis: true,
className: "h",
customRender: ({record:{finishStatus}}) => ({1:'通过',2:'未通过'}[finishStatus] || '未开始'),
customRender: ({ record: { finishStatus } }) => ({ 1: '通过', 2: '未通过' }[finishStatus] || '未开始'),
},
{
title: "操作",
@@ -333,37 +296,37 @@ export default {
ellipsis: true,
className: "h",
customRender: (text) => {
debugger
console.log("text"+text.record)
if (text.record.finishStatus===1 || text.record.finishStatus===2) {
{/* debugger */ }
console.log("text" + text.record)
if (text.record.finishStatus === 1 || text.record.finishStatus === 2) {
return (
<div class="racona">
<a-button
type="link"
onClick={()=>{
state.studentKid = text.record.studentKid;
state.datasource = text.record;
state.CAvisible = true;
}}>
查看答卷
</a-button>
</div>
<div class="racona">
<a-button
type="link"
onClick={() => {
state.studentKid = text.record.studentKid;
state.datasource = text.record;
state.CAvisible = true;
}}>
查看答卷
</a-button>
</div>
);
}else {
} else {
return (
<div class="racona">
<a-button
type="link"
disabled
onClick={()=>{
state.studentKid = text.record.studentKid;
state.datasource = text.record;
state.CAvisible = true;
}}>
查看答卷
</a-button>
</div>
);
<div class="racona">
<a-button
type="link"
disabled
onClick={() => {
state.studentKid = text.record.studentKid;
state.datasource = text.record;
state.CAvisible = true;
}}>
查看答卷
</a-button>
</div>
);
}
},
@@ -424,7 +387,7 @@ export default {
type: 1,
taskId: props.datasource.courseId,
targetId: props.datasource.routerId
}).then(res=>{
}).then(res => {
state.tabledata = res.data.data.managementDtoList;
state.tableDataTotal = res.data.data.total;
state.loadingData = false;
@@ -453,8 +416,8 @@ export default {
getData();
};
{/* 导出数据 */}
function exportData() {
{/* 导出数据 */ }
function exportData() {
// window.open(`${process.env.VUE_APP_BASE_API}/admin/exam/manage/exportExam?chapterId=${props.datasource.chapterId}&targetId=${props.datasource.routerId}&taskId=${props.datasource.courseId}&type=${1}`)
window.open(`${process.env.VUE_APP_BASE_API}/admin/exam/manage/exportExam?currentStageId=${props.datasource.chapterId}&type=${1}&pid=${props.datasource.routerId}&targetId=${props.datasource.routerId}&taskId=${props.datasource.courseId}&taskType=${props.datasource.type}`)
@@ -517,6 +480,7 @@ export default {
height: 100%;
overflow: auto;
padding-right: 10px;
.endtime {
font-size: 16px;
font-weight: 500;
@@ -688,15 +652,18 @@ export default {
.ant-table-selection-column {
padding: 0px !important;
}
.ant-pagination-item,
.ant-pagination-prev,
.ant-pagination-next,
.ant-pagination-options {
margin-bottom: 10px;
}
.ant-table-thead > tr > th {
.ant-table-thead>tr>th {
background-color: rgba(239, 244, 252, 1) !important;
}
.ant-table-selection-column {
padding: 0 !important;
}
@@ -709,9 +676,7 @@ export default {
padding-left: 0px !important;
}
.ant-table-tbody
> tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)
> td {
.ant-table-tbody>tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)>td {
background: #f6f9fd;
}
@@ -724,6 +689,7 @@ export default {
border-right: 1px solid #e9e9e9;
cursor: pointer;
}
.studentopea2 {
font-size: 14px;
font-weight: 400;

View File

@@ -1,21 +1,11 @@
<template>
<a-drawer
v-if="HomeworkModelVisible"
:visible="HomeworkModelVisible"
class="drawerStyle ProjectHomeWorkManage"
placement="right"
width="80%"
@after-visible-change="afterVisibleChange"
:zIndex="100"
>
<template>
<a-drawer v-if="HomeworkModelVisible" :visible="HomeworkModelVisible" class="drawerStyle ProjectHomeWorkManage"
placement="right" width="80%" @after-visible-change="afterVisibleChange" :zIndex="100">
<div class="drawerMain">
<div class="header">
<div class="headerTitle">作业{{ title }}</div>
<img
style="width: 29px; height: 29px; cursor: pointer"
src="../../../assets/images/basicinfo/close.png"
@click="closeDrawer"
/>
<img style="width: 29px; height: 29px; cursor: pointer" src="../../../assets/images/basicinfo/close.png"
@click="closeDrawer" />
</div>
<div class="main">
<div class="endtime">
@@ -28,31 +18,17 @@
<div class="search">
<div class="namecon" style="margin-right: 30px">
<div class="name">姓名</div>
<a-input
v-model:value="name"
style="width: 200px; height: 40px; border-radius: 8px"
placeholder="请输入姓名"
/>
<a-input v-model:value="name" style="width: 200px; height: 40px; border-radius: 8px" placeholder="请输入姓名" />
</div>
<div class="namecon" style="margin-right: 50px">
<div class="name">任务状态</div>
<div class="select">
<a-select
v-model:value="projectName"
style="width: 200px"
placeholder="请选择"
:options="projectNameList"
@change="selectProjectName"
allowClear
></a-select>
<a-select v-model:value="projectName" style="width: 200px" placeholder="请选择" :options="projectNameList"
@change="selectProjectName" allowClear></a-select>
</div>
</div>
<div class="btns">
<div
class="btn btn1"
style="margin-right: 20px"
@click="searchTaskList"
>
<div class="btn btn1" style="margin-right: 20px" @click="searchTaskList">
<div class="img1"></div>
<div class="wz">搜索</div>
</div>
@@ -88,31 +64,16 @@
</div>
</div> -->
<div class="tableBox" style="margin-top: 20px; margin-bottom: 100px">
<a-table
style="border: 1px solid #f2f6fe"
:columns="tablecolumns"
:data-source="tabledata"
:loading="tableDataTotal === -1 ? true : false"
:scroll="{ x: 1300 }"
:pagination="false"
:row-selection="{
<a-table style="border: 1px solid #f2f6fe" :columns="tablecolumns" :data-source="tabledata"
:loading="tableDataTotal === -1 ? true : false" :scroll="{ x: 1300 }" :pagination="false" :row-selection="{
selectedRowKeys: selectedRowKeys,
onChange: onSelectChange,
}"
/>
}" />
<div class="pa">
<a-pagination
:showSizeChanger="false"
showQuickJumper="true"
hideOnSinglePage="true"
:pageSize="pageSize"
:current="currentPage"
:total="tableDataTotal"
class="pagination"
v-if="tableDataTotal > 10"
@change="changePaginationStu"
/>
<a-pagination :showSizeChanger="false" showQuickJumper="true" hideOnSinglePage="true" :pageSize="pageSize"
:current="currentPage" :total="tableDataTotal" class="pagination" v-if="tableDataTotal > 10"
@change="changePaginationStu" />
</div>
</div>
</div>
@@ -125,30 +86,18 @@
</a-drawer>
<!-- 录入成绩抽屉 -->
<EScore
v-model:eScorevisible="Evisible"
:type="2"
:id="datasource?.id"
:pid="datasource?.routerId"
v-model:searchTaskList="searchTaskList"
/>
<EScore v-model:eScorevisible="Evisible" :type="2" :id="datasource?.id" :pid="datasource?.routerId"
v-model:searchTaskList="searchTaskList" />
<!-- 查看作业抽屉 -->
<CKWork
v-model:CWvisible="CWvisible"
:workId="datasource?.courseId"
v-model:stuId="stuId"
/>
<CKWork v-model:CWvisible="CWvisible" :workId="datasource?.courseId" v-model:stuId="stuId" />
<!-- 查看答卷抽屉 -->
<CQue v-model:CQvisible="CQvisible" />
<!-- 导出作业提示框 -->
<ExportHomeWork
v-model:exportHomeWorkV="exportHomeWorkV"
:downloadUrl="downloadUrl"
/>
<ExportHomeWork v-model:exportHomeWorkV="exportHomeWorkV" :downloadUrl="downloadUrl" />
</template>
<script>
<script>
import { toRefs, reactive } from "vue";
import { message } from "ant-design-vue";
import CKWork from "../CheckWork.vue";
@@ -341,7 +290,7 @@ export default {
<div class="racona">
<span>
{text.record.workScore || text.record.workScore == 0
? text.record.workScore < 0 ?"-":text.record.workScore
? text.record.workScore < 0 ? "-" : text.record.workScore
: "-"}
</span>
</div>
@@ -380,13 +329,13 @@ export default {
<div class="racona">
<span>
{text.record.finishStatus == 0 ||
text.record.finishStatus == null
text.record.finishStatus == null
? "未开始"
: text.record.finishStatus == 1
? "已完成"
: text.record.finishStatus == 2
? "进行中"
: "-"}
? "已完成"
: text.record.finishStatus == 2
? "进行中"
: "-"}
</span>
</div>
);
@@ -443,7 +392,7 @@ export default {
}}
>
<a-button
disabled
disabled
class="operation"
style="margin-right:10px;color:rgba(56, 125, 247, 0.5)"
>
@@ -497,7 +446,7 @@ export default {
//获取学员
const getStudent = () => {
{/* debugger */}
{/* debugger */ }
console.log("我是传递的查询参数", props.datasource.courseId, {
pageNo: state.currentPage,
pageSize: state.pageSize,
@@ -522,7 +471,7 @@ export default {
studentName: state.name,
})
.then((res) => {
debugger
{/* debugger */ }
console.log("获取作业管理学员", res);
if (res.data.code == 200) {
let newData = [];
@@ -565,12 +514,9 @@ export default {
function exportTaskStu() {
console.log("props.datasource", props.datasource);
window.open(
`${
process.env.VUE_APP_BASE_API
}/admin/student/exportTaskStudent?currentStageId=${
props.datasource.chapterId
}&type=${2}&pid=${props.datasource.routerId}&taskType=${4}&taskId=${
props.datasource.id
`${process.env.VUE_APP_BASE_API
}/admin/student/exportTaskStudent?currentStageId=${props.datasource.chapterId
}&type=${2}&pid=${props.datasource.routerId}&taskType=${4}&taskId=${props.datasource.id
}`
);
// api
@@ -605,7 +551,7 @@ export default {
.then((res) => {
console.log("导出作业", res.data.data);
if (res.data.code === 200) {
debugger
// debugger
// message.destroy();
// message.success("导出作业成功");
state.exportHomeWorkV = true;
@@ -623,12 +569,9 @@ export default {
function exportHomeWork() {
console.log("props.datasource", props.datasource);
window.open(
`${
process.env.VUE_APP_BASE_API
}/admin/student/exportHomeWork?currentStageId=${
props.datasource.chapterId
}&type=${2}&pid=${props.datasource.routerId}&taskId=${
props.datasource.routerTaskId
`${process.env.VUE_APP_BASE_API
}/admin/student/exportHomeWork?currentStageId=${props.datasource.chapterId
}&type=${2}&pid=${props.datasource.routerId}&taskId=${props.datasource.routerTaskId
}&taskType=${props.datasource.type}`
);
}
@@ -655,7 +598,7 @@ export default {
};
</script>
<style lang="scss">
<style lang="scss">
.ProjectHomeWorkManage {
.drawerMain {
min-width: 550px;
@@ -685,6 +628,7 @@ export default {
height: 100%;
overflow: auto;
padding-right: 10px;
.endtime {
font-size: 16px;
font-weight: 500;
@@ -856,15 +800,18 @@ export default {
.ant-table-selection-column {
padding: 0px !important;
}
.ant-pagination-item,
.ant-pagination-prev,
.ant-pagination-next,
.ant-pagination-options {
margin-bottom: 10px;
}
.ant-table-thead > tr > th {
.ant-table-thead>tr>th {
background-color: rgba(239, 244, 252, 1) !important;
}
.ant-table-selection-column {
padding: 0 !important;
}
@@ -877,9 +824,7 @@ export default {
padding-left: 0px !important;
}
.ant-table-tbody
> tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)
> td {
.ant-table-tbody>tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)>td {
background: #f6f9fd;
}
@@ -892,6 +837,7 @@ export default {
border-right: 1px solid #e9e9e9;
cursor: pointer;
}
.studentopea2 {
font-size: 14px;
font-weight: 400;

View File

@@ -7,14 +7,8 @@
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<a-modal
style="padding: 0"
:closable="true"
:visible="changegroupV"
:footer="null"
centered="true"
wrapClassName="changeModal"
>
<a-modal style="padding: 0" :closable="true" :visible="changegroupV" :footer="null" centered="true"
wrapClassName="changeModal">
<div class="con">
<div class="header">
<div class="inhe">
@@ -27,28 +21,14 @@
<div class="inher">
<!-- <div class="cur">当前关卡关卡2</div> -->
<div class="select">
<a-select
v-model:value="selectGroupId"
style="width: 100%"
placeholder="请选择小组"
:options="option"
allowClear
@change="selectGroup"
></a-select>
<a-select v-model:value="selectGroupId" style="width: 100%" placeholder="请选择小组" :options="option" allowClear
@change="selectGroup"></a-select>
</div>
<div class="btn">
<button
class="sameb btn1"
@click="closeChangeModal"
style="cursor: pointer"
>
<button class="sameb btn1" @click="closeChangeModal" style="cursor: pointer">
取消
</button>
<button
class="sameb btn2"
@click="changeGroup"
style="cursor: pointer"
>
<button class="sameb btn2" @click="changeGroup" style="cursor: pointer">
确定
</button>
</div>
@@ -100,7 +80,7 @@ const selectGroup = (e, v) => {
};
//确认换组
const changeGroup = (item) => {
debugger
// debugger
console.log("换组", selectGroupId.value, item);
props.checkgroupStuId.forEach(stu => {
let obj = {
@@ -110,17 +90,17 @@ const changeGroup = (item) => {
};
console.log("换组obj", obj);
api
.changeGroupByStudentId(obj)
.then((res) => {
console.log("换组成功", res);
if (res.data.code === 200) {
message.success("换组成功");
closeChangeModal();
}
})
.catch((err) => {
console.log("换组失败", err);
});
.changeGroupByStudentId(obj)
.then((res) => {
console.log("换组成功", res);
if (res.data.code === 200) {
message.success("换组成功");
closeChangeModal();
}
})
.catch((err) => {
console.log("换组失败", err);
});
})
};
@@ -131,9 +111,11 @@ const changeGroup = (item) => {
.ant-modal {
width: 549px !important;
height: 245px !important;
.ant-modal-close-x {
display: none;
}
.ant-modal-content {
width: 549px !important;
height: 245px !important;
@@ -155,10 +137,8 @@ const changeGroup = (item) => {
position: relative;
justify-content: center;
background: linear-gradient(
rgba(78, 166, 255, 0.2) 0%,
rgba(78, 166, 255, 0) 100%
);
background: linear-gradient(rgba(78, 166, 255, 0.2) 0%,
rgba(78, 166, 255, 0) 100%);
.inhe {
width: 80%;

View File

@@ -2,22 +2,14 @@
<!-- eslint-disable vue/require-v-for-key -->
<template>
<div class="CommonStudent">
<a-drawer
:visible="visiable"
class="drawerStyle ProjCheckship CommonStudent"
placement="right"
width="60%"
>
<a-drawer :visible="visiable" class="drawerStyle ProjCheckship CommonStudent" placement="right" width="60%">
<div class="drawerMain" id="ProjCheckship" style="">
<div class="header">
<div class="headerTitle">
{{ { 1: "添加学员", 2: "添加学员", 3: "添加学员" }[type] || title }}
</div>
<img
style="width: 29px; height: 29px; cursor: pointer"
src="../../assets/images/basicinfo/close.png"
@click="closeDrawer"
/>
<img style="width: 29px; height: 29px; cursor: pointer" src="../../assets/images/basicinfo/close.png"
@click="closeDrawer" />
</div>
<div style="display: flex; overflow-x: auto; overflow-y: auto">
<div class="tabs" style="min-width: 800px">
@@ -26,38 +18,22 @@
<div :style="{ height: screenHeight - 235 + 'px' }">
<div>
<a-form-item label="姓名:">
<a-input
v-model:value="proStudentName"
style="width: 260px; height: 40px; border-radius: 8px"
placeholder="请输入姓名"
/>
<a-button
type="primary"
@click="getStu"
style="margin-left: 20px; border-radius: 4px"
>
<a-input v-model:value="proStudentName" style="width: 260px; height: 40px; border-radius: 8px"
placeholder="请输入姓名" />
<a-button type="primary" @click="getStu" style="margin-left: 20px; border-radius: 4px">
<template #icon>
<SearchOutlined />
</template>
搜索
</a-button>
<a-button
@click="getStu"
style="margin-left: 20px; border-radius: 4px"
>重置
<a-button @click="getStu" style="margin-left: 20px; border-radius: 4px">重置
</a-button>
</a-form-item>
</div>
<div class="tableBox tabb">
<a-table
style="border: 1px solid #f2f6fe; width: 800px"
row-key="id"
:columns="stuColumns"
:data-source="projectList"
:loading="projectListTotal"
:pagination="projectPagination"
:row-selection="projectRowSelection"
/>
<a-table style="border: 1px solid #f2f6fe; width: 800px" row-key="id" :columns="stuColumns"
:data-source="projectList" :loading="projectListTotal" :pagination="projectPagination"
:row-selection="projectRowSelection" />
</div>
</div>
</a-tab-pane>
@@ -65,75 +41,41 @@
<div :style="{ height: screenHeight - 235 + 'px' }">
<div class="tab1">
<a-form-item label="姓名">
<a-input
v-model:value="nameSearch.keyword"
style="width: 270px; height: 40px; border-radius: 8px"
placeholder="请输入姓名"
@change="peopleName"
/>
<a-button
type="primary"
@click="onSearchStu"
style="margin-left: 20px; border-radius: 4px"
>
<a-input v-model:value="nameSearch.keyword" style="width: 270px; height: 40px; border-radius: 8px"
placeholder="请输入姓名" @change="peopleName" />
<a-button type="primary" @click="onSearchStu" style="margin-left: 20px; border-radius: 4px">
<template #icon>
<SearchOutlined />
</template>
搜索
</a-button>
<a-button
@click="resetStu"
style="margin-left: 20px; border-radius: 4px"
>重置
<a-button @click="resetStu" style="margin-left: 20px; border-radius: 4px">重置
</a-button>
</a-form-item>
</div>
<div
class="chooseLeft"
style="display: grid; grid-template-columns: 250px auto"
>
<div
:style="{
height: screenHeight - 180 + 'px',
overflowY: 'auto',
}"
style="border: 1px solid #f0f0f0"
>
<div class="chooseLeft" style="display: grid; grid-template-columns: 250px auto">
<div :style="{
height: screenHeight - 180 + 'px',
overflowY: 'auto',
}" style="border: 1px solid #f0f0f0">
<div class="tree" style="margin: 10px 4px 220px 10px">
<a-tree
allow-clear
tree-default-expand-all
:tree-data="treeData"
:loading="orgLoading"
:load-data="onLoadData"
v-model:selectedKeys="stuTreeSelectKeys"
v-model:expandedKeys="stuTreeExpandedKeys"
:fieldNames="{
<a-tree allow-clear tree-default-expand-all :tree-data="treeData" :loading="orgLoading"
:load-data="onLoadData" v-model:selectedKeys="stuTreeSelectKeys"
v-model:expandedKeys="stuTreeExpandedKeys" :fieldNames="{
children: 'treeChildList',
key: 'id',
title: 'name',
value: 'name',
}"
@select="stuStuOrgSelect"
>
}" @select="stuStuOrgSelect">
</a-tree>
</div>
</div>
<div
class="tableBox tabb"
style="
margin: 0px 4px 120px 10px;
border: 1px solid #f0f0f0;
"
>
<a-table
:columns="stuColumns"
:data-source="stuData"
:pagination="stuPagination"
:loading="stuLoading"
row-key="id"
:row-selection="stuRowSelection"
/>
<div class="tableBox tabb" style="
margin: 0px 4px 120px 10px;
border: 1px solid #f0f0f0;
">
<a-table :columns="stuColumns" :data-source="stuData" :pagination="stuPagination"
:loading="stuLoading" row-key="id" :row-selection="stuRowSelection" />
</div>
</div>
</div>
@@ -142,44 +84,26 @@
<div :style="{ height: screenHeight - 235 + 'px' }">
<div class="tab2">
<a-form-item label="组织:">
<a-input
v-model:value="searchOrgName.keyword"
style="width: 230px; height: 40px; border-radius: 8px"
placeholder="请输入组织"
/>
<a-button
type="primary"
@click="searchOrg"
style="margin-left: 20px; border-radius: 4px"
>
<a-input v-model:value="searchOrgName.keyword"
style="width: 230px; height: 40px; border-radius: 8px" placeholder="请输入组织" />
<a-button type="primary" @click="searchOrg" style="margin-left: 20px; border-radius: 4px">
<template #icon>
<SearchOutlined />
</template>
搜索
</a-button>
<a-button
@click="resetOrg"
style="margin-left: 20px; border-radius: 4px"
>重置
<a-button @click="resetOrg" style="margin-left: 20px; border-radius: 4px">重置
</a-button>
</a-form-item>
</div>
<div class="boeTree">
<a-tree
:tree-data="searchOrgName.keyword ? orgData : treeOrgData"
@select="onOrgSelectChange"
:loading="orgOrgLoading"
:load-data="onLoadOrgData"
:fieldNames="{
<a-tree :tree-data="searchOrgName.keyword ? orgData : treeOrgData" @select="onOrgSelectChange"
:loading="orgOrgLoading" :load-data="onLoadOrgData" :fieldNames="{
children: 'treeChildList',
key: 'id',
title: 'name',
value: 'name',
}"
row-key="id"
:row-selection="orgRowSelection"
multiple
>
}" row-key="id" :row-selection="orgRowSelection" multiple>
</a-tree>
</div>
</div>
@@ -188,38 +112,22 @@
<div :style="{ height: screenHeight - 235 + 'px' }">
<div>
<a-form-item label="受众名称:">
<a-input
v-model:value="audienceName.keyword"
style="width: 260px; height: 40px; border-radius: 8px"
placeholder="请输入受众名称"
/>
<a-button
type="primary"
@click="searchAudi"
style="margin-left: 20px; border-radius: 4px"
>
<a-input v-model:value="audienceName.keyword" style="width: 260px; height: 40px; border-radius: 8px"
placeholder="请输入受众名称" />
<a-button type="primary" @click="searchAudi" style="margin-left: 20px; border-radius: 4px">
<template #icon>
<SearchOutlined />
</template>
搜索
</a-button>
<a-button
@click="resetAudienceInfo"
style="margin-left: 20px; border-radius: 4px"
>重置
<a-button @click="resetAudienceInfo" style="margin-left: 20px; border-radius: 4px">重置
</a-button>
</a-form-item>
</div>
<div class="tableBox tabb">
<a-table
style="border: 1px solid #f2f6fe; width: 800px"
row-key="id"
:columns="audiColums"
:data-source="audiData"
:loading="audiLoading"
:pagination="auditPagination"
:row-selection="auditRowSelection"
/>
<a-table style="border: 1px solid #f2f6fe; width: 800px" row-key="id" :columns="audiColums"
:data-source="audiData" :loading="audiLoading" :pagination="auditPagination"
:row-selection="auditRowSelection" />
</div>
</div>
</a-tab-pane>
@@ -231,16 +139,10 @@
<div class="already">已选</div>
</div>
</div>
<div
:style="{ 'max-height': screenHeight - 235 + 'px' }"
style="overflow-y: auto"
>
<div :style="{ 'max-height': screenHeight - 235 + 'px' }" style="overflow-y: auto">
<div class="selecteds" v-if="isGroup">
<div class="person">项目内学员</div>
<div
v-for="(item, i) in selectsData.projectMemberList"
:key="i"
>
<div v-for="(item, i) in selectsData.projectMemberList" :key="i">
<div v-if="i < 11">
<div class="chose">
{{ item.realName }}
@@ -256,16 +158,10 @@
</div>
</div>
</div>
<div
v-if="!member && selectsData.projectMemberList?.length > 10"
class="ifsw"
>
<div v-if="!member && selectsData.projectMemberList?.length > 10" class="ifsw">
<div @click="member = !member" class="“sw”">查看更多></div>
</div>
<div
v-if="member && selectsData.projectMemberList?.length > 10"
class="ifsw"
>
<div v-if="member && selectsData.projectMemberList?.length > 10" class="ifsw">
<div @click="member = !member" class="sw">收起&lt;</div>
</div>
</div>
@@ -287,16 +183,10 @@
</div>
</div>
</div>
<div
v-if="!person && selectsData.studentList.length > 10"
class="ifsw"
>
<div v-if="!person && selectsData.studentList.length > 10" class="ifsw">
<div @click="person = !person" class="“sw”">查看更多></div>
</div>
<div
v-if="person && selectsData.studentList.length > 10"
class="ifsw"
>
<div v-if="person && selectsData.studentList.length > 10" class="ifsw">
<div @click="person = !person" class="sw">收起&lt;</div>
</div>
</div>
@@ -318,16 +208,10 @@
</div>
</div>
</div>
<div
v-if="!dept && selectsData.deptList.length > 10"
class="ifsw"
>
<div v-if="!dept && selectsData.deptList.length > 10" class="ifsw">
<div @click="dept = !dept" class="“sw”">查看更多></div>
</div>
<div
v-if="dept && selectsData.deptList.length > 10"
class="ifsw"
>
<div v-if="dept && selectsData.deptList.length > 10" class="ifsw">
<div @click="dept = !dept" class="sw">收起&lt;</div>
</div>
</div>
@@ -350,10 +234,7 @@
</div>
</div>
</div>
<div
v-if="!group && selectsData.groupList.length > 10"
class="ifsw"
>
<div v-if="!group && selectsData.groupList.length > 10" class="ifsw">
<div @click="group = !group" class="“sw”">查看更多></div>
</div>
<div v-if="group && selectsData.groupList > 10" class="ifsw">
@@ -369,17 +250,12 @@
</div>
</div>
</a-drawer>
<a-button @click="openDrawer" type="link"><slot></slot></a-button>
<a-button @click="openDrawer" type="link">
<slot></slot>
</a-button>
</div>
<a-modal
:style="{ padding: 0, position: relative, right: '-20%' }"
:closable="true"
:visible="stageVisible"
:footer="null"
centered="true"
@ok="handleStageOk"
wrapClassName="changeModal"
>
<a-modal :style="{ padding: 0, position: relative, right: '-20%' }" :closable="true" :visible="stageVisible"
:footer="null" centered="true" @ok="handleStageOk" wrapClassName="changeModal">
<div class="con">
<div class="header">
<div class="inhe">
@@ -391,36 +267,18 @@
<div class="inher">
<!-- <div class="cur">当前关卡关卡2</div> -->
<div class="select">
<a-select
style="width: 400px"
:placeholder="type === 1 ? '选择阶段' : '选择关卡'"
v-model:value="selectsData.stageId"
className="cus-select"
>
<a-select-option
v-for="(item, i) in stageIds"
:key="i"
:value="item.id"
>{{ item.name || "默认" }}
<a-select style="width: 400px" :placeholder="type === 1 ? '选择阶段' : '选择关卡'" v-model:value="selectsData.stageId"
className="cus-select">
<a-select-option v-for="(item, i) in stageIds" :key="i" :value="item.id">{{ item.name || "默认" }}
</a-select-option>
</a-select>
</div>
<span style="color: #999999; margin-left: 10px"
><minus-circle-outlined />已在其他关卡的学员不会被添加到该关卡</span
>
<span style="color: #999999; margin-left: 10px"><minus-circle-outlined />已在其他关卡的学员不会被添加到该关卡</span>
<div class="btn" style="margin-top: 50px">
<button
class="sameb btn1"
@click="closeChangeModal"
style="cursor: pointer"
>
<button class="sameb btn1" @click="closeChangeModal" style="cursor: pointer">
取消
</button>
<button
class="sameb btn2"
@click="handleStageOk"
style="cursor: pointer"
>
<button class="sameb btn2" @click="handleStageOk" style="cursor: pointer">
确定
</button>
</div>
@@ -430,7 +288,7 @@
</a-modal>
</template>
<script setup>
import {message} from "ant-design-vue";
import { message } from "ant-design-vue";
import { computed, defineEmits, defineProps, ref, watch } from "vue";
import { boeRequest, useBoeApi, useBoeApiPage } from "@/api/request";
import {
@@ -801,10 +659,11 @@ function stuDel(i) {
selectsData.value.studentList.splice(i, 1);
}
// function orgDel(i) {
// orgSelectKeys.value = orgSelectKeys.value.filter(e => e !== selectsData.value.deptList[i].id)
// selectsData.value.deptList.splice(i, 1)
// }
function orgDel(i) {
orgSelectKeys.value = orgSelectKeys.value.filter(e => e !== selectsData.value.deptList[i].id)
selectsData.value.deptList.splice(i, 1)
}
function AuditDel(i) {
auditSelectKeys.value = auditSelectKeys.value.filter(
(e) => e !== selectsData.value.groupList[i].id
@@ -898,7 +757,7 @@ const submitAuth = () => {
function handleStageOk() {
// 判断添加人数是否已超过限制人数 限制 = 本次添加的人 + 原有的人
if(props.type === 1){
if (props.type === 1) {
if (props.groupMemberCount < selectsData.value.studentList.length + props.groupMemberNumber) {
return message.warning("添加小组学员超过最大值");
}

View File

@@ -7,45 +7,34 @@
<div class="inname">选项</div>
</div>
<div class="in">
<a-input
v-model:value="formData.optionName"
show-count
:maxlength="30"
style="border-radius: 8px"
/>
<a-input v-model:value="formData.optionName" show-count :maxlength="30" style="border-radius: 8px" />
</div>
</div>
<div class="delete" @click="handleDel">删除</div>
</div>
<div class="name uploadContent">
<a-upload
v-show="!formData.imgVal"
class="in uploadBtn"
:show-upload-list="false"
>
<div class="addimg">+添加图片{{ index }}</div>
<a-upload v-show="!formData.imgVal" class="in uploadBtn" :show-upload-list="false" :before-upload="beforeUpload">
<div class="addimg">+添加图片</div>
</a-upload>
<div v-show="formData.optionPictureAddress" class="picture" style="position: relative">
<img class="pictureimg" :src="formData.optionPictureAddress"/>
<img class="pictureimg" :src="formData.optionPictureAddress" />
<div class="picturename" v-show="hasImgName">{{ hasImgName }}</div>
<img
style="
cursor: pointer;
width: 20px;
height: 20px;
position: absolute;
right: 0;
top: 0;
"
src="../../assets/images/basicinfo/close.png"
@click="handleCancel"
/>
<img style="
cursor: pointer;
width: 20px;
height: 20px;
position: absolute;
right: 0;
top: 0;
" src="../../assets/images/basicinfo/close.png" @click="handleCancel" />
</div>
</div>
</div>
</template>
<script setup>
import {defineEmits, defineProps, ref} from "vue";
import { defineEmits, defineProps, ref } from "vue";
import { message } from "ant-design-vue";
import { fileUp } from "../../api/indexEval";
const props = defineProps({
item: {},
@@ -55,6 +44,36 @@ const emit = defineEmits(['del'])
const formData = ref(props.item)
const beforeUpload = (file) => {
const isJpgOrPng =
file.type === "image/jpg" ||
file.type === "image/jpeg" ||
file.type === "image/png" ||
file.type === "image/svg" ||
file.type === "image/bmp" ||
file.type === "image/gif";
if (!isJpgOrPng) {
message.error("仅支持jpg、gif、png、jpeg、svg、bmp格式!");
return false;
}
let isLt1M = file.size / 10240 / 10240 <= 1;
if (!isLt1M) {
this.$message.error("图片大小超过10MB!");
return false;
}
const formDatas = new FormData();
formDatas.append("file", file);
fileUp(formDatas).then((res) => {
if (res.data.code === 200) {
console.log(res.data.data, 45);
formData.value.optionPictureAddress = process.env.VUE_APP_FILE_PATH + res.data.data;
}
});
return false;
};
function handleDel() {
emit('del', props.index)
}
@@ -334,8 +353,7 @@ function handleDel() {
//line-height: 24px;
}
.ant-radio-wrapper {
}
.ant-radio-wrapper {}
.ant-input {
border-radius: 5px;