alioss V2.3.2
yujialong 2 years ago
parent 058b1c3fc4
commit 4f8d4f5136
  1. 1087
      src/pages/index/zxy/index.vue
  2. 61
      src/pages/screen/index.vue
  3. 10
      src/pages/station/preview/index.vue
  4. 2
      src/setting.js

File diff suppressed because it is too large Load Diff

@ -718,11 +718,11 @@ export default {
},
{
color1: '#e71872',
color2: 'rgba(243, 147, 189, 0.4)'
color2: 'rgba(40, 147, 189, 0.4)'
},
{
color1: '#f9d437',
color2: 'rgba(255, 234, 144, 0.4)'
color2: 'rgba(50, 234, 144, 0.4)'
},
{
color1: '#912892',
@ -730,11 +730,11 @@ export default {
},
{
color1: '#f21259',
color2: 'rgba(213, 22, 11, 0.4)'
color2: 'rgba(40, 176, 97, 0.4)'
},
{
color1: '#7343fe',
color2: 'rgba(243, 123, 2, 0.4)'
color2: 'rgba(50, 240, 140, 0.4)'
},
{
color1: '#ea7321',
@ -746,8 +746,24 @@ export default {
},
{
color1: '#672313',
color2: 'rgba(156, 163, 2, 0.4)'
}
color2: 'rgba(156, 40, 100, 0.4)'
},
{
color1: '#0184d5',
color2: 'rgba(60, 132, 60, 0.4)'
},
{
color1: '#00d887',
color2: 'rgba(60, 42, 244, 0.4)'
},
{
color1: '#e71872',
color2: 'rgba(90, 147, 180, 0.4)'
},
{
color1: '#f9d437',
color2: 'rgba(150, 20, 144, 0.4)'
},
]
//
const cousrseRes = await this.$post(this.api.listOfGoods, {
@ -758,22 +774,20 @@ export default {
hotTag: 1,
})
if (cousrseRes) {
const courseList =
cousrseRes.page.records
const courseList = cousrseRes.page.records
const ids = courseList.map(e => e.mallId)
times.map(e => {
e.mallId = ids
})
const courseData = {}
courseList.map(e => {
// e.productName = e.productName.substring(0, 10)
courseData[e.productName] = []
})
this.$post(this.api.studentAssessSchievement, times).then(({ data }) => {
const times = []
const xData = data.map(e => e.time)
const len = xData.length
courseList.map(e => {
courseData[e.productName] = new Array(len).fill(0, 0)
})
const series = []
data.map((e, i) => {
times.push(e.time)
e.assesScoreRespList.map(n => {
const item = courseList.find(j => j.mallId == n.mallId)
if (item) {
@ -790,7 +804,7 @@ export default {
series.push({
name: i,
type: 'line',
smooth: true,
// smooth: true,
symbol: 'circle',
symbolSize: 5,
lineStyle: {
@ -799,23 +813,10 @@ export default {
width: 2
}
},
areaStyle: {
normal: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
offset: 0,
color: colors[index].color2
}, {
offset: 0.8,
color: colors[index].color2
}], false),
shadowColor: 'rgba(0, 0, 0, 0.1)',
}
},
itemStyle: {
normal: {
color: colors[index].color1,
borderColor: 'rgba(221, 220, 107, .1)',
borderWidth: 12
borderWidth: 8
}
},
data: courseData[i]
@ -871,7 +872,7 @@ export default {
color: 'rgba(255,255,255,.2)'
}
},
data: times
data: xData
},
yAxis: [{
type: 'value',

@ -164,7 +164,7 @@
</div>
<div v-if="active === 2"
class="page">
<template v-if="showNoteAdd">
<template v-if="showNoteAdd || !notes.length">
<el-form class="form"
ref="form"
label-width="120px"
@ -184,7 +184,8 @@
</el-form-item>
</el-form>
<div class="text-right">
<el-button @click="showNoteAdd = false">取消</el-button>
<el-button v-if="notes.length"
@click="showNoteAdd = false">取消</el-button>
<el-button type="primary"
@click="submitNote">保存</el-button>
</div>
@ -647,6 +648,11 @@ export default {
this.getNote()
util.successMsg(form.noteId ? '修改成功' : '添加成功')
this.showNoteAdd = false
this.noteForm = {
cid: this.courseId,
noteContent: '',
noteName: '',
}
}).catch(res => { })
},
//

@ -29,7 +29,7 @@ if (isPro) {
host = "http://121.37.12.51/"; // 测试服
// host = 'https://www.occupationlab.com/' // 正式服
// host = "http://192.168.31.152:9000/"; // 榕
// host = "http://192.168.31.51:9000/"; // 赓
host = "http://192.168.31.51:9000/"; // 赓
}
const Setting = {

Loading…
Cancel
Save