index.vue 22 KB

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