提交 65661577 authored 作者: 邓文彬's avatar 邓文彬

fix(资源开放): UI优化

上级 96098ebe
......@@ -82,10 +82,10 @@
:key="item.label"
:class="{
active: index === curYearIndex,
disabed: index === 0
disabed: item.disabed
}"
@click="yearHandle(item.value, index)"
@click="yearHandle(item, index)"
>{{ item.label }}</span
>
</div>
......@@ -118,14 +118,17 @@ export default defineComponent({
{
label: "2020年第四季度",
value: "typeOne",
disabed: true
},
{
label: "2021年第二季度",
value: "typeTwo",
disabed: false
},
{
label: "2021年第三季度",
value: "typeThree",
disabed: false
},
],
curYearIndex: 1,
......@@ -164,10 +167,10 @@ export default defineComponent({
},
},
methods: {
yearHandle(value: String, index: number) {
if(index === 0) return;
yearHandle(item: {}, index: Number) {
if(item.disabed) return;
this.$store.commit("SET_CUR_DATA_TYPE", value);
this.$store.commit("SET_CUR_DATA_TYPE", item.value);
this.curYearIndex = index;
},
navClick(item: {}, index: number) {
......
export default {
"typeOne": [],
"typeThree": [13.2, 14, 10, 10, 14, 12.5, 7.5, 13.5, 10, 12, 10],
"typeThree": [],
"typeTwo": [13.2, 14, 10, 10, 14, 12.5, 7.5, 13.5, 10, 12, 10],
}
\ No newline at end of file
......@@ -3,7 +3,7 @@
<div class="total-contrac-describes">
<div class="meeting">
<div> 军地需求对接活动情况</div>
<div>军地需求对接活动情况</div>
<div class="frequency">
{{ count || "--" }}
<span class="second"></span>
......@@ -100,8 +100,7 @@ export default defineComponent({
optionBar() {
const seriesBar = {
type: "pie",
// radius: [20, 140],
radius: ['40%', '70%'],
radius: ["40%", "70%"],
itemStyle: {
borderRadius: 0,
},
......@@ -168,8 +167,8 @@ export default defineComponent({
</script>
<style>
.echart-foot .incom-distribution canvas{
transform: scale(1.12) translateX(-20px)
.echart-foot .incom-distribution canvas {
transform: scale(1.12) translateX(-15px);
}
.resource-share-tooltip .title {
color: #333;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论