markDialog.vue 45 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558
  1. <template>
  2. <div class="markDialog" v-loading="vLoading">
  3. <div
  4. style="overflow: auto;overflow-x: hidden;width: 315px;box-sizing: content-box;border-right: 1px rgba(231, 231, 231, 1) solid;"
  5. >
  6. <div class="left">
  7. <div
  8. v-if="finalMarkList == toolIndex"
  9. v-loading="ScLoading"
  10. >
  11. <div class="scoreTit">
  12. <div>任务得分</div>
  13. <div>
  14. <span style="color: rgba(54, 129, 252, 1);margin-right: 3px;">{{
  15. totalScore ? totalScore : 0
  16. }}</span
  17. >分
  18. </div>
  19. </div>
  20. <div class="allD" :style="{marginLeft: isMarkSco ? '0' :'17px'}">
  21. <div class="scoreStar">
  22. <div
  23. v-show="reveal"
  24. v-for="(e, index) in scoTitList"
  25. :key="index + 'a'"
  26. >
  27. <div class="scoreStarBack" >
  28. <el-tooltip
  29. class="item"
  30. effect="dark"
  31. :content="e.detail"
  32. placement="top"
  33. >
  34. <div class="briefTit" >
  35. <img v-if="e.isai == 1 || !e.isai" class="titRoot" src="../../../assets/icon/newIcons/blueRoot.png" alt="">
  36. {{ e.detail }}
  37. </div>
  38. </el-tooltip>
  39. <el-rate @change="submit" v-model="e.cog"></el-rate>
  40. </div>
  41. </div>
  42. <div
  43. v-show="!reveal"
  44. v-for="(e, index) in scoTitList.slice(0, 3)"
  45. :key="index + 'b'"
  46. >
  47. <div class="scoreStarBack">
  48. <el-tooltip
  49. class="item"
  50. effect="dark"
  51. :content="e.detail"
  52. placement="top"
  53. >
  54. <div class="briefTit">
  55. <img class="titRoot" v-if="e.isai == 1 || !e.isai" src="../../../assets/icon/newIcons/blueRoot.png" alt="">
  56. {{ e.detail }}
  57. </div>
  58. </el-tooltip>
  59. <el-rate @change="submit" v-model="e.cog"></el-rate>
  60. </div>
  61. </div>
  62. </div>
  63. <div
  64. v-if="reveal && scoTitList.length > 3"
  65. class="scoreStar2"
  66. @click="revealBtn"
  67. >
  68. 折叠 <i class="el-icon-arrow-up"></i>
  69. </div>
  70. <div
  71. v-if="!reveal && scoTitList.length > 3"
  72. class="scoreStar2"
  73. @click="revealBtn"
  74. >
  75. 全部 <i class="el-icon-arrow-down"></i>
  76. </div>
  77. </div>
  78. <div class="AreaCss">
  79. <el-input
  80. type="textarea"
  81. placeholder="您可在此输入评语"
  82. v-model="textarea"
  83. @blur="submit"
  84. >
  85. </el-input>
  86. </div>
  87. <div
  88. style="width:100%;display:flex;height: 25px;;justify-content: space-between;"
  89. >
  90. <div ></div>
  91. <div style="display: flex;">
  92. <div
  93. class="ScrBtn"
  94. @click="reset"
  95. style="color: rgba(0, 0, 0, 0.6);background-color: rgba(243, 247, 253, 1);border: none;"
  96. >
  97. 清空
  98. </div>
  99. <div
  100. class="ScrBtn"
  101. style="margin-left: 10px;"
  102. @click="AIsubmit(currentUid)"
  103. v-if="
  104. (currentUid.type == 10 || currentUid.type == 13 || isMarkCom == 1) && !isMarkSco
  105. "
  106. >
  107. <img
  108. src="../../../assets/icon/newIcons/rootImg.png"
  109. alt=""
  110. />AI评分
  111. </div>
  112. <div
  113. class="ScrBtn"
  114. style="margin-left: 10px;"
  115. v-if="
  116. (currentUid.type == 10 || currentUid.type == 13 || isMarkCom == 1) && isMarkSco
  117. "
  118. @click="noIsAi"
  119. >
  120. <img
  121. src="../../../assets/icon/newIcons/rootImg.png"
  122. alt=""
  123. />AI评分
  124. </div>
  125. </div>
  126. </div>
  127. </div>
  128. <!-- 提交列表 -->
  129. <div style="flex: 1;display: flex;flex-direction: column;overflow: auto;">
  130. <div class="workListTit" @click="workListTitBtn">
  131. <i class="el-icon-arrow-down"></i>提交列表 ({{ workList.length }})
  132. </div>
  133. <div style="overflow: auto;flex: 1;">
  134. <div
  135. v-if="workListShow"
  136. v-for="(i, index) in workList"
  137. :key="index"
  138. :class="['schPer', i.userid == DgUid ? 'selBlock' : '']"
  139. style="cursor: pointer;"
  140. @click="cutPer(i.userid,index)"
  141. >
  142. <img v-if="i.headportrait" :src="i.headportrait" alt="" />
  143. <img
  144. v-else
  145. src="https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/static/img/portal.b3cf7fa.png"
  146. alt=""
  147. />
  148. <div class="con">
  149. <div class="tit">
  150. <span
  151. style="font-size: 14px;color: rgba(0, 0, 0, 0.9);font-weight: 400;"
  152. >{{ i.name }}</span
  153. >
  154. <span
  155. style="font-size: 14px;color:rgba(0, 0, 0, 0.4);"
  156. v-if="i.markSco == null"
  157. >未评分</span
  158. >
  159. <span
  160. v-else
  161. style="font-size: 16px;color: rgba(0, 0, 0, 0.9);font-weight: 600;"
  162. >{{ i.markSco }}</span
  163. >
  164. </div>
  165. <div class="Timer">{{ i.time }}</div>
  166. </div>
  167. </div>
  168. </div>
  169. </div>
  170. </div>
  171. </div>
  172. <!-- 作业展示区 -->
  173. <div class="Rig">
  174. <div class="RigTop">
  175. <div
  176. style="display: flex;align-items: center;justify-content: space-between;width: 100%;"
  177. >
  178. <div
  179. class="schPer"
  180. style="border: none;width: 300px;padding: 0;margin: 0;"
  181. >
  182. <img
  183. v-if="currentUid.headportrait"
  184. :src="currentUid.headportrait"
  185. alt=""
  186. />
  187. <img
  188. v-else
  189. src="https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/static/img/portal.b3cf7fa.png"
  190. alt=""
  191. />
  192. <div class="con">
  193. <div class="tit">
  194. <span
  195. style="font-size: 14px;color: rgba(0, 0, 0, 0.9);font-weight: 400;"
  196. >{{ currentUid.name }}</span
  197. >
  198. </div>
  199. <div class="Timer">{{ currentUid.time }}</div>
  200. </div>
  201. </div>
  202. <div class="cutStuBtn">
  203. <div>
  204. <span v-if="current == 0" style="cursor: pointer;color:#ccc">上一个</span>
  205. <span v-else @click="prevStu" style="cursor: pointer;color: rgba(54, 129, 252, 1)">上一个</span>
  206. </div>
  207. <div>
  208. <span v-if="current >= workList.length -1" style="cursor: pointer;color: #ccc">下一个</span>
  209. <span v-else @click="nextStu" style="cursor: pointer;color: rgba(54, 129, 252, 1)">下一个</span>
  210. </div>
  211. <!-- <div><span @click="prevStu" v-if="this.current > 0">上一个</span></div>
  212. <div><span @click="nextStu" v-if="this.current < this.workList.length-1">下一个</span></div> -->
  213. </div>
  214. </div>
  215. </div>
  216. <div class="RigConTit">
  217. <div :class="[cutNum ? '' : 'RigConTitOn']" @click="cutPage(0)">
  218. 学生作业
  219. </div>
  220. <div :class="[cutNum ? 'RigConTitOn' : '']" @click="cutPage(1)">
  221. 点赞与评论
  222. </div>
  223. </div>
  224. <div class="RigCon">
  225. <!-- 作业内容 -->
  226. <div v-if="cutNum == 0" style="height: 97%;">
  227. <div
  228. v-if="
  229. currentUid.type == 13 || currentUid.type == 10
  230. // currentUid.type == 15
  231. "
  232. >
  233. <div class="cont" v-html="currentUid.content.text"></div>
  234. </div>
  235. <div v-if="currentUid.type == 1">
  236. <img
  237. @click="previewImg(currentUid.content)"
  238. style="max-width: 100%;object-fit: cover;"
  239. :src="currentUid.content"
  240. alt=""
  241. />
  242. </div>
  243. <div v-if="currentUid.type == 3">
  244. <div style="width: 100%;text-align: center;">
  245. <div
  246. style="margin-bottom: 20px;font-weight: 600;font-size: 16px;"
  247. >
  248. {{ currentUid.content[0].answerTitle }}
  249. </div>
  250. <div>{{ currentUid.content[0].answer }}</div>
  251. </div>
  252. </div>
  253. <div v-if="currentUid.type == 4" style="height: 100%;">
  254. <iframe
  255. v-if="ifPdf == 1"
  256. style="width: 100%; height: 99%; border: none"
  257. :src="
  258. 'https://cloud.cocorobo.cn/pdf.js/web/viewer.html?file=' +
  259. encodeURIComponent(currentUid.content)
  260. "
  261. ></iframe>
  262. <iframe
  263. v-else
  264. style="width: 100%; height: 100%; border: none"
  265. :src="
  266. 'https://view.officeapps.live.com/op/view.aspx?src=' +
  267. encodeURIComponent(currentUid.content)
  268. "
  269. frameborder="0"
  270. ></iframe>
  271. </div>
  272. <div v-if="currentUid.type == 12" style="height: 100%;">
  273. <div>{{ TxtMd }}</div>
  274. </div>
  275. <div v-if="currentUid.type == 15" style="height: 100%;">
  276. <div
  277. class="worksAnswer"
  278. v-if="currentUid.content"
  279. @click="
  280. openCocoPi(57, toolIndex, currentUid.userid, currentUid.name)
  281. "
  282. >
  283. <img src="../../../assets/icon/codeFile.png" />
  284. <div>点击打开CocoPi</div>
  285. </div>
  286. </div>
  287. <div v-if="currentUid.type == 5" style="height: 100%;">
  288. <video-player
  289. class="video-player vjs-custom-skin"
  290. :playsinline="true"
  291. :options="playerOptions"
  292. @play="onPlayerPlay($event)"
  293. style="width: 90%; height: 95%; margin: 0 0 0 30px"
  294. ></video-player>
  295. </div>
  296. </div>
  297. <!-- 点赞与评论 -->
  298. <div v-if="cutNum == 1">
  299. <div style="display: flex;align-items: center;">
  300. <img
  301. style="margin-right: 3px;"
  302. src="../../../assets/icon/newIcons/likeG.png"
  303. alt=""
  304. />点赞({{ likeList.length }})
  305. </div>
  306. <div class="likeList">
  307. <div v-for="i in likeList" :key="i.id">{{ i.username }}</div>
  308. </div>
  309. <div style="display: flex;align-items: center;">
  310. <img
  311. style="margin-right: 3px;"
  312. src="../../../assets/icon/newIcons/commG.png"
  313. alt=""
  314. />评论({{ commentList.length }})
  315. </div>
  316. <div class="commentListCss" v-if="commentList.length">
  317. <div
  318. style="padding-bottom: 25px;display: flex;justify-content: space-between;"
  319. v-for="i in commentList"
  320. :key="i.id"
  321. >
  322. <div class="schPer2" style="border: none;width: 90%;padding: 0;">
  323. <img v-if="i.headportrait" :src="i.headportrait" alt="" />
  324. <img
  325. v-else
  326. src="https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/static/img/portal.b3cf7fa.png"
  327. alt=""
  328. />
  329. <div class="con">
  330. <div class="tit2">
  331. <div class="TitName">{{ i.username }}</div>
  332. <span
  333. style="font-size: 14px;color: rgba(0, 0, 0, 0.9);font-weight: 400;width: 200px;"
  334. >{{ i.time }}</span
  335. >
  336. </div>
  337. <div class="Timer">{{ i.comment }}</div>
  338. </div>
  339. </div>
  340. <div>
  341. <span
  342. style="color: #3B7BD7;cursor: pointer;"
  343. @click="deleteComment(i.id)"
  344. >删除</span
  345. >
  346. </div>
  347. </div>
  348. </div>
  349. </div>
  350. </div>
  351. </div>
  352. </div>
  353. </template>
  354. <script>
  355. import { v4 as uuidv4 } from "uuid";
  356. import MarkdownIt from "markdown-it";
  357. const getFile = (url) => {
  358. return new Promise((resolve, reject) => {
  359. var credentials = {
  360. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  361. secretAccessKey: "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",
  362. }; //秘钥形式的登录上传
  363. window.AWS.config.update(credentials);
  364. window.AWS.config.region = "cn-northwest-1"; //设置区域
  365. let url2 = url;
  366. let _url2 = "";
  367. if (
  368. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  369. ) {
  370. _url2 = url2.split(
  371. "https://view.officeapps.live.com/op/view.aspx?src="
  372. )[1];
  373. } else {
  374. _url2 = url2;
  375. }
  376. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  377. let name = decodeURIComponent(
  378. _url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  379. );
  380. var params = {
  381. Bucket: "ccrb",
  382. Key: name,
  383. };
  384. s3.getObject(params, function (err, data) {
  385. if (err) {
  386. console.log(err, err.stack);
  387. resolve({ data: 1 });
  388. } else {
  389. const fileContent = data.Body.toString('utf-8');
  390. resolve({ data: fileContent });
  391. } // sxuccessful response
  392. });
  393. // axios({
  394. });
  395. };
  396. export default {
  397. props: [
  398. "uid",
  399. "stage",
  400. "toolIndex",
  401. "task",
  402. "scoTit",
  403. "markScoreVisible",
  404. "markScoreworksStudent",
  405. "finalMarkList"
  406. ],
  407. data() {
  408. return {
  409. textarea: "",
  410. reveal: false, //得分详情框全部与折叠
  411. workListShow: true, //作业显示
  412. cutNum: 0, //作业与评论切换
  413. scoTitList: [], //得分详情框数据
  414. workList: [], //作业列表
  415. cid: this.$route.query.courseId,
  416. cUserid: this.$route.query.userid, //账号登录人id
  417. cuScoCon: "", //学生作业内容
  418. TxtMd:'', //txt,md作业内容
  419. currentUid: {}, //当前评分框学生信息
  420. current: "", //上一位下一位中的第几位
  421. DgUid: this.uid, //当前评分框学生id
  422. likeList: [], //喜欢list
  423. commentList: [], //评分list
  424. workId: "", //作业id。用于分类评论与点赞list
  425. vLoading: false,
  426. allSco: 0,
  427. ifPdf: 1,
  428. ScLoading: false,
  429. playerOptions: {
  430. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  431. autoplay: false, //如果true,浏览器准备好时开始回放。
  432. muted: false, // 默认情况下将会消除任何音频。
  433. loop: false, // 导致视频一结束就重新开始。
  434. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  435. language: "zh-CN",
  436. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  437. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  438. sources: [
  439. {
  440. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  441. src: "" //url地址require("../../../assets/media/aaa.mp4")
  442. }
  443. ],
  444. // poster: require("../../../assets/tu31.png"), //你的封面地址
  445. // poster: dataRes.imgUrl, //你的封面地址
  446. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  447. controlBar: {
  448. timeDivider: true, //当前时间和持续时间的分隔符
  449. durationDisplay: true, //显示持续时间
  450. remainingTimeDisplay: false, //是否显示剩余时间功能
  451. fullscreenToggle: true //全屏按钮
  452. }
  453. },
  454. xianObj: ["DOCX", "MD", "TXT", "PDF"]
  455. };
  456. },
  457. watch: {
  458. markScoreVisible(newVal) {
  459. this.workListShow = true;
  460. this.reveal = false;
  461. this.cutNum = 0;
  462. this.textarea = "";
  463. this.scoTitList = JSON.parse(JSON.stringify(this.scoTit));
  464. this.selectSWorksData();
  465. }
  466. },
  467. computed: {
  468. totalScore() {
  469. let a = 0;
  470. this.scoTitList.forEach(e => {
  471. if (e.cog) {
  472. a += e.cog * 1;
  473. }
  474. });
  475. return (a / this.scoTit.length).toFixed(1);
  476. },
  477. isMarkCom() {
  478. if (this.currentUid.type == 4 || this.currentUid.type == 12) {
  479. let a = this.currentUid.content.slice(
  480. this.currentUid.content.lastIndexOf(".") + 1
  481. );
  482. if (this.xianObj.indexOf(a.toUpperCase()) != -1) {
  483. return 1;
  484. } else {
  485. return 0;
  486. }
  487. } else {
  488. return 0;
  489. }
  490. },
  491. isMarkSco(){
  492. let c = 0
  493. this.scoTitList.forEach(e=>{
  494. if (e.isai == 2) {
  495. c++
  496. }
  497. })
  498. // console.log(c , this.scoTitList.length);
  499. this.$forceUpdate()
  500. if (c == this.scoTitList.length) return c
  501. return 0
  502. }
  503. },
  504. mounted() {
  505. this.scoTitList = JSON.parse(JSON.stringify(this.scoTit));
  506. this.selectSWorksData();
  507. },
  508. methods: {
  509. noIsAi(){
  510. this.$message.info('您暂未设置AI评分,请修改该工具的评价设置后使用。')
  511. },
  512. // 预览图片
  513. previewImg(url) {
  514. //预览图片
  515. this.$hevueImgPreview(url);
  516. },
  517. onPlayerPlay() {},
  518. // 获取文档id
  519. createFileid(url) {
  520. let _this = this;
  521. return new Promise((resolve, reject) => {
  522. try {
  523. _this.ajax
  524. .put("https://gpt4.cocorobo.cn/upload_file_knowledge", {
  525. url: url
  526. })
  527. .then(res => {
  528. let _data = res.data.FunctionResponse;
  529. if (_data.result && _data.result.id) {
  530. resolve(_data.result.id);
  531. } else {
  532. resolve(1);
  533. }
  534. })
  535. .catch(function(error) {
  536. resolve(1);
  537. });
  538. } catch (e) {
  539. resolve(1);
  540. }
  541. });
  542. },
  543. // 老师提交评分
  544. submit() {
  545. let data = this.scoTitList.map(e => {
  546. return e.detail + ":" + e.cog;
  547. });
  548. // console.log("data", data);
  549. const processedData = {};
  550. data.forEach(item => {
  551. const [key, value] = item.split(":");
  552. processedData[key] = Number(value) ? Number(value) : 0;
  553. });
  554. processedData.content = this.textarea;
  555. // console.log(processedData);
  556. let params = {
  557. cid: this.cid,
  558. s: this.stage,
  559. t: this.task,
  560. rate: JSON.stringify(processedData),
  561. uid: this.DgUid
  562. };
  563. // return console.log(params);
  564. this.ajax
  565. .get(this.$store.state.api + "updateWorksEva", params)
  566. .then(res => {
  567. // this.$message({
  568. // message: "评价成功",
  569. // type: "success"
  570. // });
  571. this.ScLoading = false;
  572. // this.selectSWorksData();
  573. // this.$emit("refreshOther", this.toolIndex);
  574. })
  575. .catch(err => {
  576. this.$message.error("评价失败");
  577. console.error(err);
  578. });
  579. },
  580. // 重置
  581. reset() {
  582. this.$confirm("是否清空评分和评语?", "提示", {
  583. confirmButtonText: "确定",
  584. cancelButtonText: "取消",
  585. type: "warning"
  586. })
  587. .then(() => {
  588. this.scoTitList.forEach(e => {
  589. e.cog = 0;
  590. });
  591. this.textarea = "";
  592. })
  593. .catch(() => {});
  594. // this.scoTitList = JSON.parse(JSON.stringify(this.scoTit));
  595. },
  596. // ai评分
  597. async AIsubmit(work) {
  598. // return console.log("con", this.scoTit, this.cuScoCon);
  599. this.ScLoading = true;
  600. let _fileid = "";
  601. if (work.type == 4 || work.type == 12) {
  602. _fileid = await this.createFileid(work.content);
  603. }
  604. let tit = JSON.parse(JSON.stringify(this.scoTit));
  605. tit.forEach((e, index) => {
  606. if (!e.isai) {
  607. e.isai = 1;
  608. }
  609. });
  610. let con = this.cuScoCon;
  611. let laws = "";
  612. for (let i = 0; i < tit.length; i++) {
  613. if (tit[i].isai == 1) {
  614. let a = tit[i].detail
  615. if (isNaN(parseFloat(a)) && a) {
  616. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  617. }else{
  618. var result = a
  619. }
  620. laws += `评价维度:“${result}”, 评价细则:${tit[i].rule} \n`;
  621. }
  622. }
  623. let msg = `NOTICE
  624. Role: 你是一个专业的项目式学习导师,你要对学生的评价高度负责。你要根据“六级评价细则”给学生作品评分,并生成需要的JSON数据。
  625. Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.
  626. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  627. Instruction: Based on the context, follow "Format example", write content.
  628. #Context
  629. ##要求
  630. 根据<评价细则>和<作业内容>的相关性评价作业,判断该作业属于六级中的哪个等级,结合“评价细则”和等级写评语。如果作业内容与评价细则无关,则直接评为0星。
  631. ##评分资料
  632. 评价细则:${laws}
  633. 作业内容:${_fileid ? "上传的文件内容" : con}
  634. #输出要求#
  635. 输出每个维度的“等级”和作业的综合性“评语”
  636. “评语”控制在150字左右
  637. 评价维度要按原样输出,只输出 ##评分资料 “评分细则”引号内的
  638. # Format example
  639. [{'评价维度':'评价等级0-5(数字)'},{'评价维度':'评价等级0-5(数字)'},{'评价维度':'评价等级0-5(数字)'},{'评价维度':'评价等级0-5(数字)'},{'评语':'评语(150个字左右)'}]
  640. `;
  641. // console.log(msg);
  642. this.aiGet2(msg, _fileid);
  643. },
  644. // ai打分
  645. aiGet2(messages, _fileid) {
  646. let _this = this;
  647. let params = {
  648. assistant_id: "6063369f-289a-11ef-8bf4-12e77c4cb76b",
  649. message: [
  650. {
  651. type: "text",
  652. text: messages.replaceAll("\n", " ").replaceAll("*", "")
  653. }
  654. ],
  655. session_name: uuidv4(),
  656. userId: this.cUserid,
  657. file_ids: _fileid ? [_fileid] : [],
  658. model: "gpt-4o-2024-08-06"
  659. };
  660. this.ajax
  661. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", params)
  662. .then(response => {
  663. let data = response.data.FunctionResponse;
  664. console.log("data", data);
  665. if (data.message) {
  666. let dArray = {};
  667. try {
  668. dArray = JSON.parse(
  669. data.message.replaceAll("```json", "").replaceAll("```", "")
  670. );
  671. } catch (error) {
  672. console.log("error_________________" + error);
  673. try {
  674. let regex = new RegExp("(?<=```json)([\\s\\S]*?)(?=```)");
  675. let match = data.message.match(regex);
  676. dArray = JSON.parse(
  677. match[0]
  678. .replace(/\n/g, "")
  679. .replace(/\s{2,}/g, "")
  680. .replace(/\'/g, '"')
  681. );
  682. } catch (error) {
  683. try {
  684. dArray = JSON.parse(
  685. data.message
  686. .replaceAll("```json", "")
  687. .replaceAll("# Solution", "")
  688. .replaceAll("```", "")
  689. .replace(/\n/g, "")
  690. .replace(/\s{2,}/g, "")
  691. .replace(/\'/g, '"')
  692. );
  693. } catch (error) {
  694. console.log("error_________________" + error);
  695. }
  696. console.log("error_________________" + error);
  697. }
  698. }
  699. let processedData = {};
  700. // console.log(JSON.parse(JSON.stringify(dArray)));
  701. dArray.forEach(function(item) {
  702. let key = Object.keys(item)[0];
  703. let value = item[key];
  704. processedData[key] = value;
  705. });
  706. // 判断返回数据正确数量
  707. let IsAIsuccess = 0
  708. for (const tKey in this.scoTitList) {
  709. for (const key in processedData) {
  710. if (isNaN(parseFloat(this.scoTitList[tKey].detail)) && this.scoTitList[tKey].detail) {
  711. var result = this.scoTitList[tKey].detail.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  712. }else{
  713. var result = this.scoTitList[tKey].detail
  714. }
  715. if (isNaN(parseFloat(key)) && key) {
  716. var key2 = key.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  717. }else{
  718. var key2 = key
  719. }
  720. if (key != "评语") {
  721. let isNumK = /^\d+(\.\d+)?$/.test(processedData[key]);
  722. if (result.indexOf(key2) != -1 && isNumK) {
  723. IsAIsuccess++
  724. }
  725. continue;
  726. }
  727. }
  728. continue;
  729. }
  730. // 计算可以ai评分的评价标准数量
  731. let scotNum = 0
  732. this.scoTitList.forEach(e=>{
  733. if (e.isai == 1 || !e.isai) {
  734. scotNum++
  735. }
  736. })
  737. if (IsAIsuccess != scotNum) {
  738. console.log('评价失败');
  739. this.aiGet2(messages,_fileid)
  740. return
  741. }
  742. // for (const key in processedData) {
  743. // if (key == "评语") {
  744. // processedData.content = processedData[key];
  745. // }
  746. // }
  747. // delete processedData["评语"];
  748. let processedDataCopy = {}
  749. for (const tKey in _this.scoTitList) {
  750. for (const key in processedData) {
  751. if (isNaN(parseFloat(_this.scoTitList[tKey].detail)) && _this.scoTitList[tKey].detail) {
  752. var result = _this.scoTitList[tKey].detail.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  753. }else{
  754. var result = _this.scoTitList[tKey].detail
  755. }
  756. if (isNaN(parseFloat(key)) && key) {
  757. var key2 = key.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  758. }else{
  759. var key2 = key
  760. }
  761. // let result = _this.scoTitList[tKey].detail.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  762. // let key2 = key.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  763. if (result.indexOf(key2) != -1) {
  764. let aaa = _this.scoTitList[tKey].detail
  765. processedDataCopy[aaa] = processedData[key]
  766. }
  767. }
  768. }
  769. for (const key in processedData) {
  770. if (key == "评语") {
  771. processedDataCopy.content = processedData[key];
  772. }
  773. }
  774. let params = {
  775. cid: _this.cid,
  776. s: _this.stage,
  777. t: _this.task,
  778. rate: JSON.stringify(processedDataCopy),
  779. uid: _this.DgUid
  780. };
  781. // console.log('params',params);
  782. // return _this.ScLoading = false;
  783. _this.ajax
  784. .get(_this.$store.state.api + "updateWorksEva", params)
  785. .then(res => {
  786. _this.$message({
  787. message: "评价成功",
  788. type: "success"
  789. });
  790. _this.ScLoading = false;
  791. _this.selectSWorksData();
  792. })
  793. .catch(err => {
  794. // _this.ScLoading = false;
  795. // _this.$message.error("评价失败");
  796. this.aiGet2(messages,_fileid)
  797. console.error(err);
  798. });
  799. }
  800. this.$forceUpdate();
  801. })
  802. .catch(error => {
  803. // _this.$message.error("评价失败");
  804. // _this.ScLoading = false;
  805. this.aiGet2(messages,_fileid)
  806. console.log(error);
  807. });
  808. },
  809. // 上一个
  810. prevStu() {
  811. if (this.ScLoading) return this.$message.info("请稍后,正在ai评价中");
  812. if (this.current > 0) {
  813. this.current--;
  814. this.DgUid = this.workList[this.current].userid;
  815. this.selectSWorksData();
  816. } else {
  817. this.$message.info("已经是第一位了");
  818. }
  819. },
  820. // 下一个
  821. nextStu() {
  822. if (this.ScLoading) return this.$message.info("请稍后,正在ai评价中");
  823. if (this.current < this.workList.length - 1) {
  824. this.current++;
  825. this.DgUid = this.workList[this.current].userid;
  826. this.selectSWorksData2();
  827. } else {
  828. this.$message.info("已经是最后一位了");
  829. }
  830. },
  831. // 提交列表点击切换
  832. cutPer(val,index) {
  833. if (this.ScLoading) return this.$message.info("请稍后,正在ai评价中");
  834. this.current = index;
  835. this.DgUid = val;
  836. this.selectSWorksData2();
  837. },
  838. // 任务得分折叠
  839. revealBtn() {
  840. this.reveal = !this.reveal;
  841. },
  842. // 提交列表折叠
  843. workListTitBtn() {
  844. this.workListShow = !this.workListShow;
  845. },
  846. // 点赞与评论切换
  847. cutPage(val) {
  848. this.cutNum = val;
  849. },
  850. // 删除评论
  851. deleteComment(wid) {
  852. this.$confirm("确定删除此评论吗?", "提示", {
  853. confirmButtonText: "确定",
  854. cancelButtonText: "取消",
  855. type: "warning"
  856. })
  857. .then(() => {
  858. let params = {
  859. id: wid
  860. };
  861. this.ajax
  862. .get(this.$store.state.api + "deleteComment2", params)
  863. .then(res => {
  864. this.$message({
  865. message: "删除评论成功",
  866. type: "success"
  867. });
  868. this.selectSWorksData();
  869. })
  870. .catch(err => {
  871. console.error(err);
  872. });
  873. })
  874. .catch(() => {});
  875. },
  876. openCocoPi(tool, i, uid, uname) {
  877. // return console.log('?????',tool, i, uid, uname);
  878. let student = {
  879. userid: uid,
  880. student: uname
  881. };
  882. if (tool == 57) {
  883. window.parent.postMessage(
  884. {
  885. tools: tool + "teacher",
  886. cid: this.cid,
  887. stage: this.stage,
  888. task: this.task,
  889. tool: this.toolIndex,
  890. student: student
  891. },
  892. "*"
  893. );
  894. }
  895. },
  896. //全部作业
  897. selectSWorksData() {
  898. this.vLoading = true;
  899. this.textarea = "";
  900. console.log(this.scoTitList);
  901. let params = {
  902. uid: this.DgUid,
  903. cid: this.cid,
  904. s: this.stage,
  905. t: this.task,
  906. g: this.toolIndex
  907. };
  908. // return console.log(params);
  909. this.ajax
  910. .get(this.$store.state.api + "selectMarkDialogWorks", params)
  911. .then(res => {
  912. let data = res.data[0];
  913. // markSco为提交列表展示的分数
  914. data.forEach(e => {
  915. if (e.rate) {
  916. let data2 = JSON.parse(e.rate);
  917. e.markSco = 0;
  918. let k = 0
  919. for (const key in data2) {
  920. if (data2[key] && key != "content" || data2[key] == "0" ) {
  921. e.markSco += data2[key] * 1;
  922. }else{
  923. k += 1
  924. }
  925. }
  926. if (k > 1) {
  927. e.markSco = null;
  928. }else{
  929. e.markSco = (e.markSco / this.scoTitList.length).toFixed(1);
  930. }
  931. } else {
  932. e.markSco = null;
  933. }
  934. });
  935. // 提交列表
  936. this.workList = data;
  937. data.forEach((e, index) => {
  938. if (e.userid == this.DgUid) {
  939. this.currentUid = e;
  940. // console.log('e',e);
  941. // 1截图 3问答 4word文档类型 5视频 10表格 13文档
  942. if (
  943. this.currentUid.type == 3 ||
  944. this.currentUid.type == 10 ||
  945. this.currentUid.type == 13
  946. // this.currentUid.type == 15
  947. ) {
  948. this.currentUid.content = JSON.parse(e.content);
  949. this.cuScoCon = this.currentUid.content.text;
  950. }
  951. if (this.currentUid.type == 4) {
  952. let a = this.currentUid.content;
  953. let data = a.slice(a.lastIndexOf(".") + 1);
  954. this.cuScoCon = this.currentUid.content;
  955. if (data == "pdf") {
  956. this.ifPdf = 1;
  957. } else {
  958. this.ifPdf = 0;
  959. }
  960. }
  961. if (this.currentUid.type == 5) {
  962. this.playerOptions.sources[0].src = this.currentUid.content;
  963. }
  964. if (this.currentUid.type == 12) {
  965. this.TxtMd = ''
  966. getFile(this.currentUid.content).then(res=>{
  967. this.TxtMd = res.data;
  968. })
  969. }
  970. this.current = index;
  971. this.workId = e.id;
  972. this.appraise(e);
  973. }
  974. });
  975. let likeData = res.data[1];
  976. this.likeList = [];
  977. likeData.forEach(e => {
  978. if (e.workId == this.workId) {
  979. this.likeList.push(e);
  980. }
  981. });
  982. let commentData = res.data[2];
  983. this.commentList = [];
  984. commentData.forEach(e => {
  985. if (e.workId == this.workId) {
  986. this.commentList.push(e);
  987. }
  988. });
  989. this.vLoading = false;
  990. });
  991. },
  992. selectSWorksData2() {
  993. this.vLoading = true;
  994. this.textarea = "";
  995. let params = {
  996. uid: this.DgUid,
  997. cid: this.cid,
  998. s: this.stage,
  999. t: this.task,
  1000. g: this.toolIndex
  1001. };
  1002. // return console.log(params);
  1003. this.ajax
  1004. .get(this.$store.state.api + "selectMarkDialogWorks", params)
  1005. .then(res => {
  1006. let data = res.data[0];
  1007. console.log('data',data);
  1008. // 计算markSco提交列表分数
  1009. data.forEach(e => {
  1010. if (e.rate) {
  1011. let data2 = JSON.parse(e.rate);
  1012. e.markSco = 0;
  1013. let k = 0
  1014. for (const key in data2) {
  1015. if (data2[key] && key != "content" || data2[key] == "0" ) {
  1016. e.markSco += data2[key] * 1;
  1017. }else{
  1018. k += 1
  1019. }
  1020. }
  1021. if (k > 1) {
  1022. e.markSco = null;
  1023. }else{
  1024. e.markSco = (e.markSco / this.scoTitList.length).toFixed(1);
  1025. }
  1026. } else {
  1027. e.markSco = null;
  1028. }
  1029. });
  1030. // 提交列表
  1031. this.workList = data;
  1032. // 划分作业类型
  1033. data.forEach((e, index) => {
  1034. if (e.userid == this.DgUid) {
  1035. this.currentUid = e;
  1036. // 1截图 3问答 4word文档类型 5视频 10表格 13文档
  1037. if (
  1038. this.currentUid.type == 3 ||
  1039. this.currentUid.type == 10 ||
  1040. this.currentUid.type == 13
  1041. // this.currentUid.type == 15
  1042. ) {
  1043. this.currentUid.content = JSON.parse(e.content);
  1044. this.cuScoCon = this.currentUid.content.text;
  1045. }
  1046. if (this.currentUid.type == 4) {
  1047. let a = this.currentUid.content;
  1048. let data = a.slice(a.lastIndexOf(".") + 1);
  1049. if (data == "pdf") {
  1050. this.ifPdf = 1;
  1051. } else {
  1052. this.ifPdf = 0;
  1053. }
  1054. this.cuScoCon = this.currentUid.content;
  1055. }
  1056. if (this.currentUid.type == 5) {
  1057. this.playerOptions.sources[0].src = this.currentUid.content;
  1058. }
  1059. if (this.currentUid.type == 12) {
  1060. this.TxtMd = ''
  1061. getFile(this.currentUid.content).then(res=>{
  1062. this.TxtMd = res.data;
  1063. })
  1064. }
  1065. this.workId = e.id;
  1066. this.appraise(e);
  1067. }
  1068. });
  1069. let likeData = res.data[1];
  1070. this.likeList = [];
  1071. likeData.forEach(e => {
  1072. if (e.workId == this.workId) {
  1073. this.likeList.push(e);
  1074. }
  1075. });
  1076. let commentData = res.data[2];
  1077. this.commentList = [];
  1078. commentData.forEach(e => {
  1079. if (e.workId == this.workId) {
  1080. this.commentList.push(e);
  1081. }
  1082. });
  1083. this.vLoading = false;
  1084. });
  1085. },
  1086. downloadFile(url) {
  1087. var credentials = {
  1088. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  1089. secretAccessKey: "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"
  1090. }; //秘钥形式的登录上传
  1091. window.AWS.config.update(credentials);
  1092. window.AWS.config.region = "cn-northwest-1"; //设置区域
  1093. let url2 = url;
  1094. let _url2 = "";
  1095. if (
  1096. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  1097. ) {
  1098. _url2 = url2.split(
  1099. "https://view.officeapps.live.com/op/view.aspx?src="
  1100. )[1];
  1101. } else {
  1102. _url2 = url2;
  1103. }
  1104. const loading2 = this.$loading.service({
  1105. background: "rgba(255, 255, 255, 0.7)",
  1106. target: document.body,
  1107. text: "文件加载中..."
  1108. });
  1109. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  1110. let name = decodeURIComponent(
  1111. _url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  1112. );
  1113. var params = {
  1114. Bucket: "ccrb",
  1115. Key: name
  1116. };
  1117. s3.getObject(params, function(err, data) {
  1118. loading2.close();
  1119. if (err) console.log(err, err.stack);
  1120. // an error occurred
  1121. else {
  1122. let url = window.URL.createObjectURL(new Blob([data.Body]));
  1123. let a = document.createElement("a");
  1124. a.name = name;
  1125. a.href = url;
  1126. a.download = name;
  1127. a.click();
  1128. console.log(data);
  1129. } // sxuccessful response
  1130. });
  1131. },
  1132. // 处理任务的分展示
  1133. appraise(val) {
  1134. if (val.rate) {
  1135. let data = JSON.parse(val.rate);
  1136. this.scoTitList.forEach((e, index) => {
  1137. e.cog = null;
  1138. for (const key in data) {
  1139. if (isNaN(parseFloat(e.detail)) && e.detail) {
  1140. var result = e.detail.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  1141. }else{
  1142. var result = e.detail
  1143. }
  1144. if (isNaN(parseFloat(key)) && key) {
  1145. var key2 = key.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  1146. }else{
  1147. var key2 = key
  1148. }
  1149. // let result = e.detail.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  1150. // let key2 = key.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  1151. if (result.indexOf(key2) != -1) {
  1152. e.cog = data[key];
  1153. }
  1154. if ("content" == key) {
  1155. this.textarea = data[key];
  1156. }
  1157. }
  1158. });
  1159. } else {
  1160. this.scoTitList.forEach(e => {
  1161. e.cog = 0;
  1162. });
  1163. }
  1164. }
  1165. }
  1166. };
  1167. </script>
  1168. <style scoped>
  1169. .markDialog {
  1170. display: flex;
  1171. /* height: 100%; */
  1172. min-height: 600px;
  1173. height: 100%;
  1174. }
  1175. .left {
  1176. /* overflow: auto; */
  1177. width: 310px;
  1178. /* border-right: 1px rgba(231, 231, 231, 1) solid; */
  1179. padding: 20px 20px 0;
  1180. box-sizing: border-box;
  1181. padding-right: 10px;
  1182. display: flex;
  1183. flex-direction: column;
  1184. height: 100%;
  1185. }
  1186. .Rig {
  1187. flex: 1;
  1188. padding: 15px;
  1189. display: flex;
  1190. flex-direction: column;
  1191. }
  1192. .RigTop {
  1193. border-bottom: 1px rgba(231, 231, 231, 1) solid;
  1194. padding: 0px 0 15px;
  1195. }
  1196. .AreaCss {
  1197. position: relative;
  1198. margin-bottom: 5px;
  1199. }
  1200. .AreaCss >>> .el-textarea__inner {
  1201. min-height: 150px !important;
  1202. /* max-height: 150px; */
  1203. /* padding-bottom: 20px; */
  1204. }
  1205. .AreaBtn {
  1206. position: absolute;
  1207. width: calc(100% - 30px);
  1208. text-align: right;
  1209. background-color: #fff;
  1210. bottom: 11px;
  1211. right: 20px;
  1212. color: rgba(54, 129, 252, 1);
  1213. cursor: pointer;
  1214. }
  1215. .likeList {
  1216. width: 100%;
  1217. display: flex;
  1218. padding: 10px 0;
  1219. flex-wrap: wrap;
  1220. }
  1221. .likeList > div {
  1222. padding: 4px 0px;
  1223. background-color: rgba(243, 247, 253, 1);
  1224. margin-right: 10px;
  1225. width: calc((100% - 60px) / 7);
  1226. text-align: center;
  1227. text-overflow: ellipsis;
  1228. white-space: nowrap;
  1229. overflow: hidden;
  1230. margin-bottom: 10px;
  1231. }
  1232. .likeList > div:nth-child(7n) {
  1233. margin-right: 0px;
  1234. }
  1235. .commentListCss {
  1236. background-color: #fafafa;
  1237. padding: 25px 15px 0;
  1238. box-sizing: border-box;
  1239. margin-top: 10px;
  1240. border-radius: 5px;
  1241. }
  1242. .RigConTit {
  1243. width: 100%;
  1244. display: flex;
  1245. margin: 10px 0;
  1246. }
  1247. .RigConTit > div {
  1248. font-size: 14px;
  1249. color: rgba(0, 0, 0, 0.6);
  1250. padding: 8px;
  1251. cursor: pointer;
  1252. }
  1253. .RigConTitOn {
  1254. border-bottom: 3px solid rgba(54, 129, 252, 1);
  1255. }
  1256. .RigCon {
  1257. width: 100%;
  1258. overflow: auto;
  1259. flex: 1;
  1260. padding: 10px 0;
  1261. box-sizing: border-box;
  1262. /* background-color: aqua; */
  1263. }
  1264. .selBlock {
  1265. background-color: #f3f7fd !important;
  1266. border: 1px #68a0fc solid !important;
  1267. }
  1268. .cutStuBtn {
  1269. display: flex;
  1270. color: rgba(54, 129, 252, 1);
  1271. }
  1272. .cutStuBtn > div {
  1273. margin-left: 10px;
  1274. }
  1275. .scoreTit {
  1276. font-size: 16px;
  1277. font-weight: 600;
  1278. display: flex;
  1279. justify-content: space-between;
  1280. box-sizing: border-box;
  1281. color: rgba(0, 0, 0, 0.9);
  1282. }
  1283. .allD {
  1284. margin: 10px 0;
  1285. min-height: 60px;
  1286. background-color: #f3f7fd;
  1287. }
  1288. .scoreStar2 {
  1289. padding: 0 10px 10px;
  1290. height: 100%;
  1291. flex: 1;
  1292. color: rgba(54, 129, 252, 1);
  1293. cursor: pointer;
  1294. }
  1295. .scoreStar {
  1296. padding: 0px 10px 10px;
  1297. height: 100%;
  1298. flex: 1;
  1299. }
  1300. .scoreStarBack {
  1301. flex: 1;
  1302. display: flex;
  1303. justify-content: space-between;
  1304. padding-top: 10px;
  1305. position: relative;
  1306. }
  1307. /* .scoreStar > div:first-child > .scoreStarBack {
  1308. margin-top: 0;
  1309. } */
  1310. .ScrBtn {
  1311. display: flex;
  1312. justify-content: center;
  1313. align-items: center;
  1314. cursor: pointer;
  1315. padding: 2px 8px;
  1316. border-radius: 5px;
  1317. color: #fff;
  1318. background-color: rgba(54, 129, 252, 1);
  1319. border: 1px rgba(54, 129, 252, 1) solid;
  1320. }
  1321. .worksAnswer {
  1322. color: #4078dd;
  1323. margin: 10px 0;
  1324. font-size: 16px;
  1325. display: flex;
  1326. align-items: center;
  1327. cursor: pointer;
  1328. }
  1329. .worksAnswer > img {
  1330. width: 100%;
  1331. height: 300px;
  1332. object-fit: contain;
  1333. margin: 0 auto;
  1334. display: block;
  1335. }
  1336. .briefTit {
  1337. width: 120px;
  1338. text-overflow: ellipsis;
  1339. overflow: hidden;
  1340. white-space: nowrap;
  1341. }
  1342. .briefTit > .titRoot{
  1343. position: absolute;
  1344. top: 0;
  1345. left: -27px;
  1346. transform: translate(0,10px);
  1347. }
  1348. .workListTit {
  1349. color: rgba(0, 0, 0, 0.6);
  1350. font-size: 12px;
  1351. font-weight: 400;
  1352. margin: 10px 0;
  1353. cursor: pointer;
  1354. }
  1355. .schPer2 {
  1356. padding: 10px;
  1357. box-sizing: border-box;
  1358. display: flex;
  1359. border-radius: 5px;
  1360. border: 1px solid rgba(240, 242, 245, 1);
  1361. /* margin-bottom: 10px; */
  1362. }
  1363. .schPer2 > img {
  1364. width: 45px;
  1365. height: 45px;
  1366. border-radius: 50%;
  1367. object-fit: cover;
  1368. }
  1369. .schPer {
  1370. padding: 10px;
  1371. box-sizing: border-box;
  1372. display: flex;
  1373. border-radius: 5px;
  1374. border: 1px solid rgba(240, 242, 245, 1);
  1375. margin-bottom: 10px;
  1376. }
  1377. .schPer > img {
  1378. width: 40px;
  1379. height: 40px;
  1380. border-radius: 50%;
  1381. object-fit: cover;
  1382. }
  1383. .con {
  1384. flex: 1;
  1385. display: flex;
  1386. flex-direction: column;
  1387. justify-content: space-between;
  1388. padding: 0 10px;
  1389. box-sizing: border-box;
  1390. }
  1391. .con > .tit {
  1392. width: 100%;
  1393. display: flex;
  1394. justify-content: space-between;
  1395. }
  1396. .con > .tit2 {
  1397. width: 100%;
  1398. display: flex;
  1399. margin-bottom: 15px;
  1400. }
  1401. .TitName {
  1402. width: 70px;
  1403. overflow: hidden;
  1404. text-overflow: ellipsis;
  1405. white-space: nowrap;
  1406. margin-right: 10px;
  1407. }
  1408. .worksAnswer {
  1409. color: #4078dd;
  1410. margin: 10px 0;
  1411. font-size: 16px;
  1412. position: relative;
  1413. }
  1414. .worksAnswer > img {
  1415. width: 500px;
  1416. height: 300px;
  1417. object-fit: contain;
  1418. margin: 0 auto;
  1419. display: block;
  1420. }
  1421. .cont {
  1422. overflow-wrap: break-word;
  1423. word-break: break-word;
  1424. white-space: pre-line;
  1425. }
  1426. .cont >>> table {
  1427. border-top: 1px solid #ccc;
  1428. border-left: 1px solid #ccc;
  1429. }
  1430. .cont >>> table td,
  1431. .cont >>> table th {
  1432. border-bottom: 1px solid #ccc;
  1433. border-right: 1px solid #ccc;
  1434. padding: 5px 10px;
  1435. max-width: 0px;
  1436. height: 30px;
  1437. vertical-align: baseline;
  1438. box-sizing: border-box;
  1439. }
  1440. .video-player >>> .video-js {
  1441. height: 100%;
  1442. }
  1443. .markBox{
  1444. padding: 20px 14px;
  1445. line-height: 29px;
  1446. font-size: 16px;
  1447. background: #f4f4f4;
  1448. border-radius: 5px;
  1449. }
  1450. </style>