提交 9b083a3f authored 作者: lihuihui's avatar lihuihui

样式修改添加教学评估

上级 7606ee87
......@@ -4,7 +4,7 @@
<img class="logo" src="@/assets/images/logo-header.png" alt="logo" />
<div class="text-title" @click="setStatus">{{ $t('components.learnSysLayout.navigation.title') }}</div>
</div>
<s-language></s-language>
<!-- <s-language></s-language> -->
<div class="notify" @click="goNotify()">{{ $t('components.learnSysLayout.navigation.tip') }}
<div class="num" v-if="num">{{num}}</div>
</div>
......@@ -12,11 +12,11 @@
</template>
<script>
import sLanguage from '@/components/languageSwitch/index.vue'
// import sLanguage from '@/components/languageSwitch/index.vue'
// import cAction from '@action'
export default {
components: { sLanguage },
components: {},
data () {
return {
num: 0
......
......@@ -86,11 +86,11 @@ export default {
{ name: this.$t('components.learnSysLayout.sideBar.header2Child1'), index: '2-1' }
]
},
{
name: this.$t('components.learnSysLayout.sideBar.header3'),
iconClass: 'el-icon-self-fankuiyijian',
index: '4'
},
// {
// name: this.$t('components.learnSysLayout.sideBar.header3'),
// iconClass: 'el-icon-self-fankuiyijian',
// index: '4'
// },
{
name: this.$t('components.learnSysLayout.sideBar.header4'),
iconClass: 'el-icon-self-fankuiyijian',
......
......@@ -333,6 +333,9 @@ export default {
width: 350px;
background: #212121;
border-left: 19px solid #1b1b1b;
*{
box-sizing: border-box;
}
/* 箭头 */
.ctrl-arrow {
position: absolute;
......
......@@ -84,7 +84,7 @@
<script>
import qData from './store/data'
import cAction from '@actions'
import cAction from '@action'
import Base64 from 'Base64'
import _ from 'lodash'
......@@ -94,7 +94,7 @@ export default {
cid: { type: String, require: false }
},
data () {
let _headerInfo = JSON.parse(window.localStorage.getItem('headerInfo') || '{}')
const _headerInfo = JSON.parse(window.localStorage.getItem('headerInfo') || '{}')
return {
dataQuestion: _.cloneDeep(qData.question),
headerInfo: _headerInfo,
......@@ -134,9 +134,9 @@ export default {
},
mounted () {
/* 读取本地缓存 */
let quesLocal = window.localStorage.getItem('quesLocal' + this.sid + this.cid)
let quesPage = window.localStorage.getItem('quesPage' + this.sid + this.cid)
let quesSelectId = window.localStorage.getItem('quesSelectId' + this.sid + this.cid)
const quesLocal = window.localStorage.getItem('quesLocal' + this.sid + this.cid)
const quesPage = window.localStorage.getItem('quesPage' + this.sid + this.cid)
const quesSelectId = window.localStorage.getItem('quesSelectId' + this.sid + this.cid)
if (quesLocal) {
qData.question = JSON.parse(quesLocal)
this.curPage = quesPage
......@@ -151,7 +151,7 @@ export default {
/* 提交数据 */
goSubmit () {
for (let i = 0; i < qData.question.length; i++) {
let _item = qData.question[i]
const _item = qData.question[i]
if (_item.type === 3) {
for (let j = 0; j < _item.arr.length; j++) {
if (_item.arr[j].star === 0) {
......@@ -168,12 +168,12 @@ export default {
}
}
const loading = this.$loading({ lock: true, text: '', spinner: '', background: 'rgba(255, 255, 255, 0.9)' })
cAction.chapterAction.updateSurveyAnswer({
cAction.Player.updateSurveyAnswer({
semester_id: this.sid,
course_id: this.cid,
raw: Base64.encode(JSON.stringify(qData.question))
}).then(res => {
let a = 1
const a = 1
if (a) {
this.$message.success('感谢你的宝贵意见。')
/* 答题成功,清空本地缓存 */
......@@ -198,7 +198,7 @@ export default {
loadQuestion () {
this.exam.group = []
for (let i = 0; i < qData.question.length; i++) {
let exp = new RegExp('^\\d+-' + this.curPage, 'gi')
const exp = new RegExp('^\\d+-' + this.curPage, 'gi')
if (exp.test(qData.question[i].id)) {
this.exam.group.push(qData.question[i])
if (qData.question[i].submit) {
......@@ -242,11 +242,11 @@ export default {
* PC端 值会 返回 选择的 值
*/
radioChange (val) {
let i = this.radioCur
let arr = this.exam.group[i].arr
let value = val
const i = this.radioCur
const arr = this.exam.group[i].arr
const value = val
for (let j = 0; j < arr.length; j++) {
arr[j]['selected'] = 0
arr[j].selected = 0
}
arr[value].selected = 1
/* 记录 题目是否 已经选过 */
......@@ -262,11 +262,11 @@ export default {
* checkbox选择
*/
checkboxChange (val) {
let i = this.checkboxCur
let arr = this.exam.group[i].arr
let value = val
const i = this.checkboxCur
const arr = this.exam.group[i].arr
const value = val
for (let j = 0; j < arr.length; j++) {
arr[j]['selected'] = 0
arr[j].selected = 0
}
for (let j = 0; j < value.length; j++) {
arr[value[j]].selected = 1
......
......@@ -175,12 +175,12 @@ export default [
}
]
},
// {
// path: '/survey/:sid/:cid',
// name: 'survey',
// component: () => import('../../components/survey/survey.vue'),
// props: true
// },
{
path: '/survey/:sid/:cid',
name: 'survey',
component: () => import('@/pages/survey/survey.vue'),
props: true
},
// /* survey 内未找到页面时 - 指向 */
// { path: '/survey/*', redirect: '/learn-error/learn-error' },
// {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论