diff --git a/src/api/user/news.js b/src/api/user/news.js index 245f9ae..400cd2e 100644 --- a/src/api/user/news.js +++ b/src/api/user/news.js @@ -7,6 +7,10 @@ export function queryCategory() { export function deleteCategory(ids) { return request.delete(`/api/cms-category/delete?ids=${ids}`); } +//编辑栏目 +export function editStatus(params) { + return request.put(`/api/cms-category/edit/status`, params); +} //添加栏目 function parseParams(params){ let str = '?' diff --git a/src/router/routers copy.ts b/src/router/routers copy.ts index fea7cd5..027b8cb 100644 --- a/src/router/routers copy.ts +++ b/src/router/routers copy.ts @@ -310,7 +310,7 @@ export const constantRoute: any = [ }, { path: '/news/newsContentDetails', - component:()=>import('@/views/news/components/newsContentDetails.vue'), + component:()=>import('@/views/news/components/newsContentManage.vue'), name:'NewsContentDetails', meta: { title: '栏目添加新闻信息', diff --git a/src/router/routers.ts b/src/router/routers.ts index ce14a54..648e478 100644 --- a/src/router/routers.ts +++ b/src/router/routers.ts @@ -238,7 +238,7 @@ export const constantRoute: any = [ { path: '/news/newsContentDetails', component: () => - import('@/views/news/components/newsContentDetails.vue'), + import('@/views/news/components/newsContentManage.vue'), name: 'NewsContentDetails', meta: { title: '文章', diff --git a/src/views/message/components/messageContent.vue b/src/views/message/components/messageContent.vue index 599dff0..5f4ef7a 100644 --- a/src/views/message/components/messageContent.vue +++ b/src/views/message/components/messageContent.vue @@ -17,56 +17,25 @@ - - + + - - - - + - - - + + - - + + - - + + - - - - - @@ -99,7 +68,7 @@ @@ -114,7 +83,7 @@ import useUserStore from '@/store/modules/user' import { ElMessageBox, ElMessage } from 'element-plus' import {SendMessageApi} from "@/api/user/messag"; const selectStudent = ref([]) - +//计算收件人获取的id const inputPerson =computed(()=>{ if(props.multiple){ return selectStudent.value.map(item=>item[1]) @@ -122,13 +91,12 @@ const inputPerson =computed(()=>{ return selectStudent.value[1] } }) - +//计算课程获取的id const inputCourseId = computed(()=>{ if(props.multiple) return selectStudent.value.map(item=>item[0]) else return selectStudent.value[0] }) - -//====== +//========================== const inputText = ref('') const textarea = ref('') const addPerson = ref(false) @@ -186,7 +154,6 @@ const send = async () => { cancelButtonText: '取消', type: 'warning', }) - // console.log(inputPerson,'ddddd') await SendMessageApi({ receiverId: inputPerson.value.toString(), courseId:inputCourseId.value.toString(), @@ -202,7 +169,6 @@ const send = async () => { } \ No newline at end of file diff --git a/src/views/news/components/newsContentManage.vue b/src/views/news/components/newsContentManage.vue new file mode 100644 index 0000000..c115619 --- /dev/null +++ b/src/views/news/components/newsContentManage.vue @@ -0,0 +1,511 @@ + + + + + \ No newline at end of file diff --git a/src/views/news/index.vue b/src/views/news/index.vue index d164a69..9a71b26 100644 --- a/src/views/news/index.vue +++ b/src/views/news/index.vue @@ -1,50 +1,34 @@ @@ -371,11 +146,6 @@ const editNewsContentConfirm = async ()=>{ .header-column span{ color: #222222; } -.add-news-button { - margin-top: auto; /* 将按钮推到底部 */ - text-align: center; /* 居中按钮 */ - width: 100%; -} .contentTitle{ color: firebrick; font-size: 30px; @@ -389,17 +159,6 @@ const editNewsContentConfirm = async ()=>{ align-items: center; flex-direction: row; } -/* 添加新的类来控制按钮的位置 */ -.button-container { - display: flex; - justify-content: flex-end; /* 按钮靠右 */ - align-items: center; /* 垂直居中 */ -} -.button-container_column{ - position:absolute; - margin-top: 30px; - margin-left: 200px; -} .news-flex-container { display: flex; /* 使用 Flexbox 布局 */ justify-content: space-between; /* 平均分配空间 */ @@ -420,7 +179,7 @@ const editNewsContentConfirm = async ()=>{ margin-right: 0; } .scrollbarContent{ - height:60vh; + height:68vh; border: 1px; background: white; border-radius: 1%;