mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 04:46:46 +08:00
feat:关卡 路径图 必选修切换
This commit is contained in:
@@ -326,8 +326,8 @@
|
||||
v-model:chooseStageId="chooseStageId"
|
||||
v-model:projectTaskId="projectTaskId"
|
||||
v-model:EditVoteId="EditVoteId"
|
||||
v-model:voteId = "voteId"
|
||||
v-model:ballotId = "ballotId"
|
||||
v-model:voteId="voteId"
|
||||
v-model:ballotId="ballotId"
|
||||
/>
|
||||
</div>
|
||||
<!-- 添加投票侧弹窗 -->
|
||||
@@ -495,10 +495,10 @@
|
||||
<div class="opacationt clearfix">
|
||||
<a-switch
|
||||
style="margin-left: -50px; margin-top: 3px"
|
||||
:checked="element.checked1"
|
||||
v-model:checked="element.checked1"
|
||||
size="small"
|
||||
active-color="red"
|
||||
@click="changeCourseType(element.id)"
|
||||
@click="changeCourseType(element)"
|
||||
/>
|
||||
<div class="showt clearfix">
|
||||
<div
|
||||
@@ -951,15 +951,15 @@ export default {
|
||||
EditRefId: null, //要编辑的外链的id
|
||||
EditLiveId: null, //要编辑的直播的ids
|
||||
deAll: false,
|
||||
EditDiscussId:null,//要编辑的讨论的id
|
||||
EditActiveId:null,//要编辑的活动id
|
||||
EditWorkId:null, // 要编辑的作业id
|
||||
EditTestId: null,// 要编辑的考试id
|
||||
EditEvalId:null,
|
||||
EditInvistId:null,
|
||||
EditDiscussId: null, //要编辑的讨论的id
|
||||
EditActiveId: null, //要编辑的活动id
|
||||
EditWorkId: null, // 要编辑的作业id
|
||||
EditTestId: null, // 要编辑的考试id
|
||||
EditEvalId: null,
|
||||
EditInvistId: null,
|
||||
EditVoteId: null, //编辑需要投票的id
|
||||
ballotId: "", //编辑需要的题干id
|
||||
projectTaskId:null, // 要编辑的具体任务id
|
||||
projectTaskId: null, // 要编辑的具体任务id
|
||||
projectNameList: [
|
||||
{
|
||||
id: 1,
|
||||
@@ -1192,6 +1192,9 @@ export default {
|
||||
checked1: value.flag ? true : false,
|
||||
checked: false, //是否选中类型
|
||||
courseId: value.courseId,
|
||||
projectId: value.projectId,
|
||||
stageId: value.stageId,
|
||||
type: value.type,
|
||||
};
|
||||
array.push(obj);
|
||||
});
|
||||
@@ -1382,8 +1385,6 @@ export default {
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
|
||||
//获取修改、删除id(投票)
|
||||
const changeVData = (data) => {
|
||||
console.log("获取修改、删除id投票", data);
|
||||
@@ -1554,7 +1555,7 @@ export default {
|
||||
state.projectTaskId = eleId;
|
||||
};
|
||||
const showDrawerAddVote = (id, eleId) => {
|
||||
console.log(id, eleId, '95835325932953295325');
|
||||
console.log(id, eleId, "95835325932953295325");
|
||||
state.addvotevisible = true;
|
||||
state.EditVoteId = id;
|
||||
state.projectTaskId = eleId;
|
||||
@@ -1644,8 +1645,31 @@ export default {
|
||||
state.selectRow = array;
|
||||
};
|
||||
//修改任务的课程类型 id为任务id
|
||||
const changeCourseType = (id) => {
|
||||
console.log("任务id", id);
|
||||
const changeCourseType = (ele) => {
|
||||
console.log("任务id", ele.id);
|
||||
console.log("flag", ele.checked1);
|
||||
let obj = {
|
||||
courseId: ele.courseId,
|
||||
duration: ele.cretime == "-" ? 0 : ele.cretime,
|
||||
flag: ele.checked1,
|
||||
name: ele.creater,
|
||||
projectId: ele.projectId,
|
||||
projectTaskId: ele.id,
|
||||
stageId: ele.stageId,
|
||||
type: ele.type,
|
||||
};
|
||||
api
|
||||
.addTask(obj)
|
||||
.then((res) => {
|
||||
console.log(`修改状态成功${res.data}`);
|
||||
message.destroy();
|
||||
message.success("修改成功");
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(`修改状态失败${err.data}`);
|
||||
message.destroy();
|
||||
message.warning("修改失败");
|
||||
});
|
||||
};
|
||||
|
||||
//打开测评的弹窗
|
||||
@@ -1681,10 +1705,10 @@ export default {
|
||||
}
|
||||
};
|
||||
const showdeAll = () => {
|
||||
if(state.selectRow.length==0){
|
||||
message.destroy()
|
||||
return message.warning("请选择要删除的任务")
|
||||
}else{
|
||||
if (state.selectRow.length == 0) {
|
||||
message.destroy();
|
||||
return message.warning("请选择要删除的任务");
|
||||
} else {
|
||||
state.deAll = true;
|
||||
}
|
||||
};
|
||||
@@ -1888,75 +1912,74 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
.name {
|
||||
width: 78%;
|
||||
// background-color: lightcoral;
|
||||
display: flex;
|
||||
margin-top: 20px;
|
||||
align-items: center;
|
||||
//height: 40px;
|
||||
// border: 1px solid black;
|
||||
.namebox {
|
||||
width: 120px;
|
||||
.name {
|
||||
width: 78%;
|
||||
// background-color: lightcoral;
|
||||
display: flex;
|
||||
margin-top: 20px;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
flex-shrink: 0;
|
||||
.nameimg {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
//height: 40px;
|
||||
// border: 1px solid black;
|
||||
.namebox {
|
||||
width: 120px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
flex-shrink: 0;
|
||||
.nameimg {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
}
|
||||
}
|
||||
.d {
|
||||
margin-top: 8px;
|
||||
font-size: 25px;
|
||||
color: #ff4e4e;
|
||||
}
|
||||
.box {
|
||||
position: relative;
|
||||
margin-left: 14px;
|
||||
.box1 {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
width: 50px;
|
||||
margin-left: -25px;
|
||||
margin-top: -5px;
|
||||
border-top: 2px solid rgba(78, 166, 255, 1);
|
||||
}
|
||||
.box2 {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
height: 50px;
|
||||
//margin-left: -5px;
|
||||
margin-top: -25px;
|
||||
border-left: 2px solid rgba(78, 166, 255, 1);
|
||||
}
|
||||
}
|
||||
.inname {
|
||||
color: #000000;
|
||||
font-size: 14px;
|
||||
margin-left: 7px;
|
||||
}
|
||||
.in {
|
||||
margin-left: 14px;
|
||||
flex: 1;
|
||||
// .ant-radio-wrapper {
|
||||
// }
|
||||
.ant-input-affix-wrapper {
|
||||
width: 384px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
.ant-input {
|
||||
border-radius: 8px;
|
||||
// height: 120%;
|
||||
//width: 384px;
|
||||
height: 30px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.d {
|
||||
margin-top: 8px;
|
||||
font-size: 25px;
|
||||
color: #ff4e4e;
|
||||
}
|
||||
.box {
|
||||
position: relative;
|
||||
margin-left: 14px;
|
||||
.box1 {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
width: 50px;
|
||||
margin-left: -25px;
|
||||
margin-top: -5px;
|
||||
border-top: 2px solid rgba(78, 166, 255, 1);
|
||||
}
|
||||
.box2 {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
height: 50px;
|
||||
//margin-left: -5px;
|
||||
margin-top: -25px;
|
||||
border-left: 2px solid rgba(78, 166, 255, 1);
|
||||
}
|
||||
}
|
||||
.inname {
|
||||
color: #000000;
|
||||
font-size: 14px;
|
||||
margin-left: 7px;
|
||||
}
|
||||
.in {
|
||||
margin-left: 14px;
|
||||
flex: 1;
|
||||
// .ant-radio-wrapper {
|
||||
// }
|
||||
.ant-input-affix-wrapper {
|
||||
width: 384px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
.ant-input {
|
||||
border-radius: 8px;
|
||||
// height: 120%;
|
||||
//width: 384px;
|
||||
height: 30px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
.moveModal {
|
||||
.ant-modal {
|
||||
|
||||
Reference in New Issue
Block a user