taskArea.vue 24 KB

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