mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 19:36:46 +08:00
fix:修改发布学员人数
This commit is contained in:
@@ -138,7 +138,7 @@ export async function request(_url, params) {
|
||||
}
|
||||
}
|
||||
const body = method !== 'get' ? params || {} : {}
|
||||
url = process.env.VUE_APP_BOE_API_URL + url
|
||||
// url = process.env.VUE_APP_BOE_API_URL + url
|
||||
return fetch(url, {
|
||||
method,
|
||||
headers: {
|
||||
|
||||
@@ -51,31 +51,37 @@ body {
|
||||
height: 6px;
|
||||
/*对水平流动条有效*/
|
||||
}
|
||||
|
||||
::-o-scrollbar {
|
||||
width: 6px;
|
||||
/*对垂直流动条有效*/
|
||||
height: 6px;
|
||||
/*对水平流动条有效*/
|
||||
}
|
||||
|
||||
.scrollbar {
|
||||
width: 6px;
|
||||
/*对垂直流动条有效*/
|
||||
height: 6px;
|
||||
/*对水平流动条有效*/
|
||||
}
|
||||
|
||||
/*定义滚动条的轨道颜色、内阴影及圆角*/
|
||||
::-webkit-scrollbar-track {
|
||||
background-color: rgba(239, 244, 252, 1);
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
::-moz-scrollbar-track {
|
||||
background-color: rgba(239, 244, 252, 1);
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
::-o-scrollbar-track {
|
||||
background-color: rgba(239, 244, 252, 1);
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.scrollbar-track {
|
||||
background-color: rgba(239, 244, 252, 1);
|
||||
border-radius: 6px;
|
||||
@@ -86,14 +92,17 @@ body {
|
||||
border-radius: 3px;
|
||||
background-color: rgba(78, 166, 255, 1);
|
||||
}
|
||||
|
||||
::-moz-scrollbar-thumb {
|
||||
border-radius: 3px;
|
||||
background-color: rgba(78, 166, 255, 1);
|
||||
}
|
||||
|
||||
::-o-scrollbar-thumb {
|
||||
border-radius: 3px;
|
||||
background-color: rgba(78, 166, 255, 1);
|
||||
}
|
||||
|
||||
.scrollbar-thumb {
|
||||
border-radius: 3px;
|
||||
background-color: rgba(78, 166, 255, 1);
|
||||
@@ -104,35 +113,43 @@ body {
|
||||
background-color: cyan;
|
||||
display: none;
|
||||
}
|
||||
|
||||
::-moz-scrollbar-button {
|
||||
background-color: cyan;
|
||||
display: none;
|
||||
}
|
||||
|
||||
::-o-scrollbar-button {
|
||||
background-color: cyan;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.scrollbar-button {
|
||||
background-color: cyan;
|
||||
display: none;
|
||||
}
|
||||
|
||||
/*定义右下角汇合处的样式*/
|
||||
::-webkit-scrollbar-corner {
|
||||
background: rgba(239, 244, 252, 1);
|
||||
;
|
||||
}
|
||||
|
||||
::-moz-scrollbar-corner {
|
||||
background: rgba(239, 244, 252, 1);
|
||||
;
|
||||
}
|
||||
|
||||
::-o-scrollbar-corner {
|
||||
background: rgba(239, 244, 252, 1);
|
||||
;
|
||||
}
|
||||
|
||||
.scrollbar-corner {
|
||||
background: rgba(239, 244, 252, 1);
|
||||
;
|
||||
}
|
||||
|
||||
//隐藏滚动条----------------------------------------------------------------
|
||||
|
||||
//禁止选中----------------------------------------------------------
|
||||
@@ -329,6 +346,7 @@ textarea {
|
||||
|
||||
//抽屉--------------------------------------------------------
|
||||
.drawerStyle {
|
||||
|
||||
// transform: translateX(0px) !important;
|
||||
.ant-drawer-content-wrapper {
|
||||
max-width: 1050px;
|
||||
@@ -437,29 +455,34 @@ textarea {
|
||||
}
|
||||
}
|
||||
|
||||
.ant-modal{
|
||||
.modalHeader{
|
||||
background: linear-gradient(180deg, rgba(103,64,255,0.2) 0%, rgba(166,168,255,0) 100%) !important;
|
||||
.ant-modal {
|
||||
.modalHeader {
|
||||
background: linear-gradient(180deg, rgba(103, 64, 255, 0.2) 0%, rgba(166, 168, 255, 0) 100%) !important;
|
||||
}
|
||||
.top{
|
||||
background: linear-gradient(180deg, rgba(103,64,255,0.2) 0%, rgba(166,168,255,0) 100%) !important;
|
||||
|
||||
.top {
|
||||
background: linear-gradient(180deg, rgba(103, 64, 255, 0.2) 0%, rgba(166, 168, 255, 0) 100%) !important;
|
||||
}
|
||||
.del_header{
|
||||
background: linear-gradient(180deg, rgba(103,64,255,0.2) 0%, rgba(166,168,255,0) 100%) !important;
|
||||
|
||||
.del_header {
|
||||
background: linear-gradient(180deg, rgba(103, 64, 255, 0.2) 0%, rgba(166, 168, 255, 0) 100%) !important;
|
||||
}
|
||||
}
|
||||
|
||||
//弹窗--------------------------------------------------------
|
||||
|
||||
//loading--------------------------------------------------------
|
||||
.aeLoading {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top:0,
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 100
|
||||
}
|
||||
|
||||
//loading--------------------------------------------------------
|
||||
@@ -244,7 +244,7 @@
|
||||
class="aeLoading"
|
||||
:style="{ display: lpLoading ? 'flex' : 'none' }"
|
||||
>
|
||||
<a-spin :spinning="lpLoading" tip=""/>
|
||||
<a-spin :spinning="lpLoading" tip="" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -278,7 +278,7 @@
|
||||
/>
|
||||
</div>
|
||||
<div class="inname">路径图名称</div>
|
||||
<div class="in" >
|
||||
<div class="in">
|
||||
<!-- <a-input-->
|
||||
<!-- v-model:value="pathName"-->
|
||||
<!-- maxlength="20"-->
|
||||
@@ -709,7 +709,7 @@ import { storage } from "../../api/storage";
|
||||
import { useStore } from "vuex";
|
||||
import OrgClass from "@/components/project/OrgClass";
|
||||
import NameInput from "@/components/project/NameInput";
|
||||
|
||||
import { getStuPage } from "@/api/index1";
|
||||
export default {
|
||||
name: "learningPath",
|
||||
components: {
|
||||
@@ -857,7 +857,7 @@ export default {
|
||||
state.pathName = "";
|
||||
state.pathBg = "";
|
||||
state.pathBgId = "";
|
||||
if(store.state.userInfo.departId && store.state.userInfo.departName){
|
||||
if (store.state.userInfo.departId && store.state.userInfo.departName) {
|
||||
state.organizationSelectName = store.state.userInfo.departName;
|
||||
state.organizationSelectId = store.state.userInfo.departId;
|
||||
}
|
||||
@@ -867,7 +867,7 @@ export default {
|
||||
const handleOut1 = () => {
|
||||
state.pathName = "";
|
||||
state.pathBg = "";
|
||||
state.pathBgId =1;
|
||||
state.pathBgId = 1;
|
||||
state.organizationSelectName = null;
|
||||
state.organizationSelectId = null;
|
||||
state.pathIntro = "";
|
||||
@@ -908,12 +908,12 @@ export default {
|
||||
let stuobj = {
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
routerId: router.id,
|
||||
pid: router.id,
|
||||
type: 2,
|
||||
};
|
||||
api
|
||||
.getStudent(stuobj)
|
||||
getStuPage(stuobj)
|
||||
.then((res) => {
|
||||
console.log("获取学员列表", res.data.data.total);
|
||||
console.log("获取学员列表", res.data);
|
||||
if (res.data.code === 200) {
|
||||
state.routeStudentsNum = res.data.data.total;
|
||||
state.pubLoading = false;
|
||||
@@ -1626,7 +1626,6 @@ export default {
|
||||
arr.forEach((item) => {
|
||||
if (item.dictValue === state.pathBg) {
|
||||
state.pathBgId = item.dictCode;
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
@@ -1745,7 +1744,7 @@ export default {
|
||||
state.searchdate = null;
|
||||
state.startTime = null;
|
||||
state.endTime = null;
|
||||
state.createUser=null;
|
||||
state.createUser = null;
|
||||
getLearnPath();
|
||||
};
|
||||
|
||||
@@ -1803,7 +1802,7 @@ export default {
|
||||
// state.imgData = ;
|
||||
// }
|
||||
});
|
||||
const imgData = computed(()=>store.state.pathmapPic)
|
||||
const imgData = computed(() => store.state.pathmapPic);
|
||||
//添加权限
|
||||
watch(
|
||||
() => state.addAuthList,
|
||||
|
||||
@@ -17,11 +17,12 @@
|
||||
@click="showCodeModel2()"
|
||||
/>
|
||||
<div v-if="action == 1 || action == 0" class="line"></div>-->
|
||||
<div class ="pubIcon" v-if="action == 1 || action == 0" @click="pubIcon(action)">
|
||||
<img
|
||||
class="img2"
|
||||
src="../../assets/images/leveladd/pub.png"
|
||||
/>
|
||||
<div
|
||||
class="pubIcon"
|
||||
v-if="action == 1 || action == 0"
|
||||
@click="pubIcon(action)"
|
||||
>
|
||||
<img class="img2" src="../../assets/images/leveladd/pub.png" />
|
||||
<!-- 已发布的显示 -->
|
||||
<div class="pub" style="width: 28px">
|
||||
{{ act }}
|
||||
@@ -29,7 +30,7 @@
|
||||
</div>
|
||||
<div class="line"></div>
|
||||
<router-link to="/learningpath"
|
||||
><div style="display: flex; ">
|
||||
><div style="display: flex">
|
||||
<img class="img2" src="../../assets/images/leveladd/back.png" />
|
||||
<div class="return">返回</div>
|
||||
</div>
|
||||
@@ -703,7 +704,6 @@
|
||||
</a-tabs>
|
||||
</a-tab-pane>
|
||||
-->
|
||||
|
||||
</a-tabs>
|
||||
|
||||
<a-modal
|
||||
@@ -1114,6 +1114,7 @@ import { codeUrl } from "../../api/method";
|
||||
import TwoDimensionalCode from "../../components/TwoDimensionalCode.vue";
|
||||
import TableStudent from "@/components/student/TableStudent";
|
||||
// import * as student from "@/api/student";
|
||||
import { getStuPage } from "@/api/index1";
|
||||
export default {
|
||||
name: "LevelAdd",
|
||||
components: {
|
||||
@@ -1680,10 +1681,10 @@ export default {
|
||||
let stuobj = {
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
routerId: state.routerId,
|
||||
pid: state.routerId,
|
||||
type: 2,
|
||||
};
|
||||
api
|
||||
.getStudent(stuobj)
|
||||
getStuPage(stuobj)
|
||||
.then((res) => {
|
||||
console.log("获取学员列表", res.data.data.total);
|
||||
if (res.data.code === 200) {
|
||||
@@ -1695,14 +1696,13 @@ export default {
|
||||
console.log("获取学员列表失败", err);
|
||||
});
|
||||
};
|
||||
const pubIcon =(action)=>{
|
||||
if(action ==1){
|
||||
const pubIcon = (action) => {
|
||||
if (action == 1) {
|
||||
showBackModal();
|
||||
}else{
|
||||
} else {
|
||||
showPub();
|
||||
}
|
||||
|
||||
}
|
||||
};
|
||||
//显示撤回弹窗
|
||||
const showBackModal = () => {
|
||||
state.backModal = true;
|
||||
@@ -1868,7 +1868,10 @@ export default {
|
||||
state.nodata = false;
|
||||
}
|
||||
let data = res.data.data.chapterList;
|
||||
state.stage = res.data.data.chapterList.map(e => ({id: e.chapterId, name: e.name}))
|
||||
state.stage = res.data.data.chapterList.map((e) => ({
|
||||
id: e.chapterId,
|
||||
name: e.name,
|
||||
}));
|
||||
state.taskSyllabus = data;
|
||||
// for(let i in data) {
|
||||
// state.taskSyllabus[i].name = data[i].name
|
||||
@@ -2851,7 +2854,7 @@ export default {
|
||||
background-color: #e8effa;
|
||||
margin-right: 28px;
|
||||
}
|
||||
.pubIcon{
|
||||
.pubIcon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
@@ -4262,7 +4265,5 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -51,7 +51,6 @@
|
||||
format="YYYY-MM-DD"
|
||||
style="border-radius: 8px; height: 40px; margin-left: 5px"
|
||||
:placeholder="[' 开始时间', ' 结束时间']"
|
||||
|
||||
/>
|
||||
</div>
|
||||
<div style="display: flex; margin-bottom: 20px">
|
||||
@@ -829,7 +828,7 @@ import { changeOwnership } from "@/api/method";
|
||||
import NameInput from "@/components/project/NameInput";
|
||||
import { validateName } from "@/api/index1";
|
||||
//import { toDate } from "../../api/method";
|
||||
|
||||
import { getStuPage } from "@/api/index1";
|
||||
export default {
|
||||
name: "projectManage",
|
||||
components: {
|
||||
@@ -1050,10 +1049,10 @@ export default {
|
||||
let obj = {
|
||||
pageNo: 0,
|
||||
pageSize: 0,
|
||||
projectId: object.projectId,
|
||||
pid: object.projectId,
|
||||
type: 1,
|
||||
};
|
||||
api
|
||||
.projectStudent(obj)
|
||||
getStuPage(obj)
|
||||
.then((res) => {
|
||||
if (res.data.code === 200) {
|
||||
// console.log("res", res.data);
|
||||
@@ -1699,7 +1698,6 @@ export default {
|
||||
state.searchParam.valueDate &&
|
||||
state.searchParam.valueDate.length === 2
|
||||
? dayjs(state.searchParam.valueDate[0]).format("YYYY-MM-DD")
|
||||
|
||||
: "",
|
||||
endTime:
|
||||
state.searchParam.valueDate &&
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<div class="taskpage">
|
||||
<div class="addhead" style="flex-shrink: 0">
|
||||
<div class="leftimg">
|
||||
<img class="img" :src="picUrl"/>
|
||||
<img class="img" :src="picUrl" />
|
||||
</div>
|
||||
<div class="imgfor">
|
||||
<div class="forz">{{ name }}</div>
|
||||
@@ -171,7 +171,7 @@
|
||||
<div class="line"></div>
|
||||
<router-link to="/projectmanage">
|
||||
<div style="display: flex">
|
||||
<img class="img2" src="../../assets/images/leveladd/back.png"/>
|
||||
<img class="img2" src="../../assets/images/leveladd/back.png" />
|
||||
<div class="return">返回</div>
|
||||
</div>
|
||||
</router-link>
|
||||
@@ -208,13 +208,13 @@
|
||||
style="background: linear-gradient(180deg, #fef3dd, #fffaf0)"
|
||||
>
|
||||
<div class="leftt">
|
||||
<img src="../../assets/images/taskpage/left1.png"/>
|
||||
<img src="../../assets/images/taskpage/left1.png" />
|
||||
</div>
|
||||
<div class="photo">
|
||||
<img src="../../assets/images/taskpage/picture1.png"/>
|
||||
<img src="../../assets/images/taskpage/picture1.png" />
|
||||
</div>
|
||||
<div class="rightt">
|
||||
<img src="../../assets/images/taskpage/right1.png"/>
|
||||
<img src="../../assets/images/taskpage/right1.png" />
|
||||
</div>
|
||||
<div class="centerbox" style="color: rgba(255, 182, 78, 1)">
|
||||
添加任务
|
||||
@@ -227,13 +227,13 @@
|
||||
style="background: linear-gradient(180deg, #ddeaff, #f0f8fe)"
|
||||
>
|
||||
<div class="leftt">
|
||||
<img src="../../assets/images/taskpage/left2.png"/>
|
||||
<img src="../../assets/images/taskpage/left2.png" />
|
||||
</div>
|
||||
<div class="photo">
|
||||
<img src="../../assets/images/taskpage/picture2.png"/>
|
||||
<img src="../../assets/images/taskpage/picture2.png" />
|
||||
</div>
|
||||
<div class="rightt">
|
||||
<img src="../../assets/images/taskpage/right2.png"/>
|
||||
<img src="../../assets/images/taskpage/right2.png" />
|
||||
</div>
|
||||
<div class="centerbox" style="color: rgba(78, 166, 255, 1)">
|
||||
添加学员
|
||||
@@ -640,13 +640,13 @@
|
||||
v-if="taskSyllabus.length == 0"
|
||||
>
|
||||
<div class="leftt">
|
||||
<img src="../../assets/images/taskpage/left2.png"/>
|
||||
<img src="../../assets/images/taskpage/left2.png" />
|
||||
</div>
|
||||
<div class="photo">
|
||||
<img src="../../assets/images/taskpage/picture8.png"/>
|
||||
<img src="../../assets/images/taskpage/picture8.png" />
|
||||
</div>
|
||||
<div class="rightt">
|
||||
<img src="../../assets/images/taskpage/right2.png"/>
|
||||
<img src="../../assets/images/taskpage/right2.png" />
|
||||
</div>
|
||||
<div class="centerbox" style="color: rgba(78, 166, 255, 1)">
|
||||
创建任务
|
||||
@@ -669,13 +669,13 @@
|
||||
style="background: linear-gradient(180deg, #fef3dd, #fffaf0)"
|
||||
>
|
||||
<div class="leftt">
|
||||
<img src="../../assets/images/taskpage/left1.png"/>
|
||||
<img src="../../assets/images/taskpage/left1.png" />
|
||||
</div>
|
||||
<div class="photo">
|
||||
<img src="../../assets/images/taskpage/picture1.png"/>
|
||||
<img src="../../assets/images/taskpage/picture1.png" />
|
||||
</div>
|
||||
<div class="rightt">
|
||||
<img src="../../assets/images/taskpage/right1.png"/>
|
||||
<img src="../../assets/images/taskpage/right1.png" />
|
||||
</div>
|
||||
<div class="centerbox" style="color: rgba(255, 182, 78, 1)">
|
||||
添加任务
|
||||
@@ -691,7 +691,12 @@
|
||||
<div class="content3">
|
||||
<a-tabs v-model:activeKey="activeKey1">
|
||||
<a-tab-pane key="8" tab="学员管理">
|
||||
<TableStudent :type="1" :id="projectId" :columns="stuColumns" :stage="stage"></TableStudent>
|
||||
<TableStudent
|
||||
:type="1"
|
||||
:id="projectId"
|
||||
:columns="stuColumns"
|
||||
:stage="stage"
|
||||
></TableStudent>
|
||||
</a-tab-pane>
|
||||
</a-tabs>
|
||||
</div>
|
||||
@@ -1044,7 +1049,7 @@
|
||||
:title="showFaceText"
|
||||
/>
|
||||
<!-- 学员(小组管理)创建小组抽屉 -->
|
||||
<subset-manage v-model:Svisible="subsetVisivle"/>
|
||||
<subset-manage v-model:Svisible="subsetVisivle" />
|
||||
<!-- 学员管理-添加学员抽屉 -->
|
||||
<!-- <stu-add v-model:Stuvisible="Stuvisible" /> -->
|
||||
<!-- 添加学员抽屉 -->
|
||||
@@ -1057,7 +1062,7 @@
|
||||
:type="2"
|
||||
/>
|
||||
<!-- 学员管理-导入学员抽屉 -->
|
||||
<import-stu v-model:Importvisible="Importvisible"/>
|
||||
<import-stu v-model:Importvisible="Importvisible" />
|
||||
<!-- 查看学员 传入查看学员的id-->
|
||||
<see-stu
|
||||
v-model:Seevisible="Seevisible"
|
||||
@@ -1080,9 +1085,9 @@
|
||||
v-model:projectId="projectId"
|
||||
/>
|
||||
<!-- 面授学员抽屉 -->
|
||||
<face-stu v-model:FSvisible="FSvisible"/>
|
||||
<face-stu v-model:FSvisible="FSvisible" />
|
||||
<!-- 活动考勤抽屉 -->
|
||||
<active-attendance v-model:AAvisible="AAvisible" :title="showkaoqinText"/>
|
||||
<active-attendance v-model:AAvisible="AAvisible" :title="showkaoqinText" />
|
||||
<!-- 作业管理抽屉 -->
|
||||
<work-manage
|
||||
v-model:Wvisible="Wvisible"
|
||||
@@ -1097,7 +1102,7 @@
|
||||
:itemsType="itemstype"
|
||||
/>
|
||||
<!-- 批量面授报名 -->
|
||||
<task-imp-stu v-model:TaskFaceImpStuvisible="TaskFaceImpStuvisible"/>
|
||||
<task-imp-stu v-model:TaskFaceImpStuvisible="TaskFaceImpStuvisible" />
|
||||
|
||||
<!-- 概览(无数据)-项目发布弹窗 -->
|
||||
<div>
|
||||
@@ -1156,7 +1161,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="send">
|
||||
<a-switch v-model:checked="checked" size="small"/>
|
||||
<a-switch v-model:checked="checked" size="small" />
|
||||
<span class="sendtext">发送项目通知</span>
|
||||
</div>
|
||||
<div class="ckb">
|
||||
@@ -1420,7 +1425,7 @@
|
||||
</a-modal>
|
||||
</div>
|
||||
<!-- 编辑项目弹窗 -->
|
||||
<proj-set v-model:editHs="editHs" v-model:projectId="projectId"/>
|
||||
<proj-set v-model:editHs="editHs" v-model:projectId="projectId" />
|
||||
|
||||
<!-- 发布弹窗 -->
|
||||
<a-modal
|
||||
@@ -1502,7 +1507,7 @@
|
||||
class="aeLoading"
|
||||
:style="{ display: projectPubLoading ? 'flex' : 'none' }"
|
||||
>
|
||||
<a-spin :spinning="projectPubLoading"/>
|
||||
<a-spin :spinning="projectPubLoading" />
|
||||
</div>
|
||||
</a-modal>
|
||||
|
||||
@@ -1644,9 +1649,9 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import {reactive, toRefs, onMounted, watch, computed} from "vue";
|
||||
import {useRoute} from "vue-router";
|
||||
import {useRouter} from "vue-router";
|
||||
import { reactive, toRefs, onMounted, watch, computed } from "vue";
|
||||
import { useRoute } from "vue-router";
|
||||
import { useRouter } from "vue-router";
|
||||
import TimeManage from "../../components/drawers/TimeManage";
|
||||
import FaceManage from "../../components/drawers/FaceManage";
|
||||
import SubsetManage from "../../components/drawers/SubsetManage";
|
||||
@@ -1662,7 +1667,7 @@ import ChangeGroup from "../../components/drawers/ChangeGroup";
|
||||
import NoticePub from "../../components/drawers/NoticePub";
|
||||
import NoticeHis from "../../components/drawers/NoticeHis";
|
||||
import TaskImpStu from "../../components/drawers/TaskFaceIn";
|
||||
import {storage} from "../../api/storage";
|
||||
import { storage } from "../../api/storage";
|
||||
import * as api from "../../api/index1";
|
||||
import * as apis from "../../api/index";
|
||||
import * as apiproj from "../../api/index";
|
||||
@@ -1675,20 +1680,20 @@ import {
|
||||
editGroup,
|
||||
topStudent,
|
||||
} from "../../api/indexProjStu";
|
||||
import {message, Modal} from "ant-design-vue";
|
||||
import { message, Modal } from "ant-design-vue";
|
||||
import * as apitl from "../../api/index";
|
||||
import {getTask} from "../../api/indexTaskadd";
|
||||
import {editProj} from "../../api/indexTaskadd";
|
||||
import {toDate, codeUrl} from "../../api/method";
|
||||
import { getTask } from "../../api/indexTaskadd";
|
||||
import { editProj } from "../../api/indexTaskadd";
|
||||
import { toDate, codeUrl } from "../../api/method";
|
||||
import projSet from "../../components/Modals/projSet";
|
||||
import {overview} from "../../api/indexProjStu";
|
||||
import { overview } from "../../api/indexProjStu";
|
||||
import TwoDimensionalCode from "../../components/TwoDimensionalCode.vue";
|
||||
import {useStore} from "vuex";
|
||||
import { useStore } from "vuex";
|
||||
import ProjectLevel from "@/components/project/ProjectLevel";
|
||||
import TrainClass from "@/components/project/TrainClass";
|
||||
import ProjectManager from "@/components/project/ProjectManagerNew";
|
||||
import TableStudent from "@/components/student/TableStudent";
|
||||
|
||||
import { getStuPage } from "@/api/index1";
|
||||
export default {
|
||||
name: "taskPage",
|
||||
components: {
|
||||
@@ -1714,14 +1719,15 @@ export default {
|
||||
NoticeHis,
|
||||
TwoDimensionalCode,
|
||||
ProjectManager,
|
||||
TableStudent
|
||||
TableStudent,
|
||||
},
|
||||
setup() {
|
||||
const store = useStore();
|
||||
const route = useRoute();
|
||||
const state = reactive({
|
||||
stage: [],
|
||||
stuColumns: [{
|
||||
stuColumns: [
|
||||
{
|
||||
title: "进度",
|
||||
dataIndex: "progress",
|
||||
key: "progress",
|
||||
@@ -1737,7 +1743,8 @@ export default {
|
||||
width: 80,
|
||||
align: "center",
|
||||
className: "h",
|
||||
}],
|
||||
},
|
||||
],
|
||||
loading: false,
|
||||
projectId: route.query.projectId,
|
||||
isbj: storage.get("isbj") ? JSON.parse(storage.get("isbj")) : null,
|
||||
@@ -1804,23 +1811,23 @@ export default {
|
||||
projectTaskId: "", //项目任务任务id
|
||||
//进度排行学员
|
||||
rankjindu: [
|
||||
{value: "学员", label: "学员"},
|
||||
{value: "小组", label: "小组"},
|
||||
{ value: "学员", label: "学员" },
|
||||
{ value: "小组", label: "小组" },
|
||||
],
|
||||
valuestu1: "学员",
|
||||
//进度排行阶段
|
||||
rankjieduan: [{value: "第一阶段", label: "第一阶段"}],
|
||||
rankjieduan: [{ value: "第一阶段", label: "第一阶段" }],
|
||||
valuestu2: "第一阶段",
|
||||
//积分排行
|
||||
rankxuefen: [
|
||||
{value: "学员", label: "学员"},
|
||||
{value: "小组", label: "小组"},
|
||||
{ value: "学员", label: "学员" },
|
||||
{ value: "小组", label: "小组" },
|
||||
],
|
||||
valuestu3: "学员",
|
||||
//学时排行
|
||||
rankxueshi: [
|
||||
{value: "学员", label: "学员"},
|
||||
{value: "小组", label: "小组"},
|
||||
{ value: "学员", label: "学员" },
|
||||
{ value: "小组", label: "小组" },
|
||||
],
|
||||
valuestu4: "学员",
|
||||
visible: false, //时间管理
|
||||
@@ -1968,21 +1975,21 @@ export default {
|
||||
if (text.record.rank == "1") {
|
||||
return (
|
||||
<img
|
||||
style={{width: 24, height: 24}}
|
||||
style={{ width: 24, height: 24 }}
|
||||
src={require("../../assets/images/taskpage/one.png")}
|
||||
/>
|
||||
);
|
||||
} else if (text.record.rank == "2") {
|
||||
return (
|
||||
<img
|
||||
style={{width: 24, height: 24}}
|
||||
style={{ width: 24, height: 24 }}
|
||||
src={require("../../assets/images/taskpage/two.png")}
|
||||
/>
|
||||
);
|
||||
} else if (text.record.rank == "3") {
|
||||
return (
|
||||
<img
|
||||
style={{width: 24, height: 24}}
|
||||
style={{ width: 24, height: 24 }}
|
||||
src={require("../../assets/images/taskpage/three.png")}
|
||||
/>
|
||||
);
|
||||
@@ -2075,21 +2082,21 @@ export default {
|
||||
if (text.record.rank == "1") {
|
||||
return (
|
||||
<img
|
||||
style={{width: 24, height: 24}}
|
||||
style={{ width: 24, height: 24 }}
|
||||
src={require("../../assets/images/taskpage/one.png")}
|
||||
/>
|
||||
);
|
||||
} else if (text.record.rank == "2") {
|
||||
return (
|
||||
<img
|
||||
style={{width: 24, height: 24}}
|
||||
style={{ width: 24, height: 24 }}
|
||||
src={require("../../assets/images/taskpage/two.png")}
|
||||
/>
|
||||
);
|
||||
} else if (text.record.rank == "3") {
|
||||
return (
|
||||
<img
|
||||
style={{width: 24, height: 24}}
|
||||
style={{ width: 24, height: 24 }}
|
||||
src={require("../../assets/images/taskpage/three.png")}
|
||||
/>
|
||||
);
|
||||
@@ -2182,21 +2189,21 @@ export default {
|
||||
if (text.record.rank == "1") {
|
||||
return (
|
||||
<img
|
||||
style={{width: 24, height: 24}}
|
||||
style={{ width: 24, height: 24 }}
|
||||
src={require("../../assets/images/taskpage/one.png")}
|
||||
/>
|
||||
);
|
||||
} else if (text.record.rank == "2") {
|
||||
return (
|
||||
<img
|
||||
style={{width: 24, height: 24}}
|
||||
style={{ width: 24, height: 24 }}
|
||||
src={require("../../assets/images/taskpage/two.png")}
|
||||
/>
|
||||
);
|
||||
} else if (text.record.rank == "3") {
|
||||
return (
|
||||
<img
|
||||
style={{width: 24, height: 24}}
|
||||
style={{ width: 24, height: 24 }}
|
||||
src={require("../../assets/images/taskpage/three.png")}
|
||||
/>
|
||||
);
|
||||
@@ -2528,7 +2535,7 @@ export default {
|
||||
// state.activeKey = "2";
|
||||
routered.push({
|
||||
path: `/taskadd`,
|
||||
query: {projectId: state.projectId},
|
||||
query: { projectId: state.projectId },
|
||||
});
|
||||
};
|
||||
const tostudent = () => {
|
||||
@@ -2969,7 +2976,7 @@ export default {
|
||||
width: "20%",
|
||||
align: "center",
|
||||
className: "h",
|
||||
scopedSlots: {customRender: "action"}, //引入的插槽
|
||||
scopedSlots: { customRender: "action" }, //引入的插槽
|
||||
customRender: (text) => {
|
||||
// console.log(text);
|
||||
return (
|
||||
@@ -3295,7 +3302,7 @@ export default {
|
||||
title: "确定清空所有学员吗?",
|
||||
onOk: async () => {
|
||||
state.tabledata = [];
|
||||
student.studentDelAll({id: state.projectId, type: 1});
|
||||
student.studentDelAll({ id: state.projectId, type: 1 });
|
||||
},
|
||||
bodyStyle: "margin-top:70%",
|
||||
});
|
||||
@@ -3341,7 +3348,10 @@ export default {
|
||||
console.log("get task", res.data.data);
|
||||
if (res.data.code === 200) {
|
||||
// 判断当前审核是否通过
|
||||
if (res.data.data.status == -5 && res.data.data.projectAuditLogDtoList !== null) {
|
||||
if (
|
||||
res.data.data.status == -5 &&
|
||||
res.data.data.projectAuditLogDtoList !== null
|
||||
) {
|
||||
console.log("审核信息是什么", res.data.data.projectAuditLogDtoList);
|
||||
let dataset = res.data.data.projectAuditLogDtoList;
|
||||
state.passInfo = dataset[dataset.length - 1];
|
||||
@@ -3356,7 +3366,10 @@ export default {
|
||||
}
|
||||
*/
|
||||
}
|
||||
state.stage = res.data.data.stageList.map(e => ({id: e.stageId, name: e.name}))
|
||||
state.stage = res.data.data.stageList.map((e) => ({
|
||||
id: e.stageId,
|
||||
name: e.name,
|
||||
}));
|
||||
let info = res.data.data.projectInfo;
|
||||
// let start = toDate(info.beginTime / 1000, "Y-M-D h:m");
|
||||
let start = info.beginTime;
|
||||
@@ -3522,7 +3535,7 @@ export default {
|
||||
//start---------项目概览
|
||||
// 获取项目概览
|
||||
const getOverview = () => {
|
||||
overview({projectId: state.projectId})
|
||||
overview({ projectId: state.projectId })
|
||||
.then((res) => {
|
||||
Object.keys(res.data.data.projectInfoOverview).forEach((item) => {
|
||||
levelList.projectInfoOverview[item] =
|
||||
@@ -3581,7 +3594,7 @@ export default {
|
||||
});
|
||||
};
|
||||
|
||||
const handleChange = ({file, fileList}) => {
|
||||
const handleChange = ({ file, fileList }) => {
|
||||
let list = [];
|
||||
if (file.status !== "uploading") {
|
||||
console.log("上传的list", fileList);
|
||||
@@ -3725,10 +3738,10 @@ export default {
|
||||
let obj = {
|
||||
pageNo: 0,
|
||||
pageSize: 0,
|
||||
projectId: state.projectId,
|
||||
pid: state.projectId,
|
||||
type: 1,
|
||||
};
|
||||
apiproj
|
||||
.projectStudent(obj)
|
||||
getStuPage(obj)
|
||||
.then((res) => {
|
||||
if (res.data.code === 200) {
|
||||
// console.log("res", res.data);
|
||||
@@ -5627,7 +5640,6 @@ export default {
|
||||
.group {
|
||||
display: flex;
|
||||
|
||||
|
||||
.groupleft {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
||||
@@ -174,7 +174,11 @@
|
||||
<!--操作弹窗 -->
|
||||
</div>
|
||||
<!-- 加载动画 -->
|
||||
<div class="aeLoading" :style="{ display: addLoading ? 'flex' : 'none' }">
|
||||
<div
|
||||
class="aeLoading"
|
||||
style="z-index: 100"
|
||||
:style="{ display: addLoading ? 'flex' : 'none' }"
|
||||
>
|
||||
<a-spin :spinning="addLoading" tip="" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user