From 49a435043b0b1a289a24606e35253365d7ab3956 Mon Sep 17 00:00:00 2001 From: QYF-GitLab1 <1940665526@qq.com> Date: 星期一, 25 八月 2025 17:51:57 +0800 Subject: [PATCH] 首页、及教学出版样式修改 --- src/views/classManage/talkDetail.vue | 48 ++++++++++++++++++++++++++---------------------- 1 files changed, 26 insertions(+), 22 deletions(-) diff --git a/src/views/classManage/talkDetail.vue b/src/views/classManage/talkDetail.vue index f38a29a..773ca9b 100644 --- a/src/views/classManage/talkDetail.vue +++ b/src/views/classManage/talkDetail.vue @@ -135,7 +135,7 @@ const childLoading = ref(false) onMounted(() => { - const userCache: any = localStorage.getItem('jesk-userInfo') + const userCache: any = localStorage.getItem(config.userInfoKey) if (userCache) { userInfo.value = JSON.parse(userCache) } @@ -148,7 +148,7 @@ } const submitText = (val: string) => { - const userCache: any = localStorage.getItem('jesk-userInfo') + const userCache: any = localStorage.getItem(config.userInfoKey) const userInfo = JSON.parse(userCache) if (userInfo?.data) { const iconData = JSON.parse(userInfo.data) @@ -159,7 +159,7 @@ publisher: userInfo?.name ?? '', publishRole: userInfo?.role ?? '', icon: userInfo.icon ?? '', - type: userInfo.type ?? '' + type: userInfo.type ?? '', } const data = { description: '', @@ -171,13 +171,13 @@ content: JSON.stringify(textObj), type: 'Normal', cmsTypeRefCode: '', - newDataListRequest: [] + newDataListRequest: [], } MG.ugc.newTopicMessage(data).then((res: any) => { if (res) { ElMessage({ message: '宸插洖澶�', - type: 'success' + type: 'success', }) dialogVisible.value = false textarea.value = '' @@ -190,11 +190,11 @@ const getTopicInfo = () => { const pramas = { classId: classInfo.id, - refCodes: [config.refCodes.talk] + refCodes: [config.refCode.talk], } MG.edu.getClassTopic(pramas).then((res: any) => { const list = res - talkTopicInfo.value = list.find((item: any) => item.refCode == config.refCodes.talk) + talkTopicInfo.value = list.find((item: any) => item.refCode == config.refCode.talk) if (talkTopicInfo.value.id) { getMessage() } @@ -211,11 +211,11 @@ { keywords: classInfo.MessageName, field: 'Name', - compareType: 'Contains' - } + compareType: 'Contains', + }, ], appRefCode: config.appRefCode, - topicIdOrRefCode: String(talkTopicInfo.value.id) + topicIdOrRefCode: String(talkTopicInfo.value.id), } MG.ugc.getTopicMessageList(data).then((res: any) => { const list = res.datas @@ -231,7 +231,7 @@ item.createDate = moment(item.createDate).format('YYYY-MM-DD HH:mm:ss') item.updateDate = moment(item.updateDate).format('YYYY-MM-DD HH:mm:ss') return { - ...item + ...item, } }) ownData.value = list[0] @@ -246,7 +246,7 @@ start: 0, size: 999, parentId: ownData?.value.id, - topicIdOrRefCode: String(talkTopicInfo.value.id) + topicIdOrRefCode: String(talkTopicInfo.value.id), } MG.ugc.getTopicMessageSubList(data).then((res: any) => { const list = res.datas @@ -265,7 +265,7 @@ item.createDate = moment(item.createDate).format('YYYY-MM-DD HH:mm:ss') item.updateDate = moment(item.updateDate).format('YYYY-MM-DD HH:mm:ss') return { - ...item + ...item, } }) }) @@ -274,13 +274,13 @@ // 鍒犻櫎鍥炲璇濋 const removeMessageItem = (item: any) => { const data = { - messageIds: [item.id] + messageIds: [item.id], } MG.ugc.delTopicMessage(data).then((res: any) => { if (res) { ElMessage({ message: '宸插垹闄�', - type: 'success' + type: 'success', }) } getMessage() @@ -298,7 +298,7 @@ state: 'Normal', content: JSON.stringify(item.publicText), newDataRequests: [], - updateDataRequests: [] + updateDataRequests: [], } MG.ugc .updateTopicMessage(data) @@ -306,7 +306,7 @@ if (res) { ElMessage({ type: 'success', - message: '宸插彂甯�' + message: '宸插彂甯�', }) getMessage() } @@ -327,7 +327,6 @@ background: #fff; .classManagePage-nav { - width: 100%; padding: 0 20px; height: 40px; border-bottom: 1px solid #e6e8ed; @@ -339,7 +338,6 @@ background: #fff; } .classManagePage-content { - width: 100%; position: relative; .backBtn { width: 100%; @@ -353,13 +351,14 @@ z-index: 99; background: #fff; box-shadow: 0px 0px 20px 1px #eee; + box-sizing: border-box; } .talkBox { - width: 100%; display: flex; justify-content: space-between; align-items: flex-start; - padding: 0 20px; + padding: 20px; + box-sizing: border-box; .leftBox { flex: 1; min-width: 500px; @@ -375,9 +374,11 @@ height: 60px; border-bottom: 1px solid #e7eaec; line-height: 60px; + box-sizing: border-box; } :deep(.inputBox) { padding: 20px 30px; + box-sizing: border-box; position: relative; .el-textarea__inner { @@ -395,8 +396,8 @@ .MessageBox { width: 100%; padding: 0 30px; + box-sizing: border-box; .MessageHeader { - width: 100%; display: flex; justify-content: space-between; align-items: center; @@ -410,6 +411,7 @@ } .MessageContent { padding: 0 60px; + box-sizing: border-box; padding-bottom: 20px; margin-bottom: 10px; font-family: PingFang SC; @@ -441,6 +443,7 @@ justify-content: space-between; align-items: center; border-bottom: 1px solid #e7eaec; + box-sizing: border-box; .talkUser { display: flex; @@ -456,6 +459,7 @@ overflow: auto; padding: 20px 30px; + box-sizing: border-box; .contentTilte { font-family: PingFang SC; font-weight: bold; -- Gitblit v1.9.1