Commit 17059d3d authored by 黄奎's avatar 黄奎

1

parent 6bff6db5
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
<script> <script>
export default { export default {
name: "App", name: "App",
mounted() { mounted() {
if ( if (
navigator.userAgent.match( navigator.userAgent.match(
...@@ -26,27 +27,34 @@ export default { ...@@ -26,27 +27,34 @@ export default {
<style> <style>
@import url("//at.alicdn.com/t/font_2077629_3u1r9gsz178.css"); @import url("//at.alicdn.com/t/font_2077629_3u1r9gsz178.css");
@font-face { @font-face {
font-family: "din"; font-family: "din";
src: url("./assets/font/DIN-Bold.otf") format("opentype"); src: url("./assets/font/DIN-Bold.otf") format("opentype");
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
} }
.border-radius { .border-radius {
border-radius: 5px; border-radius: 5px;
} }
.din { .din {
font-family: din !important; font-family: din !important;
} }
.q-scrollarea__thumb { .q-scrollarea__thumb {
z-index: 999999 !important; z-index: 999999 !important;
} }
body { body {
/* min-width: 1360px !important; */ /* min-width: 1360px !important; */
} }
header { header {
min-width: 1360px; min-width: 1360px;
} }
html, html,
body, body,
#q-app { #q-app {
...@@ -58,124 +66,156 @@ body, ...@@ -58,124 +66,156 @@ body,
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
color: #3f4254; color: #3f4254;
} }
.q-position-engine { .q-position-engine {
z-index: 9999; z-index: 9999;
} }
.el-date-picker, .el-date-picker,
.time-select { .time-select {
z-index: 999999 !important; z-index: 999999 !important;
} }
.remark-font { .remark-font {
font-size: 12px; font-size: 12px;
font-family: Poppins, Helvetica, sans-serif; font-family: Poppins, Helvetica, sans-serif;
font-weight: 400; font-weight: 400;
color: #b5b5c3 !important; color: #b5b5c3 !important;
} }
.svg-icon.svg-icon-primary g [fill] { .svg-icon.svg-icon-primary g [fill] {
transition: fill 0.3s ease; transition: fill 0.3s ease;
fill: var(--q-color-primary) !important; fill: var(--q-color-primary) !important;
} }
.svg-icon.svg-icon-secondary g [fill] { .svg-icon.svg-icon-secondary g [fill] {
transition: fill 0.3s ease; transition: fill 0.3s ease;
fill: var(--q-color-secondary) !important; fill: var(--q-color-secondary) !important;
} }
.svg-icon.svg-icon-grey g [fill] { .svg-icon.svg-icon-grey g [fill] {
transition: fill 0.3s ease; transition: fill 0.3s ease;
fill: #ccc !important; fill: #ccc !important;
} }
.svg-icon.svg-icon-warning g [fill] { .svg-icon.svg-icon-warning g [fill] {
transition: fill 0.3s ease; transition: fill 0.3s ease;
fill: var(--q-color-warning) !important; fill: var(--q-color-warning) !important;
} }
.svg-icon.svg-icon-negative g [fill] { .svg-icon.svg-icon-negative g [fill] {
transition: fill 0.3s ease; transition: fill 0.3s ease;
fill: var(--q-color-negative) !important; fill: var(--q-color-negative) !important;
} }
.svg-icon.svg-icon-accent g [fill] { .svg-icon.svg-icon-accent g [fill] {
transition: fill 0.3s ease; transition: fill 0.3s ease;
fill: var(--q-color-accent) !important; fill: var(--q-color-accent) !important;
} }
.svg-icon.svg-icon-dark g [fill] { .svg-icon.svg-icon-dark g [fill] {
transition: fill 0.3s ease; transition: fill 0.3s ease;
fill: var(--q-color-dark) !important; fill: var(--q-color-dark) !important;
} }
.svg-icon.svg-icon-orange g [fill] { .svg-icon.svg-icon-orange g [fill] {
transition: fill 0.3s ease; transition: fill 0.3s ease;
fill: rgb(255, 152, 0) !important; fill: rgb(255, 152, 0) !important;
} }
.svg-icon.svg-icon-positive g [fill] { .svg-icon.svg-icon-positive g [fill] {
transition: fill 0.3s ease; transition: fill 0.3s ease;
fill: "#C9F7F5" !important; fill: "#C9F7F5" !important;
} }
.svg-icon.svg-icon-white g [fill] { .svg-icon.svg-icon-white g [fill] {
transition: fill 0.3s ease; transition: fill 0.3s ease;
fill: white !important; fill: white !important;
} }
.svg-icon.svg-icon-g-p g [fill] { .svg-icon.svg-icon-g-p g [fill] {
transition: fill 0.3s ease; transition: fill 0.3s ease;
fill: grey !important; fill: grey !important;
} }
.svg-icon.svg-icon-g-p { .svg-icon.svg-icon-g-p {
cursor: pointer; cursor: pointer;
} }
.svg-icon.svg-icon-g-p:hover g [fill] { .svg-icon.svg-icon-g-p:hover g [fill] {
transition: fill 0.3s ease; transition: fill 0.3s ease;
fill: var(--q-color-primary) !important; fill: var(--q-color-primary) !important;
} }
.svg-icon.svg-icon-b-p g [fill] { .svg-icon.svg-icon-b-p g [fill] {
transition: fill 0.3s ease; transition: fill 0.3s ease;
fill: #000 !important; fill: #000 !important;
} }
.svg-icon.svg-icon-b-p { .svg-icon.svg-icon-b-p {
cursor: pointer; cursor: pointer;
} }
.svg-icon.svg-icon-b-p:hover g [fill] { .svg-icon.svg-icon-b-p:hover g [fill] {
transition: fill 0.3s ease; transition: fill 0.3s ease;
fill: var(--q-color-primary) !important; fill: var(--q-color-primary) !important;
} }
.hover-primary:hover .svg-icon g [fill] { .hover-primary:hover .svg-icon g [fill] {
transition: fill 0.3s ease; transition: fill 0.3s ease;
fill: white !important; fill: white !important;
} }
.hover-primary:hover .q-avatar { .hover-primary:hover .q-avatar {
background-color: var(--q-color-primary) !important; background-color: var(--q-color-primary) !important;
} }
.hover-primary:hover { .hover-primary:hover {
color: var(--q-color-primary) !important; color: var(--q-color-primary) !important;
} }
.hover-d-p { .hover-d-p {
cursor: pointer; cursor: pointer;
color: var(--q-color-dark) !important; color: var(--q-color-dark) !important;
} }
.hover-d-p .svg-icon g [fill] { .hover-d-p .svg-icon g [fill] {
transition: fill 0.3s ease; transition: fill 0.3s ease;
fill: var(--q-color-dark) !important; fill: var(--q-color-dark) !important;
} }
.hover-d-p:hover { .hover-d-p:hover {
color: var(--q-color-primary) !important; color: var(--q-color-primary) !important;
} }
.hover-d-p:hover .svg-icon g [fill] { .hover-d-p:hover .svg-icon g [fill] {
transition: fill 0.3s ease; transition: fill 0.3s ease;
fill: var(--q-color-primary) !important; fill: var(--q-color-primary) !important;
} }
.hover-g-p { .hover-g-p {
cursor: pointer; cursor: pointer;
color: #ccc !important; color: #ccc !important;
} }
.hover-g-p .svg-icon g [fill] { .hover-g-p .svg-icon g [fill] {
transition: fill 0.3s ease; transition: fill 0.3s ease;
fill: #ccc !important; fill: #ccc !important;
} }
.hover-g-p:hover { .hover-g-p:hover {
color: var(--q-color-primary) !important; color: var(--q-color-primary) !important;
} }
.hover-g-p:hover .svg-icon g [fill] { .hover-g-p:hover .svg-icon g [fill] {
transition: fill 0.3s ease; transition: fill 0.3s ease;
fill: var(--q-color-primary) !important; fill: var(--q-color-primary) !important;
} }
.text-muted { .text-muted {
color: #b5b5c3 !important; color: #b5b5c3 !important;
} }
.page-body { .page-body {
border-radius: 8px; border-radius: 8px;
background: #fff; background: #fff;
...@@ -214,10 +254,12 @@ body, ...@@ -214,10 +254,12 @@ body,
.micfont { .micfont {
font-family: perfectFont !important; font-family: perfectFont !important;
} }
.fixed-right, .fixed-right,
.absolute-right { .absolute-right {
overflow: unset; overflow: unset;
} }
.dialog-out-close { .dialog-out-close {
background: var(--q-color-primary); background: var(--q-color-primary);
position: absolute !important; position: absolute !important;
...@@ -232,56 +274,71 @@ body, ...@@ -232,56 +274,71 @@ body,
border-bottom-left-radius: 4px !important; border-bottom-left-radius: 4px !important;
cursor: pointer; cursor: pointer;
} }
.q-dialog__backdrop { .q-dialog__backdrop {
background: rgba(0, 0, 0, 0.1); background: rgba(0, 0, 0, 0.1);
} }
/***************************************************** Begin 重写ElementUI 抽屉效果 ***************************************************************/ /***************************************************** Begin 重写ElementUI 抽屉效果 ***************************************************************/
.el-drawer__wrapper { .el-drawer__wrapper {
top: 61px !important; top: 61px !important;
} }
.v-modal { .v-modal {
display: none !important; display: none !important;
} }
.el-drawer__wrapper .drawerTop { .el-drawer__wrapper .drawerTop {
background: none !important; background: none !important;
border-bottom: 1px solid #f5f5f5; border-bottom: 1px solid #f5f5f5;
} }
.el-drawer__wrapper .drawerTop .drawer_Span { .el-drawer__wrapper .drawerTop .drawer_Span {
font-size: 18px !important; font-size: 18px !important;
font-weight: 500 !important; font-weight: 500 !important;
font-family: perfectFont !important; font-family: perfectFont !important;
} }
.el-drawer__wrapper .drawerTop .icon-guanbi { .el-drawer__wrapper .drawerTop .icon-guanbi {
display: none !important; display: none !important;
} }
.el-tabs__item.is-active { .el-tabs__item.is-active {
color: var(--q-color-primary) !important; color: var(--q-color-primary) !important;
} }
.el-tabs__active-bar { .el-tabs__active-bar {
background-color: var(--q-color-primary) !important; background-color: var(--q-color-primary) !important;
} }
.page-body { .page-body {
padding: 15px !important; padding: 15px !important;
min-height: calc(100% - 30px); min-height: calc(100% - 30px);
margin: 15px !important; margin: 15px !important;
} }
.q-table__top { .q-table__top {
padding: 0 0 12px 0px !important; padding: 0 0 12px 0px !important;
} }
.q-btn__wrapper .row, .q-btn__wrapper .row,
.q-btn__wrapper .column, .q-btn__wrapper .column,
.q-btn__wrapper .flex { .q-btn__wrapper .flex {
flex-wrap: nowrap !important; flex-wrap: nowrap !important;
} }
.q-toolbar__title { .q-toolbar__title {
flex: unset !important; flex: unset !important;
} }
button.bg-accent { button.bg-accent {
background: linear-gradient(90deg, #37adf7, #2961fe) !important; background: linear-gradient(90deg, #37adf7, #2961fe) !important;
} }
button.bg-accent:active { button.bg-accent:active {
background: linear-gradient(270deg, #37adf7, #2961fe) !important; background: linear-gradient(270deg, #37adf7, #2961fe) !important;
} }
/*.q-avatar__content{ /*.q-avatar__content{
font-family: perfectFont !important; font-family: perfectFont !important;
font-size: 14px !important; font-size: 14px !important;
...@@ -309,16 +366,20 @@ button.bg-accent:active { ...@@ -309,16 +366,20 @@ button.bg-accent:active {
min-height: 32px !important; min-height: 32px !important;
border-radius: 4px !important; border-radius: 4px !important;
} }
.left-menu-box a.q-item.q-router-link--active, .left-menu-box a.q-item.q-router-link--active,
.left-menu-box .q-item--active { .left-menu-box .q-item--active {
background: #ecf1ff !important; background: #ecf1ff !important;
color: var(--q-color-primary) !important; color: var(--q-color-primary) !important;
} }
.big-dialog .q-dialog__inner--minimized > div {
.big-dialog .q-dialog__inner--minimized>div {
max-width: unset !important; max-width: unset !important;
} }
.f12 { .f12 {
font-size: 12px; font-size: 12px;
} }
/***************************************************** End 重写ElementUI 抽屉效果 ***************************************************************/ /***************************************************** End 重写ElementUI 抽屉效果 ***************************************************************/
</style> </style>
...@@ -325,4 +325,3 @@ export function downLoadBank(data) { ...@@ -325,4 +325,3 @@ export function downLoadBank(data) {
data data
}) })
} }
\ No newline at end of file
<style> <style>
.page-content p { .page-content p {
margin: 0 !important; margin: 0 !important;
} }
.quetion_Title { .quetion_Title {
background: transparent !important; background: transparent !important;
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
width: 400px; width: 400px;
} }
</style> </style>
<template> <template>
<div class="page-body"> <div class="page-body">
...@@ -74,16 +73,16 @@ ...@@ -74,16 +73,16 @@
</div> </div>
</template> </template>
<script> <script>
import { import {
queryQuestionBankPage, queryQuestionBankPage,
RemoveQuestionBank, RemoveQuestionBank,
downLoadBank downLoadBank
} from '../../api/question/question'; } from '../../api/question/question';
import { import {
EduDownLoad EduDownLoad
} from "../../api/common/common"; } from "../../api/common/common";
import questionbankForm from '../../components/question/questionbank-form'; import questionbankForm from '../../components/question/questionbank-form';
export default { export default {
meta: { meta: {
title: "题库管理" title: "题库管理"
}, },
...@@ -147,7 +146,7 @@ ...@@ -147,7 +146,7 @@
data: [], data: [],
} }
}, },
created() {}, created() { },
mounted() { mounted() {
this.getQuestionBankPage(); this.getQuestionBankPage();
}, },
...@@ -161,7 +160,7 @@ ...@@ -161,7 +160,7 @@
downLoadBank(msg).then(res => { downLoadBank(msg).then(res => {
this.loading = false; this.loading = false;
if (res.Code == 1) { if (res.Code == 1) {
let cApiUrl = process.env.API.replace('/api','') + res.Data; let cApiUrl = process.env.API.replace('/api', '') + res.Data;
let link = document.createElement('a'); let link = document.createElement('a');
link.href = cApiUrl; link.href = cApiUrl;
...@@ -245,7 +244,7 @@ ...@@ -245,7 +244,7 @@
}); });
} }
} }
} }
</script> </script>
<style lang="sass"> <style lang="sass">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment