taskArea.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895
  1. <template>
  2. <div class="task">
  3. <div class="taskTop">
  4. <div class="tt_title">任务时间分配</div>
  5. <div class="tt_item">
  6. <div class="tt_i_title">
  7. <span>课程时间轴</span>
  8. </div>
  9. <div class="tt_i_box">
  10. <img :src="require('../../../assets/icon/course/group.png')" />
  11. </div>
  12. </div>
  13. <div class="tt_item">
  14. <div class="tt_i_title">
  15. <span>任务状态</span>
  16. <span>学生活动中...</span>
  17. </div>
  18. <div class="tt_i_box">
  19. <div class="tt_i_b_item">
  20. <div class="tt_i_b_title">作业提交</div>
  21. <div class="tt_i_b_box">
  22. <div class="tt_i_b_b_item">
  23. <div>提交人数</div>
  24. <span>34<span>人</span></span>
  25. </div>
  26. <div class="tt_i_b_b_item">
  27. <div>正确率</div>
  28. <span>88<span>%</span></span>
  29. </div>
  30. </div>
  31. </div>
  32. <div class="tt_i_b_item">
  33. <div class="tt_i_b_title">交流互动</div>
  34. <div class="tt_i_b_box">
  35. <div class="tt_i_b_b_item">
  36. <div>参与人数</div>
  37. <span>56<span>人</span></span>
  38. </div>
  39. <div class="tt_i_b_b_item">
  40. <div>点赞数</div>
  41. <span>36<span>个</span></span>
  42. </div>
  43. <div class="tt_i_b_b_item">
  44. <div>评论数</div>
  45. <span>128<span>条</span></span>
  46. </div>
  47. </div>
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. <div class="t_top" ref="chatRef">
  53. <div class="t_t_chat" v-for="(item, index) in chatList" :key="index">
  54. <div class="t_t_c_user" v-if="item.content">
  55. <div class="t_t_c_u_left">
  56. <div class="t_t_c_u_l_content">{{ item.content }}</div>
  57. <div class="t_t_c_u_l_time">{{ item.createtime }}</div>
  58. </div>
  59. <div class="t_t_c_u_right">
  60. <span>我</span>
  61. </div>
  62. </div>
  63. <div class="t_t_c_ai">
  64. <div class="t_t_c_a_left">
  65. <el-avatar v-if="item.filename" :src="item.filename"></el-avatar>
  66. <span v-else>Ai</span>
  67. </div>
  68. <div class="t_t_c_a_right">
  69. <div
  70. class="t_t_c_a_r_content"
  71. v-loading="item.loading"
  72. v-html="item.aiContent"
  73. ></div>
  74. <div class="t_t_c_a_r_time">{{ item.createtime }}</div>
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. <div class="t_bottom">
  80. <div class="t_b_btnArea">
  81. <!-- <div class="s_b_ba-item" @click.stop="choiceRole()">选择角色</div> -->
  82. <div class="t_b_ba_item" @click="sendType('智能总结')">智能总结</div>
  83. <div class="t_b_ba_item" @click="sendType('智能出题')">智能出题</div>
  84. <!-- <div class="t_b_ba_item" @click="sendType('优秀标兵')">优秀标兵</div> -->
  85. <div class="t_b_ba_item" @click="sendType('扩展知识')">扩展知识</div>
  86. </div>
  87. <div class="t_b_inputArea">
  88. <!-- <div class="t_b_tape" @click="goTape()"></div> -->
  89. <div class="t_b_input">
  90. <el-input
  91. :disabled="loading || chatLoading"
  92. v-loading="loading || chatLoading"
  93. @keyup.enter.native="send()"
  94. class="t_b_i_left"
  95. v-model="text"
  96. ></el-input>
  97. <!-- <div class="t_b_i_right" @click="sendFile()">
  98. <span></span>
  99. </div> -->
  100. </div>
  101. <div class="t_b_btn" @click="send()">
  102. <span></span>
  103. </div>
  104. </div>
  105. </div>
  106. </div>
  107. </template>
  108. <script>
  109. // import { Loading } from 'element-ui';
  110. import { v4 as uuidv4 } from "uuid";
  111. import MarkdownIt from "markdown-it";
  112. export default {
  113. props: {
  114. courseDetail: {
  115. type: Object,
  116. default: () => {}
  117. }
  118. },
  119. data() {
  120. return {
  121. userid: this.$route.query.userid,
  122. courseId: this.$route.query.courseId,
  123. text: "",
  124. loading: false,
  125. chatLoading: false,
  126. chatList: []
  127. };
  128. },
  129. methods: {
  130. // 获取ai对话
  131. getAiContent(_uid) {
  132. let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  133. let _allText = "";
  134. let _mdText = "";
  135. const md = new MarkdownIt();
  136. _source.onmessage = _e => {
  137. if (_e.data.replace("'", "").replace("'", "") == "[DONE]") {
  138. //对话已经完成
  139. _mdText = _mdText.replace("_", "");
  140. _source.close();
  141. this.chatLoading = false;
  142. this.scrollBottom();
  143. this.chatList.find(i => i.uid == _uid).aiContent = _mdText;
  144. this.chatList.find(i => i.uid == _uid).isalltext = true;
  145. this.chatList.find(i => i.uid == _uid).isShowSynchronization = true;
  146. this.chatList.find(i => i.uid == _uid).loading = false;
  147. // 这里保存对话
  148. this.insertChat(_uid);
  149. return;
  150. } else {
  151. //对话还在继续
  152. let _text = "";
  153. _text = _e.data.replaceAll("'", "");
  154. if (_allText == "") {
  155. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  156. } else {
  157. _allText += _text;
  158. }
  159. _mdText = _allText + "_";
  160. _mdText = _mdText.replace(/\\n/g, "\n");
  161. _mdText = _mdText.replace(/\\/g, "");
  162. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  163. //转化返回的回复流数据
  164. _mdText = md.render(_mdText);
  165. this.chatList.find(i => i.uid == _uid).aiContent = _mdText;
  166. this.chatList.find(i => i.uid == _uid).loading = false;
  167. this.scrollBottom();
  168. // 处理流数据
  169. }
  170. };
  171. },
  172. //保存消息
  173. insertChat(_uid) {
  174. let _data = this.chatList.find(i => i.uid == _uid);
  175. if (!_data) return;
  176. let params = {
  177. userId: this.userid,
  178. userName: "qgt",
  179. groupId: "602def61-005d-11ee-91d8-005056b8q12w",
  180. answer: _data.aiContent,
  181. problem: _data.content,
  182. file_id: _data.fileid ? _data.fileid : "",
  183. alltext: _data.aiContent,
  184. type: "chat",
  185. filename: _data.filename,
  186. session_name: `${this.courseId}-studyStudent` //这是对话记录位置
  187. };
  188. this.ajax
  189. .post("https://gpt4.cocorobo.cn/insert_chat", params)
  190. .then(res => {});
  191. },
  192. // 获取对应的聊天记录
  193. getChatList() {
  194. return new Promise((resolve, reject) => {
  195. if (this.loading) return this.$message.info("请稍等...");
  196. this.chatList = [];
  197. this.loading = true;
  198. this.chatLoading = true;
  199. let params = {
  200. userid: this.userid,
  201. groupid: "602def61-005d-11ee-91d8-005056b8q12w",
  202. // session_name:``
  203. session_name: `${this.courseId}-studyStudent`
  204. };
  205. this.ajax
  206. .post("https://gpt4.cocorobo.cn/get_agent_park_chat", params)
  207. .then(res => {
  208. let _data = JSON.parse(res.data.FunctionResponse);
  209. if (_data.length > 0) {
  210. let _chatList = [];
  211. for (let i = 0; i < _data.length; i++) {
  212. _chatList.push({
  213. loading: false,
  214. role: "user",
  215. content: _data[i].problem,
  216. uid: _data[i].id,
  217. AI: "AI",
  218. aiContent: _data[i].answer,
  219. oldContent: _data[i].answer,
  220. isShowSynchronization: false,
  221. filename: _data[i].filename,
  222. index: i,
  223. is_mind_map: false,
  224. fileid: _data[i].fileid
  225. });
  226. }
  227. this.chatList = _chatList;
  228. this.loading = false;
  229. this.chatLoading = false;
  230. } else {
  231. //没有对话记录
  232. this.loading = false;
  233. this.chatLoading = false;
  234. }
  235. resolve();
  236. })
  237. .catch(err => {
  238. console.log(err);
  239. this.$message.error("获取对话记录失败");
  240. this.loading = false;
  241. this.chatLoading = false;
  242. resolve();
  243. });
  244. });
  245. },
  246. choiceRole() {
  247. this.cardType = 1;
  248. },
  249. sendFile() {
  250. if (this.loading) return this.$message.info("请稍等");
  251. this.$message.info("点击了附件");
  252. },
  253. goTape() {
  254. if (this.loading) return this.$message.info("请稍等");
  255. this.$message.info(`点击了语音`);
  256. },
  257. send(_text = this.text) {
  258. if (this.loading || this.chatLoading) return this.$message.info("请稍等");
  259. if (_text.trim().length == 0) return this.$message.info("请输入内容");
  260. this.chatLoading = true;
  261. let _uuid = uuidv4();
  262. this.chatList.push({
  263. role: "user",
  264. content: `${_text}`,
  265. uid: _uuid,
  266. AI: "AI",
  267. aiContent: "",
  268. oldContent: "",
  269. isShowSynchronization: false,
  270. filename: "",
  271. index: this.chatList.length,
  272. is_mind_map: false,
  273. loading: true
  274. });
  275. this.scrollBottom();
  276. let params = {
  277. model: "gpt-3.5-turbo",
  278. temperature: 0,
  279. max_tokens: 4096,
  280. top_p: 1,
  281. frequency_penalty: 0,
  282. presence_penalty: 0,
  283. messages: [{ role: "user", content: _text }],
  284. uid: _uuid,
  285. mind_map_question: ""
  286. };
  287. this.text = "";
  288. this.ajax
  289. .post("https://gpt4.cocorobo.cn/chat", params)
  290. .then(res => {
  291. if (res.data.FunctionResponse.result == "发送成功") {
  292. } else {
  293. this.$message.warning(res.data.FunctionResponse.result);
  294. this.chatLoading = false;
  295. }
  296. })
  297. .catch(e => {
  298. console.log(e);
  299. this.chatLoading = false;
  300. });
  301. this.getAiContent(_uuid);
  302. },
  303. sendType(_text) {
  304. if (this.loading || this.chatLoading) return this.$message.info("请稍等");
  305. let _msg = ``;
  306. if (_text == "扩展知识") {
  307. _msg = `
  308. ATTENTION: Use '##' or '####' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  309. ---
  310. ## 任务
  311. 你的任务是根据用户的请求,结合“课程信息”,向用户推荐相关的知识点,将结果以有序列表的形式返回给用户。
  312. ## 课程信息(读取【课程中心】相关信息)
  313. #### 课程标题:${this.courseDetail.title}
  314. #### 分类:${this.courseDetail.name?this.courseDetail.name:"无"}
  315. #### 学生年级:${this.courseDetail.classname?this.courseDetail.classname:"无"}
  316. ---
  317. ## 规则
  318. - 输出结果基于“课程信息”,避免提供无关的信息。
  319. - 搜索建议的结果符合伦理规范。
  320. ---
  321. ## 输出
  322. - 输出应包括3个相关的扩展知识点。
  323. - 请一步步思考如何根据现有信息推送扩展知识点,但是不需要输出扩展知识以外的内容。
  324. ---
  325. ## 输出内容
  326. 搜索建议应以有序列表形式呈现,每个建议包括关键词和简短描述。
  327. ---
  328. ## Format example
  329. 世界奇观众多,数不胜数,本文仅从5000+起步记述,按这个标准,世界第一高峰珠穆朗玛峰、第二高峰乔戈里峰、第四高峰洛子峰、第五高峰马卡鲁峰、第六高峰卓奥友峰均为刚刚及格或者未达标。他们均位于群山腹地,距离低海拔地区较远。
  330. 先说答案:南迦帕尔巴特,海拔8125,距离28公里处相对高度差为7081米,且可直视峰顶。注意这几个条件,因为抛开他们的话,后面会有数据上的争议。但有了这些限制条件,可以说,南迦·帕尔巴特峰几乎在所有排行榜上都是当之无愧的冠军,来看看它的数据:世界海拔第9高峰,位于喜马拉雅山脉的西端"地结"(属于巴控克什米尔地区)上,海拔8125米,被印度河深切环绕。顺着该山西北一条山脊往下,可以直达一片面积还不算很小的平地——该平地最低点的一条河仅有1044米。
  331. 关于麦金利山的说法,麦金利山位于美国阿拉斯加州东南部,海拔6193米,约有5500米的相对高差,不但不是高差最大的山,而且论排名,前30也很难进去。因为这个数据如果放在亚洲实在是比较普通。毕竟相对高差是建立在绝对高度的基础上的,想要相对高差突破7000+,那么你的绝对高度当然要先过这个数。而世界所有的7000+高峰,均位于亚洲的大喜马拉雅和喀喇昆仑地区。除了南迦帕尔巴特峰之外,世界第七高峰海拔8167米的道拉吉里峰和第十高峰海拔8093米的安娜普尔娜峰之间,有一条海拔仅在1050-1500米,宽约20公里的卡利甘达基谷地,这里有着12公里距离,双侧均为6900-7000米高差的恐怖纪录。卡利甘达基峡谷数据和壮观程度要超过雅鲁藏布大峡谷,实为世界第一大峡谷,只是国人为了面子问题佯作不知。
  332. `;
  333. } else if (_text == "智能出题") {
  334. _msg = `
  335. ATTENTION: Use '##' or '####' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  336. ---
  337. ## 任务
  338. 你的任务是根据用户的请求,结合“课程信息”,向用户推荐相关的题目,将结果以有序列表的形式返回给用户。
  339. ## 课程信息(读取【课程中心】相关信息)
  340. #### 课程标题:${this.courseDetail.title}
  341. #### 分类:${this.courseDetail.name?this.courseDetail.name:"无"}
  342. #### 学生年级:${this.courseDetail.classname?this.courseDetail.classname:"无"}
  343. ---
  344. ## 规则
  345. - 输出结果基于“课程信息”,避免提供无关的信息。
  346. - 搜索建议的结果符合伦理规范。
  347. ---
  348. ## 输出
  349. - 输出应包括3个相关课程的题目。
  350. - 请一步步思考如何根据现有信息出题,但是不需要输出相关课程以外的内容。
  351. ---
  352. ## 输出内容
  353. 搜索建议应以有序列表形式呈现,每个建议包括关键词和简短描述。
  354. ---
  355. ## Format example
  356. 题目:如果一个物体的动能是 50J,且其速度是 5 m/s,求该物体的质量。
  357. 答案:2 kg
  358. 题目:写出与 "quick" 同义的词。
  359. 答案:fast
  360. 题目:世界上最高的山是什么山。
  361. A:喜马拉雅山
  362. B:珠穆朗玛峰
  363. C:天山
  364. D:阿尔卑斯山
  365. 答案:B
  366. `;
  367. } else if (_text == "智能总结") {
  368. _msg = `
  369. ATTENTION: Use '##' or '####' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  370. ---
  371. ## 任务
  372. 你的任务是根据用户的请求,结合“课程信息”,向用户推荐相关的课程总结,将结果以有序列表的形式返回给用户。
  373. ## 课程信息(读取【课程中心】相关信息)
  374. #### 课程标题:${this.courseDetail.title}
  375. #### 分类:${this.courseDetail.name?this.courseDetail.name:"无"}
  376. #### 学生年级:${this.courseDetail.classname?this.courseDetail.classname:"无"}
  377. ---
  378. ## 规则
  379. - 输出结果基于“课程信息”,避免提供无关的信息。
  380. - 搜索建议的结果符合伦理规范。
  381. ---
  382. ## 输出
  383. - 输出应对应相关课程的总结。
  384. - 请一步步思考如何根据现有信息总结课程,但是不需要输出相关课程以外的内容。
  385. ---
  386. ## 输出内容
  387. 搜索建议应以有序列表形式呈现,每个建议包括关键词和简短描述。
  388. ---
  389. ## Format example
  390. 珠穆朗玛峰(中国/尼泊尔边界,海拔8848米)
  391. 世界之巅。
  392. 乔戈里峰(K2,中国/巴基斯坦边界,海拔8611米)
  393. 世界第二高峰,峰顶呈金字塔形,山势险峻异常,是国际登山界公认的8000米以上攀登难度最大的山峰。
  394. 干城章嘉峰(印度/尼泊尔边界,海拔8586米)
  395. 世界第三高峰,全球14座8000米级雪山中位置最靠东的高山,山顶呈工字形,山体巨大,靠近喜马拉雅山脉南麓,远眺壮观异常。
  396. 从70千米外海拔500-2000米的大吉岭地区远眺海拔8586米的世界第三高峰干城章嘉峰,极限高差可达8000+。
  397. `;
  398. }
  399. if (!_msg) return;
  400. this.chatLoading = true;
  401. let _uuid = uuidv4();
  402. this.chatList.push({
  403. role: "user",
  404. content: `${_text}`,
  405. uid: _uuid,
  406. AI: "AI",
  407. aiContent: "",
  408. oldContent: "",
  409. isShowSynchronization: false,
  410. filename: "",
  411. index: this.chatList.length,
  412. is_mind_map: false,
  413. loading: true
  414. });
  415. this.scrollBottom();
  416. let params = {
  417. model: "gpt-3.5-turbo",
  418. temperature: 0,
  419. max_tokens: 4096,
  420. top_p: 1,
  421. frequency_penalty: 0,
  422. presence_penalty: 0,
  423. messages: [{ role: "user", content: _msg }],
  424. uid: _uuid,
  425. mind_map_question: ""
  426. };
  427. this.text = "";
  428. this.ajax
  429. .post("https://gpt4.cocorobo.cn/chat", params)
  430. .then(res => {
  431. if (res.data.FunctionResponse.result == "发送成功") {
  432. } else {
  433. this.$message.warning(res.data.FunctionResponse.result);
  434. this.chatLoading = false;
  435. }
  436. })
  437. .catch(e => {
  438. console.log(e);
  439. this.chatLoading = false;
  440. });
  441. this.getAiContent(_uuid);
  442. // this.send(text);
  443. },
  444. sendImage() {
  445. this.$message.info("发送图片");
  446. },
  447. sendVideo() {
  448. this.$message.info("发送视频");
  449. },
  450. scrollBottom() {
  451. this.$nextTick(() => {
  452. this.$refs.chatRef.scrollTop = this.$refs.chatRef.scrollHeight;
  453. });
  454. }
  455. },
  456. mounted() {
  457. this.getChatList().then(_ => {
  458. this.scrollBottom();
  459. });
  460. }
  461. };
  462. </script>
  463. <style scoped>
  464. .task {
  465. width: 100%;
  466. height: 100%;
  467. box-sizing: border-box;
  468. }
  469. .taskTop {
  470. width: 100%;
  471. height: 280px;
  472. box-sizing: border-box;
  473. padding: 10px;
  474. overflow-x: hidden;
  475. }
  476. .tt_title {
  477. font-size: 18px;
  478. font-weight: bold;
  479. margin-bottom: 5px;
  480. }
  481. .tt_item {
  482. width: 100%;
  483. height: auto;
  484. margin-top: 10px;
  485. }
  486. .tt_i_title {
  487. display: flex;
  488. justify-content: space-between;
  489. align-items: center;
  490. }
  491. .tt_i_title > span:nth-of-type(2) {
  492. box-sizing: border-box;
  493. padding: 0 10px;
  494. height: 25px;
  495. background-color: #effcf5;
  496. color: #83e0af;
  497. }
  498. .tt_i_box {
  499. width: 100%;
  500. height: auto;
  501. display: flex;
  502. margin-top: 10px;
  503. justify-content: space-between;
  504. }
  505. .tt_i_box > img {
  506. width: 100%;
  507. height: 50px;
  508. }
  509. .tt_i_b_item {
  510. width: auto;
  511. height: 90px;
  512. background-color: #f6f9ff;
  513. }
  514. .tt_i_b_title {
  515. width: 100%;
  516. height: 30px;
  517. display: flex;
  518. justify-content: center;
  519. align-items: center;
  520. box-sizing: border-box;
  521. border: solid 1px #e0eafb;
  522. color: #626466;
  523. }
  524. .tt_i_b_box {
  525. width: auto;
  526. height: 60px;
  527. box-sizing: border-box;
  528. border: solid 1px #e0eafb;
  529. border-top: none;
  530. display: flex;
  531. }
  532. .tt_i_b_b_item {
  533. width: 70px;
  534. height: 100%;
  535. display: flex;
  536. flex-direction: column;
  537. justify-content: center;
  538. align-items: center;
  539. border-left: solid 1px #e0eafb;
  540. }
  541. .tt_i_b_box > .tt_i_b_b_item:nth-of-type(1) {
  542. border-left: none;
  543. }
  544. .tt_i_b_b_item > div {
  545. font-size: 14px;
  546. color: #949599;
  547. }
  548. .tt_i_b_b_item > span {
  549. font-weight: bold;
  550. }
  551. .tt_i_b_b_item > span > span {
  552. font-size: 12px;
  553. font-weight: 200;
  554. }
  555. .t_top {
  556. width: 100%;
  557. height: calc(100% - 370px);
  558. overflow: auto;
  559. box-sizing: border-box;
  560. padding: 20px 0;
  561. }
  562. .t_t_chat {
  563. width: 100%;
  564. display: flex;
  565. box-sizing: border-box;
  566. padding: 10px;
  567. flex-direction: column;
  568. }
  569. .t_t_chat > div {
  570. display: flex;
  571. align-items: flex-start;
  572. width: 100%;
  573. }
  574. .t_t_c_user {
  575. box-sizing: border-box;
  576. padding-left: 35px;
  577. }
  578. .t_t_c_u_left {
  579. width: 90%;
  580. height: auto;
  581. }
  582. .t_t_c_u_l_content {
  583. width: auto;
  584. max-width: 100%;
  585. height: auto;
  586. box-sizing: border-box;
  587. padding: 10px;
  588. color: white;
  589. background-color: #3681fc;
  590. border-radius: 8px 2px 8px 8px;
  591. white-space: pre-line;
  592. }
  593. .t_t_c_u_l_time {
  594. width: 100%;
  595. display: flex;
  596. justify-content: flex-end;
  597. font-size: 12px;
  598. color: #9f9f9f;
  599. margin-top: 5px;
  600. }
  601. .t_t_c_u_right {
  602. width: 35px;
  603. height: 35px;
  604. display: flex;
  605. justify-content: center;
  606. margin-left: 5px;
  607. }
  608. .t_t_c_u_right > span {
  609. width: 32px;
  610. height: 32px;
  611. display: flex;
  612. justify-content: center;
  613. align-items: center;
  614. color: white;
  615. background-color: #3681fc;
  616. border-radius: 50%;
  617. }
  618. .t_t_c_ai {
  619. margin-top: 10px;
  620. box-sizing: border-box;
  621. padding-right: 35px;
  622. }
  623. .t_t_c_a_right {
  624. min-width: 90%;
  625. height: auto;
  626. }
  627. .t_t_c_a_r_content {
  628. width: auto;
  629. max-width: 100%;
  630. height: auto;
  631. box-sizing: border-box;
  632. padding: 10px;
  633. background-color: #f6f8ff;
  634. border-radius: 2px 8px 8px 8px;
  635. white-space: pre-line;
  636. word-break: break-all;
  637. }
  638. .t_t_c_a_r_content2 {
  639. background-color: #f6f8ff;
  640. width: 100%;
  641. height: auto;
  642. box-sizing: border-box;
  643. padding: 10px;
  644. border-radius: 2px 8px 8px 8px;
  645. white-space: pre-line;
  646. box-shadow: 0 0px 10px #c5cbee;
  647. }
  648. .t_t_c_a_r_c_title {
  649. display: flex;
  650. align-items: center;
  651. }
  652. .t_t_c_a_r_c_title > img {
  653. width: 16px;
  654. height: 16px;
  655. }
  656. .t_t_c_a_r_c_item {
  657. width: 100%;
  658. height: auto;
  659. box-sizing: border-box;
  660. padding: 10px;
  661. background-color: #ffffff;
  662. border-radius: 5px;
  663. margin-top: 5px;
  664. color: #666666;
  665. font-size: 14px;
  666. cursor: pointer;
  667. }
  668. .t_t_c_a_r_c_item:hover {
  669. border: solid #b8d2fe 1px;
  670. box-shadow: 0 0 5px 2px #b8d2fe;
  671. }
  672. .t_t_c_a_r_c_title > span {
  673. font-weight: bold;
  674. }
  675. .t_t_c_a_r_time {
  676. width: 100%;
  677. display: flex;
  678. justify-content: flex-start;
  679. font-size: 12px;
  680. color: #9f9f9f;
  681. margin-top: 5px;
  682. }
  683. .t_t_c_a_left {
  684. width: 35px;
  685. height: 35px;
  686. display: flex;
  687. justify-content: center;
  688. margin-right: 5px;
  689. }
  690. .t_t_c_a_left > span {
  691. width: 32px;
  692. height: 32px;
  693. display: flex;
  694. justify-content: center;
  695. align-items: center;
  696. color: white;
  697. background-color: #3681fc;
  698. border-radius: 50%;
  699. }
  700. .t_bottom {
  701. width: 100%;
  702. height: 90px;
  703. display: flex;
  704. flex-direction: column;
  705. justify-content: space-between;
  706. }
  707. .t_b_btnArea {
  708. width: 100%;
  709. height: 30px;
  710. display: flex;
  711. align-items: center;
  712. box-sizing: border-box;
  713. padding: 0 10px;
  714. overflow-y: hidden;
  715. }
  716. .t_b_ba_item {
  717. width: auto;
  718. box-sizing: border-box;
  719. padding: 0 10px;
  720. height: 25px;
  721. background-color: white;
  722. display: flex;
  723. justify-content: center;
  724. align-items: center;
  725. /* 阴影 */
  726. box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.363);
  727. border-radius: 15px;
  728. font-size: 14px;
  729. cursor: pointer;
  730. margin-right: 10px;
  731. white-space: nowrap;
  732. transition: 0.3s;
  733. }
  734. .t_b_ba_item:hover {
  735. background-color: rgb(236, 236, 236);
  736. }
  737. .t_b_inputArea {
  738. width: 100%;
  739. height: 55px;
  740. box-sizing: border-box;
  741. border-top: solid 1px #ededed;
  742. display: flex;
  743. justify-content: space-between;
  744. align-items: center;
  745. padding-right: 10px;
  746. }
  747. .t_b_tape {
  748. width: 35px;
  749. height: 35px;
  750. background: url("../../../assets/icon/course/tape.png") no-repeat;
  751. background-size: 50% 60%;
  752. background-position: center;
  753. cursor: pointer;
  754. }
  755. .t_b_input {
  756. /* width: 75%; */
  757. flex: 1;
  758. height: 45px;
  759. background-color: #f3f3f3;
  760. border-radius: 50px;
  761. margin: 0 10px;
  762. display: flex;
  763. overflow: hidden;
  764. align-items: center;
  765. }
  766. .t_b_i_left {
  767. /* width: calc(100% - 45px); */
  768. width: 100%;
  769. line-height: 45px;
  770. height: 100%;
  771. }
  772. .t_b_i_left >>> .el-input__inner {
  773. border: none;
  774. background-color: #f3f3f3;
  775. outline: none;
  776. border-radius: 50px 0 0 50px;
  777. }
  778. .t_b_i_right {
  779. width: 45px;
  780. height: 45px;
  781. display: flex;
  782. justify-content: center;
  783. align-items: center;
  784. }
  785. .t_b_i_right > span {
  786. width: 35px;
  787. height: 35px;
  788. background: url("../../../assets/icon/course/file.png") no-repeat;
  789. background-size: 50% 60%;
  790. background-position: center;
  791. cursor: pointer;
  792. }
  793. .t_b_btn {
  794. width: 40px;
  795. height: 40px;
  796. background-color: #3681fc;
  797. display: flex;
  798. justify-content: center;
  799. align-items: center;
  800. border-radius: 50%;
  801. cursor: pointer;
  802. }
  803. .t_b_btn > span {
  804. width: 30px;
  805. height: 30px;
  806. background: url("../../../assets/icon/course/send.png") no-repeat;
  807. background-size: 70% 70%;
  808. background-position: center;
  809. }
  810. td,
  811. th {
  812. padding: 10px;
  813. }
  814. </style>