feat:合并

This commit is contained in:
lixg
2022-12-02 10:01:48 +08:00
parent 8ae00ef4ce
commit c1842cd0e1
6 changed files with 262 additions and 248 deletions

View File

@@ -174,12 +174,12 @@
<span style="color: #999999; margin-left: 8px">分钟</span> <span style="color: #999999; margin-left: 8px">分钟</span>
</div> </div>
</div> </div>
<div class="qdqtbox"> <!-- <div class="qdqtbox">
<div class="qtbtn"> <div class="qtbtn">
<div class="btntext">签退</div> <div class="btntext">签退</div>
</div> </div>
</div> </div> -->
<div class="setbox"> <!-- <div class="setbox">
<div class="timerbox"> <div class="timerbox">
<span>结束前</span> <span>结束前</span>
<a-input-number <a-input-number
@@ -198,7 +198,7 @@
>分钟提前签退则记为早退</span >分钟提前签退则记为早退</span
> >
</div> </div>
</div> </div> -->
</div> </div>
</div> </div>
<div class="main_item"> <div class="main_item">
@@ -209,12 +209,11 @@
<a-radio-group v-model:value="radioV1"> <a-radio-group v-model:value="radioV1">
<a-radio v-model:checked="checked" :value="1" @click="cloradio1" <a-radio v-model:checked="checked" :value="1" @click="cloradio1"
>仅签到 >仅签到
</a-radio </a-radio>
> <!-- <a-radio v-model:checked="checked" :value="2" @click="cloradio1"
<a-radio v-model:checked="checked" :value="2" @click="cloradio1"
>签到签退全部完成 >签到签退全部完成
</a-radio </a-radio
> > -->
</a-radio-group> </a-radio-group>
</div> </div>
</div> </div>
@@ -319,7 +318,7 @@ export default {
state.textV1 = ""; state.textV1 = "";
state.textV2 = ""; state.textV2 = "";
state.time = ""; state.time = "";
message.success(`${props.edit ? "编辑" : "新增"}关卡任务成功`); // message.success(`${props.edit ? "编辑" : "新增"}关卡任务成功`);
localStorage.setItem("stageId", props.chooseStageId); localStorage.setItem("stageId", props.chooseStageId);
localStorage.setItem("chapterId", props.isactive); localStorage.setItem("chapterId", props.isactive);
}; };
@@ -338,7 +337,7 @@ export default {
state.time = ""; state.time = "";
localStorage.setItem("stageId", props.chooseStageId); localStorage.setItem("stageId", props.chooseStageId);
localStorage.setItem("chapterId", props.isactive); localStorage.setItem("chapterId", props.isactive);
} };
const queryActive = () => { const queryActive = () => {
api api
.getActivity(props.EditActiveId) .getActivity(props.EditActiveId)
@@ -359,8 +358,7 @@ export default {
dayjs(res.data.data.activityEndTime, "YYYY-MM-DD"), dayjs(res.data.data.activityEndTime, "YYYY-MM-DD"),
]; ];
}) })
.catch(() => { .catch(() => {});
});
}; };
const afterVisibleChange = (bool) => { const afterVisibleChange = (bool) => {
if (bool && props.edit) { if (bool && props.edit) {
@@ -424,8 +422,6 @@ export default {
.catch(() => { .catch(() => {
//message.error(`${props.edit ? "编辑" : "新增"}阶段任务失败`); //message.error(`${props.edit ? "编辑" : "新增"}阶段任务失败`);
}); });
} }
}; };
//创建活动 //创建活动

View File

@@ -262,10 +262,10 @@
<span style="color: #999999; margin-left: 8px">分钟</span> <span style="color: #999999; margin-left: 8px">分钟</span>
</div> </div>
</div> </div>
<div class="qdqtbox"> <!-- <div class="qdqtbox">
<div class="qtbtn"><div class="btntext">签退</div></div> <div class="qtbtn"><div class="btntext">签退</div></div>
</div> </div> -->
<div class="setbox"> <!-- <div class="setbox">
<div class="timerbox"> <div class="timerbox">
<span>结束前</span> <span>结束前</span>
<a-input-number <a-input-number
@@ -275,14 +275,16 @@
style=" style="
width: 88px; width: 88px;
height: 32px; height: 32px;
border-radius: 8px;overflow: hidden; " border-radius: 8px;
overflow: hidden;
"
v-model:value="inputV8" v-model:value="inputV8"
></a-input-number> ></a-input-number>
<span style="color: #999999; margin-left: 8px" <span style="color: #999999; margin-left: 8px"
>分钟提前签退则记为早退</span >分钟提前签退则记为早退</span
> >
</div> </div>
</div> </div> -->
</div> </div>
</div> </div>
<div class="main_item"> <div class="main_item">
@@ -292,9 +294,9 @@
<div class="btnbox"> <div class="btnbox">
<a-radio-group v-model:value="radioV1"> <a-radio-group v-model:value="radioV1">
<a-radio :value="1" @click="cloradio1">仅签到</a-radio> <a-radio :value="1" @click="cloradio1">仅签到</a-radio>
<a-radio :value="2" @click="cloradio1" <!-- <a-radio :value="2" @click="cloradio1"
>签到签退全部完成</a-radio >签到签退全部完成</a-radio
> > -->
</a-radio-group> </a-radio-group>
</div> </div>
</div> </div>
@@ -305,7 +307,7 @@
<div class="btnbox"> <div class="btnbox">
<a-checkbox <a-checkbox
v-model:checked="switchC2" v-model:checked="switchC2"
@onclick="(switchC2 = !switchC2)" @onclick="switchC2 = !switchC2"
>学员请假后记为任务完成</a-checkbox >学员请假后记为任务完成</a-checkbox
> >
</div> </div>

View File

@@ -1526,6 +1526,7 @@ export default {
//获取路径图详细信息 //获取路径图详细信息
const getLearnPathInfo = (item) => { const getLearnPathInfo = (item) => {
console.log("item", item);
state.out1 = true; state.out1 = true;
state.pathName = item.manager; state.pathName = item.manager;
state.pathBg = ""; state.pathBg = "";

View File

@@ -564,7 +564,7 @@
<a-input <a-input
v-model:value="gatenamee" v-model:value="gatenamee"
style="width: 270px; height: 40px; border-radius: 8px" style="width: 270px; height: 40px; border-radius: 8px"
placeholder="关卡名称" placeholder="请输入姓名"
/> />
<div class="btns" @click="searchLevel"> <div class="btns" @click="searchLevel">
<div class="btn btn1"> <div class="btn btn1">
@@ -1649,7 +1649,7 @@ export default {
//获取学员列表 //获取学员列表
const getStudent = () => { const getStudent = () => {
let obj = { let obj = {
name: "", name: state.gatenamee,
pageNo: state.currentPage, pageNo: state.currentPage,
pageSize: 10, pageSize: 10,
routerId: state.routerId, routerId: state.routerId,
@@ -1985,10 +1985,12 @@ export default {
}); });
}; };
const searchLevel = () => { const searchLevel = () => {
const result = state.tableData.filter( // const result = state.tableData.filter(
(item) => item.cur == state.gatenamee // (item) => item.cur == state.gatenamee
); // );
state.tableData = result; // state.tableData = result;
state.currentPage = 1;
getStudent();
}; };
const resetLevel = () => { const resetLevel = () => {
state.gatenamee = ""; state.gatenamee = "";

View File

@@ -640,7 +640,16 @@
</div> </div>
</div> </div>
</div> </div>
<div style="width: 120px; text-align: center"> <div
style="
width: 120px;
text-align: center;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
"
:title="element.creater"
>
{{ element.creater }} {{ element.creater }}
</div> </div>
<div style="width: 120px; text-align: center"> <div style="width: 120px; text-align: center">
@@ -1415,9 +1424,11 @@ export default {
item["value"] = item.chapterId; item["value"] = item.chapterId;
item["label"] = item.name; item["label"] = item.name;
}); });
console.log("路径图详情", res);
if (state.level.length > 0) { if (state.level.length > 0) {
let chapter = localStorage.getItem("chapterId"); let chapter = localStorage.getItem("chapterId");
if (chapter !== "null") { // console.log("chapter", chapter, chapter !== "null");
if (chapter) {
dataAssignment(chapter); //用哪个的任务表 dataAssignment(chapter); //用哪个的任务表
state.isactive = chapter; //哪个亮 state.isactive = chapter; //哪个亮
} else { } else {
@@ -1593,6 +1604,7 @@ export default {
document.getElementsByTagName("main")[0].style.background = "#ffffff"; document.getElementsByTagName("main")[0].style.background = "#ffffff";
document.getElementsByTagName("main")[0].style.boxShadow = document.getElementsByTagName("main")[0].style.boxShadow =
"0px 1px 35px 0px rgba(118, 136, 166, 0.07)"; "0px 1px 35px 0px rgba(118, 136, 166, 0.07)";
localStorage.removeItem("chapterId");
}); });
const changebgc = (chapterId) => { const changebgc = (chapterId) => {
state.isactive = chapterId; state.isactive = chapterId;
@@ -1729,6 +1741,7 @@ export default {
chapterId: state.removeStageId, chapterId: state.removeStageId,
routerTaskIdList: state.selectRow, routerTaskIdList: state.selectRow,
}; };
console.log("移动关卡obj", obj);
api api
.moveTask(obj) .moveTask(obj)
.then((res) => { .then((res) => {