Commit cf87a987 by chenwq

样式

1 parent 7662d10c
......@@ -27,10 +27,10 @@
<GLButton :size="size" type="default" class="default-blue-btn" fn="管理SOP" @click="handleJump('sopList')">管理全部SOP</GLButton>
</div>
</div>
<div class="sop-box" :style="{ 'padding-bottom': sopList.length ? '2px' : '12px' }">
<div class="sop-box" :style="{ 'padding-bottom': sopList.length ? '2px' : '12px', 'padding-right': sopList.length ? '0' : '20px' }">
<div class="chart-box sop-flex" v-show="sopList.length">
<div class="chart-item" v-for="item in sopList" :key="item.id">
<p>{{ item.sopName }}</p>
<p class="sop-name">{{ item.sopName }}</p>
<div :id="'sopPie' + item.id" class="chart-pie"></div>
<p>{{ item.dateRange }}</p>
<div class="sop-btns">
......@@ -246,7 +246,7 @@ export default {
.chart-item {
position: relative;
box-sizing: border-box;
width: calc((100% - 68px) / 4);
width: calc((100% - 80px) / 4);
min-width: 270px;
height: 184px;
text-align: center;
......@@ -258,6 +258,9 @@ export default {
height: 104px;
margin: 8px 0;
}
.sop-name {
font-weight: 600;
}
.sop-btns {
display: none;
box-sizing: border-box;
......@@ -278,9 +281,9 @@ export default {
}
}
}
.chart-item:nth-child(4n + 0) {
margin-right: 0px;
}
// .chart-item:nth-child(4n + 0) {
// margin-right: 0px;
// }
.chart-item:hover .sop-btns {
display: block;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!