update: 优化视频

This commit is contained in:
wangxinbo
2021-09-25 19:22:46 +08:00
parent f88a929c20
commit bc0b5d4041
6 changed files with 94 additions and 24 deletions

View File

@ -182,11 +182,13 @@ export default {
}
listChildCheck(this.queryParams).then((response) => {
// console.log(response.rows);
this.bjmc = response.rows[0].bjmc;
this.childcount = response.rows.length - 1;
this.jsmc = response.rows[0].zbjsmc;
const {rows = []} = response;
const first = (rows && rows[0]) || {};
this.bjmc = first.bjmc || '';
this.childcount = rows.length > 0 ? rows.length - 1 : 0;
this.jsmc = first.zbjsmc || '';
// this.tableData = response.rows;
response.rows.forEach((res) => {
rows.forEach((res) => {
this.tableData.push({
name: res.name,
zj: this.avg([

View File

@ -38,7 +38,9 @@
@click="prints"
>打印</el-button
>
<div class="pad-left" v-html="note" ref="printMe"></div>
<div class="pad-left" ref="printMe">
<div v-html="note"></div>
</div>
</div>
</el-card>
</el-col>
@ -61,7 +63,7 @@ export default {
title: "微型课程",
title1: "概论",
//目的
note: "微 型 课 程 王东异 主编",
note: "微型课程 — 王东异 <span style='font-size: 14px'>主编</span>",
// 树状显示类型
treeOptions: [],
// 树结构
@ -120,6 +122,9 @@ export default {
};
</script>
<style lang="scss" scoped>
.app-container, .el-row {
height: 100%;
}
.text {
font-size: 14px;
}
@ -174,6 +179,6 @@ div {
}
.tree {
overflow:auto;
max-height: 600px;
height: calc(100% - 52px);
}
</style>