index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794
  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.vue'
  174. import SecNumberStatus from '@/components/common/secNumberStatus.vue'
  175. import { ElIcon } from 'element-plus'
  176. import { Close } from '@element-plus/icons-vue'
  177. import type { EChartsOption } from 'echarts'
  178. import type { ExtractApiResponse } from '@/api/api'
  179. import type { EpTableColumn, EpFormItem } from 'global-type'
  180. import type { SetImgBgOption } from '@/hooks/useSetImgBg'
  181. const mainStore = useMainStore()
  182. const paneSize = computed(() => {
  183. return mainStore.paneSizeConfig[location.pathname] || 70
  184. })
  185. const { back, push } = useRouter()
  186. const { query } = useRoute()
  187. /** 打回弹窗 */
  188. const sendBackVisible = ref<boolean>(false)
  189. /** 打回 */
  190. const onSendBack = () => {
  191. sendBackVisible.value = true
  192. }
  193. /** 打回成功 */
  194. const onRejected = () => {
  195. // onRefresh()
  196. ElMessage.success('打回成功')
  197. }
  198. /** 给分板 */
  199. const editScoreVisible = ref<boolean>(true)
  200. /** 图片预览 */
  201. const previewModalVisible = ref<boolean>(false)
  202. /** 分数 */
  203. const modelScore = ref<number[]>([])
  204. const {
  205. rotate,
  206. scale,
  207. center,
  208. frontColor,
  209. backgroundColor,
  210. onBack,
  211. onScaleChange,
  212. onCenter,
  213. onRotate,
  214. setBackgroundColor,
  215. setFrontColor,
  216. onViewStandard,
  217. } = useMarkHeader()
  218. /** 刷新 */
  219. const onRefresh = () => {
  220. fetchTable()
  221. }
  222. /** 预览试卷 */
  223. const onPreview = () => {
  224. previewModalVisible.value = true
  225. }
  226. const model = reactive({
  227. type: 'today',
  228. })
  229. const tableModel = reactive<any>({
  230. markerId: query.markerId,
  231. score: '',
  232. pageSize: 100,
  233. subjectCode: query.subjectCode as string,
  234. mainNumber: query.questionMainNumber as string,
  235. today: true,
  236. })
  237. watch(
  238. () => model.type,
  239. () => {
  240. tableModel.today = model.type === 'today'
  241. }
  242. )
  243. ;(window as any)._tableModel = tableModel
  244. const { pagination, currentPage, data, fetchTable } = useTable('getPersonalMarkDetail', tableModel)
  245. const {
  246. tableRef,
  247. tableData,
  248. current,
  249. currentView: currentViewHistory,
  250. next: checkNext,
  251. visibleHistory,
  252. onDbClick,
  253. onCurrentChange,
  254. nextRow,
  255. } = useTableCheck(data)
  256. /** 确定给分 */
  257. const { fetch: updatePersonalMarkDetailScore } = useFetch('updatePersonalMarkDetailScore')
  258. const onSubmit = async () => {
  259. if (current.value) {
  260. const scores = JSON.parse(JSON.stringify(modelScore.value))
  261. let res: any = await updatePersonalMarkDetailScore({
  262. taskId: current.value.taskId,
  263. scores: modelScore.value,
  264. source: (query.source as string) || '',
  265. })
  266. // current.value.markerScore = add(...scores)
  267. current.value.markScore = add(...scores)
  268. current.value.checked = res.checked
  269. current.value.corrected = res.corrected
  270. current.value.markerScore = res.markerScore
  271. current.value.objectiveScore = res.objectiveScore
  272. current.value.ratio = res.ratio
  273. current.value.markTime = res.markTime
  274. current.value.markerScore = res.markerScore
  275. ElMessage.success('修改成功')
  276. // editScoreVisible.value = false
  277. // onRefresh()
  278. nextRow()
  279. }
  280. }
  281. watch(current, () => {
  282. if (current.value) {
  283. useFetch('viewActiveCheck')
  284. .fetch({ taskId: current.value?.taskId })
  285. .then(() => {
  286. if (!current.value.checked) {
  287. current.value.checked = true
  288. }
  289. })
  290. }
  291. })
  292. const imgOption = computed<SetImgBgOption>(() => {
  293. return {
  294. image: current?.value?.filePath || '',
  295. rotate: rotate.value,
  296. scale: scale.value,
  297. }
  298. })
  299. const { drawing, dataUrl } = useSetImgBg(imgOption, frontColor, setFrontColor)
  300. onRefresh()
  301. watch(
  302. () => tableModel.score,
  303. () => {
  304. fetchTable()
  305. }
  306. )
  307. const formItems: EpFormItem[] = [
  308. {
  309. label: '统计方式',
  310. prop: 'type',
  311. slotType: 'radio',
  312. rowKey: 'row-1',
  313. slot: {
  314. options: [
  315. { label: 'total', slotLabel: '积累' },
  316. { label: 'today', slotLabel: '当天' },
  317. ],
  318. },
  319. // colProp: {
  320. // span: 4,
  321. // offset: 18,
  322. // },
  323. },
  324. // {
  325. // slotName: 'search',
  326. // rowKey: 'row-1',
  327. // colProp: {
  328. // span: 2,
  329. // },
  330. // },
  331. ]
  332. const {
  333. fetch: getStatisticObjectiveByMarker,
  334. result: objectiveByMarker,
  335. loading: loading1,
  336. } = useFetch('getStatisticObjectiveByMarker')
  337. const {
  338. fetch: getStatisticSubjectiveByMarker,
  339. result: subjectiveByMarker,
  340. loading: loading2,
  341. } = useFetch('getStatisticSubjectiveByMarker')
  342. type TableDataType = ExtractArrayValue<ExtractApiResponse<'getStatisticObjectiveByMarker'>['segmentsByAll']> & {
  343. groupCount: number
  344. groupRate: number
  345. allCount: number
  346. allRate: number
  347. }
  348. type GroupData = Record<number, { groupCount: number; groupRate: number }>
  349. type AllData = Record<number, { allCount: number; allRate: number }>
  350. const objectiveGroupData = computed<GroupData>(() => {
  351. return objectiveByMarker.value?.segmentsByGroup?.reduce((result, data) => {
  352. result[data.scoreStart] = { groupCount: data.count, groupRate: data.rate }
  353. return result
  354. }, {} as GroupData)
  355. })
  356. const objectiveAllData = computed<AllData>(() => {
  357. return objectiveByMarker.value?.segmentsByAll?.reduce((result, data) => {
  358. result[data.scoreStart] = { allCount: data.count, allRate: data.rate }
  359. return result
  360. }, {} as AllData)
  361. })
  362. const subjectiveGroupData = computed<GroupData>(() => {
  363. return subjectiveByMarker.value?.segmentsByGroup?.reduce((result, data) => {
  364. result[data.scoreStart] = { groupCount: data.count, groupRate: data.rate }
  365. return result
  366. }, {} as GroupData)
  367. })
  368. const subjectiveAllData = computed<AllData>(() => {
  369. return subjectiveByMarker.value?.segmentsByAll?.reduce((result, data) => {
  370. result[data.scoreStart] = { allCount: data.count, allRate: data.rate }
  371. return result
  372. }, {} as AllData)
  373. })
  374. const objectiveTableData = computed<TableDataType[]>(() => {
  375. return objectiveByMarker?.value?.segmentsByUser.map((d) => ({
  376. ...d,
  377. ...objectiveGroupData.value?.[d.scoreStart],
  378. ...objectiveAllData.value?.[d.scoreStart],
  379. }))
  380. })
  381. const columns: EpTableColumn<any>[] = [
  382. {
  383. label: '评卷员',
  384. prop: 'markerName',
  385. minWidth: 90,
  386. formatter(row: any) {
  387. return (
  388. <SecNumberStatus
  389. secretNumber={row.markerName}
  390. checked={row.checked}
  391. corrected={row.corrected}
  392. ></SecNumberStatus>
  393. )
  394. },
  395. },
  396. {
  397. label: '密号',
  398. prop: 'secretNumber',
  399. minWidth: 110,
  400. },
  401. { label: '给分', prop: 'markerScore', minWidth: 70 },
  402. { label: '客观分', prop: 'objectiveScore', minWidth: 70 },
  403. { label: '客主比', prop: 'markerRatio', minWidth: 80 },
  404. { label: '成绩', prop: 'markScore', minWidth: 70 },
  405. ]
  406. const onSearch = () => {
  407. fetchTable()
  408. if (query.markerId) {
  409. const startTime = model.type === 'today' ? dayjs().startOf('day').format('YYYYMMDDHHmmss') : ''
  410. getStatisticObjectiveByMarker({
  411. markerId: query.markerId as string,
  412. startTime,
  413. endTime: '',
  414. })
  415. getStatisticSubjectiveByMarker({
  416. markerId: query.markerId as string,
  417. startTime,
  418. endTime: '',
  419. })
  420. }
  421. }
  422. type StatisticObjectiveByMarker = ExtractApiResponse<'getStatisticObjectiveByMarker'>
  423. type StatisticObjectiveByMarkerValues = StatisticObjectiveByMarker['segmentsByAll']
  424. const getXAxisData = <K extends keyof ExtractArrayValue<StatisticObjectiveByMarkerValues>>(
  425. field: K,
  426. data?: StatisticObjectiveByMarkerValues
  427. ) => {
  428. if (!data) {
  429. return []
  430. }
  431. const getValue = (key: K, item: ExtractArrayValue<StatisticObjectiveByMarkerValues>) => {
  432. return item[key]
  433. }
  434. return data?.map((v) => getValue(field, v))
  435. }
  436. const markerSubjectiveChartsOption = computed<EChartsOption>(() => {
  437. return {
  438. grid: {
  439. top: 50,
  440. bottom: 15,
  441. left: 30,
  442. right: 30,
  443. containLabel: true,
  444. },
  445. legend: {
  446. top: 10,
  447. itemWidth: 14,
  448. data: ['评卷员主观分布', '小组主观分布', '题组主观分布'],
  449. },
  450. tooltip: {
  451. trigger: 'axis',
  452. triggerOn: 'click',
  453. enterable: true,
  454. axisPointer: {
  455. type: 'line',
  456. crossStyle: {
  457. color: '#999',
  458. },
  459. lineStyle: {
  460. type: 'dashed',
  461. },
  462. },
  463. formatter: function (params: any) {
  464. let html = `
  465. <div>
  466. <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>
  467. <div>
  468. `
  469. for (let i = 0; i < params.length; i++) {
  470. let item = params[i]
  471. html += `
  472. <div style="margin: 0px 0 0">
  473. ${item.marker}
  474. <span style="font-size:14px;color:#666;font-weight:400;margin-left:2px">${item.seriesName}</span>
  475. <span style="float:right;margin-left:20px;font-size:14px;color:#666;font-weight:900">${item.data}</span>
  476. <div style="clear:both"></div>
  477. </div>
  478. </div>
  479. `
  480. }
  481. html += `
  482. </div>
  483. </div>
  484. `
  485. return html
  486. },
  487. },
  488. xAxis: {
  489. axisLine: { show: false },
  490. axisTick: { show: false },
  491. splitLine: { show: false },
  492. axisLabel: {
  493. align: 'right',
  494. },
  495. data: getXAxisData('scoreStart', subjectiveByMarker?.value?.segmentsByAll),
  496. },
  497. yAxis: [
  498. {
  499. type: 'value',
  500. },
  501. {
  502. type: 'value',
  503. axisLabel: {
  504. formatter: `{value}%`,
  505. },
  506. splitLine: { show: false },
  507. },
  508. ],
  509. series: [
  510. {
  511. name: '评卷员主观分布',
  512. type: 'line',
  513. itemStyle: {
  514. color: '#8ED14B',
  515. },
  516. data: getXAxisData('rate', subjectiveByMarker?.value?.segmentsByUser),
  517. },
  518. {
  519. name: '小组主观分布',
  520. type: 'line',
  521. itemStyle: {
  522. color: '#3B99D4',
  523. },
  524. data: getXAxisData('rate', subjectiveByMarker?.value?.segmentsByGroup),
  525. },
  526. {
  527. name: '题组主观分布',
  528. type: 'line',
  529. itemStyle: {
  530. color: '#ff0000',
  531. },
  532. data: getXAxisData('rate', subjectiveByMarker?.value?.segmentsByAll),
  533. },
  534. ],
  535. }
  536. })
  537. const markerObjectiveChartsOption = computed<EChartsOption>(() => {
  538. return {
  539. grid: {
  540. top: 50,
  541. bottom: 15,
  542. left: 30,
  543. right: 30,
  544. containLabel: true,
  545. },
  546. legend: {
  547. top: 10,
  548. itemWidth: 14,
  549. data: ['评卷员客观分布', '小组客观分布', '题组客观分布'],
  550. },
  551. tooltip: {
  552. trigger: 'axis',
  553. triggerOn: 'click',
  554. enterable: true,
  555. axisPointer: {
  556. type: 'line',
  557. crossStyle: {
  558. color: '#999',
  559. },
  560. lineStyle: {
  561. type: 'dashed',
  562. },
  563. },
  564. // formatter: function (params: any) {
  565. // let html = `
  566. // <div>
  567. // <div style="font-size:14px;color:#0091ff;font-weight:bold;text-decoration:underline;cursor:pointer;margin-bottom:8px">${params[0].axisValue}分段</div>
  568. // <div>
  569. // `
  570. // for (let i = 0; i < params.length; i++) {
  571. // let item = params[i]
  572. // html += `
  573. // <div style="margin: 0px 0 0">
  574. // ${item.marker}
  575. // <span style="font-size:14px;color:#666;font-weight:400;margin-left:2px">${item.seriesName}</span>
  576. // <span style="float:right;margin-left:20px;font-size:14px;color:#666;font-weight:900">${item.data}</span>
  577. // <div style="clear:both"></div>
  578. // </div>
  579. // </div>
  580. // `
  581. // }
  582. // html += `
  583. // </div>
  584. // </div>
  585. // `
  586. // return html
  587. // },
  588. },
  589. xAxis: {
  590. axisLine: { show: false },
  591. axisTick: { show: false },
  592. splitLine: { show: false },
  593. axisLabel: {
  594. align: 'right',
  595. },
  596. data: getXAxisData('scoreStart', objectiveByMarker?.value?.segmentsByAll),
  597. },
  598. yAxis: [
  599. {
  600. type: 'value',
  601. },
  602. {
  603. type: 'value',
  604. axisLabel: {
  605. formatter: `{value}%`,
  606. },
  607. splitLine: { show: false },
  608. },
  609. ],
  610. series: [
  611. {
  612. name: '评卷员客观分布',
  613. type: 'line',
  614. itemStyle: {
  615. color: '#8ED14B',
  616. },
  617. data: getXAxisData('rate', objectiveByMarker?.value?.segmentsByUser),
  618. },
  619. {
  620. name: '小组客观分布',
  621. type: 'line',
  622. itemStyle: {
  623. color: '#3B99D4',
  624. },
  625. data: getXAxisData('rate', objectiveByMarker?.value?.segmentsByGroup),
  626. },
  627. {
  628. name: '题组客观分布',
  629. type: 'line',
  630. itemStyle: {
  631. color: '#ff0000',
  632. },
  633. data: getXAxisData('rate', objectiveByMarker?.value?.segmentsByAll),
  634. },
  635. ],
  636. }
  637. })
  638. onSearch()
  639. </script>
  640. <style scoped lang="scss">
  641. .header-view {
  642. background-color: #333;
  643. height: 60px;
  644. ::v-deep(.data-item) {
  645. // padding-left: 20px;
  646. padding-left: 15px;
  647. padding-right: 15px;
  648. position: relative;
  649. height: 100%;
  650. display: flex;
  651. align-items: center;
  652. color: #8a8a8a;
  653. .icon-item {
  654. // width: 45px;
  655. padding: 0 10px;
  656. height: 100%;
  657. display: flex;
  658. flex-direction: column;
  659. justify-content: flex-end;
  660. }
  661. &:first-child {
  662. margin-left: auto;
  663. }
  664. &:not(:last-child) {
  665. &:after {
  666. content: '';
  667. position: absolute;
  668. right: 0;
  669. top: 0;
  670. width: 1px;
  671. height: 100%;
  672. background-color: #464646;
  673. }
  674. }
  675. &.is-last:after {
  676. width: 0;
  677. }
  678. .main-ques-info {
  679. text-align: center;
  680. font-weight: bold;
  681. color: $color--primary;
  682. margin-bottom: 5px;
  683. max-width: 130px;
  684. }
  685. }
  686. }
  687. .chart-space {
  688. height: 220px;
  689. }
  690. .filter-header {
  691. border-top: 1px solid #eee;
  692. border-bottom: 1px solid #eee;
  693. padding: 8px 15px;
  694. .m-name {
  695. font-size: 12px;
  696. color: #666;
  697. margin-right: 40px;
  698. font-weight: bold;
  699. }
  700. :deep(.el-form-item--small) {
  701. margin-bottom: 0;
  702. }
  703. }
  704. .new-chart-box {
  705. height: 100%;
  706. width: calc(50% - 6px);
  707. background-color: #fff;
  708. }
  709. .mark-container {
  710. .mark-content {
  711. position: relative;
  712. .preview {
  713. position: absolute;
  714. cursor: pointer;
  715. top: 20px;
  716. right: 25px;
  717. font-size: 38px;
  718. }
  719. .next-button {
  720. position: absolute;
  721. right: -20px;
  722. top: 300px;
  723. }
  724. .mark-content-paper {
  725. img {
  726. max-width: 100%;
  727. }
  728. }
  729. }
  730. .table-view {
  731. // width: 580px;
  732. .detail-info-table-header {
  733. .choose-score-info {
  734. background: rgba(0, 186, 151, 0.1);
  735. display: flex;
  736. align-items: center;
  737. height: 32px;
  738. padding: 0 10px;
  739. border-radius: 4px;
  740. .txt {
  741. color: #00ba97;
  742. font-weight: bold;
  743. font-size: 12px;
  744. margin-right: 12px;
  745. }
  746. .close {
  747. color: #00ba97;
  748. font-weight: bold;
  749. cursor: pointer;
  750. font-size: 16px;
  751. margin-bottom: 2px;
  752. }
  753. }
  754. }
  755. .marker-name {
  756. border-bottom: $OnePixelLine;
  757. }
  758. .detail-info-label {
  759. .detail-info-label-num {
  760. min-width: 32px;
  761. height: 24px;
  762. line-height: 24px;
  763. background: #00987b;
  764. border-radius: 4px;
  765. }
  766. }
  767. }
  768. }
  769. </style>