|
|
|
@ -7,7 +7,21 @@
|
|
|
|
|
<Charts :options="row2Options" ref="row2Chart" /> |
|
|
|
|
</TitleBox> |
|
|
|
|
<TitleBox title="资质许可状态"> |
|
|
|
|
<section></section> |
|
|
|
|
<section class="height-100% width-100% flex flex-col gap-12px"> |
|
|
|
|
<section class="flex justify-between font-size-14px" v-for="(row, index) in list" :key="index"> |
|
|
|
|
<span>{{ row.name }}</span> |
|
|
|
|
<section class="color-#56CA00"> |
|
|
|
|
逾期 |
|
|
|
|
<count-to |
|
|
|
|
:start-val="0" |
|
|
|
|
:end-val="row.count" |
|
|
|
|
:duration="1000" |
|
|
|
|
:options="{ separator: ',', decimal: 0 }" |
|
|
|
|
/> |
|
|
|
|
天 |
|
|
|
|
</section> |
|
|
|
|
</section> |
|
|
|
|
</section> |
|
|
|
|
</TitleBox> |
|
|
|
|
<TitleBox> |
|
|
|
|
<Charts :options="row3Options" ref="row3Chart" /> |
|
|
|
@ -58,6 +72,9 @@ const row1Options = ref({
|
|
|
|
|
color: '#fff' |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
max: (v) => { |
|
|
|
|
return Math.floor(v.max * 1.1 + 1) |
|
|
|
|
}, |
|
|
|
|
axisLabel: { |
|
|
|
|
show: false |
|
|
|
|
}, |
|
|
|
@ -76,6 +93,9 @@ const row1Options = ref({
|
|
|
|
|
color: '#fff' |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
max: (v) => { |
|
|
|
|
return Math.floor(v.max * 1.1 + 1) |
|
|
|
|
}, |
|
|
|
|
axisLabel: { |
|
|
|
|
show: false |
|
|
|
|
}, |
|
|
|
@ -154,7 +174,7 @@ const row1Options = ref({
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
const list: any = ref([]) |
|
|
|
|
const color = ['#56CA00', '#FFE700', '#16B1FF'] |
|
|
|
|
const row2Options = ref({ |
|
|
|
|
series: [ |
|
|
|
@ -262,6 +282,9 @@ const row3Options=ref({
|
|
|
|
|
color: '#fff' |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
max: (v) => { |
|
|
|
|
return Math.floor(v.max * 1.1 + 1) |
|
|
|
|
}, |
|
|
|
|
axisLabel: { |
|
|
|
|
show: false |
|
|
|
|
}, |
|
|
|
@ -280,6 +303,9 @@ const row3Options=ref({
|
|
|
|
|
color: '#fff' |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
max: (v) => { |
|
|
|
|
return Math.floor(v.max * 1.1 + 1) |
|
|
|
|
}, |
|
|
|
|
axisLabel: { |
|
|
|
|
show: false |
|
|
|
|
}, |
|
|
|
@ -320,7 +346,7 @@ const row3Options=ref({
|
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: '任务数量', |
|
|
|
@ -387,31 +413,49 @@ const queryParams:any = ref()
|
|
|
|
|
|
|
|
|
|
//右一数据 |
|
|
|
|
const rightFirst = async () => { |
|
|
|
|
const data:any = await ScreenApi.getRightFirst(queryParams.value); |
|
|
|
|
row1Options.value.xAxis.data = data.map(i=>i.name) |
|
|
|
|
row1Options.value.series[0].data = data.map(i=>i.value) |
|
|
|
|
row1Options.value.series[1].data = data.map(i=>i.taskValue) |
|
|
|
|
const data: any = await ScreenApi.getRightFirst(queryParams.value) |
|
|
|
|
row1Options.value.xAxis.data = data.map((i) => i.name) |
|
|
|
|
row1Options.value.series[0].data = data.map((i) => i.value) |
|
|
|
|
row1Options.value.series[1].data = data.map((i) => i.taskValue) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//右二数据 |
|
|
|
|
const rightSecond = async () => { |
|
|
|
|
const data = await ScreenApi.getRightSecond(queryParams.value); |
|
|
|
|
row2Options.value.series[0].data = data |
|
|
|
|
const data = await ScreenApi.getRightSecond(queryParams.value) |
|
|
|
|
row2Options.value.series[0].data = data.map((i, index) => { |
|
|
|
|
return { |
|
|
|
|
value: i.value, |
|
|
|
|
name: i.name, |
|
|
|
|
itemStyle: { |
|
|
|
|
color: color[index] |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
row2Options.value.legend.data = data.map((i, index) => { |
|
|
|
|
return { |
|
|
|
|
name: `${i.name}`, |
|
|
|
|
textStyle: { |
|
|
|
|
color: color[index] |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
row2Options.value.legend.formatter = (v) => { |
|
|
|
|
const count = data.find((d) => v == d.name).value |
|
|
|
|
return `${v} ${count}` |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 右三数据 |
|
|
|
|
// const rightThird = async() => { |
|
|
|
|
// const data = await ScreenApi.getRightThird(queryParams.value); |
|
|
|
|
// row3Options.value.yAxis[0].data = data.map(i=>i.name) |
|
|
|
|
// row3Options.value.yAxis[1].data = data.map(i=>i.finishCount) |
|
|
|
|
// } |
|
|
|
|
const rightThird = async () => { |
|
|
|
|
list.value = await ScreenApi.getRightThird(queryParams.value) |
|
|
|
|
} |
|
|
|
|
// 右四数据 |
|
|
|
|
// const rightFourth = async() => { |
|
|
|
|
// const data = await ScreenApi.getRightFourth(queryParams.value); |
|
|
|
|
// row3Options.value.xAxis[0].data = data.map(i=>i.name) |
|
|
|
|
// row3Options.value.yAxis[1].data = data.map(i=>i.finishCount) |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
const rightFourth = async () => { |
|
|
|
|
const data = await ScreenApi.getRightFourth(queryParams.value) |
|
|
|
|
row3Options.value.xAxis.data = data.map((i) => i.name) |
|
|
|
|
row3Options.value.series[0].data = data.map((i) => i.enforcementGrowthRate) |
|
|
|
|
row3Options.value.series[1].data = data.map((i) => i.taskGrowthRate) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const handlerResize = () => { |
|
|
|
|
unref(row1Chart).resizeHandler() |
|
|
|
@ -423,6 +467,8 @@ onMounted(() => {
|
|
|
|
|
initChart() |
|
|
|
|
rightFirst() |
|
|
|
|
rightSecond() |
|
|
|
|
rightFourth() |
|
|
|
|
rightThird() |
|
|
|
|
observer = new ResizeObserver(handlerResize) |
|
|
|
|
observer.observe(rightWrapperRef.value) |
|
|
|
|
handlerResize() |
|
|
|
|