mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 03:46:45 +08:00
Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -948,7 +948,7 @@ export default {
|
|||||||
process.env.VUE_APP_BASE_API +
|
process.env.VUE_APP_BASE_API +
|
||||||
`/admin/student/studentSign?taskId=${props.datasource.id}&taskType=${
|
`/admin/student/studentSign?taskId=${props.datasource.id}&taskType=${
|
||||||
props.datasource.type
|
props.datasource.type
|
||||||
}&type=${2}`,
|
}&type=${1}`,
|
||||||
};
|
};
|
||||||
console.log("codeInfo", state.codeInfo);
|
console.log("codeInfo", state.codeInfo);
|
||||||
state.codeIndex = 0;
|
state.codeIndex = 0;
|
||||||
|
|||||||
@@ -286,7 +286,7 @@ export default {
|
|||||||
align: "center",
|
align: "center",
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
className: "h",
|
className: "h",
|
||||||
customRender: ({record:{finishStatus}}) => ({1:'已完成',0:'未开始',9:'已完成'}[finishStatus] || '未开始'),
|
customRender: ({record:{status}}) => ({1:'已完成',0:'未开始',9:'已完成'}[status] || '未开始'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "操作",
|
title: "操作",
|
||||||
@@ -299,7 +299,7 @@ export default {
|
|||||||
customRender: (text) => {
|
customRender: (text) => {
|
||||||
{/* debugger */ }
|
{/* debugger */ }
|
||||||
console.log("text" + text.record)
|
console.log("text" + text.record)
|
||||||
if (text.record.finishStatus === 1 || text.record.finishStatus === 9) {
|
if (text.record.status === 1 || text.record.status === 9) {
|
||||||
return (
|
return (
|
||||||
<div class="racona">
|
<div class="racona">
|
||||||
<a-button
|
<a-button
|
||||||
|
|||||||
@@ -93,7 +93,6 @@ import { reactive, toRefs } from "vue";
|
|||||||
import * as api from "@/api/index1";
|
import * as api from "@/api/index1";
|
||||||
import OrgClass from "@/components/project/OrgClass";
|
import OrgClass from "@/components/project/OrgClass";
|
||||||
import { message } from "ant-design-vue";
|
import { message } from "ant-design-vue";
|
||||||
import { toDate } from "@/api/method";
|
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
export default {
|
export default {
|
||||||
name: "TableCertificateStudent",
|
name: "TableCertificateStudent",
|
||||||
@@ -160,17 +159,7 @@ export default {
|
|||||||
key: "createTime",
|
key: "createTime",
|
||||||
width: 60,
|
width: 60,
|
||||||
align: "center",
|
align: "center",
|
||||||
className: "h",
|
className: "h"
|
||||||
customRender: (record) => {
|
|
||||||
// console.log(text.record.checked1);
|
|
||||||
return (
|
|
||||||
<div>
|
|
||||||
{record.record.createTime
|
|
||||||
? toDate(record.record.createTime / 1000, "Y-M-D h:m")
|
|
||||||
: "-"}
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "操作",
|
title: "操作",
|
||||||
|
|||||||
@@ -10,13 +10,13 @@
|
|||||||
<div class="fort">创建时间:{{ cretime }}</div>
|
<div class="fort">创建时间:{{ cretime }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
|
|
||||||
<img
|
<img
|
||||||
class="img1"
|
class="img1"
|
||||||
src="../../assets/images/leveladd/ma.png"
|
src="../../assets/images/leveladd/ma.png"
|
||||||
@click="showCodeModel2()"
|
@click="showCodeModel2()"
|
||||||
|
v-if="action == 1"
|
||||||
/>
|
/>
|
||||||
<div v-if="action == 1 || action == 0" class="line"></div>
|
<div v-if="action == 1" class="line"></div>
|
||||||
<div
|
<div
|
||||||
class="pubIcon"
|
class="pubIcon"
|
||||||
v-if="(action == 1 || action == 0) && checkPer(permissions)"
|
v-if="(action == 1 || action == 0) && checkPer(permissions)"
|
||||||
@@ -2759,7 +2759,8 @@ export default {
|
|||||||
let obj = {
|
let obj = {
|
||||||
title: "[学习路径]二维码",
|
title: "[学习路径]二维码",
|
||||||
name: state.styTitle,
|
name: state.styTitle,
|
||||||
url: window.location.protocol +
|
url:
|
||||||
|
window.location.protocol +
|
||||||
process.env.VUE_APP_H5 +
|
process.env.VUE_APP_H5 +
|
||||||
"/pathdetails?routerId=" +
|
"/pathdetails?routerId=" +
|
||||||
state.routerId,
|
state.routerId,
|
||||||
|
|||||||
@@ -261,7 +261,7 @@
|
|||||||
size="small" active-color="red"/>
|
size="small" active-color="red"/>
|
||||||
<div class="showt clearfix">
|
<div class="showt clearfix">
|
||||||
<div class="bi" :style="{
|
<div class="bi" :style="{
|
||||||
'z-index': element.flag ? 999 : 998,
|
'z-index': element.flag ? 889 : 887,
|
||||||
}">
|
}">
|
||||||
必修
|
必修
|
||||||
</div>
|
</div>
|
||||||
@@ -1946,7 +1946,7 @@ const cancelStorage = async () => {
|
|||||||
background-color: #5dc988;
|
background-color: #5dc988;
|
||||||
line-height: 23px;
|
line-height: 23px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 998;
|
z-index: 888;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
@@ -1958,7 +1958,7 @@ const cancelStorage = async () => {
|
|||||||
line-height: 23px;
|
line-height: 23px;
|
||||||
// display: none;
|
// display: none;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 998;
|
z-index: 888;
|
||||||
color: #5dc988;
|
color: #5dc988;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1473,7 +1473,7 @@ export default {
|
|||||||
customRender: (value) => {
|
customRender: (value) => {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
{value.record.status === 3
|
{value.record.status === 3 || value.record.status === 2 || value.record.status === -5 || value.record.status === 1
|
||||||
? {
|
? {
|
||||||
0: "草稿",
|
0: "草稿",
|
||||||
1: "提交待审核",
|
1: "提交待审核",
|
||||||
@@ -1482,6 +1482,10 @@ export default {
|
|||||||
4: "发布",
|
4: "发布",
|
||||||
"-1": "已结束",
|
"-1": "已结束",
|
||||||
"-6": "撤回已结束",
|
"-6": "撤回已结束",
|
||||||
|
"-2": "删除",
|
||||||
|
"-3": "撤回审核",
|
||||||
|
"-4": "撤回发布",
|
||||||
|
"-5": "拒绝",
|
||||||
}[value.record.status + ""] || ""
|
}[value.record.status + ""] || ""
|
||||||
: "-"}
|
: "-"}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -235,7 +235,7 @@
|
|||||||
v-model:checked="element.flag" size="small"
|
v-model:checked="element.flag" size="small"
|
||||||
active-color="red"/>
|
active-color="red"/>
|
||||||
<div class="showt clearfix">
|
<div class="showt clearfix">
|
||||||
<div class="bi" :style="{'z-index': element.flag ? 999 : 998,}">必修</div>
|
<div class="bi" :style="{'z-index': element.flag ? 889 : 887,}">必修</div>
|
||||||
<div class="xuan">选修</div>
|
<div class="xuan">选修</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -1585,7 +1585,7 @@ const cancelStorage = async () => {
|
|||||||
background-color: #5dc988;
|
background-color: #5dc988;
|
||||||
line-height: 23px;
|
line-height: 23px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 998;
|
z-index: 888;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
@@ -1596,7 +1596,7 @@ const cancelStorage = async () => {
|
|||||||
background-color: #f2f6fc;
|
background-color: #f2f6fc;
|
||||||
line-height: 23px;
|
line-height: 23px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 998;
|
z-index: 888;
|
||||||
color: #5dc988;
|
color: #5dc988;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,17 +18,9 @@
|
|||||||
class="img1"
|
class="img1"
|
||||||
src="../../assets/images/leveladd/ma.png"
|
src="../../assets/images/leveladd/ma.png"
|
||||||
@click="showCodeModel2()"
|
@click="showCodeModel2()"
|
||||||
|
v-if="action == 3"
|
||||||
/>
|
/>
|
||||||
<div
|
<div class="line" v-if="action == 3"></div>
|
||||||
class="line"
|
|
||||||
v-if="
|
|
||||||
action == 1 ||
|
|
||||||
action == 2 ||
|
|
||||||
action == 0 ||
|
|
||||||
action == 3 ||
|
|
||||||
action == -2
|
|
||||||
"
|
|
||||||
></div>
|
|
||||||
<!-- 显示发布图标 -->
|
<!-- 显示发布图标 -->
|
||||||
<img
|
<img
|
||||||
v-if="action == 2 && checkPer(permissions)"
|
v-if="action == 2 && checkPer(permissions)"
|
||||||
@@ -766,7 +758,10 @@
|
|||||||
<a-button @click="showStudent(record)" type="link"
|
<a-button @click="showStudent(record)" type="link"
|
||||||
>查看
|
>查看
|
||||||
</a-button>
|
</a-button>
|
||||||
<a-button @click="settingTopFlag(record)" v-if="checkPer(permissions)" type="link"
|
<a-button
|
||||||
|
@click="settingTopFlag(record)"
|
||||||
|
v-if="checkPer(permissions)"
|
||||||
|
type="link"
|
||||||
>{{ record.topFlag ? "取消优秀" : "优秀学员" }}
|
>{{ record.topFlag ? "取消优秀" : "优秀学员" }}
|
||||||
</a-button>
|
</a-button>
|
||||||
<a-button
|
<a-button
|
||||||
@@ -1073,7 +1068,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- 有证书显示的页面 -->
|
<!-- 有证书显示的页面 -->
|
||||||
<div v-else class="certificate1">
|
<div v-else class="certificate1">
|
||||||
<div class="addcertificate1" @click="addCertificate" v-if="checkPer(permissions)">
|
<div
|
||||||
|
class="addcertificate1"
|
||||||
|
@click="addCertificate"
|
||||||
|
v-if="checkPer(permissions)"
|
||||||
|
>
|
||||||
<div class="addcertext">+添加证书</div>
|
<div class="addcertext">+添加证书</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
@@ -2355,7 +2354,7 @@ export default {
|
|||||||
],
|
],
|
||||||
changeGoods: [], //更改是否优秀的id数组
|
changeGoods: [], //更改是否优秀的id数组
|
||||||
choosedStageId: 1, // 选择的阶段id
|
choosedStageId: 1, // 选择的阶段id
|
||||||
choosedStageName:"",//阶段名称
|
choosedStageName: "", //阶段名称
|
||||||
activeSetKey: "12", //12-基础信息 13-共享文档
|
activeSetKey: "12", //12-基础信息 13-共享文档
|
||||||
docChecked: true,
|
docChecked: true,
|
||||||
//学员信息列表
|
//学员信息列表
|
||||||
@@ -2909,55 +2908,51 @@ export default {
|
|||||||
projectId: state.projectId,
|
projectId: state.projectId,
|
||||||
};
|
};
|
||||||
apitl.getProjectDetail(objtl).then((res) => {
|
apitl.getProjectDetail(objtl).then((res) => {
|
||||||
console.log("阶段列表", res);
|
console.log("阶段列表", res);
|
||||||
for (let i = 0; i < res.data.data.stageList.length; i++) {
|
for (let i = 0; i < res.data.data.stageList.length; i++) {
|
||||||
for (
|
for (let k = 0; k < res.data.data.stageList[i].taskList.length; k++) {
|
||||||
let k = 0;
|
if (res.data.data.stageList[i].taskList[k].name == "面授") {
|
||||||
k < res.data.data.stageList[i].taskList.length;
|
state.morFaceT = true;
|
||||||
k++
|
break;
|
||||||
) {
|
|
||||||
if (res.data.data.stageList[i].taskList[k].name == "面授") {
|
|
||||||
state.morFaceT = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
levelList.stageList = res.data.data.stageList;
|
}
|
||||||
if (levelList.stageList.length === 1) {
|
}
|
||||||
// 无解段任务
|
levelList.stageList = res.data.data.stageList;
|
||||||
state.rankjieduan = [{ value: 0, label: "无阶段" }];
|
if (levelList.stageList.length === 1) {
|
||||||
state.valuestu2 = 0;
|
// 无解段任务
|
||||||
} else {
|
state.rankjieduan = [{ value: 0, label: "无阶段" }];
|
||||||
// 有阶段任务
|
state.valuestu2 = 0;
|
||||||
console.log(levelList.stageList);
|
} else {
|
||||||
let arrStage = [];
|
// 有阶段任务
|
||||||
for (let i = 0; i < levelList.stageList.length; i++) {
|
console.log(levelList.stageList);
|
||||||
if (levelList.stageList[i].id !== "0") {
|
let arrStage = [];
|
||||||
let obj = {
|
for (let i = 0; i < levelList.stageList.length; i++) {
|
||||||
value: levelList.stageList[i].id,
|
if (levelList.stageList[i].id !== "0") {
|
||||||
label: levelList.stageList[i].name,
|
let obj = {
|
||||||
};
|
value: levelList.stageList[i].id,
|
||||||
arrStage.push(obj);
|
label: levelList.stageList[i].name,
|
||||||
}
|
};
|
||||||
}
|
arrStage.push(obj);
|
||||||
state.rankjieduan = arrStage;
|
|
||||||
state.valuestu2 = arrStage[0].value;
|
|
||||||
state.choosedStageName = levelList.stageList[0].name;
|
|
||||||
}
|
}
|
||||||
//暂时传个固定的id用 到时候看数据里面是否有在更换
|
}
|
||||||
// state.projectTaskId = res.data.data.stageList[0].taskList[0].projectTaskId
|
state.rankjieduan = arrStage;
|
||||||
let leng = res.data.data.stageList.length;
|
state.valuestu2 = arrStage[0].value;
|
||||||
if (leng > 0) {
|
state.choosedStageName = levelList.stageList[0].name;
|
||||||
let taskarr = res.data.data.stageList;
|
}
|
||||||
console.log("11-22-33", taskarr);
|
//暂时传个固定的id用 到时候看数据里面是否有在更换
|
||||||
if (taskarr.length == 1) {
|
// state.projectTaskId = res.data.data.stageList[0].taskList[0].projectTaskId
|
||||||
if (taskarr[0].id == "0") {
|
let leng = res.data.data.stageList.length;
|
||||||
taskarr[0].name = "无阶段任务";
|
if (leng > 0) {
|
||||||
}
|
let taskarr = res.data.data.stageList;
|
||||||
}
|
console.log("11-22-33", taskarr);
|
||||||
state.taskSyllabus = taskarr;
|
if (taskarr.length == 1) {
|
||||||
|
if (taskarr[0].id == "0") {
|
||||||
|
taskarr[0].name = "无阶段任务";
|
||||||
}
|
}
|
||||||
})
|
}
|
||||||
|
state.taskSyllabus = taskarr;
|
||||||
|
}
|
||||||
|
});
|
||||||
};
|
};
|
||||||
//学员学员管理渲染
|
//学员学员管理渲染
|
||||||
// const getTableDate = () => {
|
// const getTableDate = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user