Commit 546731f5 authored by 郭铭瑶's avatar 郭铭瑶 🤘

修改&调整

parent c5e14095
...@@ -31,6 +31,9 @@ export default defineComponent({ ...@@ -31,6 +31,9 @@ export default defineComponent({
@font-face @font-face
font-family ZCool font-family ZCool
src url(./assets/font/zcool.ttf) src url(./assets/font/zcool.ttf)
@font-face
font-family Barlow
src url(./assets/font/Barlow-ExtraBoldItalic.ttf)
html, body html, body
background #001220 background #001220
......
...@@ -2,11 +2,18 @@ ...@@ -2,11 +2,18 @@
$color-main = #5BD5FF $color-main = #5BD5FF
#app #app
.orange-count
font-size .16rem
background-clip text
-webkit-background-clip text
-webkit-text-fill-color transparent
background-image linear-gradient(to bottom, #FFD1B2, #FF8635)
.ant-progress-circle .ant-progress-circle
.ant-progress-text .ant-progress-text
color #fff color #fff
font-size 0.12rem font-size 0.14rem
font-weight bold font-weight bold
font-family $font-barlow
.ant-select .ant-select
z-index 99 z-index 99
font-size .08rem font-size .08rem
......
...@@ -77,7 +77,7 @@ export default defineComponent({ ...@@ -77,7 +77,7 @@ export default defineComponent({
.count .count
color $yellow color $yellow
font-size .15rem font-size .15rem
font-family $font-pang font-family $font-barlow
padding-bottom .03rem padding-bottom .03rem
span span
color #aaa color #aaa
......
...@@ -70,7 +70,7 @@ export default defineComponent({ ...@@ -70,7 +70,7 @@ export default defineComponent({
justify-content space-between justify-content space-between
background linear-gradient(to right, rgba(59,85,102,.8), transparent) background linear-gradient(to right, rgba(59,85,102,.8), transparent)
position relative position relative
border-bottom .01rem solid rgba(105,110,114,.15) border-bottom .01rem solid rgba(105,110,114,.3)
margin-bottom .05rem margin-bottom .05rem
padding 0 .1rem padding 0 .1rem
&:before &:before
...@@ -90,7 +90,7 @@ export default defineComponent({ ...@@ -90,7 +90,7 @@ export default defineComponent({
span span
cursor pointer cursor pointer
margin-left .05rem margin-left .05rem
color $primary-border color $edge
&:hover &:hover
&.on &.on
color #fff color #fff
......
...@@ -38,12 +38,13 @@ export default defineComponent({ ...@@ -38,12 +38,13 @@ export default defineComponent({
containLabel: true, containLabel: true,
}, },
radar: { radar: {
splitNumber: 2,
axisName: { axisName: {
// show: false, // show: false,
color: 'transparent', // color: 'transparent',
textStyle: { textStyle: {
color: '#fff', color: '#fff',
backgroundColor: 'rgba(255,255,255,.3)', backgroundColor: 'rgba(255,255,255,.5)',
borderRadius: 3, borderRadius: 3,
padding: [3, 5], padding: [3, 5],
}, },
...@@ -53,9 +54,9 @@ export default defineComponent({ ...@@ -53,9 +54,9 @@ export default defineComponent({
show: true, show: true,
areaStyle: { areaStyle: {
color: [ color: [
'rgba(1,124,143,.9)', // 'rgba(1,124,143,.9)',
'rgba(1,124,143,.7)', // 'rgba(1,124,143,.7)',
'rgba(1,124,143,.5)', // 'rgba(1,124,143,.5)',
'rgba(1,124,143,.3)', 'rgba(1,124,143,.3)',
'rgba(1,124,143,.1)', 'rgba(1,124,143,.1)',
], ],
...@@ -68,15 +69,20 @@ export default defineComponent({ ...@@ -68,15 +69,20 @@ export default defineComponent({
}, },
}, },
axisLine: { axisLine: {
show: false, show: true,
lineStyle: {
type: 'dashed',
color: 'rgba(255,255,255,.3)',
},
}, },
center: ['50%', '55%'], center: ['50%', '60%'],
radius: '55%', radius: '55%',
}, },
} }
const defaultSeriesItem = { const defaultSeriesItem = {
type: 'radar', type: 'radar',
symbol: 'none', symbol: 'none',
smooth: true,
areaStyle: { areaStyle: {
opacity: 0.5, opacity: 0.5,
}, },
......
...@@ -103,7 +103,7 @@ export default defineComponent({ ...@@ -103,7 +103,7 @@ export default defineComponent({
.count .count
color $yellow color $yellow
font-size .15rem font-size .15rem
font-family $font-pang font-family $font-barlow
padding-bottom .03rem padding-bottom .03rem
span span
color #aaa color #aaa
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<div v-if="addition" class="addition"> <div v-if="addition" class="addition">
<MyCount v-if="addition.value" class="count" :value="addition.value" /> <MyCount v-if="addition.value" class="count" :value="addition.value" />
<span v-if="addition.unit">{{ addition.unit }}</span> <span v-if="addition.unit">{{ addition.unit }}</span>
<img src="@/assets/images/title-dec.png" />
</div> </div>
<input <input
v-if="searchAble" v-if="searchAble"
...@@ -98,14 +99,17 @@ export default defineComponent({ ...@@ -98,14 +99,17 @@ export default defineComponent({
align-items center align-items center
margin-left .1rem margin-left .1rem
.count .count
color $yellow // color $yellow
font-size .15rem font-size .15rem
font-family $font-pang font-family $font-barlow
padding-bottom .03rem padding-bottom .03rem
span span
color #aaa color #aaa
font-size .08rem font-size .08rem
margin-left .05rem margin-left .05rem
img
width .3rem
margin-left .1rem
.search-bar .search-bar
display block display block
width 0 width 0
......
...@@ -2,6 +2,7 @@ $font-pang = Pangmenzhengdao, 'Avenir', Helvetica, Arial, sans-serif ...@@ -2,6 +2,7 @@ $font-pang = Pangmenzhengdao, 'Avenir', Helvetica, Arial, sans-serif
$font-din = DIN, 'Avenir', Helvetica, Arial, sans-serif $font-din = DIN, 'Avenir', Helvetica, Arial, sans-serif
$font-weibei = WeiBei, 'Avenir', Helvetica, Arial, sans-serif $font-weibei = WeiBei, 'Avenir', Helvetica, Arial, sans-serif
$font-zcool = ZCool, 'Avenir', Helvetica, Arial, sans-serif $font-zcool = ZCool, 'Avenir', Helvetica, Arial, sans-serif
$font-barlow = Barlow, 'Avenir', Helvetica, Arial, sans-serif
$full(w = 100%, h = 100%) $full(w = 100%, h = 100%)
width w width w
......
...@@ -271,7 +271,7 @@ export default defineComponent({ ...@@ -271,7 +271,7 @@ export default defineComponent({
.count .count
color #fff color #fff
font-size .2rem font-size .2rem
font-family $font-pang font-family $font-barlow
.buildings .buildings
display flex display flex
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<div class="counts"> <div class="counts">
<div v-for="item in counts" :key="item.name"> <div v-for="item in counts" :key="item.name">
<Circle <Circle
:value="item.value" :value="+item.value"
type="dashboard" type="dashboard"
:show-info="false" :show-info="false"
:color="[getColor(item.value), '#F76B1C']" :color="[getColor(item.value), '#F76B1C']"
...@@ -174,7 +174,7 @@ export default defineComponent({ ...@@ -174,7 +174,7 @@ export default defineComponent({
.count .count
color #fff color #fff
font-size .16rem font-size .16rem
font-family $font-pang font-family $font-barlow
.counts .counts
display flex display flex
margin-top .1rem margin-top .1rem
...@@ -190,7 +190,7 @@ export default defineComponent({ ...@@ -190,7 +190,7 @@ export default defineComponent({
color #ccc color #ccc
.count .count
font-size .18rem font-size .18rem
font-family $font-pang font-family $font-barlow
font-weight 500 font-weight 500
.chart .chart
height 1.5rem height 1.5rem
...@@ -217,7 +217,7 @@ export default defineComponent({ ...@@ -217,7 +217,7 @@ export default defineComponent({
font-size .08rem font-size .08rem
color $blue color $blue
.count .count
font-family $font-pang font-family $font-barlow
font-size .16rem font-size .16rem
color #fff color #fff
</style> </style>
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<div v-if="Array.isArray(item.value)"> <div v-if="Array.isArray(item.value)">
<div class="count-group"> <div class="count-group">
<m-count <m-count
class="count yellow" class="count orange-count"
:value="item.value[0]" :value="item.value[0]"
:style="{ color: color }" :style="{ color: color }"
/> />
...@@ -19,11 +19,7 @@ ...@@ -19,11 +19,7 @@
<p>{{ item.name }}</p> <p>{{ item.name }}</p>
</div> </div>
<div v-else :class="{ center: !item.icon }"> <div v-else :class="{ center: !item.icon }">
<m-count <m-count class="count" :style="{ color: color }" :value="item.value" />
class="count yellow"
:style="{ color: color }"
:value="item.value"
/>
<p>{{ item.name }}</p> <p>{{ item.name }}</p>
</div> </div>
</div> </div>
...@@ -68,10 +64,8 @@ export default defineComponent({ ...@@ -68,10 +64,8 @@ export default defineComponent({
align-items center align-items center
white-space nowrap white-space nowrap
.count .count
font-size .11rem font-family $font-barlow
&.yellow font-size .14rem
font-size .13rem
color $yellow
&.vertical &.vertical
display inline-block display inline-block
>div >div
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div v-for="(item, i) in list" :key="item.name"> <div v-for="(item, i) in list" :key="item.name">
<p> <p>
<img v-if="avatar && i === 0" :src="avatar" /> <img v-if="avatar && i === 0" :src="avatar" />
<m-count class="count" :value="item.value" /> <m-count class="count orange-count" :value="item.value" />
<span class="unit">{{ item.unit }}</span> <span class="unit">{{ item.unit }}</span>
</p> </p>
<p>{{ item.name }}</p> <p>{{ item.name }}</p>
...@@ -72,7 +72,7 @@ $create-border() ...@@ -72,7 +72,7 @@ $create-border()
$create-border() $create-border()
p p
.count .count
font-family $font-pang font-family $font-barlow
font-size .12rem font-size .12rem
margin-right .01rem margin-right .01rem
color $orange color $orange
......
...@@ -25,8 +25,8 @@ ...@@ -25,8 +25,8 @@
<div v-for="item in dutyTableData" :key="item.group" class="card"> <div v-for="item in dutyTableData" :key="item.group" class="card">
<div class="title"> <div class="title">
{{ item.group }} {{ item.group }}
<span /> <i />
<p><m-count :value="item.number" /><b></b></p> <p><m-count class="count" :value="item.number" /><span></span></p>
</div> </div>
<div class="content"> <div class="content">
<p>日班:{{ item.workTimeDay }}</p> <p>日班:{{ item.workTimeDay }}</p>
...@@ -362,17 +362,24 @@ export default defineComponent({ ...@@ -362,17 +362,24 @@ export default defineComponent({
align-items center align-items center
font-size .11rem font-size .11rem
font-weight bold font-weight bold
span .count
font-family $font-barlow
font-size .12rem
i
flex 1 flex 1
margin 0 .1rem margin 0 .1rem
height 0 height 0
border-bottom .01rem dashed $primary-border border-bottom .01rem dashed $primary-border
i span
font-size .09rem font-size .08rem
color #999
.content .content
display flex display flex
align-items center align-items center
justify-content space-between justify-content space-between
p
&:first-child
color #ccc
.party .party
display flex display flex
height 100% height 100%
......
...@@ -162,6 +162,16 @@ export default defineComponent({ ...@@ -162,6 +162,16 @@ export default defineComponent({
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '../../components/MyComponent/main.styl' @import '../../components/MyComponent/main.styl'
$dot()
content ''
display inline-block
width .02rem
height @width
background #5BD5FF
box-shadow 0 0 .03rem .02rem #5BD5FF
border-radius 50%
margin 0 .05rem
transform translateY(-100%)
.card .card
flex 1.8 flex 1.8
&:nth-of-type(2) &:nth-of-type(2)
...@@ -178,24 +188,39 @@ export default defineComponent({ ...@@ -178,24 +188,39 @@ export default defineComponent({
top .1rem top .1rem
left .3rem left .3rem
text-align right text-align right
p
&:first-child
&:after
$dot()
&:nth-of-type(2) &:nth-of-type(2)
top .1rem top .1rem
right .3rem right .3rem
p
&:first-child
&:before
$dot()
&:nth-of-type(3) &:nth-of-type(3)
bottom .1rem bottom .1rem
left .3rem left .3rem
text-align right text-align right
p
&:first-child
&:after
$dot()
&:nth-of-type(4) &:nth-of-type(4)
bottom .1rem bottom .1rem
right .3rem right .3rem
p
&:first-child
&:before
$dot()
img img
width .26rem width .26rem
height @width height @width
margin-right .1rem margin-right .1rem
.count .count
color $yellow
font-size .14rem font-size .14rem
font-family $font-pang font-family $font-barlow
margin-right .05rem margin-right .05rem
span span
color #aaa color #aaa
...@@ -241,4 +266,7 @@ export default defineComponent({ ...@@ -241,4 +266,7 @@ export default defineComponent({
background rgba(70,83,97,.4) background rgba(70,83,97,.4)
box-shadow inset 0 .01rem .02rem 0 rgba(204,204,204,.2) box-shadow inset 0 .01rem .02rem 0 rgba(204,204,204,.2)
border-radius .03rem border-radius .03rem
p
&:first-child
color #ccc
</style> </style>
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<m-sub2>项目实施情况</m-sub2> <m-sub2>项目实施情况</m-sub2>
<div class="summary"> <div class="summary">
<div v-for="item in summary" :key="item.name"> <div v-for="item in summary" :key="item.name">
<m-count class="count" :value="item.value" /> <m-count class="count orange-count" :value="item.value" />
<p>{{ item.name }}</p> <p>{{ item.name }}</p>
</div> </div>
</div> </div>
...@@ -14,12 +14,12 @@ ...@@ -14,12 +14,12 @@
</div> </div>
</div> </div>
<m-sub2 :addition="{ value: 33, unit: '幢' }">电梯加装(排摸)</m-sub2> <m-sub2 :addition="{ value: 33, unit: '幢' }">电梯加装(排摸)</m-sub2>
<div v-if="curViewType === 'street'" class="sum-card"> <!-- <div v-if="curViewType === 'street'" class="sum-card">
<div v-for="item in elevList" :key="item.name"> <div v-for="item in elevList" :key="item.name">
<m-count class="count" :value="item.value" /> <m-count class="count" :value="item.value" />
<p>{{ item.name }}</p> <p>{{ item.name }}</p>
</div> </div>
</div> </div> -->
<m-sub2>马桶改造</m-sub2> <m-sub2>马桶改造</m-sub2>
<Brief :list="toiletSituation" color="#fff" /> <Brief :list="toiletSituation" color="#fff" />
<m-progress <m-progress
...@@ -152,7 +152,7 @@ export default defineComponent({ ...@@ -152,7 +152,7 @@ export default defineComponent({
position relative position relative
.count .count
font-size .12rem font-size .12rem
font-weight bold font-family $font-barlow
p p
color #ccc color #ccc
font-size .09rem font-size .09rem
......
...@@ -3,17 +3,17 @@ ...@@ -3,17 +3,17 @@
<m-sub2>项目实施情况</m-sub2> <m-sub2>项目实施情况</m-sub2>
<div class="summary"> <div class="summary">
<div v-for="item in summary" :key="item.name"> <div v-for="item in summary" :key="item.name">
<m-count class="count" :value="item.value" /> <m-count class="count orange-count" :value="item.value" />
<p>{{ item.name }}</p> <p>{{ item.name }}</p>
</div> </div>
</div> </div>
<Brief :list="situation" color="#fff" /> <Brief :list="situation" color="#fff" />
<div v-if="curViewType !== 'street'" class="sum-card work-station"> <!-- <div v-if="curViewType !== 'street'" class="sum-card work-station">
<div v-for="item in workStationProjects" :key="item.name"> <div v-for="item in workStationProjects" :key="item.name">
<m-count class="count" :value="item.value" /> <m-count class="count orange-count" :value="item.value" />
<p>{{ item.name }}</p> <p>{{ item.name }}</p>
</div> </div>
</div> </div> -->
<m-sub2 :addition="{ value: 33, unit: '幢' }">电梯加装(排摸)</m-sub2> <m-sub2 :addition="{ value: 33, unit: '幢' }">电梯加装(排摸)</m-sub2>
<div v-if="curViewType === 'street'" class="sum-card"> <div v-if="curViewType === 'street'" class="sum-card">
<div v-for="item in elevList" :key="item.name"> <div v-for="item in elevList" :key="item.name">
...@@ -104,8 +104,7 @@ export default defineComponent({ ...@@ -104,8 +104,7 @@ export default defineComponent({
padding .05rem padding .05rem
.count .count
font-size .14rem font-size .14rem
color $orange font-family $font-barlow
font-family $font-pang
margin-right .03rem margin-right .03rem
p p
font-size .09rem font-size .09rem
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<m-sub2>项目实施情况</m-sub2> <m-sub2>项目实施情况</m-sub2>
<div class="summary"> <div class="summary">
<div v-for="item in summary" :key="item.name"> <div v-for="item in summary" :key="item.name">
<m-count class="count" :value="item.value" /> <m-count class="count orange-count" :value="item.value" />
<p>{{ item.name }}</p> <p>{{ item.name }}</p>
</div> </div>
</div> </div>
...@@ -110,14 +110,13 @@ export default defineComponent({ ...@@ -110,14 +110,13 @@ export default defineComponent({
padding .05rem padding .05rem
.count .count
font-size .14rem font-size .14rem
color $orange font-family $font-barlow
font-family $font-pang
margin-right .03rem margin-right .03rem
p p
font-size .09rem font-size .09rem
.chart .chart
width 100% width 100%
height 1rem height 1.2rem
margin-bottom .1rem margin-bottom .1rem
position relative position relative
</style> </style>
......
...@@ -48,12 +48,13 @@ export default defineComponent({ ...@@ -48,12 +48,13 @@ export default defineComponent({
width 100% width 100%
height 100% height 100%
display flex display flex
flex-direction column
align-items center align-items center
justify-content space-around justify-content space-around
>div >div
width 40% height 40%
min-height 70% width 80%
background url('@/assets/images/num-card.png') 100% / 100% 100% no-repeat background url('@/assets/images/entry-card.png') 100% / 100% 100% no-repeat
display flex display flex
align-items center align-items center
justify-content center justify-content center
......
...@@ -15,15 +15,13 @@ ...@@ -15,15 +15,13 @@
</div> </div>
</div> </div>
<div v-if="rankList.length > 0" class="content"> <div v-if="rankList.length > 0" class="content">
<m-scroll :length="rankList.length" :limit="4"> <div v-for="item in rankList" :key="item.name">
<m-progress <span>{{ item.name }}</span>
v-for="rank in rankList" <div v-if="showChart" class="progress">
:key="rank.name" <m-progress :color="['#FF692D', '#F7973D']" :value="item.rate" />
:value="rank.rate" </div>
:msg="rank" <m-count class="count" :value="item.value" />
:color="['#FF692D', '#F7973D']" </div>
/>
</m-scroll>
</div> </div>
<m-empty v-else /> <m-empty v-else />
</div> </div>
...@@ -44,13 +42,11 @@ ...@@ -44,13 +42,11 @@
<script lang="ts"> <script lang="ts">
import { defineComponent, ref, computed, watch } from 'vue' import { defineComponent, ref, computed, watch } from 'vue'
import SubTitle from '../components/sub-title.vue'
import Place from '../components/place.vue'
import store from '@/store' import store from '@/store'
export default defineComponent({ export default defineComponent({
name: 'CaseAnalysis', name: 'CaseAnalysis',
components: { SubTitle, Place },
setup() { setup() {
const showChart = computed(() => store.state.curTheme === 'manage')
const options = ref([ const options = ref([
{ name: '日', key: 'day' }, { name: '日', key: 'day' },
{ name: '周', key: 'week' }, { name: '周', key: 'week' },
...@@ -76,10 +72,9 @@ export default defineComponent({ ...@@ -76,10 +72,9 @@ export default defineComponent({
const data = store.state.analysisRank[curOption.value] || [] const data = store.state.analysisRank[curOption.value] || []
const total = data.reduce((acc, cur) => acc + cur.num, 0) const total = data.reduce((acc, cur) => acc + cur.num, 0)
return data.map((item: any) => ({ return data.map((item: any) => ({
name: item.businsessType || item.businessType, name: item.managementType,
rate: +Math.ceil((item.num / total) * 100).toFixed(0), rate: +Math.ceil((item.num / total) * 100).toFixed(0),
value: item.num, value: item.num,
unit: '件',
})) }))
}) })
...@@ -93,6 +88,7 @@ export default defineComponent({ ...@@ -93,6 +88,7 @@ export default defineComponent({
}) })
return { return {
showChart,
options, options,
curOption, curOption,
rankList, rankList,
...@@ -131,10 +127,23 @@ export default defineComponent({ ...@@ -131,10 +127,23 @@ export default defineComponent({
background $secondary-color background $secondary-color
.rank .rank
overflow hidden overflow hidden
// height 1rem
.content .content
height 1.2rem height .8rem
overflow hidden display flex
flex-direction column
justify-content space-around
>div
display flex
align-items center
justify-content space-between
.progress
flex 1
margin 0 .1rem
span
color #ccc
.count
font-family $font-barlow
font-size .12rem
.place .place
.content .content
display flex display flex
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
</m-sub2> </m-sub2>
<div class="sum"> <div class="sum">
<div v-for="item in sum" :key="item.name"> <div v-for="item in sum" :key="item.name">
<m-count class="count" :value="item.value" /> <m-count class="count orange-count" :value="item.value" />
<p> <p>
{{ item.name }} {{ item.name }}
<!-- <img v-if="item.icon" :src="item.icon" /> --> <!-- <img v-if="item.icon" :src="item.icon" /> -->
...@@ -92,8 +92,7 @@ export default defineComponent({ ...@@ -92,8 +92,7 @@ export default defineComponent({
align-items center align-items center
.count .count
font-size 0.14rem font-size 0.14rem
font-family $fong-pang font-family $font-barlow
color $orange
margin-right .05rem margin-right .05rem
p p
color #ccc color #ccc
...@@ -110,7 +109,10 @@ export default defineComponent({ ...@@ -110,7 +109,10 @@ export default defineComponent({
.progress .progress
flex 1 flex 1
margin 0 .05rem margin 0 .05rem
span, span
min-width .5rem
.count .count
min-width .5rem min-width .5rem
font-family $font-barlow
font-size .12rem
</style> </style>
...@@ -18,18 +18,18 @@ ...@@ -18,18 +18,18 @@
</div> </div>
<m-sub2>分类排行</m-sub2> <m-sub2>分类排行</m-sub2>
<div class="chart wrapper"> <div class="chart wrapper">
<div v-if="showChart">
<m-radar :dataset="classChartData" :option="chartOption2" />
</div>
<div> <div>
<p v-for="item in classChartData.dimensions" :key="item.name"> <p v-for="item in classChartData.dimensions" :key="item.name">
<i /> {{ item.displayName }}
<span>{{ item.displayName }}</span> <m-count
<span> {{ classChartData.source[0][item.name] }}</span> class="count"
<!-- <span /> {{ item.displayName }} :value="classChartData.source[0][item.name]"
{{ classChartData.source[0][item.name] }} --> />
</p> </p>
</div> </div>
<div v-if="showChart">
<m-radar :dataset="classChartData" :option="chartOption2" />
</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -85,119 +85,80 @@ export default defineComponent({ ...@@ -85,119 +85,80 @@ export default defineComponent({
const rank = computed(() => store.state.yousubidaRank) const rank = computed(() => store.state.yousubidaRank)
const classificationRank = computed(() => store.state.classificationRank) const classificationRank = computed(() => store.state.classificationRank)
const urgentCase = computed(() => store.state.urgentCase) const urgentCase = computed(() => store.state.urgentCase)
// console.log(urgentCase)
const fontSize = computed(() => Math.floor((screen.height * 1.6) / 100)) const fontSize = computed(() => Math.floor((screen.height * 1.6) / 100))
const showChart = computed(() => store.state.curTheme === 'manage') const showChart = computed(() => store.state.curTheme === 'manage')
const summary = computed(() => { const summary = computed(() => {
// console.log(rank.value.streetDispatchNum) const {
// console.log(rank.value.streetNum) streetDispatchNum = 0,
// console.log(rank.value.streetDispatchNum / rank.value.streetNum) streetNum = 0,
comprehensiveDispatchNum = 0,
comprehensiveNum = 0,
communityDispatchNum = 0,
communityNum = 0,
} = rank.value
return [ return [
{ {
name: '街面管理', name: '街面管理',
value: rank.value.streetDispatchNum, value: streetDispatchNum,
percent: parseInt( percent: streetNum
(rank.value.streetDispatchNum / rank.value.streetNum) * 100 ? Math.floor((streetDispatchNum / streetNum) * 100)
), : 0,
}, },
{ {
name: '综合管理', name: '综合管理',
value: rank.value.communityNum, value: communityNum,
percent: percent: comprehensiveNum
(rank.value.comprehensiveDispatchNum / ? Math.floor(comprehensiveDispatchNum / comprehensiveNum) * 100
rank.value.comprehensiveNum) * : 0,
100,
}, },
{ {
name: '小区管理', name: '小区管理',
value: rank.value.communityDispatchNum, value: communityDispatchNum,
percent: parseInt( percent: communityNum
(rank.value.communityDispatchNum / rank.value.communityNum) * 100 ? Math.floor((communityDispatchNum / communityNum) * 100)
), : 0,
}, },
] ]
}) })
const tabList = ref([
{
key: '综合',
name: '综合管理',
},
{
key: '街面',
name: '街面管理',
},
{
key: '小区',
name: '小区管理',
},
])
const tabKey = ref('综合')
const getCurTabKey = (item: string) => {
tabKey.value = item
store.dispatch('GET_YOUSUBIDA_CLASSIFICATION_RANK', item)
}
const classChartData = ref({ const classChartData = ref({
dimensions: [ dimensions: [
{ name: 'class1', displayName: '分类1', max: 500 }, { name: 'class1', displayName: '分类1', max: 100 },
{ name: 'class2', displayName: '分类2', max: 500 }, { name: 'class2', displayName: '分类2', max: 100 },
{ name: 'class3', displayName: '分类3', max: 500 }, { name: 'class3', displayName: '分类3', max: 100 },
{ name: 'class4', displayName: '分类4', max: 500 },
{ name: 'class5', displayName: '分类5', max: 500 },
], ],
source: [ source: [
{ {
seriesName: '分类排行', seriesName: '分类排行',
class1: 250, class1: 0,
class2: 200, class2: 0,
class3: 200, class3: 0,
class4: 300,
class5: 230,
}, },
], ],
}) })
// 监听年份切花更改检查楼数 隐患点数 危险点数 // 监听年份切花更改检查楼数 隐患点数 危险点数
watch( watch(
[() => classificationRank.value, () => tabKey.value], () => classificationRank.value,
([data, key]) => { (data) => {
// console.log(data, key) if (!data || data.length === 0) return
if (data.length === 0) return const source: any = [
const dimensions = [
{ name: 'class1', displayName: '分类1', max: 100 },
{ name: 'class2', displayName: '其他', max: 100 },
{ name: 'class3', displayName: '其他', max: 100 },
{ name: 'class4', displayName: '其他', max: 100 },
{ name: 'class5', displayName: '其他', max: 100 },
]
const source = [
{ {
seriesName: '分类排行', seriesName: '分类排行',
class1: 0, class1: 0,
class2: 0, class2: 0,
class3: 0, class3: 0,
class4: 0,
class5: 0,
}, },
] ]
const dimensions = data.map((item, index) => {
let max = data[0].num const name = `class${index + 1}`
for (let i = 0; i < data.length - 1; i++) { source[0][name] = item.num
max = max < data[i + 1].num ? data[i + 1].num : max return {
name,
displayName: item.managementType,
max: 150,
} }
data.forEach((item, index) => {
dimensions[index].displayName = item.businsessType
dimensions[index].max = max
source[0]['class' + ++index] = item.num
}) })
classChartData.value = { classChartData.value = {
dimensions, dimensions,
source, source,
...@@ -232,7 +193,7 @@ export default defineComponent({ ...@@ -232,7 +193,7 @@ export default defineComponent({
}) })
const chartOption2 = ref({ const chartOption2 = ref({
color: ['#FF9D27'], color: [['#FBFF00', '#FFB100']],
legend: { show: false }, legend: { show: false },
radar: { radar: {
radius: '80%', radius: '80%',
...@@ -241,14 +202,12 @@ export default defineComponent({ ...@@ -241,14 +202,12 @@ export default defineComponent({
return { return {
summary, summary,
showChart, showChart,
tabList,
responseChartData, responseChartData,
chartOption, chartOption,
classChartData, classChartData,
chartOption2, chartOption2,
rank, rank,
urgentCase, urgentCase,
getCurTabKey,
} }
}, },
}) })
...@@ -275,8 +234,8 @@ export default defineComponent({ ...@@ -275,8 +234,8 @@ export default defineComponent({
>div >div
margin-left 0.05rem margin-left 0.05rem
.count .count
font-size 0.12rem font-family $font-barlow
font-weight bold font-size 0.14rem
p p
color #ccc color #ccc
.manage .manage
...@@ -293,32 +252,16 @@ export default defineComponent({ ...@@ -293,32 +252,16 @@ export default defineComponent({
>div >div
width 50% width 50%
height 100% height 100%
&:last-child &:first-child
$center() $center()
flex-direction column flex-direction column
p p
display flex width 60%
align-items center margin 0 auto
width 100% .count
i font-family $font-barlow
display inline-block font-size .12rem
width 0.06rem margin-left .1rem
height @width
border-radius 50%
margin-right 0.1rem
background #826AFA
&:nth-of-type(2) > i
background #E02020
&:nth-of-type(3) > i
background #F7B500
&:nth-of-type(4) > i
background #6DD400
&:nth-of-type(5) > i
background #32C5FF
span
flex 4
&:last-child
flex 1
.emergency .emergency
height 1.22rem height 1.22rem
overflow hidden overflow hidden
......
...@@ -22,9 +22,6 @@ ...@@ -22,9 +22,6 @@
</div> </div>
<div class="chart wrapper"> <div class="chart wrapper">
<img src="@/assets/images/pyramid.png" /> <img src="@/assets/images/pyramid.png" />
<!-- <div v-if="showChart">
<m-pie :option="pieOption" :dataset="pieData" />
</div> -->
<div> <div>
<p v-for="item in pieData" :key="item.name"> <p v-for="item in pieData" :key="item.name">
<span :style="{ background: item.color }" /> <span :style="{ background: item.color }" />
...@@ -194,6 +191,14 @@ export default defineComponent({ ...@@ -194,6 +191,14 @@ export default defineComponent({
itemWidth: fontSize.value * 0.6, itemWidth: fontSize.value * 0.6,
itemHeight: fontSize.value * 0.8, itemHeight: fontSize.value * 0.8,
}, },
xAxis: {
axisLabel: {
formatter: (value: string) => {
const arr = value.split('-')
return `${arr[1]}.${arr[2]}`
},
},
},
series: [1, 2, 3].map(() => ({ series: [1, 2, 3].map(() => ({
type: 'bar', type: 'bar',
barWidth: '18%', barWidth: '18%',
...@@ -205,84 +210,36 @@ export default defineComponent({ ...@@ -205,84 +210,36 @@ export default defineComponent({
})), })),
}) })
const pieData = computed(() => { const pieData = computed(() => {
const {
oneDisposalNum = 0,
oneNum = 0,
twoDisposalNum = 0,
twoNum = 0,
threeDisposalNum = 0,
threeNum = 0,
} = pieDatamodel.value
return [ return [
{ {
name: '第一工作站', name: '第一工作站',
value: value: oneNum ? Math.floor((oneDisposalNum / oneNum) * 100) : 0,
parseInt( num: oneNum,
(pieDatamodel.value.oneDisposalNum / pieDatamodel.value.oneNum) *
100
) || 0,
num: pieDatamodel.value.oneNum,
color: '#FE9B5F', color: '#FE9B5F',
}, },
{ {
name: '第二工作站', name: '第二工作站',
value: value: twoNum ? Math.floor((twoDisposalNum / twoNum) * 100) : 0,
parseInt( num: twoNum,
(pieDatamodel.value.twoDisposalNum / pieDatamodel.value.twoNum) *
100
) || 0,
num: pieDatamodel.value.twoNum,
color: '#36CFE1', color: '#36CFE1',
}, },
{ {
name: '第三工作站', name: '第三工作站',
value: value: threeNum ? Math.floor((threeDisposalNum / threeNum) * 100) : 0,
parseInt( num: threeNum,
(pieDatamodel.value.threeDisposalNum /
pieDatamodel.value.threeNum) *
100
) || 0,
num: pieDatamodel.value.threeNum,
color: '#429BDF', color: '#429BDF',
}, },
] ]
}) })
const pieSeries = computed(() => {
return pieData.value.map((item, i) => {
const rate =
Math.round((pieData.value.length - i) * fontSize.value) + 10
const borderWidth = fontSize.value * 0.6
return {
type: 'pie',
name: item.name,
clockwise: false, //顺时加载
radius: [rate, rate],
label: {
show: false,
},
itemStyle: {
borderWidth,
borderColor: item.color,
},
data: [
item,
{
value: 100 - item.value,
name: '',
tooltip: { show: false },
label: {
show: false,
},
itemStyle: {
color: 'transparent',
borderColor: item.color,
opacity: 0.1,
},
},
],
}
})
})
const pieOption = computed(() => ({
legend: {
show: false,
},
series: pieSeries.value,
}))
const steps = ref(['发现', '立案', '派遣', '处置', '核查', '结案']) const steps = ref(['发现', '立案', '派遣', '处置', '核查', '结案'])
const searchCase = (key: string) => { const searchCase = (key: string) => {
console.log('searck key: ', key) console.log('searck key: ', key)
} }
...@@ -294,7 +251,6 @@ export default defineComponent({ ...@@ -294,7 +251,6 @@ export default defineComponent({
barData, barData,
barOption, barOption,
pieData, pieData,
pieOption,
steps, steps,
// caseList, // caseList,
searchCase, searchCase,
...@@ -360,8 +316,7 @@ $arrow-style() ...@@ -360,8 +316,7 @@ $arrow-style()
width 36% width 36%
margin-right .28rem margin-right .28rem
>div >div
width 50% flex 1
height 100%
font-weight bold font-weight bold
&:last-child &:last-child
$center() $center()
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<div class="circle"> <div class="circle">
<Circle <Circle
class="circle-item" class="circle-item"
:value="item.rate" :value="+item.rate"
:stroke-width="8" :stroke-width="8"
:color="['#F7933E', 'rgba(253,211,116,.9)']" :color="['#F7933E', 'rgba(253,211,116,.9)']"
:rate="2.4" :rate="2.4"
...@@ -48,15 +48,13 @@ ...@@ -48,15 +48,13 @@
<div class="rank"> <div class="rank">
<m-sub2>分类排行</m-sub2> <m-sub2>分类排行</m-sub2>
<div v-if="rankList.length > 0" class="content"> <div v-if="rankList.length > 0" class="content">
<m-scroll :length="rankList.length" :limit="3"> <div v-for="item in rankList" :key="item.name">
<m-progress <span>{{ item.name }}</span>
v-for="rank in rankList" <div v-if="showChart" class="progress">
:key="rank.name" <m-progress :color="['#FF692D', '#F7973D']" :value="item.rate" />
:value="rank.rate" </div>
:msg="rank" <m-count class="count" :value="item.value" />
:color="['#FF692D', '#F7973D']" </div>
/>
</m-scroll>
</div> </div>
<m-empty v-else /> <m-empty v-else />
</div> </div>
...@@ -128,7 +126,7 @@ export default defineComponent({ ...@@ -128,7 +126,7 @@ export default defineComponent({
const data = store.state.dutyRanking[curOption.value] || [] const data = store.state.dutyRanking[curOption.value] || []
const total = data.reduce((acc, cur) => acc + cur.num, 0) const total = data.reduce((acc, cur) => acc + cur.num, 0)
return data.map((item: any) => ({ return data.map((item: any) => ({
name: item.businsessType || item.businessType, name: item.managementType,
rate: +Math.ceil((item.num / total) * 100).toFixed(0), rate: +Math.ceil((item.num / total) * 100).toFixed(0),
value: item.num, value: item.num,
unit: '件', unit: '件',
...@@ -236,9 +234,6 @@ export default defineComponent({ ...@@ -236,9 +234,6 @@ export default defineComponent({
{ name: '事件类型1', value: 3110, rate: 62 }, { name: '事件类型1', value: 3110, rate: 62 },
{ name: '事件类型2', value: 3110, rate: 62 }, { name: '事件类型2', value: 3110, rate: 62 },
{ name: '事件类型3', value: 3110, rate: 62 }, { name: '事件类型3', value: 3110, rate: 62 },
{ name: '事件类型4', value: 3110, rate: 62 },
{ name: '事件类型5', value: 3110, rate: 62 },
{ name: '事件类型6', value: 3110, rate: 62 },
], ],
showChart, showChart,
total, total,
...@@ -281,10 +276,24 @@ export default defineComponent({ ...@@ -281,10 +276,24 @@ export default defineComponent({
color #fff color #fff
background $secondary-color background $secondary-color
.rank .rank
margin-top .3rem margin-top .2rem
.content .content
height .6rem height .8rem
overflow hidden display flex
flex-direction column
justify-content space-around
>div
display flex
align-items center
justify-content space-between
.progress
flex 1
margin 0 .1rem
span
color #ccc
.count
font-family $font-barlow
font-size .12rem
.place .place
margin-top .1rem margin-top .1rem
.content .content
...@@ -315,7 +324,7 @@ export default defineComponent({ ...@@ -315,7 +324,7 @@ export default defineComponent({
height 90% height 90%
.duty-type .duty-type
width 100% width 100%
height 1.2rem height .6rem
display flex display flex
flex-wrap wrap flex-wrap wrap
>div >div
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<div class="details"> <div class="details">
<m-scroll <m-scroll
v-if="caseList.length > 0" v-if="caseList.length > 0"
:limit="4" :limit="3"
:length="caseList.length" :length="caseList.length"
:step="0.88" :step="0.88"
mode="2" mode="2"
...@@ -91,7 +91,7 @@ export default defineComponent({ ...@@ -91,7 +91,7 @@ export default defineComponent({
@import '../../components/MyComponent/main.styl' @import '../../components/MyComponent/main.styl'
.details .details
height 3.52rem height 2.64rem
overflow hidden overflow hidden
.detail .detail
display flex display flex
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<m-card title="生态"> <m-card title="生态">
<div class="detail"> <div class="detail">
<div v-for="item in ecologyList" :key="item.name"> <div v-for="item in ecologyList" :key="item.name">
<m-count class="count" :value="item.value" /> <m-count class="count orange-count" :value="item.value" />
<p>{{ item.name }}</p> <p>{{ item.name }}</p>
</div> </div>
</div> </div>
...@@ -96,8 +96,7 @@ export default defineComponent({ ...@@ -96,8 +96,7 @@ export default defineComponent({
align-items center align-items center
.count .count
font-size .14rem font-size .14rem
font-family $font-pang font-family $font-barlow
color $orange
margin-right .08rem margin-right .08rem
.sum .sum
display flex display flex
...@@ -106,13 +105,14 @@ export default defineComponent({ ...@@ -106,13 +105,14 @@ export default defineComponent({
display flex display flex
align-items center align-items center
width 33.3% width 33.3%
margin .05rem 0 margin .02rem 0
img img
width .26rem width .26rem
height @width height @width
margin 0 .1rem 0 .05rem margin 0 .1rem 0 .05rem
.count .count
font-size .12rem font-size .14rem
font-family $font-barlow
p p
color #ccc color #ccc
.photos .photos
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<m-card title="应急物资储备" style="height: 1rem"> <m-card title="应急物资储备" style="height: 1rem">
<div class="emergency"> <div class="emergency">
<div v-for="(item, index) in list" :key="index"> <div v-for="(item, index) in list" :key="index">
<m-count class="count" :value="item.value" /> <m-count class="count orange-count" :value="item.value" />
<p>{{ item.name }}</p> <p>{{ item.name }}</p>
</div> </div>
</div> </div>
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
</div> </div>
<div class="bottom-box"> <div class="bottom-box">
<m-sub2>重点关注楼宇</m-sub2> <m-sub2>重点关注楼宇</m-sub2>
<a class="check-btn" @click="listModal = true">查看清单</a> <a class="check-btn" @click="listModal = true">查看清单>></a>
<div class="content"> <div class="content">
<div v-for="item in buildings.slice(0, 9)" :key="item.id"> <div v-for="item in buildings.slice(0, 9)" :key="item.id">
<div> <div>
...@@ -94,7 +94,6 @@ ...@@ -94,7 +94,6 @@
import { defineComponent, watch, computed, ref } from 'vue' import { defineComponent, watch, computed, ref } from 'vue'
import store from '@/store' import store from '@/store'
import Summary from '../components/summary.vue' import Summary from '../components/summary.vue'
import SubTitle from '../components/sub-title.vue'
import avatar8 from '@/assets/images/avatar8.png' import avatar8 from '@/assets/images/avatar8.png'
import one from '@/assets/images/1.png' import one from '@/assets/images/1.png'
import two from '@/assets/images/2.png' import two from '@/assets/images/2.png'
...@@ -102,7 +101,7 @@ import three from '@/assets/images/3.png' ...@@ -102,7 +101,7 @@ import three from '@/assets/images/3.png'
export default defineComponent({ export default defineComponent({
name: 'EmergencyStore', name: 'EmergencyStore',
components: { Summary, SubTitle }, components: { Summary },
setup() { setup() {
const showChart = computed(() => store.state.curTheme === 'safety') const showChart = computed(() => store.state.curTheme === 'safety')
store.dispatch('GET_PUBLICSAFE_SOS_MATERIAL') store.dispatch('GET_PUBLICSAFE_SOS_MATERIAL')
...@@ -300,9 +299,8 @@ export default defineComponent({ ...@@ -300,9 +299,8 @@ export default defineComponent({
justify-content space-around justify-content space-around
width 20% width 20%
.count .count
font-family $font-pang font-family $font-barlow
font-size .14rem font-size .14rem
color $orange
.out-house .out-house
flex 1 flex 1
.chart-container .chart-container
...@@ -321,7 +319,7 @@ export default defineComponent({ ...@@ -321,7 +319,7 @@ export default defineComponent({
margin-right .05rem margin-right .05rem
.count .count
font-size .12rem font-size .12rem
font-weight bold font-family $font-barlow
.chart .chart
width 75% width 75%
height 100% height 100%
...@@ -339,11 +337,14 @@ export default defineComponent({ ...@@ -339,11 +337,14 @@ export default defineComponent({
flex-wrap wrap flex-wrap wrap
>div >div
width 31% width 31%
$card-bg2()
padding .05rem .08rem padding .05rem .08rem
margin-top .08rem margin-top .08rem
border-radius .03rem
background linear-gradient(to right bottom, rgba(124,139,154,.3), rgba(70,83,97,.3))
box-shadow 0 0 .4rem 0 rgba(45,51,66,.5)
.count .count
font-size 0.12rem font-size 0.12rem
font-family $font-barlow
>div >div
display flex display flex
align-items center align-items center
...@@ -358,7 +359,7 @@ export default defineComponent({ ...@@ -358,7 +359,7 @@ export default defineComponent({
color #ccc color #ccc
&:last-child &:last-child
.count .count
color $red color #FF5C5C
.count .count
color #fff color #fff
margin-left .05rem margin-left .05rem
......
...@@ -167,7 +167,7 @@ export default defineComponent({ ...@@ -167,7 +167,7 @@ export default defineComponent({
color #eee color #eee
.count .count
font-size 0.14rem font-size 0.14rem
font-family $font-pang font-family $font-barlow
.unit .unit
color #aaa color #aaa
font-size 0.08rem font-size 0.08rem
...@@ -186,8 +186,8 @@ export default defineComponent({ ...@@ -186,8 +186,8 @@ export default defineComponent({
>div >div
margin-left 0.05rem margin-left 0.05rem
.count .count
font-size 0.12rem font-size 0.14rem
font-weight bold font-family $font-barlow
p p
color #ccc color #ccc
</style> </style>
<template> <template>
<m-card title="重点工作" class="box" :mode="mode"> <m-card title="重点工作" class="box" :mode="mode" :no-bg="false">
<div v-if="show" ref="cloudRef" class="cloud" :style="`height:${height}`" /> <div v-if="show" ref="cloudRef" class="cloud" />
</m-card> </m-card>
</template> </template>
...@@ -49,16 +49,27 @@ export default defineComponent({ ...@@ -49,16 +49,27 @@ export default defineComponent({
type: Array as PropType<{ name: string; value: number }[]>, type: Array as PropType<{ name: string; value: number }[]>,
default: () => { default: () => {
return [ return [
{ name: '明厨亮灶', value: 100 }, { name: '明厨亮灶', value: 100 * Math.random() },
{ name: '民宿群租', value: 100 }, { name: '民宿群租', value: 100 * Math.random() },
{ name: '垃圾分类', value: 100 }, { name: '垃圾分类', value: 100 * Math.random() },
{ name: '小型工程纳管', value: 100 }, { name: '小型工程纳管', value: 100 * Math.random() },
{ name: '非机动车停放', value: 100 }, { name: '非机动车停放', value: 100 * Math.random() },
{ name: '马桶改造', value: 100 }, { name: '马桶改造', value: 100 * Math.random() },
{ name: '电梯加装', value: 100 }, { name: '电梯加装', value: 100 * Math.random() },
{ name: '居改非', value: 100 }, { name: '居改非', value: 100 * Math.random() },
{ name: '无证无照整治', value: 100 }, { name: '无证无照整治', value: 100 * Math.random() },
{ name: '楼道堆物', value: 100 }, { name: '楼道堆物', value: 100 * Math.random() },
{ name: '党建联建', value: 100 * Math.random() },
{ name: '动迁改造', value: 100 * Math.random() },
{ name: '文明城区创建', value: 100 * Math.random() },
{ name: '重塑老城厢', value: 100 * Math.random() },
{ name: '推动商旅文联动', value: 100 * Math.random() },
{ name: '水环境治理', value: 100 * Math.random() },
{ name: '供水防涝', value: 100 * Math.random() },
{ name: '美丽街区', value: 100 * Math.random() },
{ name: '美丽家园', value: 100 * Math.random() },
{ name: '非机动车安全管理', value: 100 * Math.random() },
{ name: '房屋隐患排查', value: 100 * Math.random() },
] ]
}, },
}, },
...@@ -94,16 +105,17 @@ export default defineComponent({ ...@@ -94,16 +105,17 @@ export default defineComponent({
{ {
type: 'wordCloud', type: 'wordCloud',
sizeRange: [sizeRate.value, sizeRate.value * 2.2], sizeRange: [sizeRate.value, sizeRate.value * 2.2],
rotationRange: [0, 0], rotationRange: [0, 90],
rotationStep: 90, rotationStep: 45,
gridSize: sizeRate.value, gridSize: sizeRate.value,
shape: 'pentagon', shape: 'pentagon',
width: '100%', width: '100%',
height: '100%', height: '100%',
textStyle: { textStyle: {
color: function () { color: function () {
const index = Math.floor(Math.random() * props.color.length) // const index = Math.floor(Math.random() * props.color.length)
return props.color[index] // return props.color[index]
return `rgba(255,255,255,${Math.random() * 1.1})`
}, },
fontWeight: 550, fontWeight: 550,
}, },
...@@ -135,6 +147,7 @@ export default defineComponent({ ...@@ -135,6 +147,7 @@ export default defineComponent({
<style lang="stylus" scoped> <style lang="stylus" scoped>
.cloud .cloud
width 100% width 100%
height 96%
box-sizing border-box box-sizing border-box
overflow hidden overflow hidden
</style> </style>
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<m-sub2 :addition="{ value: 14696 }">老人数量</m-sub2> <m-sub2 :addition="{ value: 14696 }">老人数量</m-sub2>
<div class="sum"> <div class="sum">
<div v-for="item in oldSum" :key="item.name"> <div v-for="item in oldSum" :key="item.name">
<p class="count"><m-count :value="item.value" />%</p> <p class="count orange-count"><m-count :value="item.value" />%</p>
<span>{{ item.name }}</span> <span>{{ item.name }}</span>
</div> </div>
</div> </div>
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
<div class="circle"> <div class="circle">
<Circle <Circle
class="circle-item" class="circle-item"
:value="item.percent" :value="+item.percent"
:stroke-width="8" :stroke-width="8"
:color="['#F7933E', 'rgba(253,211,116,.9)']" :color="['#F7933E', 'rgba(253,211,116,.9)']"
:rate="2.4" :rate="2.4"
...@@ -78,11 +78,11 @@ ...@@ -78,11 +78,11 @@
<m-sub2>长护险</m-sub2> <m-sub2>长护险</m-sub2>
<div class="insurance"> <div class="insurance">
<div> <div>
<m-count class="count" :value="1113" /> <m-count class="count orange-count" :value="1113" />
<span>申请人数</span> <span>申请人数</span>
</div> </div>
<div> <div>
<m-count class="count" :value="812" /> <m-count class="count orange-count" :value="812" />
<span>申请通过人数</span> <span>申请通过人数</span>
</div> </div>
</div> </div>
...@@ -166,7 +166,7 @@ export default defineComponent({ ...@@ -166,7 +166,7 @@ export default defineComponent({
], ],
}) })
const insuranceOption = ref({ const insuranceOption = ref({
color: ['#E690D1'], color: ['#01bffe'],
legend: { show: false }, legend: { show: false },
}) })
const showChart = computed(() => store.state.curTheme === 'service') const showChart = computed(() => store.state.curTheme === 'service')
...@@ -199,8 +199,7 @@ export default defineComponent({ ...@@ -199,8 +199,7 @@ export default defineComponent({
padding .05rem padding .05rem
.count .count
font-size .14rem font-size .14rem
color $orange font-family $font-barlow
font-family $font-pang
margin-right .03rem margin-right .03rem
.distribute .distribute
width 100% width 100%
...@@ -287,10 +286,9 @@ export default defineComponent({ ...@@ -287,10 +286,9 @@ export default defineComponent({
align-items center align-items center
.count .count
font-size .14rem font-size .14rem
color $orange font-family $font-barlow
font-family $font-pang
margin-right .1rem margin-right .1rem
.insurance-chart .insurance-chart
width 100% width 100%
height 0.9rem height 0.8rem
</style> </style>
...@@ -231,6 +231,7 @@ export default defineComponent({ ...@@ -231,6 +231,7 @@ export default defineComponent({
.count .count
margin-left 0.08rem margin-left 0.08rem
font-size 0.12rem font-size 0.12rem
font-family $font-barlow
.show .show
span span
color #FFD400 color #FFD400
......
...@@ -62,7 +62,7 @@ export default defineComponent({ ...@@ -62,7 +62,7 @@ export default defineComponent({
padding 0.05rem 0.15rem padding 0.05rem 0.15rem
.count .count
font-size 0.14rem font-size 0.14rem
font-family $font-pang font-family $font-barlow
color $orange color $orange
>div >div
display flex display flex
......
...@@ -9,13 +9,7 @@ ...@@ -9,13 +9,7 @@
<m-card mode="border2"> <m-card mode="border2">
<div class="first-child"><CaseAnalysis /></div> <div class="first-child"><CaseAnalysis /></div>
<div class="second-child"> <div class="second-child">
<KeyTask <KeyTask mode="4" :show="showKeyTask" :bg="null" />
mode="4"
:show="showKeyTask"
:color="taskColor"
height="1rem"
:bg="null"
/>
</div> </div>
<div class="third-child"><BussinessEntry /></div> <div class="third-child"><BussinessEntry /></div>
</m-card> </m-card>
...@@ -38,17 +32,6 @@ export default defineComponent({ ...@@ -38,17 +32,6 @@ export default defineComponent({
const showKeyTask = computed(() => store.state.curTheme === 'manage') const showKeyTask = computed(() => store.state.curTheme === 'manage')
return { return {
showKeyTask, showKeyTask,
taskColor: [
'#fff',
'#fff',
'#fff',
'#fff',
'#fff',
'#fff',
'#fff',
'#fff',
'#fff',
],
} }
}, },
}) })
...@@ -65,9 +48,8 @@ export default defineComponent({ ...@@ -65,9 +48,8 @@ export default defineComponent({
width 33% width 33%
.first-child .first-child
flex 1 flex 1
// height 50%
.second-child .second-child
height 2rem flex 1
.third-child .third-child
height 1rem height 1.4rem
</style> </style>
...@@ -41,5 +41,5 @@ export default defineComponent({ ...@@ -41,5 +41,5 @@ export default defineComponent({
.house .house
flex 2 flex 2
.company .company
flex 1.2 flex 1.4
</style> </style>
...@@ -7,13 +7,7 @@ ...@@ -7,13 +7,7 @@
<m-card mode="border2"> <m-card mode="border2">
<div class="duty"><Duty /></div> <div class="duty"><Duty /></div>
<div class="task"> <div class="task">
<KeyTask <KeyTask mode="4" :show="showTask" :bg="null" />
mode="4"
:show="showTask"
:color="taskColor"
height="1rem"
:bg="null"
/>
</div> </div>
</m-card> </m-card>
<m-card mode="border2"> <m-card mode="border2">
...@@ -47,17 +41,6 @@ export default defineComponent({ ...@@ -47,17 +41,6 @@ export default defineComponent({
const showTask = computed(() => store.state.curView.type !== 'street') const showTask = computed(() => store.state.curView.type !== 'street')
return { return {
showTask, showTask,
taskColor: [
'#fff',
'#eee',
'#ddd',
'#ccc',
'#bbb',
'#aaa',
'#999',
'#888',
'#777',
],
} }
}, },
}) })
...@@ -80,8 +63,7 @@ export default defineComponent({ ...@@ -80,8 +63,7 @@ export default defineComponent({
// .duty, // .duty,
// .analysis // .analysis
// flex: 1 // flex: 1
.entry .entry,
.task .task
flex 1 flex 1
// height 1.28rem
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment