diff --git a/src/App.vue b/src/App.vue index e7b5d0c8..ba791049 100644 --- a/src/App.vue +++ b/src/App.vue @@ -44,7 +44,7 @@ export default defineComponent({ const store = useStore(); const isLogin = ref(false); // console.log("router", router.getRoutes(), route); - console.log("版本2.0.7------------"); + console.log("版本2.0.9------------"); const routes = computed(() => { return router.getRoutes().filter((e) => e.meta?.isLink); }); @@ -67,6 +67,7 @@ export default defineComponent({ initDict("pathmapPic"); initDict("projectClass"); initDict("projectPic"); + initDict("sysType"); getMemberInfo(); getOrgTree(); } @@ -128,14 +129,7 @@ export default defineComponent({ store.commit("SET_DICT", { key, data: list }); } - const getDictList = (param) => - api1 - .getDict({ - pageNo: 1, - pageSize: 20, - setCode: param, - }) - .then((res) => res.data.data.rows); + const getDictList = (param) => api1.getDictTree({setCode: param,}).then((res) => res.data.data); //获取组织树 const getOrgTree = () => { api.getOrgTreeInfo().then((res) => { diff --git a/src/api/index1.js b/src/api/index1.js index d5b33d83..eafae25e 100644 --- a/src/api/index1.js +++ b/src/api/index1.js @@ -78,8 +78,9 @@ export const delStudent = (obj) => http.post("/admin/router/deleteStudent", obj); // 获取学员路径图进度明细 -export const stuProgress = (obj) => - http.post("/admin/router/studentProcess", obj); +export const stuProgress = (params) => http.get('/admin/router/studentProcess', {params}); +// export const stuProgress = (obj) =>http.post("/admin/router/studentProcess", obj); + //编辑学习路径基本信息 export const editLearnInfo = (obj) => http.post('/admin/router/editInfo', obj) @@ -102,6 +103,7 @@ export const billboard = (obj) => http.post("/admin/project/billboard", obj); //公共信息--------------------------------------------------- // 获取字典信息 export const getDict = (obj) => http.post('/dict/getList', obj) +export const getDictTree = (params) => http.get('/dict/getTree', {params}) //获取组织树一级列表 export const getOrgTree = (obj) => http.post('/admin/router/orgList', obj) //根据id获取组织树一级元素下所有子元素 @@ -163,7 +165,9 @@ export const AssessmentManagementMessage = (obj) => http.get(`/admin/student/get export const exportTaskStudent = (obj) => http.post('/admin/student/exportTaskStudent', obj) //导出任务作业 export const exportHomeWork = (obj) => http.get('/admin/student/exportHomeWork', { params: obj }) -//签到 +//导出任务作业模板 +export const exportHomeWorkTemplate = (obj) => http.get('/admin/student/exportHomeWorkTemplate', { params: obj }) +//签到 export const attendanceSign = (obj) => http.post('/stu/task/attendance/sign', obj) //请假 export const attendanceLeave = (obj) => http.post('/stu/task/attendance/leave', obj) diff --git a/src/components/drawers/AddLevelImportStu.vue b/src/components/drawers/AddLevelImportStu.vue index 77360b65..0d6abdca 100644 --- a/src/components/drawers/AddLevelImportStu.vue +++ b/src/components/drawers/AddLevelImportStu.vue @@ -115,7 +115,7 @@
-
+
下载失败数据
@@ -124,11 +124,11 @@
- {{ succNum }}条数据导入成功,{{ errNum }}条数据导入失败 + {{ succNum }}条数据导入成功,{{ downloadErrUrl == ''? 0 :errNum }}条数据导入失败
diff --git a/src/components/drawers/CheckStu.vue b/src/components/drawers/CheckStu.vue index 25585065..72ef168f 100644 --- a/src/components/drawers/CheckStu.vue +++ b/src/components/drawers/CheckStu.vue @@ -15,14 +15,15 @@ @click="closeDrawer" />
-
+ +
{{pro.userInfoBo.userName}}
-
{{pro.userInfoBo.deptName+'-'+pro.userInfoBo.jobName}}
+
{{pro.userInfoBo.deptName?pro.userInfoBo.deptName:"" + '-' + pro.userInfoBo.jobName?pro.userInfoBo.jobName:""}}
进度排名
@@ -46,7 +47,7 @@ /{{pro.totalReqCnt}}
- {{pro.certCnt}}
-
+ -->
-
产品经理管理 - 腾飞班1
-
+
{{ pro.name }}
+
-
@@ -81,7 +82,7 @@ " />
-
关卡{{index}} {{item.chapterName}}
+
{{item.chapterName}}
@@ -99,11 +100,105 @@
+ --> + +
+ + + + + +
+ +
+
+ +
+
{{ checkType(item.type) }}
+
{{ item.name }}
+
+
+
+ +
+
{{ item.status ==0?"进行中":item.status ==1?"已完成":"未开始" }}
+
+ +
+
+
- +
@@ -114,7 +209,7 @@ import { reactive, toRefs } from "vue"; import CheckStuMess from "./CheckStuMess.vue"; import {stuProgress} from "@/api/index1"; -import {message} from "ant-design-vue"; +// import {message} from "ant-design-vue"; export default { name: "CheckStu", components: { CheckStuMess }, @@ -126,13 +221,19 @@ export default { studentId: { type: Number, default: null, - } + }, + routerId: { + type: Number, + default: null, + }, }, setup(props, ctx) { const state = reactive({ StuMessvisible: false, showDown: false, pro:null, + loading:true, + stageListActive: 0, }); const closeDrawer = () => { ctx.emit("update:CheckStuvisible", false); @@ -151,21 +252,24 @@ export default { state.showDown = !state.showDown; }; const getStuProgress = () => { + state.loading = true let obj = { - routerId:100, + routerId:props.routerId, studentId:props.studentId } stuProgress(obj).then(res => { - message.success("操作成功") + console.log("查询当前学员进度信息success",res) state.pro = res.data.data + state.loading = false console.log(res) }).catch(err => { - message.error("操作失败"+err) + console.log("查询当前学员进度信息err",err) + state.loading = false console.log(err) }) } - const checkType = (type) => { + const checkType = (type) => { let typeRules = [ "", "在线", @@ -317,28 +421,115 @@ export default { } } } + // .mainbox { + // // height: 463px; + // margin-right: 37px; + // margin-top: 32px; + // border: 1px solid rgba(221, 238, 255, 1); + // border-radius: 6px; + // .rowtitle { + // height: 56px; + // background: rgba(240, 246, 252, 1); + // display: flex; + // align-items: center; + // .titleimg { + // width: 20px; + // height: 20px; + // margin-left: 23px; + // } + // .titletext { + // color: rgba(51, 51, 51, 1); + // font-size: 16px; + // font-weight: 500; + // margin-left: 16px; + // } + // } + // .rowclass { + // height: 81px; + // border-bottom: 1px solid rgba(221, 238, 255, 1); + // display: flex; + // justify-content: space-between; + // align-items: center; + // .leftclass { + // display: flex; + // margin-left: 25px; + // align-items: center; + // .text1 { + // color: #000000; + // font-size: 14px; + // font-weight: 500; + // margin-left: 25px; + // } + // .text2 { + // color: rgba(51, 51, 51, 0.8); + // font-size: 14px; + // margin-left: 65px; + // } + // } + // .alreadyclass { + // display: flex; + // margin-right: 57px; + // .alimg { + // height: 16px; + // width: 16px; + // } + // .altext { + // color: rgba(56, 125, 247, 1); + // font-size: 14px; + // margin-left: 16px; + // } + // } + // } + // } .mainbox { // height: 463px; margin-right: 37px; margin-top: 32px; - border: 1px solid rgba(221, 238, 255, 1); - border-radius: 6px; - .rowtitle { - height: 56px; - background: rgba(240, 246, 252, 1); + //border: 1px solid rgba(221, 238, 255, 1); + //border-radius: 6px; + .rowbox { + width: 64px; + height: 24px; + display: flex; + justify-content: center; + align-items: center; + margin-left: 24px; + border: 1px solid rgba(64, 158, 255, 1); + background: rgba(64, 158, 255, 0.1); + margin-right: 480px; + cursor: pointer; + .shuom { + color: rgba(64, 158, 255, 1); + font-size: 14px; + line-height: 20px; + margin-right: 5px; + } + } + .ant-collapse { + background-color: #ffffff; + border: 0; + } + .ant-collapse-content > .ant-collapse-content-box { + padding: 0; + border: 0; + } + .ant-collapse > .ant-collapse-item { + border: 1px solid rgba(221, 238, 255, 1); + border-radius: 6px; + margin-bottom: 15px; + border-bottom: 0px; + } + .ant-collapse-content { + border-top: 0; + } + .ant-collapse-header { display: flex; align-items: center; - .titleimg { - width: 20px; - height: 20px; - margin-left: 23px; - } - .titletext { - color: rgba(51, 51, 51, 1); - font-size: 16px; - font-weight: 500; - margin-left: 16px; - } + height: 56px; + background-color: rgba(240, 246, 252, 1); + font-size: 16px; + color: rgba(51, 51, 51, 1); + font-weight: 500; } .rowclass { height: 81px; diff --git a/src/components/drawers/ExportScore.vue b/src/components/drawers/ExportScore.vue index 2a367630..c72a7d99 100644 --- a/src/components/drawers/ExportScore.vue +++ b/src/components/drawers/ExportScore.vue @@ -209,6 +209,10 @@ export default { type: Number, default: null, }, + pid: { + type: Number, + default: null, + }, searchTaskList: { type: Function, default: null, @@ -352,10 +356,7 @@ export default { } }; function downTemplate() { - window.open( - process.env.VUE_APP_FILE_PATH + - process.env.VUE_APP_UP_LOAD_HOMEWORK_TEMPLATE - ); + window.open(`${process.env.VUE_APP_BASE_API}/admin/student/exportHomeWorkTemplate?taskId=${props.id || ''}&type=${props.type || ''}&pid=${props.pid || ''}&thirdType=3`); } return { diff --git a/src/components/drawers/NoticeHis.vue b/src/components/drawers/NoticeHis.vue index 07f391d6..289f1834 100644 --- a/src/components/drawers/NoticeHis.vue +++ b/src/components/drawers/NoticeHis.vue @@ -8,7 +8,15 @@
-
{{ item.content }}
+ +
{{ item.pubtime }}
@@ -136,7 +144,7 @@ export default { justify-content: space-between; margin-bottom: 66px; .itemcontent { - width: 500px; + width: 700px; word-break: break-all; word-wrap: break-word; // overflow: hidden; @@ -146,6 +154,7 @@ export default { font-weight: 400; color: #666666; line-height: 22px; + resize: none; } .itemtime { font-size: 14px; diff --git a/src/components/drawers/NoticePub.vue b/src/components/drawers/NoticePub.vue index a19a2293..1f437cf8 100644 --- a/src/components/drawers/NoticePub.vue +++ b/src/components/drawers/NoticePub.vue @@ -14,24 +14,38 @@

当前公告内容: