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

样式修改添加教学评估

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