index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774
  1. <template>
  2. <div class="full flex direction-column">
  3. <div class="flex items-center p-extra-small fill-blank header-view">
  4. <el-button class="m-r-auto" size="small" plain @click="back()">返回</el-button>
  5. <div class="data-item">
  6. <user-info></user-info>
  7. </div>
  8. <div class="data-item">
  9. <div class="icon-item">
  10. <lock-entry />
  11. </div>
  12. <div class="icon-item">
  13. <message></message>
  14. </div>
  15. </div>
  16. </div>
  17. <div class="flex-1 overflow-hidden flex direction-column">
  18. <div class="fill-blank filter-header flex items-center">
  19. <div class="flex-1 flex items-center">
  20. <span class="m-name">评卷员:{{ query.markerName }}</span>
  21. <base-form size="small" :items="formItems" :model="model">
  22. <!-- <template #form-item-search>
  23. <el-button type="primary" :loading="loading1 || loading2" @click="onSearch">刷新</el-button>
  24. </template> -->
  25. </base-form>
  26. </div>
  27. <el-button type="primary" :loading="loading1 || loading2" size="small" @click="onSearch">刷新</el-button>
  28. </div>
  29. <div class="flex-1 p-base flex direction-column overflow-hidden">
  30. <div class="flex-1 overflow-hidden mark-container">
  31. <splitpanes class="default-theme" style="height: 100%" @resize="setPaneSize">
  32. <pane
  33. max-size="80"
  34. :size="paneSize"
  35. class="flex flex-1 direction-column radius-base fill-blank mark-content"
  36. :class="{ 'text-center': center }"
  37. :style="{ 'background-color': backgroundColor }"
  38. >
  39. <span class="preview" @click="onPreview">
  40. <svg-icon name="preview"></svg-icon>
  41. </span>
  42. <p v-if="current" class="absolute mark-score">{{ current.markScore }}</p>
  43. <!-- <right-button class="next-button" @click="checkNext" /> -->
  44. <div class="flex-1 p-base scroll-auto mark-content-paper img-wrap">
  45. <img :src="dataUrl" alt="" class="paper-img" :style="{ 'background-color': frontColor }" />
  46. </div>
  47. <div class="flex items-center p-t-base">
  48. <el-button
  49. :disabled="!current?.taskId"
  50. class="m-l-base m-r-auto"
  51. size="small"
  52. type="primary"
  53. style="margin-bottom: 4px"
  54. @click="onSendBack"
  55. >打回</el-button
  56. >
  57. <div class="flex-1 flex justify-end items-center">
  58. <scoring-panel-with-confirm
  59. :id="current?.taskId"
  60. v-model:visible="editScoreVisible"
  61. v-model:score="modelScore"
  62. :main-number="current?.mainNumber"
  63. :subject-code="query.subjectCode"
  64. modal
  65. :auto-visible="false"
  66. :cannot-toggle="true"
  67. @submit="onSubmit"
  68. ></scoring-panel-with-confirm>
  69. </div>
  70. </div>
  71. </pane>
  72. <pane
  73. max-size="80"
  74. :size="100 - paneSize"
  75. class="flex direction-column p-base radius-base fill-blank table-view"
  76. >
  77. <!-- <div class="flex items-center p-b-base m-b-base marker-name">
  78. <span>评卷员</span>
  79. <span>{{ query.markerName }}</span>
  80. </div> -->
  81. <div class="flex items-center justify-between detail-info-table-header">
  82. <div v-if="tableModel.score !== ''" class="choose-score-info">
  83. <span class="txt">{{ tableModel.score }}分段</span>
  84. <span class="close" @click="tableModel.score = ''">&times;</span>
  85. </div>
  86. <div v-else></div>
  87. <btn-pagination v-model="currentPage" :pagination="pagination"></btn-pagination>
  88. <!-- <el-button custom-1 size="small" class="detail-info-label">
  89. <span class="">总数:</span>
  90. <span class="m-l-extra-small detail-info-label-num">{{ pagination.total }}</span>
  91. </el-button>
  92. <el-pagination
  93. v-bind="pagination"
  94. v-model:current-page="currentPage"
  95. size="small"
  96. class="m-t-unset"
  97. background
  98. right
  99. hide-on-single-page
  100. :pager-count="3"
  101. small
  102. ></el-pagination> -->
  103. </div>
  104. <div class="flex-1 scroll-auto m-t-mini">
  105. <base-table
  106. ref="tableRef"
  107. border
  108. stripe
  109. size="small"
  110. v-bind="pagination"
  111. height="100%"
  112. :data="tableData"
  113. :columns="columns"
  114. highlight-current-row
  115. :cell-style="{ padding: '6px 0' }"
  116. @current-change="onCurrentChange"
  117. @row-dblclick="onDbClick"
  118. ></base-table>
  119. </div>
  120. </pane>
  121. </splitpanes>
  122. </div>
  123. <div class="chart-space m-t-base flex justify-between items-center">
  124. <div class="new-chart-box radius-base">
  125. <vue-echarts class="full" :option="markerSubjectiveChartsOption"></vue-echarts>
  126. </div>
  127. <div class="new-chart-box radius-base">
  128. <vue-echarts class="full" :option="markerObjectiveChartsOption"></vue-echarts>
  129. </div>
  130. </div>
  131. </div>
  132. </div>
  133. </div>
  134. <image-preview v-model="previewModalVisible" :url="current?.filePath"></image-preview>
  135. <send-back-mark
  136. :id="current?.taskId"
  137. v-model="sendBackVisible"
  138. type="custom-check"
  139. @rejected="onRejected"
  140. ></send-back-mark>
  141. <mark-history-list
  142. :id="currentViewHistory?.taskId"
  143. v-model="visibleHistory"
  144. :task="currentViewHistory"
  145. ></mark-history-list>
  146. </template>
  147. <script setup lang="tsx" name="AnalysisPersonnelStatisticsMarker">
  148. /** 评卷员明细统计 */
  149. import { computed, reactive, ref, watch } from 'vue'
  150. import { useRouter, useRoute } from 'vue-router'
  151. import { ElButton, ElMessage } from 'element-plus'
  152. import dayjs from 'dayjs'
  153. import VueEcharts from 'vue-echarts'
  154. import Message from '@/components/shared/message/Message.vue'
  155. import UserInfo from '@/components/shared/UserInfo.vue'
  156. import BaseTable from '@/components/element/BaseTable.vue'
  157. import BaseForm from '@/components/element/BaseForm.vue'
  158. import useFetch from '@/hooks/useFetch'
  159. import useTable from '@/hooks/useTable'
  160. import useTableCheck from '@/hooks/useTableCheck'
  161. import LockEntry from '@/components/common/LockEntry.vue'
  162. import { Splitpanes, Pane } from 'splitpanes'
  163. import { setPaneSize } from '@/utils/common'
  164. import SendBackMark from '@/components/shared/SendBackMark.vue'
  165. import useMarkHeader from '@/hooks/useMarkHeader'
  166. import MarkHistoryList from '@/components/shared/MarkHistoryList.vue'
  167. import { add } from '@/utils/common'
  168. import { useSetImgBg } from '@/hooks/useSetImgBg'
  169. import SvgIcon from '@/components/common/SvgIcon.vue'
  170. import useMainStore from '@/store/main'
  171. import ScoringPanelWithConfirm from '@/components/shared/ScoringPanelWithConfirm.vue'
  172. import ImagePreview from '@/components/shared/ImagePreview.vue'
  173. import BtnPagination from '@/components/common/BtnPagination'
  174. import { ElIcon } from 'element-plus'
  175. import { Close } from '@element-plus/icons-vue'
  176. import type { EChartsOption } from 'echarts'
  177. import type { ExtractApiResponse } from '@/api/api'
  178. import type { EpTableColumn, EpFormItem } from 'global-type'
  179. import type { SetImgBgOption } from '@/hooks/useSetImgBg'
  180. const mainStore = useMainStore()
  181. const paneSize = computed(() => {
  182. return mainStore.paneSizeConfig[location.pathname] || 70
  183. })
  184. const { back, push } = useRouter()
  185. const { query } = useRoute()
  186. /** 打回弹窗 */
  187. const sendBackVisible = ref<boolean>(false)
  188. /** 打回 */
  189. const onSendBack = () => {
  190. sendBackVisible.value = true
  191. }
  192. /** 打回成功 */
  193. const onRejected = () => {
  194. // onRefresh()
  195. ElMessage.success('打回成功')
  196. }
  197. /** 给分板 */
  198. const editScoreVisible = ref<boolean>(true)
  199. /** 图片预览 */
  200. const previewModalVisible = ref<boolean>(false)
  201. /** 分数 */
  202. const modelScore = ref<number[]>([])
  203. const {
  204. rotate,
  205. scale,
  206. center,
  207. frontColor,
  208. backgroundColor,
  209. onBack,
  210. onScaleChange,
  211. onCenter,
  212. onRotate,
  213. setBackgroundColor,
  214. setFrontColor,
  215. onViewStandard,
  216. } = useMarkHeader()
  217. /** 刷新 */
  218. const onRefresh = () => {
  219. fetchTable()
  220. }
  221. /** 预览试卷 */
  222. const onPreview = () => {
  223. previewModalVisible.value = true
  224. }
  225. const tableModel = reactive<any>({
  226. markerId: query.markerId,
  227. score: '',
  228. pageSize: 100,
  229. subjectCode: query.subjectCode as string,
  230. mainNumber: query.questionMainNumber as string,
  231. })
  232. ;(window as any)._tableModel = tableModel
  233. const { pagination, currentPage, data, fetchTable } = useTable('getPersonalMarkDetail', tableModel)
  234. const {
  235. tableRef,
  236. tableData,
  237. current,
  238. currentView: currentViewHistory,
  239. next: checkNext,
  240. visibleHistory,
  241. onDbClick,
  242. onCurrentChange,
  243. nextRow,
  244. } = useTableCheck(data)
  245. /** 确定给分 */
  246. const { fetch: updatePersonalMarkDetailScore } = useFetch('updatePersonalMarkDetailScore')
  247. const onSubmit = async () => {
  248. if (current.value) {
  249. const scores = JSON.parse(JSON.stringify(modelScore.value))
  250. await updatePersonalMarkDetailScore({
  251. taskId: current.value.taskId,
  252. scores: modelScore.value,
  253. source: (query.source as string) || '',
  254. })
  255. // current.value.markerScore = add(...scores)
  256. current.value.markScore = add(...scores)
  257. ElMessage.success('修改成功')
  258. // editScoreVisible.value = false
  259. // onRefresh()
  260. nextRow()
  261. }
  262. }
  263. watch(current, () => {
  264. if (current.value) {
  265. useFetch('viewActiveCheck').fetch({ taskId: current.value?.taskId })
  266. }
  267. })
  268. const imgOption = computed<SetImgBgOption>(() => {
  269. return {
  270. image: current?.value?.filePath || '',
  271. rotate: rotate.value,
  272. scale: scale.value,
  273. }
  274. })
  275. const { drawing, dataUrl } = useSetImgBg(imgOption, frontColor, setFrontColor)
  276. onRefresh()
  277. watch(
  278. () => tableModel.score,
  279. () => {
  280. fetchTable()
  281. }
  282. )
  283. const model = reactive({
  284. type: 'today',
  285. })
  286. const formItems: EpFormItem[] = [
  287. {
  288. label: '统计方式',
  289. prop: 'type',
  290. slotType: 'radio',
  291. rowKey: 'row-1',
  292. slot: {
  293. options: [
  294. { label: 'total', slotLabel: '积累' },
  295. { label: 'today', slotLabel: '当天' },
  296. ],
  297. },
  298. // colProp: {
  299. // span: 4,
  300. // offset: 18,
  301. // },
  302. },
  303. // {
  304. // slotName: 'search',
  305. // rowKey: 'row-1',
  306. // colProp: {
  307. // span: 2,
  308. // },
  309. // },
  310. ]
  311. const {
  312. fetch: getStatisticObjectiveByMarker,
  313. result: objectiveByMarker,
  314. loading: loading1,
  315. } = useFetch('getStatisticObjectiveByMarker')
  316. const {
  317. fetch: getStatisticSubjectiveByMarker,
  318. result: subjectiveByMarker,
  319. loading: loading2,
  320. } = useFetch('getStatisticSubjectiveByMarker')
  321. type TableDataType = ExtractArrayValue<ExtractApiResponse<'getStatisticObjectiveByMarker'>['segmentsByAll']> & {
  322. groupCount: number
  323. groupRate: number
  324. allCount: number
  325. allRate: number
  326. }
  327. type GroupData = Record<number, { groupCount: number; groupRate: number }>
  328. type AllData = Record<number, { allCount: number; allRate: number }>
  329. const objectiveGroupData = computed<GroupData>(() => {
  330. return objectiveByMarker.value?.segmentsByGroup?.reduce((result, data) => {
  331. result[data.scoreStart] = { groupCount: data.count, groupRate: data.rate }
  332. return result
  333. }, {} as GroupData)
  334. })
  335. const objectiveAllData = computed<AllData>(() => {
  336. return objectiveByMarker.value?.segmentsByAll?.reduce((result, data) => {
  337. result[data.scoreStart] = { allCount: data.count, allRate: data.rate }
  338. return result
  339. }, {} as AllData)
  340. })
  341. const subjectiveGroupData = computed<GroupData>(() => {
  342. return subjectiveByMarker.value?.segmentsByGroup?.reduce((result, data) => {
  343. result[data.scoreStart] = { groupCount: data.count, groupRate: data.rate }
  344. return result
  345. }, {} as GroupData)
  346. })
  347. const subjectiveAllData = computed<AllData>(() => {
  348. return subjectiveByMarker.value?.segmentsByAll?.reduce((result, data) => {
  349. result[data.scoreStart] = { allCount: data.count, allRate: data.rate }
  350. return result
  351. }, {} as AllData)
  352. })
  353. const objectiveTableData = computed<TableDataType[]>(() => {
  354. return objectiveByMarker?.value?.segmentsByUser.map((d) => ({
  355. ...d,
  356. ...objectiveGroupData.value?.[d.scoreStart],
  357. ...objectiveAllData.value?.[d.scoreStart],
  358. }))
  359. })
  360. const columns: EpTableColumn<any>[] = [
  361. {
  362. label: '评卷员',
  363. prop: 'markerName',
  364. minWidth: 90,
  365. // formatter(row: any) {
  366. // return (
  367. // <SecNumberStatus
  368. // secretNumber={row.markerName}
  369. // checked={row.checked}
  370. // corrected={row.corrected}
  371. // ></SecNumberStatus>
  372. // )
  373. // },
  374. },
  375. {
  376. label: '密号',
  377. prop: 'secretNumber',
  378. minWidth: 110,
  379. },
  380. { label: '给分', prop: 'markerScore', minWidth: 70 },
  381. { label: '客观分', prop: 'objectiveScore', minWidth: 70 },
  382. { label: '客主比', prop: 'markerRatio', minWidth: 80 },
  383. { label: '成绩', prop: 'markScore', minWidth: 70 },
  384. ]
  385. const onSearch = () => {
  386. fetchTable()
  387. if (query.markerId) {
  388. const startTime = model.type === 'today' ? dayjs().startOf('day').format('YYYYMMDDHHmmss') : ''
  389. getStatisticObjectiveByMarker({
  390. markerId: query.markerId as string,
  391. startTime,
  392. endTime: '',
  393. })
  394. getStatisticSubjectiveByMarker({
  395. markerId: query.markerId as string,
  396. startTime,
  397. endTime: '',
  398. })
  399. }
  400. }
  401. type StatisticObjectiveByMarker = ExtractApiResponse<'getStatisticObjectiveByMarker'>
  402. type StatisticObjectiveByMarkerValues = StatisticObjectiveByMarker['segmentsByAll']
  403. const getXAxisData = <K extends keyof ExtractArrayValue<StatisticObjectiveByMarkerValues>>(
  404. field: K,
  405. data?: StatisticObjectiveByMarkerValues
  406. ) => {
  407. if (!data) {
  408. return []
  409. }
  410. const getValue = (key: K, item: ExtractArrayValue<StatisticObjectiveByMarkerValues>) => {
  411. return item[key]
  412. }
  413. return data?.map((v) => getValue(field, v))
  414. }
  415. const markerSubjectiveChartsOption = computed<EChartsOption>(() => {
  416. return {
  417. grid: {
  418. top: 50,
  419. bottom: 15,
  420. left: 30,
  421. right: 30,
  422. containLabel: true,
  423. },
  424. legend: {
  425. top: 10,
  426. itemWidth: 14,
  427. data: ['评卷员主观分布', '小组主观分布', '题组主观分布'],
  428. },
  429. tooltip: {
  430. trigger: 'axis',
  431. triggerOn: 'click',
  432. enterable: true,
  433. axisPointer: {
  434. type: 'line',
  435. crossStyle: {
  436. color: '#999',
  437. },
  438. lineStyle: {
  439. type: 'dashed',
  440. },
  441. },
  442. formatter: function (params: any) {
  443. let html = `
  444. <div>
  445. <div style="font-size:14px;color:#0091ff;font-weight:bold;text-decoration:underline;cursor:pointer;margin-bottom:8px" onclick="window._tableModel.score=${params[0].axisValue}">${params[0].axisValue}分段</div>
  446. <div>
  447. `
  448. for (let i = 0; i < params.length; i++) {
  449. let item = params[i]
  450. html += `
  451. <div style="margin: 0px 0 0">
  452. ${item.marker}
  453. <span style="font-size:14px;color:#666;font-weight:400;margin-left:2px">${item.seriesName}</span>
  454. <span style="float:right;margin-left:20px;font-size:14px;color:#666;font-weight:900">${item.data}</span>
  455. <div style="clear:both"></div>
  456. </div>
  457. </div>
  458. `
  459. }
  460. html += `
  461. </div>
  462. </div>
  463. `
  464. return html
  465. },
  466. },
  467. xAxis: {
  468. axisLine: { show: false },
  469. axisTick: { show: false },
  470. splitLine: { show: false },
  471. axisLabel: {
  472. align: 'right',
  473. },
  474. data: getXAxisData('scoreStart', subjectiveByMarker?.value?.segmentsByAll),
  475. },
  476. yAxis: [
  477. {
  478. type: 'value',
  479. },
  480. {
  481. type: 'value',
  482. axisLabel: {
  483. formatter: `{value}%`,
  484. },
  485. splitLine: { show: false },
  486. },
  487. ],
  488. series: [
  489. {
  490. name: '评卷员主观分布',
  491. type: 'line',
  492. itemStyle: {
  493. color: '#8ED14B',
  494. },
  495. data: getXAxisData('rate', subjectiveByMarker?.value?.segmentsByUser),
  496. },
  497. {
  498. name: '小组主观分布',
  499. type: 'line',
  500. itemStyle: {
  501. color: '#3B99D4',
  502. },
  503. data: getXAxisData('rate', subjectiveByMarker?.value?.segmentsByGroup),
  504. },
  505. {
  506. name: '题组主观分布',
  507. type: 'line',
  508. itemStyle: {
  509. color: '#ff0000',
  510. },
  511. data: getXAxisData('rate', subjectiveByMarker?.value?.segmentsByAll),
  512. },
  513. ],
  514. }
  515. })
  516. const markerObjectiveChartsOption = computed<EChartsOption>(() => {
  517. return {
  518. grid: {
  519. top: 50,
  520. bottom: 15,
  521. left: 30,
  522. right: 30,
  523. containLabel: true,
  524. },
  525. legend: {
  526. top: 10,
  527. itemWidth: 14,
  528. data: ['评卷员客观分布', '小组客观分布', '题组客观分布'],
  529. },
  530. tooltip: {
  531. trigger: 'axis',
  532. triggerOn: 'click',
  533. enterable: true,
  534. axisPointer: {
  535. type: 'line',
  536. crossStyle: {
  537. color: '#999',
  538. },
  539. lineStyle: {
  540. type: 'dashed',
  541. },
  542. },
  543. // formatter: function (params: any) {
  544. // let html = `
  545. // <div>
  546. // <div style="font-size:14px;color:#0091ff;font-weight:bold;text-decoration:underline;cursor:pointer;margin-bottom:8px">${params[0].axisValue}分段</div>
  547. // <div>
  548. // `
  549. // for (let i = 0; i < params.length; i++) {
  550. // let item = params[i]
  551. // html += `
  552. // <div style="margin: 0px 0 0">
  553. // ${item.marker}
  554. // <span style="font-size:14px;color:#666;font-weight:400;margin-left:2px">${item.seriesName}</span>
  555. // <span style="float:right;margin-left:20px;font-size:14px;color:#666;font-weight:900">${item.data}</span>
  556. // <div style="clear:both"></div>
  557. // </div>
  558. // </div>
  559. // `
  560. // }
  561. // html += `
  562. // </div>
  563. // </div>
  564. // `
  565. // return html
  566. // },
  567. },
  568. xAxis: {
  569. axisLine: { show: false },
  570. axisTick: { show: false },
  571. splitLine: { show: false },
  572. axisLabel: {
  573. align: 'right',
  574. },
  575. data: getXAxisData('scoreStart', objectiveByMarker?.value?.segmentsByAll),
  576. },
  577. yAxis: [
  578. {
  579. type: 'value',
  580. },
  581. {
  582. type: 'value',
  583. axisLabel: {
  584. formatter: `{value}%`,
  585. },
  586. splitLine: { show: false },
  587. },
  588. ],
  589. series: [
  590. {
  591. name: '评卷员客观分布',
  592. type: 'line',
  593. itemStyle: {
  594. color: '#8ED14B',
  595. },
  596. data: getXAxisData('rate', objectiveByMarker?.value?.segmentsByUser),
  597. },
  598. {
  599. name: '小组客观分布',
  600. type: 'line',
  601. itemStyle: {
  602. color: '#3B99D4',
  603. },
  604. data: getXAxisData('rate', objectiveByMarker?.value?.segmentsByGroup),
  605. },
  606. {
  607. name: '题组客观分布',
  608. type: 'line',
  609. itemStyle: {
  610. color: '#ff0000',
  611. },
  612. data: getXAxisData('rate', objectiveByMarker?.value?.segmentsByAll),
  613. },
  614. ],
  615. }
  616. })
  617. onSearch()
  618. </script>
  619. <style scoped lang="scss">
  620. .header-view {
  621. background-color: #333;
  622. height: 60px;
  623. ::v-deep(.data-item) {
  624. // padding-left: 20px;
  625. padding-left: 15px;
  626. padding-right: 15px;
  627. position: relative;
  628. height: 100%;
  629. display: flex;
  630. align-items: center;
  631. color: #8a8a8a;
  632. .icon-item {
  633. // width: 45px;
  634. padding: 0 10px;
  635. height: 100%;
  636. display: flex;
  637. flex-direction: column;
  638. justify-content: flex-end;
  639. }
  640. &:first-child {
  641. margin-left: auto;
  642. }
  643. &:not(:last-child) {
  644. &:after {
  645. content: '';
  646. position: absolute;
  647. right: 0;
  648. top: 0;
  649. width: 1px;
  650. height: 100%;
  651. background-color: #464646;
  652. }
  653. }
  654. &.is-last:after {
  655. width: 0;
  656. }
  657. .main-ques-info {
  658. text-align: center;
  659. font-weight: bold;
  660. color: $color--primary;
  661. margin-bottom: 5px;
  662. max-width: 130px;
  663. }
  664. }
  665. }
  666. .chart-space {
  667. height: 220px;
  668. }
  669. .filter-header {
  670. border-top: 1px solid #eee;
  671. border-bottom: 1px solid #eee;
  672. padding: 8px 15px;
  673. .m-name {
  674. font-size: 12px;
  675. color: #666;
  676. margin-right: 40px;
  677. font-weight: bold;
  678. }
  679. :deep(.el-form-item--small) {
  680. margin-bottom: 0;
  681. }
  682. }
  683. .new-chart-box {
  684. height: 100%;
  685. width: calc(50% - 6px);
  686. background-color: #fff;
  687. }
  688. .mark-container {
  689. .mark-content {
  690. position: relative;
  691. .preview {
  692. position: absolute;
  693. cursor: pointer;
  694. top: 20px;
  695. right: 25px;
  696. font-size: 38px;
  697. }
  698. .next-button {
  699. position: absolute;
  700. right: -20px;
  701. top: 300px;
  702. }
  703. .mark-content-paper {
  704. img {
  705. max-width: 100%;
  706. }
  707. }
  708. }
  709. .table-view {
  710. // width: 580px;
  711. .detail-info-table-header {
  712. .choose-score-info {
  713. background: rgba(0, 186, 151, 0.1);
  714. display: flex;
  715. align-items: center;
  716. height: 32px;
  717. padding: 0 10px;
  718. border-radius: 4px;
  719. .txt {
  720. color: #00ba97;
  721. font-weight: bold;
  722. font-size: 12px;
  723. margin-right: 12px;
  724. }
  725. .close {
  726. color: #00ba97;
  727. font-weight: bold;
  728. cursor: pointer;
  729. font-size: 16px;
  730. margin-bottom: 2px;
  731. }
  732. }
  733. }
  734. .marker-name {
  735. border-bottom: $OnePixelLine;
  736. }
  737. .detail-info-label {
  738. .detail-info-label-num {
  739. min-width: 32px;
  740. height: 24px;
  741. line-height: 24px;
  742. background: #00987b;
  743. border-radius: 4px;
  744. }
  745. }
  746. }
  747. }
  748. </style>