|
@@ -10,7 +10,7 @@
|
|
|
@click="handleSelect"
|
|
|
/>
|
|
|
<span class="logo-img" v-else>logo</span>
|
|
|
- <ul class="logo-projectlist">
|
|
|
+ <ul class="logo-projectlist" v-if="!projectShow">
|
|
|
<li
|
|
|
v-for="(itemI, indexI) in projectList"
|
|
|
:key="indexI"
|
|
@@ -22,6 +22,52 @@
|
|
|
</ul>
|
|
|
</div>
|
|
|
<div class="userName">
|
|
|
+ <template v-if="projectShow">
|
|
|
+ <el-popover
|
|
|
+ placement="bottom"
|
|
|
+ width="335"
|
|
|
+ trigger="click"
|
|
|
+ v-model="visible"
|
|
|
+ >
|
|
|
+ <div class="set_corpus_dv">
|
|
|
+ <span>选择难度</span>
|
|
|
+ <el-select
|
|
|
+ style="width: 205px"
|
|
|
+ v-model="corpus.difficlty"
|
|
|
+ placeholder="请选择"
|
|
|
+ >
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ <div class="set_corpus_dv">
|
|
|
+ <span>选择范围</span>
|
|
|
+ <el-select
|
|
|
+ style="width: 205px"
|
|
|
+ v-model="corpus.scope"
|
|
|
+ placeholder="请选择"
|
|
|
+ >
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ <div class="set_corpus_dv">
|
|
|
+ <span>句子长度</span>
|
|
|
+ <el-input
|
|
|
+ v-model="corpus.sentenceStart"
|
|
|
+ style="width: 55px; margin-right: 8px"
|
|
|
+ ></el-input>
|
|
|
+ ——
|
|
|
+ <el-input
|
|
|
+ v-model="corpus.sentenceEnd"
|
|
|
+ style="width: 55px; margin-left: 8px"
|
|
|
+ ></el-input>
|
|
|
+ </div>
|
|
|
+ <div class="set_corpus_submit">
|
|
|
+ <div @click="visible = false">取消</div>
|
|
|
+ <div>确认</div>
|
|
|
+ </div>
|
|
|
+ <div slot="reference" class="set_corpus">
|
|
|
+ 设置
|
|
|
+ </div>
|
|
|
+ </el-popover>
|
|
|
+ </template>
|
|
|
<template>
|
|
|
<el-dropdown
|
|
|
style="margin-right: 16px; cursor: pointer"
|
|
@@ -101,9 +147,16 @@ import { updateWordPack } from "@/utils/i18n";
|
|
|
|
|
|
export default {
|
|
|
name: "LayoutHeader",
|
|
|
- props: [],
|
|
|
+ props: ["projectShow"],
|
|
|
data() {
|
|
|
return {
|
|
|
+ visible: false,
|
|
|
+ corpus: {
|
|
|
+ difficlty: null,
|
|
|
+ scope: null,
|
|
|
+ sentenceStart: null,
|
|
|
+ sentenceEnd: null,
|
|
|
+ },
|
|
|
activeIndex: "2", // 主导航索引
|
|
|
LoginNavIndex: 0, //下拉框导航索引
|
|
|
projectName: "教研中心",
|
|
@@ -382,6 +435,20 @@ export default {
|
|
|
display: flex;
|
|
|
justify-content: flex-end;
|
|
|
align-items: center;
|
|
|
+
|
|
|
+ .set_corpus {
|
|
|
+ width: 48px;
|
|
|
+ height: 35px;
|
|
|
+ background: #ebebeb;
|
|
|
+ border-radius: 8px;
|
|
|
+ font-weight: 400;
|
|
|
+ font-size: 16px;
|
|
|
+ line-height: 35px;
|
|
|
+ text-align: center;
|
|
|
+ color: #000000;
|
|
|
+ cursor: pointer;
|
|
|
+ margin-right: 24px;
|
|
|
+ }
|
|
|
.seek {
|
|
|
margin-right: 100px;
|
|
|
position: relative;
|
|
@@ -514,6 +581,41 @@ export default {
|
|
|
color: white;
|
|
|
}
|
|
|
}
|
|
|
+.set_corpus_dv {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ margin-bottom: 24px;
|
|
|
+ > span {
|
|
|
+ font-weight: 400;
|
|
|
+ font-size: 16px;
|
|
|
+ line-height: 19px;
|
|
|
+ color: #000000;
|
|
|
+ margin-right: 18px;
|
|
|
+ }
|
|
|
+}
|
|
|
+.set_corpus_submit {
|
|
|
+ margin-top: 32px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: flex-end;
|
|
|
+ div {
|
|
|
+ width: 44px;
|
|
|
+ height: 32px;
|
|
|
+ border-radius: 4px;
|
|
|
+ font-weight: 400;
|
|
|
+ font-size: 14px;
|
|
|
+ line-height: 32px;
|
|
|
+ text-align: center;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ > :nth-child(2) {
|
|
|
+ color: #ffffff;
|
|
|
+ background: #4992ff;
|
|
|
+ }
|
|
|
+ > :nth-child(1) {
|
|
|
+ color: #000000;
|
|
|
+ margin-right: 8px;
|
|
|
+ }
|
|
|
+}
|
|
|
.projectList {
|
|
|
&.el-dropdown-menu__item {
|
|
|
line-height: 40px;
|