进入python系统传systemIds,日志优化

dev_2020-03-03
yujialong 3 years ago
parent a63ecffe5a
commit 0b42c942a4
  1. BIN
      src/assets/img/update.png
  2. 3
      src/pages/ass/list/index.vue
  3. 7
      src/pages/log/list/index.vue
  4. 5
      src/pages/station/preview/index.vue
  5. 4
      src/setting.js

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

@ -442,7 +442,6 @@ export default {
this.invitationCode = ""; this.invitationCode = "";
}, },
goSubSystem() { goSubSystem() {
let host = this.host
let token = util.local.get(Setting.tokenKey) let token = util.local.get(Setting.tokenKey)
const classId = this.classId const classId = this.classId
const classItem = this.classList.find(e => e.id == classId) const classItem = this.classList.find(e => e.id == classId)
@ -453,13 +452,13 @@ export default {
util.cookies.set("className", classItem ? encodeURI(classItem.className) : '') util.cookies.set("className", classItem ? encodeURI(classItem.className) : '')
util.cookies.set("projectId", this.projectId) util.cookies.set("projectId", this.projectId)
util.cookies.set("courseId", this.cid) util.cookies.set("courseId", this.cid)
util.cookies.set("curriculumName", escape(this.curRow.sysName));
util.cookies.set("startTime", this.curRow.startTime) util.cookies.set("startTime", this.curRow.startTime)
util.cookies.set("stopTime", this.curRow.stopTime) util.cookies.set("stopTime", this.curRow.stopTime)
util.cookies.set("systemId", curriculumId); util.cookies.set("systemId", curriculumId);
let href = '' let href = ''
if (curriculumId == 11){ if (curriculumId == 11){
href = `${Setting.systemPath}/#/index/list?token=${token}&cid=${this.cid}&systemId=${this.systemId}&projectId=${this.projectId}&assessmentId=${this.assessmentId}&classId=${this.classId}&stopTime=${this.stopTime}`; href = `${Setting.systemPath}/#/index/list?token=${token}&cid=${this.cid}&systemId=${this.systemId}&projectId=${this.projectId}&assessmentId=${this.assessmentId}&classId=${this.classId}&stopTime=${this.stopTime}`;
} else { } else {
if(process.env.NODE_ENV === 'development') { if(process.env.NODE_ENV === 'development') {
href = 'http://192.168.31.125:8080/#/' href = 'http://192.168.31.125:8080/#/'

@ -1,7 +1,7 @@
<template> <template>
<div class="wrap"> <div class="wrap">
<div class="top"> <div class="top">
<h1>最近更新</h1> <img width="450" src="@/assets/img/update.png" alt="">
<p>给用户带来更好的服务与体验是我们不断优化和迭代产品的动力</p> <p>给用户带来更好的服务与体验是我们不断优化和迭代产品的动力</p>
</div> </div>
<div class="timeline"> <div class="timeline">
@ -77,9 +77,8 @@ export default {
.top { .top {
margin-bottom: 100px; margin-bottom: 100px;
text-align: center; text-align: center;
h1 { img {
font-size: 28px; margin: 30px 0;
color: #fff;
} }
p { p {
color: #e9e9e9; color: #e9e9e9;

@ -95,6 +95,7 @@ export default {
components: { pdf, breadcrumb }, components: { pdf, breadcrumb },
data() { data() {
return { return {
systemIds: '',
courseId: this.$route.query.courseId, courseId: this.$route.query.courseId,
curriculumName: this.$route.query.curriculumName, curriculumName: this.$route.query.curriculumName,
video: "http://liuwanr.oss-cn-shenzhen.aliyuncs.com/mp4/20200519/1589871025648.mp4", video: "http://liuwanr.oss-cn-shenzhen.aliyuncs.com/mp4/20200519/1589871025648.mp4",
@ -148,6 +149,7 @@ export default {
this.briefIntroduction = data.briefIntroduction; this.briefIntroduction = data.briefIntroduction;
this.teachingObjectives = data.teachingObjectives; this.teachingObjectives = data.teachingObjectives;
this.assessmentList = data.assessmentConfig; this.assessmentList = data.assessmentConfig;
this.systemIds = data.systemIds
}, },
async getChapter() { async getChapter() {
let res = await this.$get(`${this.api.curriculumChapter}/${this.courseId}`); let res = await this.$get(`${this.api.curriculumChapter}/${this.courseId}`);
@ -277,7 +279,7 @@ export default {
this.currentPage = 1; this.currentPage = 1;
}, },
goSystem() { // goSystem() { //
let id = this.assessmentList[0].systemId; const id = this.systemIds
let href = '' let href = ''
let token = util.local.get(Setting.tokenKey); let token = util.local.get(Setting.tokenKey);
let roleId = this.roleId == 4 ? 0 : 1; let roleId = this.roleId == 4 ? 0 : 1;
@ -303,6 +305,7 @@ export default {
util.cookies.set("stopTime", "", -1); util.cookies.set("stopTime", "", -1);
util.cookies.set("token", token); util.cookies.set("token", token);
util.cookies.set("courseId", this.courseId); util.cookies.set("courseId", this.courseId);
util.cookies.set("curriculumName", escape(this.curriculumName));
util.cookies.set("systemId", id); util.cookies.set("systemId", id);
location.href = href; location.href = href;
} }

@ -38,10 +38,10 @@ if (isHh) {
} else if (isDev) { } else if (isDev) {
// 本地 // 本地
// host = "http://www.occupationlab.com:9000/";//线上 // host = "http://www.occupationlab.com:9000/";//线上
host = "http://39.108.250.202:9000/"; // 中台测试服 // host = "http://39.108.250.202:9000/"; // 中台测试服
systemPath = `http://192.168.31.125:8093` systemPath = `http://192.168.31.125:8093`
// host = "http://192.168.31.137:9000"; // 赓 // host = "http://192.168.31.137:9000"; // 赓
// host = "http://192.168.31.151:9000/"; // 榕 host = "http://192.168.31.151:9000/"; // 榕
title = "职站"; title = "职站";
} else { } else {
console.log("其它版本"); console.log("其它版本");

Loading…
Cancel
Save