mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-09 02:46:45 +08:00
Merge branch 'develop'
This commit is contained in:
@@ -44,7 +44,7 @@ export default defineComponent({
|
|||||||
const store = useStore();
|
const store = useStore();
|
||||||
const isLogin = ref(false);
|
const isLogin = ref(false);
|
||||||
// console.log("router", router.getRoutes(), route);
|
// console.log("router", router.getRoutes(), route);
|
||||||
console.log("版本2.0.2------------");
|
console.log("版本1.10------------");
|
||||||
const routes = computed(() => {
|
const routes = computed(() => {
|
||||||
return router.getRoutes().filter((e) => e.meta?.isLink);
|
return router.getRoutes().filter((e) => e.meta?.isLink);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ export default {
|
|||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
name: "管理员",
|
name: "管理员",
|
||||||
go: "/learningpath",
|
go: "/manage/learningpath",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 2,
|
id: 2,
|
||||||
|
|||||||
@@ -722,7 +722,7 @@ export default {
|
|||||||
console.log(e);
|
console.log(e);
|
||||||
state.isClick = false;
|
state.isClick = false;
|
||||||
message.destroy();
|
message.destroy();
|
||||||
message.error(`添加失败`);
|
// message.error(`添加失败`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -840,8 +840,9 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
|
console.log(err)
|
||||||
message.destroy();
|
message.destroy();
|
||||||
message.error("获取员工失败" + err);
|
// message.error("获取员工失败" + err);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
const handleSearch = debounce((memberValue) => {
|
const handleSearch = debounce((memberValue) => {
|
||||||
|
|||||||
@@ -437,8 +437,8 @@ export default {
|
|||||||
ctx.emit("update:addtestVisible", false);
|
ctx.emit("update:addtestVisible", false);
|
||||||
ctx.emit("update:edit", false);
|
ctx.emit("update:edit", false);
|
||||||
ctx.emit("update:EditTestId", state.EditTestId);
|
ctx.emit("update:EditTestId", state.EditTestId);
|
||||||
ctx.emit("update:testName", state.testName);
|
ctx.emit("update:testName", state.test.examinationName);
|
||||||
console.log("statetestName", state.testName);
|
console.log("statetestName", state.test.examinationName);
|
||||||
localStorage.setItem("stageId", props.chooseStageId);
|
localStorage.setItem("stageId", props.chooseStageId);
|
||||||
localStorage.setItem("chapterId", props.isactive);
|
localStorage.setItem("chapterId", props.isactive);
|
||||||
state.addLoading = false;
|
state.addLoading = false;
|
||||||
@@ -687,7 +687,8 @@ export default {
|
|||||||
state.paperId = value.paperId;
|
state.paperId = value.paperId;
|
||||||
state.paperName = value.testName;
|
state.paperName = value.testName;
|
||||||
state.id = value.id;
|
state.id = value.id;
|
||||||
state.testName = value.testName;
|
//state.testName = value.testName;
|
||||||
|
console.log("value",value);
|
||||||
};
|
};
|
||||||
|
|
||||||
const range = (start, end) => {
|
const range = (start, end) => {
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
<!-- eslint-disable vue/no-use-v-if-with-v-for -->
|
||||||
<template>
|
<template>
|
||||||
<a-drawer
|
<a-drawer
|
||||||
:visible="Seevisible"
|
:visible="Seevisible"
|
||||||
@@ -47,6 +48,7 @@
|
|||||||
<span class="total">/{{ totalReqCnt }}</span>
|
<span class="total">/{{ totalReqCnt }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!--
|
||||||
<a-divider
|
<a-divider
|
||||||
type="vertical"
|
type="vertical"
|
||||||
style="
|
style="
|
||||||
@@ -61,13 +63,11 @@
|
|||||||
<span class="nub1">{{ certCnt }}</span>
|
<span class="nub1">{{ certCnt }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
-->
|
||||||
</div>
|
</div>
|
||||||
<div class="secondrow">
|
<div class="secondrow">
|
||||||
<div class="rowleft">{{ name }}</div>
|
<div class="rowleft">{{ name }}</div>
|
||||||
<div class="rowbox" @click="showProMess">
|
|
||||||
<div class="shuom">说明</div>
|
|
||||||
<div><img src="../../assets/images/studentimg/chak.png" /></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="mainbox">
|
<div class="mainbox">
|
||||||
<a-collapse v-model:activeKey="stageListActive">
|
<a-collapse v-model:activeKey="stageListActive">
|
||||||
@@ -86,12 +86,28 @@
|
|||||||
v-for="value in stageList"
|
v-for="value in stageList"
|
||||||
:key="value.stageId"
|
:key="value.stageId"
|
||||||
:header="value.stageName"
|
:header="value.stageName"
|
||||||
>
|
|
||||||
<div
|
>
|
||||||
|
<template #extra >
|
||||||
|
<div @click.stop="">
|
||||||
|
<div class="rowbox">
|
||||||
|
<a-popover title="阶段说明">
|
||||||
|
<template #content>
|
||||||
|
<p>{{value.remark}}</p>
|
||||||
|
</template>
|
||||||
|
<div class="shuom">说明</div>
|
||||||
|
</a-popover>
|
||||||
|
<div><img src="../../assets/images/studentimg/chak.png" /></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<div
|
||||||
class="rowclass"
|
class="rowclass"
|
||||||
v-for="(item, key) in value.taskProcessList"
|
v-for="(item, key) in value.taskProcessList"
|
||||||
:key="key"
|
:key="key"
|
||||||
>
|
>
|
||||||
|
|
||||||
<div class="leftclass">
|
<div class="leftclass">
|
||||||
<div>
|
<div>
|
||||||
<img
|
<img
|
||||||
@@ -141,6 +157,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="altext">{{ item.complete }}</div>
|
<div class="altext">{{ item.complete }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</a-collapse-panel>
|
</a-collapse-panel>
|
||||||
</a-collapse>
|
</a-collapse>
|
||||||
@@ -293,14 +310,32 @@ export default {
|
|||||||
const setStageList = (tableData) => {
|
const setStageList = (tableData) => {
|
||||||
let data = tableData;
|
let data = tableData;
|
||||||
let array = [];
|
let array = [];
|
||||||
data.map((value) => {
|
//无阶段任务
|
||||||
|
if(data?.length ==1 && data[0].stageId ==0){
|
||||||
|
data.map((value) => {
|
||||||
let obj = {
|
let obj = {
|
||||||
stageName: value.stageName,
|
stageName:"无阶段任务",
|
||||||
stageId: value.stageId,
|
stageId:0,
|
||||||
|
remark:value.remark,
|
||||||
taskProcessList: taskProcessList(value.taskProcessList),
|
taskProcessList: taskProcessList(value.taskProcessList),
|
||||||
};
|
};
|
||||||
array.push(obj);
|
array.push(obj);
|
||||||
});
|
});
|
||||||
|
}else{ //有阶段
|
||||||
|
data.map((value) => {
|
||||||
|
let obj = {
|
||||||
|
stageName: value.stageName,
|
||||||
|
stageId: value.stageId,
|
||||||
|
remark:value.remark,
|
||||||
|
taskProcessList: taskProcessList(value.taskProcessList),
|
||||||
|
};
|
||||||
|
if(value.stageId >0){
|
||||||
|
array.push(obj);
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
state.stageList = array;
|
state.stageList = array;
|
||||||
};
|
};
|
||||||
const check = () => {
|
const check = () => {
|
||||||
@@ -433,6 +468,14 @@ export default {
|
|||||||
color: rgba(51, 51, 51, 1);
|
color: rgba(51, 51, 51, 1);
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
.mainbox {
|
||||||
|
// height: 463px;
|
||||||
|
margin-right: 37px;
|
||||||
|
margin-top: 32px;
|
||||||
|
//border: 1px solid rgba(221, 238, 255, 1);
|
||||||
|
//border-radius: 6px;
|
||||||
.rowbox {
|
.rowbox {
|
||||||
width: 64px;
|
width: 64px;
|
||||||
height: 24px;
|
height: 24px;
|
||||||
@@ -442,6 +485,7 @@ export default {
|
|||||||
margin-left: 24px;
|
margin-left: 24px;
|
||||||
border: 1px solid rgba(64, 158, 255, 1);
|
border: 1px solid rgba(64, 158, 255, 1);
|
||||||
background: rgba(64, 158, 255, 0.1);
|
background: rgba(64, 158, 255, 0.1);
|
||||||
|
margin-right: 480px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
.shuom {
|
.shuom {
|
||||||
color: rgba(64, 158, 255, 1);
|
color: rgba(64, 158, 255, 1);
|
||||||
@@ -450,13 +494,6 @@ export default {
|
|||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
.mainbox {
|
|
||||||
// height: 463px;
|
|
||||||
margin-right: 37px;
|
|
||||||
margin-top: 32px;
|
|
||||||
//border: 1px solid rgba(221, 238, 255, 1);
|
|
||||||
//border-radius: 6px;
|
|
||||||
.ant-collapse {
|
.ant-collapse {
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
border: 0;
|
border: 0;
|
||||||
|
|||||||
@@ -420,7 +420,7 @@ export default {
|
|||||||
const getClassData = (tabledata) => {
|
const getClassData = (tabledata) => {
|
||||||
let data = tabledata;
|
let data = tabledata;
|
||||||
let array = [];
|
let array = [];
|
||||||
let options = state.options2222;
|
// let options = state.options2222;
|
||||||
data.map((value) => {
|
data.map((value) => {
|
||||||
let obj = {
|
let obj = {
|
||||||
key: value.offcourseId,
|
key: value.offcourseId,
|
||||||
@@ -430,30 +430,31 @@ export default {
|
|||||||
creator: value.createName || "-",
|
creator: value.createName || "-",
|
||||||
time: value.publishTime,
|
time: value.publishTime,
|
||||||
categoryId: value.categoryId,
|
categoryId: value.categoryId,
|
||||||
category: "",
|
category: changeTreeSelectValue(String(value.categoryId)),
|
||||||
//需要判断content
|
//需要判断content
|
||||||
};
|
};
|
||||||
console.log("obj", obj);
|
console.log("obj", obj);
|
||||||
var breaked = false;
|
// var breaked = false;
|
||||||
|
// obj.category = changeTreeSelectValue(String(value.categoryId))
|
||||||
|
|
||||||
for (let i = 0; i < options.length; i++) {
|
// for (let i = 0; i < options.length; i++) {
|
||||||
for (let j = 0; j < options[i].children.length; j++) {
|
// for (let j = 0; j < options[i].children.length; j++) {
|
||||||
if (
|
// if (
|
||||||
String(options[i].children[j].value) ===
|
// String(options[i].children[j].value) ===
|
||||||
String(obj.categoryId)
|
// String(obj.categoryId)
|
||||||
) {
|
// ) {
|
||||||
obj.category = changeTreeSelectValue(String(obj.categoryId))
|
// obj.category = changeTreeSelectValue(String(obj.categoryId))
|
||||||
// console.log("obj.categoryId", obj.categoryId);
|
// // console.log("obj.categoryId", obj.categoryId);
|
||||||
// obj.category = options[i].children[j].title;
|
// // obj.category = options[i].children[j].title;
|
||||||
// console.log("obj. obj.category ", obj.category);
|
// // console.log("obj. obj.category ", obj.category);
|
||||||
breaked = true;
|
// breaked = true;
|
||||||
break;
|
// break;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
if (breaked) {
|
// if (breaked) {
|
||||||
break;
|
// break;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
if (!obj.category) {
|
if (!obj.category) {
|
||||||
obj.category = "-";
|
obj.category = "-";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -165,9 +165,10 @@ const tablecolumns = ref([
|
|||||||
title: "姓名",
|
title: "姓名",
|
||||||
dataIndex: "studentName",
|
dataIndex: "studentName",
|
||||||
key: "studentName",
|
key: "studentName",
|
||||||
width: "8%",
|
width: "12%",
|
||||||
align: "left",
|
align: "left",
|
||||||
className: "h",
|
className: "h",
|
||||||
|
ellipsis: true,
|
||||||
customRender: ({record: {studentName, topFlag}}) => (topFlag ? <div
|
customRender: ({record: {studentName, topFlag}}) => (topFlag ? <div
|
||||||
style={{
|
style={{
|
||||||
display: "flex",
|
display: "flex",
|
||||||
@@ -188,7 +189,7 @@ const tablecolumns = ref([
|
|||||||
title: "工号",
|
title: "工号",
|
||||||
dataIndex: "studentUserNo",
|
dataIndex: "studentUserNo",
|
||||||
key: "studentUserNo",
|
key: "studentUserNo",
|
||||||
width: "20%",
|
width: "15%",
|
||||||
align: "center",
|
align: "center",
|
||||||
className: "h",
|
className: "h",
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
|
|||||||
@@ -111,6 +111,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="mbl_items2" v-if="detail.intro">
|
<div class="mbl_items2" v-if="detail.intro">
|
||||||
<div class="item_nam">
|
<div class="item_nam">
|
||||||
|
<div class="asterisk_icon">
|
||||||
|
<img src="@/assets/images/coursewareManage/asterisk.png" alt="asterisk" />
|
||||||
|
</div>
|
||||||
<span style="margin-right: 14px">课程简介:</span>
|
<span style="margin-right: 14px">课程简介:</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="item_inp">
|
<div class="item_inp">
|
||||||
|
|||||||
@@ -283,7 +283,7 @@
|
|||||||
<div class="fotnam">
|
<div class="fotnam">
|
||||||
<span>课程大纲</span>
|
<span>课程大纲</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="fotarea">
|
<div v-if="ft_hs" class="fotarea">
|
||||||
<div style="border: 1px solid #ccc">
|
<div style="border: 1px solid #ccc">
|
||||||
<Toolbar style="border-bottom: 1px solid #ccc" :editor="editorRef" :defaultConfig="toolbarConfig"
|
<Toolbar style="border-bottom: 1px solid #ccc" :editor="editorRef" :defaultConfig="toolbarConfig"
|
||||||
:mode="mode" />
|
:mode="mode" />
|
||||||
|
|||||||
@@ -217,7 +217,7 @@ export default {
|
|||||||
width: "10%",
|
width: "10%",
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
customRender: (time) => {
|
customRender: (time) => {
|
||||||
return <div style="color:#387DF7">{time.record.time}</div>;
|
return <div>{time.record.time}</div>;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1490,7 +1490,8 @@ export default {
|
|||||||
state.deleteModal = false;
|
state.deleteModal = false;
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
message.error(err);
|
console.log(err)
|
||||||
|
// message.error(err);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -1697,6 +1698,7 @@ export default {
|
|||||||
deleteStudyTask({ routerTaskIds: state.deleteID })
|
deleteStudyTask({ routerTaskIds: state.deleteID })
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
state.deleteModal = false;
|
state.deleteModal = false;
|
||||||
|
message.destroy();
|
||||||
message.success("删除成功");
|
message.success("删除成功");
|
||||||
state.selectRow = []; //选择行
|
state.selectRow = []; //选择行
|
||||||
state.selectAll = 0; //0:未选择,1:全选,2:部分选择
|
state.selectAll = 0; //0:未选择,1:全选,2:部分选择
|
||||||
@@ -1704,6 +1706,7 @@ export default {
|
|||||||
console.log("删除成功", res);
|
console.log("删除成功", res);
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
|
message.destroy();
|
||||||
message.error("删除失败");
|
message.error("删除失败");
|
||||||
console.log(err);
|
console.log(err);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user