From adc1a8e61db5955bd33cd7fae7856e4a0a6249fd Mon Sep 17 00:00:00 2001 From: wyx <51903@qq.com> Date: Wed, 7 Dec 2022 10:20:58 +0800 Subject: [PATCH 01/10] =?UTF-8?q?fix:=E8=AF=84=E4=BC=B0=E5=9B=9E=E6=98=BE?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/config.js | 2 +- src/api/indexInvist.js | 1 - src/components/drawers/ AssessmentList.vue | 4 +++- src/components/drawers/AddInvist.vue | 1 + 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/api/config.js b/src/api/config.js index 0fc645fe..84d2536f 100644 --- a/src/api/config.js +++ b/src/api/config.js @@ -56,7 +56,7 @@ http.interceptors.response.use( return response; } else { if (code === 1000) { - window.open("https://u-pre.boe.com/web/", '_self'); + // window.open("https://u-pre.boe.com/web/", '_self'); // window.open("http://111.231.196.214:12013/manage/login", '_self'); } console.log("api %o", msg); diff --git a/src/api/indexInvist.js b/src/api/indexInvist.js index 77be057e..6865613c 100644 --- a/src/api/indexInvist.js +++ b/src/api/indexInvist.js @@ -43,7 +43,6 @@ import http from "./config"; //根据ID获取评估信息详情 export const queryAppraiseDetailById = (obj) => http.post('/assessment/queryAssessmentDetailById', obj,{ headers: { - 'token': '123', 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8', } }) diff --git a/src/components/drawers/ AssessmentList.vue b/src/components/drawers/ AssessmentList.vue index 5e55d884..d202834c 100644 --- a/src/components/drawers/ AssessmentList.vue +++ b/src/components/drawers/ AssessmentList.vue @@ -234,7 +234,9 @@ export default { .then((res) => { let arr = res.data.data.rows; if (res.status === 200) { - // console.log("获取全部评估信息", res.data.data); + console.log("获取全部评估信息", res.data.data); + state.selectedRowKeys = [props.assessmentId] + console.log(props.assessmentId,props) getTableDate(arr); state.tableDataTotal = Number(res.data.data.total); } diff --git a/src/components/drawers/AddInvist.vue b/src/components/drawers/AddInvist.vue index 9ac0eb86..847c115c 100644 --- a/src/components/drawers/AddInvist.vue +++ b/src/components/drawers/AddInvist.vue @@ -212,6 +212,7 @@ export default { console.log(res); //更新讨论信息 state.assessment1 = res.data.data; + state.assessmentId = res.data.data.assessmentId; }) .catch(() => {}); } From a5c32386252628e348b91749a8f2b07ac1531c41 Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Wed, 7 Dec 2022 12:01:29 +0800 Subject: [PATCH 02/10] =?UTF-8?q?--=20=E6=8E=88=E8=AF=BE=E8=80=81=E5=B8=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/project/ProjectManagerNew.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/project/ProjectManagerNew.vue b/src/components/project/ProjectManagerNew.vue index 9b802ec8..dcbd6c48 100644 --- a/src/components/project/ProjectManagerNew.vue +++ b/src/components/project/ProjectManagerNew.vue @@ -122,9 +122,9 @@ const searchMember = (keyWord) => { }; function change(e, l) { - selectOptions.value = l isOpen.value = false - emit('onChange', e, l, selectOptions.value.find(e => e.deptId)?.deptId) + Array.isArray(l) && (selectOptions.value = l) + Array.isArray(selectOptions.value) && emit('onChange', e, l, selectOptions.value.find(e => e.deptId)?.deptId) if (Array.isArray(l)) { emit('update:name', l.map(t => t.label).join(',')) emit('update:value', l.map(t => t.value).join(',')) From 093514d374d09841fcb38979f5e45990f72659d5 Mon Sep 17 00:00:00 2001 From: kclf <1195754634@qq.com> Date: Wed, 7 Dec 2022 12:23:05 +0800 Subject: [PATCH 03/10] =?UTF-8?q?=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/courselibrary/CoursewareManage.vue | 35 ++++++++++---------- 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/src/views/courselibrary/CoursewareManage.vue b/src/views/courselibrary/CoursewareManage.vue index e7dba954..68af3bfe 100644 --- a/src/views/courselibrary/CoursewareManage.vue +++ b/src/views/courselibrary/CoursewareManage.vue @@ -715,7 +715,7 @@
保存
- +
{ - return text ? getdateToTime(text * 1000) : "-"; + // return text ? getdateToTime(text * 1000) : "-"; + return text ? text : "-"; }, }, { @@ -3465,7 +3466,8 @@ const columns6 = [ ellipsis: true, align: "center", customRender: ({ text }) => { - return text ? getdateToTime(text * 1000) : "-"; + // return text ? getdateToTime(text * 1000) : "-"; + return text ? text : "-"; }, }, { @@ -4717,7 +4719,7 @@ export default defineComponent({ // ft_exit_1(); rest(); state.addLoading = false; - + state.statusTingQi = 1; // console.log("res.data", res.data); if (param === "review") { @@ -4817,8 +4819,7 @@ export default defineComponent({ //编辑开课 const handelEditStu = async (itm) => { console.log(itm); - - + state.offcourseId = itm.offcourseId; state.offcoursePlanId = itm.offcoursePlanId; @@ -4828,13 +4829,16 @@ export default defineComponent({ if (res.data.code === 200) return res.data.data; }); - let obj={ - assessmentId:item.evaluateId, - } - api.queryAppraiseDetailById(obj).then((res) => { - state.assessmentName= res.data.data.assessmentName; - }).catch(); - + let obj = { + assessmentId: item.evaluateId, + }; + api + .queryAppraiseDetailById(obj) + .then((res) => { + state.assessmentName = res.data.data.assessmentName; + }) + .catch(); + console.log("res"); console.log(item); @@ -5247,10 +5251,6 @@ export default defineComponent({ }; //编辑面授课 const handleEdit = async (itm, type) => { - - - - console.log(45555); console.log(itm); if (type === "1") { @@ -5322,7 +5322,6 @@ export default defineComponent({ state.lookCourseModal = false; }; const handleLook = async (itm, type) => { - if (type === "1") { return; } From c84e6beddbecc7fbeb6e16453ccc4d566a1c9777 Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Wed, 7 Dec 2022 12:23:30 +0800 Subject: [PATCH 04/10] =?UTF-8?q?--=20=E8=AF=BE=E7=A8=8Bbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/courselibrary/CoursewareManage.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/views/courselibrary/CoursewareManage.vue b/src/views/courselibrary/CoursewareManage.vue index d0c24022..fca014d1 100644 --- a/src/views/courselibrary/CoursewareManage.vue +++ b/src/views/courselibrary/CoursewareManage.vue @@ -4571,6 +4571,8 @@ export default defineComponent({ state.of_hs = false; state.ft_hs = true; state.valueE1 = ""; + state.teacher = ""; + state.teacherName = ""; state.qdms_inputV1 = state.xzinputV1; state.xzinputV1 = ""; getDictList("faceclassPic"); From bf343660182d7b85633adedb0cf63ef0ee950ff7 Mon Sep 17 00:00:00 2001 From: wyx <51903@qq.com> Date: Wed, 7 Dec 2022 12:27:01 +0800 Subject: [PATCH 05/10] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E8=AF=BE=E7=A8=8B?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E9=A1=B5=E9=9D=A2=E6=89=80=E6=9C=89=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=E5=BA=8F=E5=8F=B7=E5=B1=95=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/courselibrary/CoursewareManage.vue | 44 ++++++++++---------- src/views/projectcenter/LibraryAdd.vue | 23 +++++++++- 2 files changed, 45 insertions(+), 22 deletions(-) diff --git a/src/views/courselibrary/CoursewareManage.vue b/src/views/courselibrary/CoursewareManage.vue index e7dba954..ffefd7bf 100644 --- a/src/views/courselibrary/CoursewareManage.vue +++ b/src/views/courselibrary/CoursewareManage.vue @@ -2487,13 +2487,13 @@
{{ currentPlanItem.name }}课程-第1期- - {{ getdateToDateFn(currentPlanItem.createTime) }} + {{ currentPlanItem.createTime }} 已开课 4.5
时间: - {{ getdateToTimeFn(currentPlanItem.endTime) }} + {{ currentPlanItem.endTime }}
地点: @@ -3147,10 +3147,7 @@ const columns1 = [ width: 100, dataIndex: "num", key: "num", - align: "center", - customRender: ({ index }) => { - return index + 1; - }, + align: "center" }, { title: "名称", @@ -3396,11 +3393,7 @@ const columns6 = [ key: "num", width: "6%", align: "center", - ellipsis: true, - customRender: ({ index }) => { - //{ text, record, index, column } - return index + 1; - }, + ellipsis: true }, { title: "创建人", @@ -3454,7 +3447,7 @@ const columns6 = [ ellipsis: true, align: "center", customRender: ({ text }) => { - return text ? getdateToTime(text * 1000) : "-"; + return text ? text: "-"; }, }, { @@ -3465,7 +3458,7 @@ const columns6 = [ ellipsis: true, align: "center", customRender: ({ text }) => { - return text ? getdateToTime(text * 1000) : "-"; + return text ? text : "-"; }, }, { @@ -3484,10 +3477,6 @@ const columns7 = [ dataIndex: "num", key: "num", align: "center", - customRender: ({ index }) => { - //{ text, record, index, column } - return index + 1; - }, }, { title: "姓名", @@ -3885,7 +3874,7 @@ export default defineComponent({ selectTime: "", pageSize3: 10, - currentPage3: 0, + currentPage3: 1, tableDataTotal3: 0, checked1: false, @@ -4110,11 +4099,14 @@ export default defineComponent({ const { rows, total } = res.data.data; console.log(res.data.data); state.tableDataTotal1 = total; + for(let i=0;i { rows[index] = { ...item, @@ -4428,7 +4425,7 @@ export default defineComponent({ rows, { key: "studentId", - num: "studentId", + num: "num", name: "name", number: "studentId", department: "deptName", @@ -4520,11 +4517,16 @@ export default defineComponent({ console.log("开课res", res); const { rows, total } = res.data.data; state.tableDataTotal222 = total; + + for(let i=0;i Date: Wed, 7 Dec 2022 12:33:18 +0800 Subject: [PATCH 06/10] =?UTF-8?q?=E5=BA=8F=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/courselibrary/CoursewareManage.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/views/courselibrary/CoursewareManage.vue b/src/views/courselibrary/CoursewareManage.vue index 68af3bfe..b62c8345 100644 --- a/src/views/courselibrary/CoursewareManage.vue +++ b/src/views/courselibrary/CoursewareManage.vue @@ -3148,8 +3148,10 @@ const columns1 = [ dataIndex: "num", key: "num", align: "center", - customRender: ({ index }) => { - return index + 1; + customRender: ({ index, record }) => { + const pageNum = + Number(record.pageNo) - 1 > 0 ? (Number(record.pageNo) - 1) * 10 : 0; + return index + 1 + pageNum; }, }, { @@ -4109,7 +4111,7 @@ export default defineComponent({ endTime: endTime, beginTime: startTime, }); - const { rows, total } = res.data.data; + const { rows, total, pageNo } = res.data.data; console.log(res.data.data); state.tableDataTotal1 = total; const datas = traverseArr( @@ -4134,6 +4136,7 @@ export default defineComponent({ true ); datas.forEach((itm) => { + itm.pageNo = pageNo; for (let item of options2.value) { if (String(item.value) === String(itm.content)) { itm.contentTxt = item.label; From c2c7ae9c506c4196444e6ba6893010355df4d993 Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Wed, 7 Dec 2022 12:38:53 +0800 Subject: [PATCH 07/10] =?UTF-8?q?--=20=E8=AF=BE=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/projectcenter/ProjectAdd.vue | 61 ++++++++++++++------------ 1 file changed, 34 insertions(+), 27 deletions(-) diff --git a/src/views/projectcenter/ProjectAdd.vue b/src/views/projectcenter/ProjectAdd.vue index 664d9909..34416b0a 100644 --- a/src/views/projectcenter/ProjectAdd.vue +++ b/src/views/projectcenter/ProjectAdd.vue @@ -68,31 +68,33 @@ />
封面图
-
- +
avatar -
- - 高宽比为16:9 (如:800*450) png或jpg图片 - -
@@ -128,7 +130,7 @@
@@ -292,13 +294,13 @@ import {onMounted, reactive, toRefs, watch} from "vue"; import {message} from "ant-design-vue"; import {useRoute, useRouter} from "vue-router"; import * as api from "../../api/index"; -import {useStore} from "vuex"; import ProjectClass from "@/components/project/ProjectClass"; import TrainClass from "@/components/project/TrainClass"; import OrgClass from "@/components/project/OrgClass"; import ProjectManager from "@/components/project/ProjectManagerNew"; import ProjectLevel from "@/components/project/ProjectLevel"; import {changeOwnership, scrollLoad} from "@/api/method"; +import * as api1 from "@/api/index1"; export default { name: "projectAdd", @@ -310,7 +312,6 @@ export default { OrgClass, }, setup() { - const store = useStore(); const routers = useRoute(); const router = useRouter(); const state = reactive({ @@ -330,8 +331,8 @@ export default { courseSyncFlag: false, }); - onMounted(() => { - state.projectPic = store.state.projectPic.map((e) => ({value: e.dictValue, label: e.dictName})); + onMounted(async () => { + state.projectPic = await getDictList('pathmapPic').then(e => e.map(e => e.dictValue)); state.viewDetail = routers.query.viewDetail; getProjectInfo(); getTemplate(); @@ -343,6 +344,12 @@ export default { state.projectInfo.parentId = routers.query.parentId; }); + const getDictList = (param) => api1.getDict({ + pageNo: 1, + pageSize: 20, + setCode: param, + }).then((res) => res.data.data.rows); + function getProjectInfo() { if (!routers.query.projectId) { state.projectInfo = { From 8d400d9c3d9ab808d647f0cf5e4cb999fc132004 Mon Sep 17 00:00:00 2001 From: kclf <1195754634@qq.com> Date: Wed, 7 Dec 2022 12:39:09 +0800 Subject: [PATCH 08/10] =?UTF-8?q?=E5=BA=8F=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/courselibrary/CoursewareManage.vue | 36 ++++++++++++++------ 1 file changed, 25 insertions(+), 11 deletions(-) diff --git a/src/views/courselibrary/CoursewareManage.vue b/src/views/courselibrary/CoursewareManage.vue index 5ba54128..c718fb35 100644 --- a/src/views/courselibrary/CoursewareManage.vue +++ b/src/views/courselibrary/CoursewareManage.vue @@ -3398,7 +3398,12 @@ const columns6 = [ key: "num", width: "6%", align: "center", - ellipsis: true + ellipsis: true, + customRender: ({ index, record }) => { + const pageNum = + Number(record.pageNo) - 1 > 0 ? (Number(record.pageNo) - 1) * 10 : 0; + return index + 1 + pageNum; + }, }, { title: "创建人", @@ -3484,6 +3489,11 @@ const columns7 = [ dataIndex: "num", key: "num", align: "center", + customRender: ({ index, record }) => { + const pageNum = + Number(record.pageNo) - 1 > 0 ? (Number(record.pageNo) - 1) * 10 : 0; + return index + 1 + pageNum; + }, }, { title: "姓名", @@ -4106,8 +4116,8 @@ export default defineComponent({ const { rows, total, pageNo } = res.data.data; console.log(res.data.data); state.tableDataTotal1 = total; - for(let i=0;i { rows[index] = { ...item, @@ -4447,6 +4456,9 @@ export default defineComponent({ }, true ); + data2.forEach((itm) => { + itm.pageNo = pageNo; + }); state.tableData7 = data2; }; getTableDate2(); @@ -4523,13 +4535,12 @@ export default defineComponent({ console.log("获取开课", obj); let res = await planList(obj); console.log("开课res", res); - const { rows, total } = res.data.data; + const { rows, total, pageNo } = res.data.data; state.tableDataTotal222 = total; - for(let i=0;i { + itm.pageNo = pageNo; + }); state.tableData6 = datas; }; From cf89c718b8d9b675a3ac05009d3114f15d57cd32 Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Wed, 7 Dec 2022 12:43:08 +0800 Subject: [PATCH 09/10] -- bug --- src/views/projectcenter/ProjectAdd.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/projectcenter/ProjectAdd.vue b/src/views/projectcenter/ProjectAdd.vue index afa060c1..b474e1b1 100644 --- a/src/views/projectcenter/ProjectAdd.vue +++ b/src/views/projectcenter/ProjectAdd.vue @@ -129,7 +129,7 @@
From 000bb248f4954917a7e297ae31563f733f4e525c Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Wed, 7 Dec 2022 12:56:58 +0800 Subject: [PATCH 10/10] =?UTF-8?q?--=20=E6=A0=B7=E5=BC=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawers/ProjPowerList.vue | 115 ++++++++++++++++++++++- 1 file changed, 114 insertions(+), 1 deletion(-) diff --git a/src/components/drawers/ProjPowerList.vue b/src/components/drawers/ProjPowerList.vue index 9104dac7..84b6402e 100644 --- a/src/components/drawers/ProjPowerList.vue +++ b/src/components/drawers/ProjPowerList.vue @@ -96,7 +96,7 @@ v-model:visible="cancelModal" :footer="null" :closable="closeCancel" - wrapClassName="CopyModal" + wrapClassName="DelModal" centered="true" >
@@ -422,6 +422,119 @@ export default { padding: 0px; } } +.DelModal { + .ant-modal { + .ant-modal-content { + width: 424px !important; + + .ant-modal-body { + .delete { + width: 424px; + background: #ffffff; + box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21); + border-radius: 4px; + position: absolute; + left: 50%; + top: 10%; + transform: translate(-50%, -50%); + + .del_header { + position: absolute; + width: calc(100%); + height: 40px; + background: linear-gradient( + rgba(78, 166, 255, 0.2) 0%, + rgba(78, 166, 255, 0) 100% + ); + } + + .del_main { + width: 100%; + position: relative; + + .header { + display: flex; + align-items: center; + padding-top: 20px; + padding-left: 26px; + font-size: 16px; + + .del-icons { + width: 16px; + height: 16px; + position: relative; + margin-right: 10px; + + img { + width: 100%; + height: 100%; + position: absolute; + top: 0px; + left: 0px; + background-size: 100% 100%; + } + } + + .close_exit { + position: absolute; + right: 42px; + cursor: pointer; + width: 20px; + height: 20px; + background-image: url(@/assets/images/coursewareManage/close.png); + background-size: 100% 100%; + } + } + + .body { + width: 100%; + margin: 34px auto 56px auto; + display: flex; + justify-content: center; + align-items: center; + } + + .del_btnbox { + display: flex; + margin: 30px auto; + justify-content: center; + + .del_btn { + width: 100px; + height: 40px; + background: rgba(64, 158, 255, 0); + border-radius: 8px; + display: flex; + align-items: center; + justify-content: center; + margin-right: 14px; + flex-shrink: 0; + cursor: pointer; + + .btnText { + font-size: 14px; + font-weight: 400; + line-height: 40px; + } + } + + .btn1 { + border: 1px solid rgba(64, 158, 255, 1); + color: #4ea6ff; + } + + .btn2 { + background-color: #4ea6ff; + color: #ffffff; + } + } + } + } + } + } + } +} + .ProjPowerList { // width: 80%;