实验台等

dev_202207
yujialong 3 years ago
parent eab1e7457a
commit 740778c1ce
  1. 8
      src/layouts/navbar/index.vue
  2. 21
      src/pages/course/details/index.vue
  3. 1
      src/pages/station/list/index.vue
  4. 8
      src/pages/station/preview/index.vue
  5. 3
      src/setting.js

@ -3,7 +3,7 @@
<ul class="nav"> <ul class="nav">
<li v-for="(item, i) in menus" :key="i" :class="{active: active == item.index}" @click="jump(item)"> <li v-for="(item, i) in menus" :key="i" :class="{active: active == item.index}" @click="jump(item)">
{{item.title}} {{item.title}}
<ul :class="['children', {show: $route.path !== '/info/details' && active === '/info/list'}]" v-if="item.index === '/info/list'"> <ul :class="['children']" v-if="item.index === '/info/list'">
<li v-for="(column, i) in columns" :key="i" :class="{active: columnActive === column.id}" @click="toInfo($event, column)">{{ column.name }}</li> <li v-for="(column, i) in columns" :key="i" :class="{active: columnActive === column.id}" @click="toInfo($event, column)">{{ column.name }}</li>
</ul> </ul>
</li> </li>
@ -119,6 +119,7 @@ export default {
toInfo(e, column) { toInfo(e, column) {
e.stopPropagation() e.stopPropagation()
const { id } = column const { id } = column
this.active = '/info/list'
this.columnActive = id this.columnActive = id
this.$router.push(`/info?parentId=${id}&name=${column.name}`) this.$router.push(`/info?parentId=${id}&name=${column.name}`)
} }
@ -147,6 +148,11 @@ export default {
color: $main-color; color: $main-color;
border-bottom-color: $main-color; border-bottom-color: $main-color;
} }
&:hover {
.children {
display: flex;
}
}
} }
.children { .children {
position: absolute; position: absolute;

@ -43,8 +43,8 @@
<div class="desc-wrap"> <div class="desc-wrap">
<div class="desc" :class="{active: desShrink}" v-html="description"></div> <div class="desc" :class="{active: desShrink}" v-html="description"></div>
<i class="arrow" :class="{active: desShrink}" v-if="description && description.length > 40"> <i class="arrow" :class="{active: desShrink}" v-if="description && description.length > 40">
<span>...</span> <!-- <span>...</span> -->
<img src="@/assets/img/arrow-down.png" alt="" @click="desShrink = !desShrink"> <i class="el-icon-arrow-down" @click="desShrink = !desShrink"></i>
</i> </i>
</div> </div>
<div class="chapters"> <div class="chapters">
@ -313,6 +313,7 @@ $height: 700px;
} }
.desc-wrap{ .desc-wrap{
position: relative; position: relative;
width: 250px;
.desc{ .desc{
font-size: 14px; font-size: 14px;
color: #fff; color: #fff;
@ -326,24 +327,24 @@ $height: 700px;
.arrow{ .arrow{
position: absolute; position: absolute;
bottom: 2px; bottom: 2px;
right: 0; right: -30px;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
width: 46px; width: 30px;
background-color: #fff; background-color: #252528;
span{ span{
font-size: 14px; font-size: 14px;
color: rgba(0, 0, 0, 0.65); color: #fff;
} }
img{ i{
width: 16px; color: #fff;
cursor: pointer; cursor: pointer;
} }
&.active{ &.active{
span{ span{
opacity: 0; opacity: 0;
} }
img{ i{
transform: rotate(180deg); transform: rotate(180deg);
} }
} }

@ -33,6 +33,7 @@
</template> </template>
<script> <script>
import axios from 'axios'
export default { export default {
data() { data() {
return { return {

@ -85,7 +85,7 @@
</div> </div>
<el-dialog title="请选择项目" :visible.sync="projectVisible" width="828px" custom-class="project-dia" :close-on-click-modal="false"> <el-dialog title="请选择项目" v-loading="loading" :visible.sync="projectVisible" width="828px" custom-class="project-dia" :close-on-click-modal="false">
<ul class="projects"> <ul class="projects">
<li v-for="(item, i) in projects" :key="i" :class="{active: curProject == item.projectId}" @click="selectProject(item)"> <li v-for="(item, i) in projects" :key="i" :class="{active: curProject == item.projectId}" @click="selectProject(item)">
<img src="@/assets/img/project.png" alt=""> <img src="@/assets/img/project.png" alt="">
@ -356,11 +356,12 @@ export default {
util.cookies.set('courseId', this.courseId) util.cookies.set('courseId', this.courseId)
util.cookies.set('curriculumName', escape(this.curriculumName)) util.cookies.set('curriculumName', escape(this.curriculumName))
util.cookies.set('systemId', id) util.cookies.set('systemId', id)
util.cookies.set('fromManager', '', -1)
// 8pythoncookiesystemId // 8pythoncookiesystemId
location.href = process.env.NODE_ENV === 'development' ? location.href = process.env.NODE_ENV === 'development' ?
`http://${location.hostname}:8085/#/` : `http://${location.hostname}:8085/#/` :
Setting.isPro ? Setting.isPro ?
'https://www.occupationlab.com/pyTrials' : `https://${location.hostname}/pyTrials` :
`${location.origin}/pyTrials` `${location.origin}/pyTrials`
}, },
// //
@ -632,10 +633,9 @@ $height: 700px;
overflow: auto; overflow: auto;
li { li {
display: inline-flex; display: inline-flex;
justify-content: center;
align-items: center; align-items: center;
width: 238px; width: 238px;
padding: 16px 0; padding: 16px;
margin: 0 20px 20px 0; margin: 0 20px 20px 0;
background-color: #F6F8FA; background-color: #F6F8FA;
border-radius: 16px; border-radius: 16px;

@ -20,7 +20,8 @@ if (isPro) {
} else if (isDev) { } else if (isDev) {
// 本地 // 本地
systemPath = `http://${location.hostname}:8093` systemPath = `http://${location.hostname}:8093`
host = "http://121.37.12.51/"; // 中台测试服 host = "http://121.37.12.51/"; // 测试服
// host = 'https://www.occupationlab.com/' // 正式服
// host = "http://192.168.31.151:9000/"; // 榕 // host = "http://192.168.31.151:9000/"; // 榕
// host = "http://192.168.31.137:9000/"; // 赓 // host = "http://192.168.31.137:9000/"; // 赓
} }

Loading…
Cancel
Save