湖里大屏(质量管理):更改问题类型使用 Card 组件

This commit is contained in:
Jack 2022-08-23 18:12:10 +08:00
parent 4247e5d2e2
commit 0b78f2041d

View File

@ -1,19 +1,19 @@
<template>
<div class="question-type">
<div class="title">{{ title }}</div>
<Card :title="title">
<DaysSwitch class="days-switch" @change="handleSwitch" />
<div class="content">
<JProgressChart :seriesData="seriesData" :yData="yData" />
</div>
</div>
</Card>
</template>
<script>
import Card from '../components/Card.vue'
import JProgressChart from '../jChart/bar/JProgressChart.vue'
import DaysSwitch from './components/DaysSwitch.vue'
import { selectDangerTypeQualityCountApi } from '@/assets/js/api/dataBoard'
export default {
components: { JProgressChart, DaysSwitch },
components: { Card, JProgressChart, DaysSwitch },
props: {
title: {
type: String,
@ -55,24 +55,12 @@ export default {
</script>
<style lang="less" scoped>
.question-type {
width: 100%;
height: 100%;
border: 1px solid #0081c3;
.title {
padding-left: 6px;
height: 30px;
line-height: 30px;
font-size: 18px;
color: #6ee4f0;
}
.days-switch {
margin-top: 10px;
margin-right: 20px;
margin-left: auto;
}
.content {
height: calc(100% - 64px);
}
.days-switch {
margin-top: 10px;
margin-right: 20px;
margin-left: auto;
}
.content {
height: calc(100% - 64px);
}
</style>