Merge branch 'main' of git.zdool.com:xs/ggfwjsc
This commit is contained in:
commit
5d379df88b
|
@ -0,0 +1,76 @@
|
||||||
|
<template>
|
||||||
|
<div ref="chart" style="width: 100%; height: 220px"></div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup >
|
||||||
|
import { onMounted, reactive, ref } from "vue";
|
||||||
|
// 局部引入echarts核心模块
|
||||||
|
import * as echarts from "echarts";
|
||||||
|
|
||||||
|
const chart = ref(); // 创建DOM引用
|
||||||
|
|
||||||
|
let option = {
|
||||||
|
tooltip: {
|
||||||
|
trigger: "axis",
|
||||||
|
},
|
||||||
|
legend: {
|
||||||
|
data: ["80-90补贴人次", "90-98补贴人次", "99以上补贴人次"],
|
||||||
|
},
|
||||||
|
grid: {
|
||||||
|
left: "3%",
|
||||||
|
right: "4%",
|
||||||
|
bottom: "3%",
|
||||||
|
containLabel: true,
|
||||||
|
},
|
||||||
|
|
||||||
|
xAxis: {
|
||||||
|
type: "category",
|
||||||
|
// boundaryGap: false,
|
||||||
|
data: ["1月", "2月", "3月", "4月", "5月"],
|
||||||
|
},
|
||||||
|
yAxis: {
|
||||||
|
type: "value",
|
||||||
|
},
|
||||||
|
series: [
|
||||||
|
{
|
||||||
|
name: "80-90补贴人次",
|
||||||
|
type: "line",
|
||||||
|
stack: "Total",
|
||||||
|
data: [120, 132, 101, 134, 90],
|
||||||
|
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "90-98补贴人次",
|
||||||
|
type: "line",
|
||||||
|
stack: "Total",
|
||||||
|
data: [220, 182, 191, 234, 290],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "99以上补贴人次",
|
||||||
|
type: "line",
|
||||||
|
stack: "Total",
|
||||||
|
data: [150, 232, 201, 154, 190],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
|
|
||||||
|
// 使用生命钩子
|
||||||
|
onMounted(() => {
|
||||||
|
// 基于准备好的dom,初始化echarts实例
|
||||||
|
// var myChart = echarts.init(document.getElementById('main'));
|
||||||
|
// Vue3中: 需要引入
|
||||||
|
var myChart = echarts.init(chart.value);
|
||||||
|
|
||||||
|
// init(); // vue3.2没有this
|
||||||
|
// 使用刚指定的配置项和数据显示图表。
|
||||||
|
myChart.setOption(option);
|
||||||
|
|
||||||
|
// 单图表响应式: 跟随浏览器大小改变
|
||||||
|
// window.addEventListener("resize", () => {
|
||||||
|
// myChart.resize();
|
||||||
|
// });
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
</style>
|
|
@ -0,0 +1,77 @@
|
||||||
|
<template>
|
||||||
|
<div ref="chart" style="width: 100%; height: 220px"></div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup >
|
||||||
|
import { onMounted, reactive, ref } from "vue";
|
||||||
|
// 局部引入echarts核心模块
|
||||||
|
import * as echarts from "echarts";
|
||||||
|
|
||||||
|
const chart = ref(); // 创建DOM引用
|
||||||
|
|
||||||
|
let option = {
|
||||||
|
|
||||||
|
tooltip: {
|
||||||
|
trigger: 'axis'
|
||||||
|
},
|
||||||
|
legend: {
|
||||||
|
data: ['80-90补贴人次', '90-98补贴人次', '99以上补贴人次']
|
||||||
|
},
|
||||||
|
grid: {
|
||||||
|
left: '3%',
|
||||||
|
right: '4%',
|
||||||
|
bottom: '3%',
|
||||||
|
containLabel: true
|
||||||
|
},
|
||||||
|
|
||||||
|
xAxis: {
|
||||||
|
type: 'category',
|
||||||
|
// boundaryGap: false,
|
||||||
|
data: ['1月', '2月', '3月', '4月', '5月']
|
||||||
|
},
|
||||||
|
yAxis: {
|
||||||
|
type: 'value'
|
||||||
|
},
|
||||||
|
series: [
|
||||||
|
{
|
||||||
|
name: '80-90补贴人次',
|
||||||
|
type: 'line',
|
||||||
|
stack: 'Total',
|
||||||
|
data: [120, 132, 101, 134, 90]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '90-98补贴人次',
|
||||||
|
type: 'line',
|
||||||
|
stack: 'Total',
|
||||||
|
data: [220, 182, 191, 234, 290]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '99以上补贴人次',
|
||||||
|
type: 'line',
|
||||||
|
stack: 'Total',
|
||||||
|
data: [150, 232, 201, 154, 190]
|
||||||
|
},
|
||||||
|
|
||||||
|
]
|
||||||
|
};
|
||||||
|
|
||||||
|
// 使用生命钩子
|
||||||
|
onMounted(() => {
|
||||||
|
// 基于准备好的dom,初始化echarts实例
|
||||||
|
// var myChart = echarts.init(document.getElementById('main'));
|
||||||
|
// Vue3中: 需要引入
|
||||||
|
var myChart = echarts.init(chart.value);
|
||||||
|
|
||||||
|
// init(); // vue3.2没有this
|
||||||
|
// 使用刚指定的配置项和数据显示图表。
|
||||||
|
myChart.setOption(option);
|
||||||
|
|
||||||
|
// 单图表响应式: 跟随浏览器大小改变
|
||||||
|
// window.addEventListener("resize", () => {
|
||||||
|
// myChart.resize();
|
||||||
|
// });
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
</style>
|
File diff suppressed because one or more lines are too long
|
@ -6,7 +6,7 @@
|
||||||
<img class="title" src="../assets/img_07.png" alt="" />
|
<img class="title" src="../assets/img_07.png" alt="" />
|
||||||
</div> -->
|
</div> -->
|
||||||
<Header />
|
<Header />
|
||||||
<router-view/>
|
<router-view />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -25,23 +25,50 @@ window.addEventListener("resize", () =>
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
//监测分辨率发生改变就对页面进行刷新,可以改变zoom的值
|
//监测分辨率发生改变就对页面进行刷新,可以改变zoom的值
|
||||||
location.reload();
|
location.reload();
|
||||||
|
// bodyScale();
|
||||||
}, 10)
|
}, 10)
|
||||||
);
|
);
|
||||||
|
|
||||||
const ismobile = ref();
|
const insertCss = (select, styles) => {
|
||||||
|
console.log(styles);
|
||||||
|
if (document.styleSheets.length === 0) {
|
||||||
|
//如果没有style标签,则创建一个style标签
|
||||||
|
var style = document.createElement("style");
|
||||||
|
document.head.appendChild(style);
|
||||||
|
}
|
||||||
|
var styleSheet = document.styleSheets[document.styleSheets.length - 1]; //如果有style 标签.则插入到最后一个style标签中
|
||||||
|
var str = select + " {"; //插入的内容必须是字符串,所以得把obj转化为字符串
|
||||||
|
for (var prop in styles) {
|
||||||
|
str +=
|
||||||
|
prop.replace(/([A-Z])/g, function (item) {
|
||||||
|
//使用正则把大写字母替换成 '-小写字母'
|
||||||
|
return "-" + item.toLowerCase();
|
||||||
|
}) +
|
||||||
|
":" +
|
||||||
|
styles[prop] +
|
||||||
|
";";
|
||||||
|
}
|
||||||
|
str += "}";
|
||||||
|
styleSheet.insertRule(str, styleSheet.cssRules.length); //插入样式到最后一个style标签中的最后面
|
||||||
|
};
|
||||||
|
|
||||||
// let zoom = document.body.clientWidth / 1920;
|
|
||||||
// document.getElementsByTagName("body")[0].style.setProperty("--zoom", zoom);
|
|
||||||
onBeforeMount(() => {
|
onBeforeMount(() => {
|
||||||
let zoom = document.body.clientWidth / 1920;
|
let zoom = document.body.clientWidth / 1920;
|
||||||
document.getElementsByTagName("body")[0].style.setProperty("--zoom", zoom);
|
document.getElementsByTagName("body")[0].style.setProperty("--zoom", zoom);
|
||||||
ismobile.value = false;
|
//解决zoom放大缩小导致echarts位置偏移问题
|
||||||
|
let strScale = `scale(${zoom})`;
|
||||||
|
var obj = {
|
||||||
|
zoom: 1 / zoom,
|
||||||
|
transform: strScale,
|
||||||
|
transformOrigin: "0 0",
|
||||||
|
};
|
||||||
|
insertCss("canvas", obj);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.content {
|
.content {
|
||||||
background-color: rgba(2, 4, 27, 1);
|
background-color: rgba(8, 35, 68, 1);
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
|
|
156
src/view/yl.vue
156
src/view/yl.vue
|
@ -1,6 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="module">
|
<div class="module">
|
||||||
<div class="module_left">
|
|
||||||
<div class="displayFlex">
|
<div class="displayFlex">
|
||||||
<div class="flex1">
|
<div class="flex1">
|
||||||
<div class="yd_title">
|
<div class="yd_title">
|
||||||
|
@ -12,62 +11,13 @@
|
||||||
<div class="yd_title">
|
<div class="yd_title">
|
||||||
<span class="text">基本信息</span>
|
<span class="text">基本信息</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="basicInformation">
|
<eP2></eP2>
|
||||||
<div class="basicInformation_item">
|
|
||||||
<img class="icon" src="../assets/img_01.png" alt="" />
|
|
||||||
<div class="right">
|
|
||||||
<div class="label">
|
|
||||||
<span>学历</span>
|
|
||||||
</div>
|
|
||||||
<p>浙江大学研究生</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="basicInformation_item">
|
|
||||||
<img class="icon" src="../assets/img_01.png" alt="" />
|
|
||||||
<div class="right">
|
|
||||||
<div class="label">
|
|
||||||
<span>性格</span>
|
|
||||||
</div>
|
|
||||||
<p>沉稳</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="basicInformation_item">
|
|
||||||
<img class="icon" src="../assets/img_01.png" alt="" />
|
|
||||||
<div class="right">
|
|
||||||
<div class="label">
|
|
||||||
<span>分类</span>
|
|
||||||
</div>
|
|
||||||
<p>乡贤代表</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="basicInformation_item">
|
|
||||||
<img class="icon" src="../assets/img_01.png" alt="" />
|
|
||||||
<div class="right">
|
|
||||||
<div class="label">
|
|
||||||
<span>所属行业</span>
|
|
||||||
</div>
|
|
||||||
<p>计算机<br />应用专家</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="basicInformation_item">
|
|
||||||
<img class="icon" src="../assets/img_01.png" alt="" />
|
|
||||||
<div class="right">
|
|
||||||
<div class="label">
|
|
||||||
<span>家属情况</span>
|
|
||||||
</div>
|
|
||||||
<p>父母去世,姨妈 在象</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="basicInformation_item">
|
|
||||||
<img class="icon" src="../assets/img_01.png" alt="" />
|
|
||||||
<div class="right">
|
|
||||||
<div class="label">
|
|
||||||
<span>对乡情感</span>
|
|
||||||
</div>
|
|
||||||
<p>积极参与</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="flex1">
|
||||||
|
<div class="yd_title">
|
||||||
|
<span class="text">基本信息</span>
|
||||||
</div>
|
</div>
|
||||||
|
<eP3></eP3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="displayFlex">
|
<div class="displayFlex">
|
||||||
|
@ -83,12 +33,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="visitLog">
|
<div class="visitLog">
|
||||||
<div class="visitLog_item">
|
<div class="visitLog_item">
|
||||||
<img
|
<img src="../assets/img_02.png" width="48px" height="51px" alt="" />
|
||||||
src="../assets/img_02.png"
|
|
||||||
width="48px"
|
|
||||||
height="51px"
|
|
||||||
alt=""
|
|
||||||
/>
|
|
||||||
<div class="visitLog_item_box">
|
<div class="visitLog_item_box">
|
||||||
<h4>故居走访</h4>
|
<h4>故居走访</h4>
|
||||||
<p>走访人员:陈思思</p>
|
<p>走访人员:陈思思</p>
|
||||||
|
@ -97,12 +42,7 @@
|
||||||
<span class="check">点击查看</span>
|
<span class="check">点击查看</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="visitLog_item">
|
<div class="visitLog_item">
|
||||||
<img
|
<img src="../assets/img_02.png" width="48px" height="51px" alt="" />
|
||||||
src="../assets/img_02.png"
|
|
||||||
width="48px"
|
|
||||||
height="51px"
|
|
||||||
alt=""
|
|
||||||
/>
|
|
||||||
<div class="visitLog_item_box">
|
<div class="visitLog_item_box">
|
||||||
<h4>节日走访</h4>
|
<h4>节日走访</h4>
|
||||||
<p>走访人员:陈思思</p>
|
<p>走访人员:陈思思</p>
|
||||||
|
@ -111,12 +51,7 @@
|
||||||
<span class="check">点击查看</span>
|
<span class="check">点击查看</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="visitLog_item">
|
<div class="visitLog_item">
|
||||||
<img
|
<img src="../assets/img_02.png" width="48px" height="51px" alt="" />
|
||||||
src="../assets/img_02.png"
|
|
||||||
width="48px"
|
|
||||||
height="51px"
|
|
||||||
alt=""
|
|
||||||
/>
|
|
||||||
<div class="visitLog_item_box">
|
<div class="visitLog_item_box">
|
||||||
<h4>新年走访</h4>
|
<h4>新年走访</h4>
|
||||||
<p>走访人员:陈思思</p>
|
<p>走访人员:陈思思</p>
|
||||||
|
@ -148,77 +83,14 @@
|
||||||
<eBubble></eBubble>
|
<eBubble></eBubble>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div></div>
|
|
||||||
</div>
|
|
||||||
<!-- <div class="module_right">
|
|
||||||
<div class="flex1">
|
|
||||||
<div class="yd_title">
|
|
||||||
<span class="text">关注标签</span>
|
|
||||||
</div>
|
|
||||||
<div class="concernLabel">
|
|
||||||
<span>计算机</span>
|
|
||||||
<span>大数据</span>
|
|
||||||
<span>互联网</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="flex1">
|
|
||||||
<div class="yd_title">
|
|
||||||
<span class="text">助乡属性</span>
|
|
||||||
</div>
|
|
||||||
<div class="property">
|
|
||||||
<div class="property_box">
|
|
||||||
<h5>助乡方式</h5>
|
|
||||||
<p>科技助乡</p>
|
|
||||||
</div>
|
|
||||||
<div class="property_box">
|
|
||||||
<h5>助乡意向</h5>
|
|
||||||
<p>积极</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="activity">
|
|
||||||
<h5>助乡活动</h5>
|
|
||||||
<div class="activity_content">
|
|
||||||
<div class="activity_box">
|
|
||||||
<p>
|
|
||||||
2021.2,象山县委统战部和象山电视台工作人员前往杭州浙江大学,拍摄《天南地北象山人》
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<div class="activity_box">
|
|
||||||
<p>
|
|
||||||
2020.8.29陈纯院士参加在象山举办的浙江省海外高层次人才联谊会,并作院士报告
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="flex1">
|
|
||||||
<div class="yd_title">
|
|
||||||
<span class="text">信息监测</span>
|
|
||||||
</div>
|
|
||||||
<div class="monitor">
|
|
||||||
<div class="monitor_box">
|
|
||||||
<img src="../assets/img_10.png" alt="" />
|
|
||||||
<div class="monitor_box_text">
|
|
||||||
<h4>智汇青春 有梦当燃|这场全国大赛决赛在西子湖畔收官!</h4>
|
|
||||||
<p>2023-03-18</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="monitor_box">
|
|
||||||
<img src="../assets/img_09.png" alt="" />
|
|
||||||
<div class="monitor_box_text">
|
|
||||||
<h4>智汇青春 有梦当燃|这场全国大赛决赛在西子湖畔收官!</h4>
|
|
||||||
<p>2023-03-18</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div> -->
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import eBubble from "./echarts/bubble.vue";
|
import eBubble from "./echarts/bubble.vue";
|
||||||
import ePie from "./echarts/pie.vue";
|
import ePie from "./echarts/pie.vue";
|
||||||
|
import eP2 from "./echarts/eP2.vue";
|
||||||
|
import eP3 from "./echarts/eP3.vue";
|
||||||
import ePie2 from "./echarts/pie2.vue";
|
import ePie2 from "./echarts/pie2.vue";
|
||||||
import eGraph from "./echarts/graph.vue";
|
import eGraph from "./echarts/graph.vue";
|
||||||
import ePie3d from "./echarts/pie3d.vue";
|
import ePie3d from "./echarts/pie3d.vue";
|
||||||
|
@ -228,7 +100,7 @@ import ePie3d from "./echarts/pie3d.vue";
|
||||||
.displayFlex {
|
.displayFlex {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
width: 100%;
|
flex: 1;
|
||||||
}
|
}
|
||||||
.flex1 {
|
.flex1 {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
@ -237,12 +109,6 @@ import ePie3d from "./echarts/pie3d.vue";
|
||||||
}
|
}
|
||||||
.module {
|
.module {
|
||||||
display: flex;
|
display: flex;
|
||||||
.module_left {
|
|
||||||
display: flex;
|
|
||||||
}
|
|
||||||
// .module_right {
|
|
||||||
// flex: 0 0 25%;
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.yd_title {
|
.yd_title {
|
||||||
|
|
Loading…
Reference in New Issue