mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 21:06:44 +08:00
fix:修改发布学员人数
This commit is contained in:
@@ -10,26 +10,27 @@
|
||||
<div class="fort">创建时间:{{ cretime }}</div>
|
||||
</div>
|
||||
<div class="right">
|
||||
<!--
|
||||
<!--
|
||||
<img
|
||||
class="img1"
|
||||
src="../../assets/images/leveladd/ma.png"
|
||||
@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="pub" style="width: 28px">
|
||||
{{ act }}
|
||||
<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 }}
|
||||
</div>
|
||||
</div>
|
||||
</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>
|
||||
@@ -507,7 +508,7 @@
|
||||
<a-tab-pane key="3" tab="学员管理" force-render>
|
||||
<TableStudent :type="2" :id="routerId" :stage="stage"></TableStudent>
|
||||
</a-tab-pane>
|
||||
<!--1211注释 待开放
|
||||
<!--1211注释 待开放
|
||||
<a-tab-pane key="4" tab="设置">
|
||||
<div class="split"></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: {
|
||||
@@ -1367,12 +1368,12 @@ export default {
|
||||
className: "h",
|
||||
},
|
||||
// {
|
||||
// title: "岗位",
|
||||
// dataIndex: "gang",
|
||||
// key: "gang",
|
||||
// width: 110,
|
||||
// align: "center",
|
||||
// className: "h",
|
||||
// title: "岗位",
|
||||
// dataIndex: "gang",
|
||||
// key: "gang",
|
||||
// width: 110,
|
||||
// align: "center",
|
||||
// className: "h",
|
||||
// },
|
||||
{
|
||||
title: "当前关卡",
|
||||
@@ -1382,14 +1383,14 @@ export default {
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "进度",
|
||||
dataIndex: "jin",
|
||||
key: "jin",
|
||||
width: 110,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "进度",
|
||||
dataIndex: "jin",
|
||||
key: "jin",
|
||||
width: 110,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "开始时间",
|
||||
dataIndex: "time",
|
||||
@@ -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,23 +2854,23 @@ export default {
|
||||
background-color: #e8effa;
|
||||
margin-right: 28px;
|
||||
}
|
||||
.pubIcon{
|
||||
.pubIcon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.img2 {
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
margin-right: 22px;
|
||||
}
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
margin-right: 22px;
|
||||
}
|
||||
|
||||
.pub {
|
||||
color: #ffb64e;
|
||||
font-size: 14px;
|
||||
margin-top: 5px;
|
||||
margin-right: 30px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.pub {
|
||||
color: #ffb64e;
|
||||
font-size: 14px;
|
||||
margin-top: 5px;
|
||||
margin-right: 30px;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
.img2 {
|
||||
@@ -4262,7 +4265,5 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user