- 发送此站内信函即表示您已阅读并接受《用户协议》,请遵守该协议
+ 发送此站内信函即表示您已阅读并接受《用户协议》,请遵守该协议
@@ -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 @@
+