chengdu
yujialong 4 years ago
parent 948e371bf0
commit e275f44524
  1. 5
      src/components/common/Studentcommon/FictitiousList.vue
  2. 4
      src/components/common/Studentcommon/TeachingList.vue
  3. 4
      src/components/common/Studentcommon/competitionList.vue
  4. 3
      src/components/page/Assessment.vue
  5. 4
      src/components/page/Dashboard.vue
  6. 4
      src/components/page/Project.vue
  7. 2
      src/components/page/ProjectIntro.vue
  8. 11
      src/components/page/ProjectPattern.vue
  9. 4
      src/store/index.js

@ -33,6 +33,7 @@
export default { export default {
data() { data() {
return { return {
pattern: Number(this.$store.state.pattern),
totals: 0, totals: 0,
tableData: [], tableData: [],
userId: this.$store.state.userId, userId: this.$store.state.userId,
@ -41,6 +42,7 @@ export default {
}; };
}, },
created() { created() {
console.log(11,this.$route)
this.getData(); this.getData();
}, },
methods: { methods: {
@ -61,7 +63,8 @@ export default {
page: this.pageNo, page: this.pageNo,
size: this.pageSize, size: this.pageSize,
source: 0, source: 0,
systemId: 3 systemId: 3,
pattern: this.pattern
}) })
.then(res => { .then(res => {
let data = res.data let data = res.data

@ -45,6 +45,7 @@
export default { export default {
data() { data() {
return { return {
pattern: Number(this.$store.state.pattern),
totals: 0, totals: 0,
tableData: [], tableData: [],
userId: this.$store.state.userId, userId: this.$store.state.userId,
@ -91,7 +92,8 @@ export default {
size: this.pageSize, size: this.pageSize,
searchContent: this.core.encodeString(this.searchContent), searchContent: this.core.encodeString(this.searchContent),
source: 2, source: 2,
systemId: 3 systemId: 3,
pattern: this.pattern
}) })
.then(res => { .then(res => {
let data = res.data let data = res.data

@ -35,6 +35,7 @@
export default { export default {
data() { data() {
return { return {
pattern: Number(this.$store.state.pattern),
totals: 0, totals: 0,
tableData: [], tableData: [],
userId: this.$store.state.userId, userId: this.$store.state.userId,
@ -63,7 +64,8 @@ export default {
page: this.pageNo, page: this.pageNo,
size: this.pageSize, size: this.pageSize,
source: 1, source: 1,
systemId: 3 systemId: 3,
pattern: this.pattern
}) })
.then(res => { .then(res => {
let data = res.data let data = res.data

@ -98,6 +98,7 @@ export default {
name: 'project', name: 'project',
data() { data() {
return { return {
pattern: Number(this.$store.state.pattern),
userId: this.$store.state.userId, userId: this.$store.state.userId,
roleId: this.$store.state.accountRole, roleId: this.$store.state.accountRole,
name: sessionStorage.getItem('ms_username'), name: sessionStorage.getItem('ms_username'),
@ -145,6 +146,7 @@ export default {
} }
}, },
mounted() { mounted() {
console.log(22,this.pattern)
this.getClass() this.getClass()
this.getData() this.getData()
this.timer = setInterval(this.getData,1000) this.timer = setInterval(this.getData,1000)
@ -165,6 +167,7 @@ export default {
status: this.form.status, status: this.form.status,
pageNum: 1, pageNum: 1,
pageSize: 10000, pageSize: 10000,
pattern: this.pattern
} }
this.$post(this.api.stuAssessmentByScreen,data).then(res => { this.$post(this.api.stuAssessmentByScreen,data).then(res => {
let list = res.list.list let list = res.list.list

@ -151,7 +151,7 @@ export default {
} }
}, },
mounted() { mounted() {
this.getClass() // this.getClass()
this.addDefault() this.addDefault()
this.$once('hook:beforeDestroy', function () { this.$once('hook:beforeDestroy', function () {
clearInterval(this.timer) clearInterval(this.timer)
@ -200,7 +200,7 @@ export default {
if(hash == this.routeName){ if(hash == this.routeName){
location.hash = `${hash}#0` location.hash = `${hash}#0`
}else{ }else{
let index = hash.replace(`${this.routeName}#`,'') let index = hash.replace(`${this.routeName}#`,'').replace(/\?pattern=\d/,'')
this.activeName = this.tabNameList[index] this.activeName = this.tabNameList[index]
if(index == 3 && !isIndex){ if(index == 3 && !isIndex){

@ -106,6 +106,7 @@ export default {
name: 'project', name: 'project',
data() { data() {
return { return {
pattern: Number(this.$store.state.pattern),
userId: this.$store.state.userId, userId: this.$store.state.userId,
schoolId: this.$store.state.schoolId, schoolId: this.$store.state.schoolId,
name: sessionStorage.getItem('ms_username'), name: sessionStorage.getItem('ms_username'),
@ -210,7 +211,8 @@ export default {
page: this.pageNo, page: this.pageNo,
size: this.pageSize, size: this.pageSize,
rowId: '', rowId: '',
projectId: '' projectId: '',
pattern: this.pattern
} }
this.$get(this.api.userRecord,data).then(res => { this.$get(this.api.userRecord,data).then(res => {

@ -46,7 +46,7 @@ export default {
this.$router.push('dashboard#1') this.$router.push('dashboard#1')
}, },
toNext(index) { toNext(index) {
this.$router.push(`ProjectPattern?type=${index}`) this.$router.push(`ProjectPattern?pattern=${index}`)
}, },
}, },
}; };

@ -2,25 +2,25 @@
<div class="wrap"> <div class="wrap">
<div class="content_one"> <div class="content_one">
<div class="content_one_title"> <div class="content_one_title">
{{projectList[patternId].title}} {{projectList[pattern].title}}
</div> </div>
<div class="content_one_text"> <div class="content_one_text">
<div class="principle_wrap"> <div class="principle_wrap">
<div class="one_title">实验原理</div> <div class="one_title">实验原理</div>
<div class="one_text"> <div class="one_text">
{{projectList[patternId].principle}} {{projectList[pattern].principle}}
</div> </div>
</div> </div>
<div class="step_wrap"> <div class="step_wrap">
<div class="one_title">实验步骤</div> <div class="one_title">实验步骤</div>
<div class="one_text"> <div class="one_text">
{{projectList[patternId].step}} {{projectList[pattern].step}}
</div> </div>
</div> </div>
<div class="prepare_wrap"> <div class="prepare_wrap">
<div class="one_title">实验准备</div> <div class="one_title">实验准备</div>
<div class="one_text"> <div class="one_text">
{{projectList[patternId].prepare}} {{projectList[pattern].prepare}}
</div> </div>
</div> </div>
</div> </div>
@ -46,7 +46,7 @@
export default { export default {
data() { data() {
return { return {
patternId:1, pattern: this.$route.query.pattern,
projectList:[{ projectList:[{
title:'期权套期保值实验', title:'期权套期保值实验',
principle:'本实验根据《期货、期权及其它衍生品》等理论课程的大纲要求,将期权基础知识考核、期权实战规则、模拟开户和期权策略设计等内容融会贯通于十个步骤,考察学生利用期权策略减少价格波动对企业经营影响的能力。', principle:'本实验根据《期货、期权及其它衍生品》等理论课程的大纲要求,将期权基础知识考核、期权实战规则、模拟开户和期权策略设计等内容融会贯通于十个步骤,考察学生利用期权策略减少价格波动对企业经营影响的能力。',
@ -66,6 +66,7 @@ export default {
}, },
methods: { methods: {
toNext(index) { toNext(index) {
this.$store.commit("patternData",{pattern: this.pattern});
this.$router.push(`dashboard#${index}`) this.$router.push(`dashboard#${index}`)
}, },
}, },

@ -29,6 +29,7 @@ const store = new Vuex.Store({
studentId: '', studentId: '',
answerHistory: [], answerHistory: [],
dataTime: '', dataTime: '',
pattern: 0
}, },
mutations:{ mutations:{
courseIdData(state,payload){ courseIdData(state,payload){
@ -92,6 +93,9 @@ const store = new Vuex.Store({
answerHistoryData (state, payload) { answerHistoryData (state, payload) {
state.answerHistory = payload.answerHistory state.answerHistory = payload.answerHistory
}, },
patternData (state, payload) {
state.pattern = payload.pattern
},
} }
}); });

Loading…
Cancel
Save