fix:修改bug

This commit is contained in:
lixg
2022-12-02 17:01:30 +08:00
parent d42e3442c5
commit 11d21944df
5 changed files with 76 additions and 288 deletions

View File

@@ -100,6 +100,7 @@
title: 'name',
value: 'name',
}"
v-model:expandedKeys="expandedKeys"
>
<template #suffixIcon></template>
</a-tree>
@@ -201,6 +202,7 @@
title: 'name',
value: 'name',
}"
v-model:expandedKeys="expandedKeys"
>
<template #suffixIcon></template>
</a-tree>
@@ -754,12 +756,16 @@ export default {
//受众关联-------------------------------------
selectAllArr: null, //所有选中
expandedKeys: [], //展开的节点
});
const closeDrawer = () => {
state.activeKey = "1";
ctx.emit("update:ProjCheckvisible", false);
deleteAll();
// console.log("expandedKeys", state.expandedKeys);
state.expandedKeys = [];
};
const afterVisibleChange = (bool) => {
console.log("state", bool);

View File

@@ -244,241 +244,9 @@ export default {
nameadd: "",
nameaddd: "",
com: "",
openKeys: [2, 13, 32],
openKeys: [],
//组织树
treeData: [
{
key: 1,
title: "京东方",
value: "京东方",
children: [
{
key: 2,
title: "产研部",
value: "产研部",
children: [
{
key: 3,
title: "产品部",
value: "产品部",
},
{
key: 4,
title: "研究部",
value: "研究部",
},
{
key: 5,
title: "研究部2",
value: "研究部2",
},
{
key: 6,
title: "研究3",
value: "研究3",
},
{
key: 7,
title: "研究4",
value: "研究4",
},
{
key: 8,
title: "研究部5",
value: "研究部5",
},
{
key: 9,
title: "研究部6",
value: "研究部6",
},
{
key: 10,
title: "研究部7",
value: "研究部7",
},
{
key: 11,
title: "研究部8",
value: "研究部8",
},
{
key: 12,
title: "研究部9",
value: "研究部9",
},
],
},
{
key: 13,
title: "二级标题",
value: "二级标题",
children: [
{
key: 14,
title: "三级标题",
value: "三级标题",
children: [
{
key: 15,
title: "四级标题",
value: "四级标题",
children: [
{
key: 16,
title: "五级标题",
value: "五级标题",
children: [
{
key: 17,
title: "六级标题",
value: "六级标题",
children: [
{
key: 18,
title: "七级标题",
value: "七级标题",
children: [
{
key: 19,
title: "八级标题",
value: "八级标题",
children: [
{
key: 20,
title: "九级标题",
value: "九级标题",
children: [
{
key: 21,
title: "十级标题",
value: "十级标题",
children: [
{
key: 22,
title: "十一级标题",
value: "十一级标题",
children: [
{
key: 23,
title: "十二级标题",
value: "十二级标题",
children: [
{
key: 24,
title:
"十三级标题十三级标题十三级标题十三级标题",
value: "十三级标题",
children: [
{
key: 25,
title:
"十四级标题",
value:
"十四级标题",
children: [
{
key: 26,
title:
"十五级标题",
value:
"十五级标题",
children: [
{
key: 27,
title:
"十六级标题",
value:
"十六级标题",
children:
[
{
key: 28,
title:
"十七级标题",
value:
"十七级标题",
children:
[
{
key: 29,
title:
"十八级标题",
value:
"十八级标题",
children:
[
{
key: 30,
title:
"十九级标题",
value:
"十九级标题",
children:
[
{
key: 31,
title:
"二十级标题二十级标题",
value:
"二十级标题二十级标题",
},
],
},
],
},
],
},
],
},
],
},
],
},
],
},
],
},
],
},
],
},
],
},
],
},
],
},
],
},
],
},
],
},
],
},
],
},
{
key: 32,
title: "人力资源部",
value: "人力资源部",
children: [
{
key: 33,
title: "人事部",
value: "人事部",
},
{
key: 34,
title: "行政部",
value: "行政部",
},
],
},
],
},
],
treeData: [],
//快速选人的table
tabledata: [
// {
@@ -543,6 +311,7 @@ export default {
const closeDrawer = () => {
state.activeKey = "1";
ctx.emit("update:ProjOwnervisible", false);
state.openKeys = [];
};
const afterVisibleChange = (bool) => {

View File

@@ -139,7 +139,7 @@
</div>
<div
class="taskbox"
@click="showModal"
@click="showPub"
style="background: linear-gradient(180deg, #e5f6ec, #eef9f3)"
>
<div class="leftt">
@@ -1078,7 +1078,9 @@
<div class="projectbox">
<div class="promessage">
<div class="messageme">路径信息</div>
<div class="messagege">当前路径共0个关卡0个任务</div>
<div class="messagege">
当前路径共{{ routeChapters }}个关卡{{ routeTasks }}个任务
</div>
</div>
<div class="stumessage">
<div class="messageme1">学员信息</div>
@@ -1255,6 +1257,8 @@ export default {
dcopyModal: false, //复制弹窗
closeBack: false,
routeStudentsNum: null,
routeChapters: null,
routeTasks: null,
dcloseCopy: false,
dicloseCopy: false,
stopModal: false, //结束弹窗
@@ -1733,7 +1737,9 @@ export default {
message.destroy();
message.success("发布成功");
state.pub = false;
state.nodata = false;
// getLearnPath();
reget();
})
.catch((err) => {
@@ -1744,33 +1750,19 @@ export default {
const showPub = () => {
state.pub = true;
// state.releasePathId = routerId;
//获取学员总数
let obj = {
pageNo: 0,
pageSize: 0,
routerId: state.routerId,
};
api
.getStudent(obj)
.getLearnCount(state.routerId)
.then((res) => {
if (res.status === 200) {
// console.log("res", res.data.data);
state.routeStudentsNum = res.data.data.total;
// console.log("获取关卡、任务、学员统计数据", res.data);
state.routeStudentsNum = res.data.students;
state.routeChapters = res.data.chapters;
state.routeTasks = res.data.tasks;
}
})
.catch((err) => {
console.log("err", err);
});
//获取学习路径详细信息
// api
// .getRouterDetail(routerId)
// .then((res) => {
// console.log("学习路径详情", res);
// })
// .catch((err) => {
// console.log("学习路径详情获取错误", err);
// });
};
//显示撤回弹窗
const showBackModal = () => {
@@ -1794,6 +1786,7 @@ export default {
message.success("撤回成功");
state.backModal = false;
reget();
state.nodata = true;
})
.catch((err) => {
console.log("撤回失败", err);

View File

@@ -524,7 +524,7 @@
</div>
<div class="btn btn2">
<div class="imgIcon"></div>
<div class="btnText" @click="showDeleteALLModal">
<div class="btnText" @click="showDeleteALLModal(1)">
批量删除
</div>
</div>
@@ -785,7 +785,7 @@
<button class="addx" @click="showAddStu">添加学员</button>
<!-- 点击抽屉组件在LevelAdd此处没添加showAddStushowImpStu -->
<button class="addd" @click="showImpStu">导入学员</button>
<button class="addd" @click="showDeleteALLModal">
<button class="addd" @click="showDeleteALLModal(2)">
批量删除
</button>
</div>
@@ -907,7 +907,9 @@
<div class="close_exit" @click="delete_exit"></div>
</div>
<div class="body">
<span>请确认是否批量删除学员</span>
<span
>请确认是否批量删除{{ deleteType === 1 ? "任务" : "学员" }}</span
>
</div>
<div class="del_btnbox">
<div class="del_btn btn1">
@@ -1203,6 +1205,8 @@ export default {
chooseProjectList: null, //选择的阶段下的任务列表
curLevel: null, //选择移动到的关卡名称
deleteType: null, //批量删除学员/任务 1任务 2学员
});
const showModal = (element) => {
@@ -1618,12 +1622,14 @@ export default {
const gqxy_hShow = () => {
state.gqxy_hs = !state.gqxy_hs;
};
const showDeleteALLModal = () => {
const showDeleteALLModal = (type) => {
state.deleteAll = true;
state.deleteType = type;
};
const delete_exit = () => {
state.deleteAll = false;
deletecTaskAll();
state.deleteType = null;
};
const showDeleteModal = (id) => {
state.deleteID = id;
@@ -1751,6 +1757,8 @@ export default {
message.destroy();
message.success("移动成功");
localStorage.setItem("chapterId", state.chooseChapterId);
state.selectRow = []; //选择行
state.selectAll = 0; //0未选择1全选2部分选择
getDetail();
})
.catch((err) => {

View File

@@ -586,7 +586,17 @@
</div>
</div>
</div>
<div style="width: 120px; text-align: center">
<div
style="
width: 120px;
text-align: center;
text-align: center;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
"
:title="element.creater"
>
{{ element.creater }}
</div>
<div style="width: 120px; text-align: center">
@@ -1127,7 +1137,7 @@ export default {
voteId: "", //删除投票id
deleteID: "",
selectRow: [], //选择行
curLevel: [], //阶段名称
curLevel: null, //阶段名称
selectAll: 0, //0未选择1全选2部分选择
updateStageID: null, //编辑阶段id
@@ -1209,7 +1219,7 @@ export default {
taskList: value.taskList,
value: value.stageId,
label: value.name,
courseId: value.courseId ? value.courseId : null
courseId: value.courseId ? value.courseId : null,
};
array.push(obj);
}
@@ -1388,7 +1398,6 @@ export default {
getTableData(taskListAll);
}
}
} else {
console.log(stage);
let stageList = res.data.data.stageList; //阶段数组
@@ -1406,16 +1415,16 @@ export default {
// console.log("任务列表", stage, arr);
// getTableData(arr);
}
//获取阶段列表
// //获取阶段列表
let stagearr = res.data.data.stageList;
let arrlist = state.curLevel;
// let arrlist = state.curLevel;
console.log(stagearr, 111111);
if (stagearr.length > 0) {
getStageData(stagearr);
stagearr.map((value) => {
console.log(value);
arrlist.push(value);
});
// stagearr.map((value) => {
// console.log(value);
// // arrlist.push(value);
// });
}
//给阶段id赋初始值
let stageid = localStorage.getItem("stageId")
@@ -1489,8 +1498,11 @@ export default {
console.log("移动成功", res);
message.destroy();
message.success("移动成功");
state.selectRow = []; //选择行
state.selectAll = 0; //0未选择1全选2部分选择
console.log(state.removeStageId);
getTask();
localStorage.setItem("stageId", state.chooseStageId);
})
.catch((err) => {
@@ -1636,7 +1648,7 @@ export default {
console.log("删除阶段成功", res);
message.success("删除阶段成功");
closeDeleteStage();
localStorage.setItem("stageId", "")
localStorage.setItem("stageId", "");
getTask();
})
.catch((err) => {
@@ -1661,7 +1673,7 @@ export default {
"0px 1px 35px 0px rgba(118, 136, 166, 0.07)";
});
const showDrawerOnline = (id, eleId) => {
console.log('id, eleId',id, eleId);
console.log("id, eleId", id, eleId);
state.addonlinevisible = true;
state.EditOnlineId = id;
state.projectTaskId = eleId;