Merge branch 'main' of git.zdool.com:xs/ggfwjsc

This commit is contained in:
duanxiaohai 2024-04-15 09:17:13 +08:00
commit 5d379df88b
5 changed files with 312 additions and 343 deletions

76
src/view/echarts/eP2.vue Normal file
View File

@ -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(() => {
// domecharts
// var myChart = echarts.init(document.getElementById('main'));
// Vue3
var myChart = echarts.init(chart.value);
// init(); // vue3.2this
// 使
myChart.setOption(option);
// :
// window.addEventListener("resize", () => {
// myChart.resize();
// });
});
</script>
<style scoped>
</style>

77
src/view/echarts/eP3.vue Normal file
View File

@ -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(() => {
// domecharts
// var myChart = echarts.init(document.getElementById('main'));
// Vue3
var myChart = echarts.init(chart.value);
// init(); // vue3.2this
// 使
myChart.setOption(option);
// :
// window.addEventListener("resize", () => {
// myChart.resize();
// });
});
</script>
<style scoped>
</style>

File diff suppressed because one or more lines are too long

View File

@ -6,7 +6,7 @@
<img class="title" src="../assets/img_07.png" alt="" />
</div> -->
<Header />
<router-view/>
<router-view />
</div>
</div>
</div>
@ -25,23 +25,50 @@ window.addEventListener("resize", () =>
setTimeout(function () {
//zoom
location.reload();
// bodyScale();
}, 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(() => {
let zoom = document.body.clientWidth / 1920;
document.getElementsByTagName("body")[0].style.setProperty("--zoom", zoom);
ismobile.value = false;
//zoomecharts
let strScale = `scale(${zoom})`;
var obj = {
zoom: 1 / zoom,
transform: strScale,
transformOrigin: "0 0",
};
insertCss("canvas", obj);
});
</script>
<style scoped lang="scss">
.content {
background-color: rgba(2, 4, 27, 1);
background-color: rgba(8, 35, 68, 1);
height: 100vh;
width: 100vw;
background-repeat: no-repeat;

View File

@ -1,224 +1,96 @@
<template>
<div class="module">
<div class="module_left">
<div class="displayFlex">
<div class="flex1">
<div class="yd_title">
<span class="text">助乡兴趣点</span>
</div>
<ePie></ePie>
</div>
<div class="flex1">
<div class="yd_title">
<span class="text">基本信息</span>
</div>
<div class="basicInformation">
<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="displayFlex">
<div class="flex1">
<div class="yd_title">
<span class="text">助乡兴趣点</span>
</div>
<ePie></ePie>
</div>
<div class="displayFlex">
<div class="flex1">
<div class="yd_title">
<span class="text">活动数据分析</span>
</div>
<ePie3d></ePie3d>
</div>
<div class="flex1">
<div class="yd_title">
<span class="text">走访日志</span>
</div>
<div class="visitLog">
<div class="visitLog_item">
<img
src="../assets/img_02.png"
width="48px"
height="51px"
alt=""
/>
<div class="visitLog_item_box">
<h4>故居走访</h4>
<p>走访人员陈思思</p>
<p>走访时间2023-03-19 09:00:03</p>
</div>
<span class="check">点击查看</span>
</div>
<div class="visitLog_item">
<img
src="../assets/img_02.png"
width="48px"
height="51px"
alt=""
/>
<div class="visitLog_item_box">
<h4>节日走访</h4>
<p>走访人员陈思思</p>
<p>走访时间2023-03-19 09:00:03</p>
</div>
<span class="check">点击查看</span>
</div>
<div class="visitLog_item">
<img
src="../assets/img_02.png"
width="48px"
height="51px"
alt=""
/>
<div class="visitLog_item_box">
<h4>新年走访</h4>
<p>走访人员陈思思</p>
<p>走访时间2023-03-19 09:00:03</p>
</div>
<span class="check">点击查看</span>
</div>
</div>
<div class="flex1">
<div class="yd_title">
<span class="text">基本信息</span>
</div>
<eP2></eP2>
</div>
<div class="displayFlex">
<div class="flex1">
<div class="yd_title">
<span class="text">个人经历</span>
</div>
<div class="history">
<p>2002年至2009年担任浙江大学计算机学院和软件学院院长</p>
<p>1984年获得浙江大学计算机应用专业硕士学位之后留校任教</p>
<p>1990年获得浙江大学计算机应用专业博士学位</p>
<p>1994年至1996年担任浙江大学计算机系副系主任</p>
<p>1997年至2002年担任浙江大学计算机系系主任</p>
<p>2002年至2009年担任浙江大学计算机学院和软件学院院长</p>
</div>
</div>
<div class="flex1">
<div class="yd_title">
<span class="text">职位</span>
</div>
<eBubble></eBubble>
<div class="flex1">
<div class="yd_title">
<span class="text">基本信息</span>
</div>
<eP3></eP3>
</div>
<div></div>
</div>
<!-- <div class="module_right">
<div class="displayFlex">
<div class="flex1">
<div class="yd_title">
<span class="text">关注标签</span>
<span class="text">活动数据分析</span>
</div>
<div class="concernLabel">
<span>计算机</span>
<span>大数据</span>
<span>互联网</span>
<ePie3d></ePie3d>
</div>
<div class="flex1">
<div class="yd_title">
<span class="text">走访日志</span>
</div>
<div class="visitLog">
<div class="visitLog_item">
<img src="../assets/img_02.png" width="48px" height="51px" alt="" />
<div class="visitLog_item_box">
<h4>故居走访</h4>
<p>走访人员陈思思</p>
<p>走访时间2023-03-19 09:00:03</p>
</div>
<span class="check">点击查看</span>
</div>
<div class="visitLog_item">
<img src="../assets/img_02.png" width="48px" height="51px" alt="" />
<div class="visitLog_item_box">
<h4>节日走访</h4>
<p>走访人员陈思思</p>
<p>走访时间2023-03-19 09:00:03</p>
</div>
<span class="check">点击查看</span>
</div>
<div class="visitLog_item">
<img src="../assets/img_02.png" width="48px" height="51px" alt="" />
<div class="visitLog_item_box">
<h4>新年走访</h4>
<p>走访人员陈思思</p>
<p>走访时间2023-03-19 09:00:03</p>
</div>
<span class="check">点击查看</span>
</div>
</div>
</div>
</div>
<div class="displayFlex">
<div class="flex1">
<div class="yd_title">
<span class="text">个人经历</span>
</div>
<div class="history">
<p>2002年至2009年担任浙江大学计算机学院和软件学院院长</p>
<p>1984年获得浙江大学计算机应用专业硕士学位之后留校任教</p>
<p>1990年获得浙江大学计算机应用专业博士学位</p>
<p>1994年至1996年担任浙江大学计算机系副系主任</p>
<p>1997年至2002年担任浙江大学计算机系系主任</p>
<p>2002年至2009年担任浙江大学计算机学院和软件学院院长</p>
</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>
<span class="text">职位</span>
</div>
<eBubble></eBubble>
</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>
<script setup>
import eBubble from "./echarts/bubble.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 eGraph from "./echarts/graph.vue";
import ePie3d from "./echarts/pie3d.vue";
@ -228,7 +100,7 @@ import ePie3d from "./echarts/pie3d.vue";
.displayFlex {
display: flex;
flex-direction: column;
width: 100%;
flex: 1;
}
.flex1 {
flex: 1;
@ -237,12 +109,6 @@ import ePie3d from "./echarts/pie3d.vue";
}
.module {
display: flex;
.module_left {
display: flex;
}
// .module_right {
// flex: 0 0 25%;
// }
}
.yd_title {