refactor: 测试计划报告优化

This commit is contained in:
chenjianxing 2021-09-22 13:45:10 +08:00 committed by jianxing
parent eed91bada2
commit 3b43384829
2 changed files with 12 additions and 7 deletions

View File

@ -1,13 +1,13 @@
<template> <template>
<div> <div>
<ms-drawer :class="{'hidden': asideHidden}" :visible="true" :size="10" direction="left" :show-full-screen="false" :is-show-close="false"> <ms-drawer class="drawer-content" :visible="true" :size="10" direction="left" :show-full-screen="false" :is-show-close="false">
<div class="title-item" > <div class="title-item" >
<span class="title-name">目录</span> <span class="title-name">目录</span>
<el-tabs tab-position="right" v-model="activeName"> <el-tabs tab-position="right" v-model="activeName">
<el-tab-pane v-for="item in data" :key="item.title" :label="item.title" :name="item.link"></el-tab-pane> <el-tab-pane v-for="item in data" :key="item.title" :label="item.title" :name="item.link"></el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
<div class="hiddenBottom" @click.stop="asideHidden = !asideHidden"> <div class="hiddenBottom">
<span>目录</span> <span>目录</span>
</div> </div>
</ms-drawer> </ms-drawer>
@ -24,7 +24,6 @@ export default {
}, },
data() { data() {
return { return {
asideHidden: true,
activeName: "1", activeName: "1",
data: [ data: [
{ {
@ -115,11 +114,17 @@ export default {
overflow: visible !important; overflow: visible !important;
} }
.hidden { .drawer-content {
width: 0px !important; width: 0px !important;
padding: 0px !important; padding: 0px !important;
} }
.drawer-content:hover{
padding: 15px !important;
height: 300px !important;
width: 230px !important;
}
.title-item { .title-item {
padding: 5px padding: 5px
} }

View File

@ -76,7 +76,7 @@ export default {
let data = this.issueDataMap.get(status); let data = this.issueDataMap.get(status);
if (!data) { if (!data) {
data = {name: status, itemStyle: {color: null}}; data = {name: status, itemStyle: {color: null}};
if (status === 'new' || status === '新' | status === '待办' | status === 'active') { if (status === 'new' || status === '新' || status === '待办' || status === 'active' || status === 'created') {
data.itemStyle.color = '#F56C6C'; data.itemStyle.color = '#F56C6C';
usedSet.add(data.itemStyle.color); usedSet.add(data.itemStyle.color);
} }