|
@@ -119,11 +119,9 @@
|
|
|
/>
|
|
|
</div>
|
|
|
<div class="zhBlockCon2">
|
|
|
- <!-- <span>语文</span>
|
|
|
- <span>数学</span>
|
|
|
- <span>英语</span>
|
|
|
- <span>化学</span>
|
|
|
- <span>美术</span> -->
|
|
|
+ <div>
|
|
|
+ <span v-for="(i,index) in subject" :key="index">{{ i }}</span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -273,6 +271,8 @@ export default {
|
|
|
// 处理过的分组
|
|
|
TeaStuInt2: [1, 3, 5, 4, 10, 13, 15],
|
|
|
|
|
|
+ subject:[],
|
|
|
+
|
|
|
data3: [],
|
|
|
data4: [],
|
|
|
data5: [],
|
|
@@ -472,6 +472,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
async getData() {
|
|
|
+ this.subject=[]
|
|
|
let params = {
|
|
|
cid: this.cid,
|
|
|
uid: this.worksDialogCon2.userid,
|
|
@@ -484,6 +485,9 @@ export default {
|
|
|
this.cState = res.data[0][0].state;
|
|
|
this.courseTit = res.data[0][0].title;
|
|
|
|
|
|
+ let sub = res.data[9][0].subject
|
|
|
+ this.subject = sub.split(',')
|
|
|
+
|
|
|
this.imgList.forEach(e => {
|
|
|
if (e.schoolId == this.oid) {
|
|
|
this.schoolImg = e;
|
|
@@ -1119,7 +1123,10 @@ export default {
|
|
|
},
|
|
|
xAxis: {
|
|
|
type: "category",
|
|
|
- data: this.stageList.map(item => item)
|
|
|
+ data: this.stageList.map(item => item),
|
|
|
+ axisTick: {
|
|
|
+ alignWithLabel: true // 使刻度线和标签对齐
|
|
|
+ }
|
|
|
},
|
|
|
yAxis: {
|
|
|
type: "value",
|
|
@@ -1156,7 +1163,10 @@ export default {
|
|
|
},
|
|
|
xAxis: {
|
|
|
type: "category",
|
|
|
- data: this.stageList.map(item => item)
|
|
|
+ data: this.stageList.map(item => item),
|
|
|
+ axisTick: {
|
|
|
+ alignWithLabel: true // 使刻度线和标签对齐
|
|
|
+ }
|
|
|
},
|
|
|
yAxis: {
|
|
|
type: "value",
|
|
@@ -1235,7 +1245,10 @@ export default {
|
|
|
},
|
|
|
xAxis: {
|
|
|
type: "category",
|
|
|
- data: this.stageList.map(item => item)
|
|
|
+ data: this.stageList.map(item => item),
|
|
|
+ axisTick: {
|
|
|
+ alignWithLabel: true // 使刻度线和标签对齐
|
|
|
+ }
|
|
|
},
|
|
|
yAxis: {
|
|
|
type: "value",
|
|
@@ -1272,7 +1285,10 @@ export default {
|
|
|
},
|
|
|
xAxis: {
|
|
|
type: "category",
|
|
|
- data: this.stageList.map(item => item)
|
|
|
+ data: this.stageList.map(item => item),
|
|
|
+ axisTick: {
|
|
|
+ alignWithLabel: true // 使刻度线和标签对齐
|
|
|
+ }
|
|
|
},
|
|
|
yAxis: {
|
|
|
type: "value",
|
|
@@ -1309,7 +1325,10 @@ export default {
|
|
|
},
|
|
|
xAxis: {
|
|
|
type: "category",
|
|
|
- data: this.stageList.map(item => item)
|
|
|
+ data: this.stageList.map(item => item),
|
|
|
+ axisTick: {
|
|
|
+ alignWithLabel: true // 使刻度线和标签对齐
|
|
|
+ }
|
|
|
},
|
|
|
yAxis: {
|
|
|
type: "value",
|
|
@@ -1524,16 +1543,28 @@ export default {
|
|
|
}
|
|
|
.zhBlockCon2 {
|
|
|
display: flex;
|
|
|
- flex-wrap: wrap;
|
|
|
+ flex-direction: column;
|
|
|
+ justify-content: space-between;
|
|
|
+ /* flex-wrap: wrap; */
|
|
|
+ flex: 1;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
-.zhBlockCon2 > span {
|
|
|
+.zhBlockCon2 > div {
|
|
|
+
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: wrap;
|
|
|
+
|
|
|
+ flex: 1;
|
|
|
+}
|
|
|
+.zhBlockCon2 > div >span{
|
|
|
font-size: 8px;
|
|
|
font-weight: 400;
|
|
|
color: rgba(0, 0, 0, 0.9);
|
|
|
background-color: rgba(243, 247, 253, 1);
|
|
|
border-radius: 2px;
|
|
|
- padding: 1px 4px;
|
|
|
+ padding: 0px 4px;
|
|
|
+ height: 15px;
|
|
|
+ line-height: 15px;
|
|
|
box-sizing: border-box;
|
|
|
margin-right: 4px;
|
|
|
margin-bottom: 2px;
|
|
@@ -1541,6 +1572,7 @@ export default {
|
|
|
.zxt {
|
|
|
height: 300px;
|
|
|
width: 100%;
|
|
|
+ border: 1px solid #ccc;
|
|
|
margin: 10px 0;
|
|
|
background-color: rgba(255, 255, 255, 1);
|
|
|
padding: 10px 0;
|