|
@@ -1,15 +1,12 @@
|
|
|
<template>
|
|
|
<div
|
|
|
- class="tw-flex tw-gap-4 tw-justify-between tw-items-center header-bg"
|
|
|
- style="z-index: 10000; position: relative; font-size: 16px; height: 40px"
|
|
|
+ class="tw-flex tw-gap-4 tw-justify-between tw-items-center header-container"
|
|
|
v-if="store.setting"
|
|
|
>
|
|
|
<div>
|
|
|
- <a
|
|
|
- style="color: white; text-decoration: underline"
|
|
|
- href="/mark/subject-select"
|
|
|
- >{{ store.setting.subject.name }}</a
|
|
|
- >
|
|
|
+ <a class="tw-text-white tw-underline" href="/mark/subject-select">{{
|
|
|
+ store.setting.subject.name
|
|
|
+ }}</a>
|
|
|
</div>
|
|
|
<div v-if="store.setting.statusValue === 'TRIAL'">试评</div>
|
|
|
<div class="tw-flex tw-gap-1">
|
|
@@ -40,40 +37,40 @@
|
|
|
</li>
|
|
|
<li
|
|
|
:title="`问题卷${store.status.problemCount}\n待仲裁${store.status.arbitrateCount}`"
|
|
|
- style="line-height: 20px"
|
|
|
+ class="line-height-20"
|
|
|
>
|
|
|
- <QuestionCircleOutlined style="font-size: 20px" />
|
|
|
+ <QuestionCircleOutlined class="icon-font-size-20" />
|
|
|
</li>
|
|
|
<li>
|
|
|
进度<span class="highlight-text">{{ progress }}%</span>
|
|
|
</li>
|
|
|
</ul>
|
|
|
<ul class="tw-flex tw-gap-2 tw-mb-0">
|
|
|
- <li @click="upScale" title="放大" style="line-height: 20px">
|
|
|
+ <li @click="upScale" title="放大" class="line-height-20">
|
|
|
<PlusCircleOutlined
|
|
|
- style="font-size: 20px"
|
|
|
+ class="icon-font-size-20"
|
|
|
:style="{
|
|
|
color: greaterThanOneScale ? 'red' : 'white',
|
|
|
}"
|
|
|
/>
|
|
|
</li>
|
|
|
- <li @click="downScale" title="缩小" style="line-height: 20px">
|
|
|
+ <li @click="downScale" title="缩小" class="line-height-20">
|
|
|
<MinusCircleOutlined
|
|
|
- style="font-size: 20px"
|
|
|
+ class="icon-font-size-20"
|
|
|
:style="{
|
|
|
color: lessThanOneScale ? 'red' : 'white',
|
|
|
}"
|
|
|
/>
|
|
|
</li>
|
|
|
- <li @click="normalScale" title="适应" style="line-height: 20px">
|
|
|
- <FullscreenOutlined style="font-size: 20px" />
|
|
|
+ <li @click="normalScale" title="适应" class="line-height-20">
|
|
|
+ <FullscreenOutlined class="icon-font-size-20" />
|
|
|
</li>
|
|
|
</ul>
|
|
|
- <div @click="toggleSettingMode" style="line-height: 20px">
|
|
|
+ <div @click="toggleSettingMode" class="line-height-20">
|
|
|
{{ modeName }} {{ store.setting.forceMode ? "" : "(切换)" }}
|
|
|
</div>
|
|
|
- <div @click="toggleHistory" style="line-height: 20px" title="回看">
|
|
|
- <HistoryOutlined style="font-size: 20px" />
|
|
|
+ <div @click="toggleHistory" class="line-height-20" title="回看">
|
|
|
+ <HistoryOutlined class="icon-font-size-20" />
|
|
|
</div>
|
|
|
<div
|
|
|
class="tw-flex tw-place-items-center"
|
|
@@ -84,16 +81,14 @@
|
|
|
$filters.datetimeFilter(store.setting.startTime)
|
|
|
"
|
|
|
>
|
|
|
- <ClockCircleOutlined style="font-size: 20px; line-height: 20px" />
|
|
|
+ <ClockCircleOutlined class="icon-font-size-20 line-height-20" />
|
|
|
</div>
|
|
|
<div @click="switchGroupDialog">{{ group?.title }}(切换)</div>
|
|
|
<div class="tw-flex tw-place-items-center">
|
|
|
- <UserOutlined style="font-size: 18px; line-height: 18px" />{{
|
|
|
- store.setting.userName
|
|
|
- }}
|
|
|
+ <UserOutlined class="icon-with-text" />{{ store.setting.userName }}
|
|
|
</div>
|
|
|
<div class="tw-flex tw-place-items-center">
|
|
|
- <PoweroffOutlined style="font-size: 18px; line-height: 18px" />退出
|
|
|
+ <PoweroffOutlined class="icon-with-text" />退出
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -231,11 +226,26 @@ export default defineComponent({
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
|
-.header-bg {
|
|
|
+.header-container {
|
|
|
+ z-index: 10000;
|
|
|
+ position: relative;
|
|
|
+ font-size: 16px;
|
|
|
+ height: 40px;
|
|
|
+
|
|
|
background-color: #5d6d7d;
|
|
|
color: white;
|
|
|
}
|
|
|
.highlight-text {
|
|
|
color: #ffe400;
|
|
|
}
|
|
|
+.icon-font-size-20 {
|
|
|
+ font-size: 20px;
|
|
|
+}
|
|
|
+.line-height-20 {
|
|
|
+ line-height: 20px;
|
|
|
+}
|
|
|
+.icon-with-text {
|
|
|
+ font-size: 18px;
|
|
|
+ line-height: 18px;
|
|
|
+}
|
|
|
</style>
|