Commit 011fd781 authored by xinzhedeai's avatar xinzhedeai

marker dynamic data

parent 26748410
<template> <template>
<div class="Screen cm-layout"> <div class="Screen cm-layout">
<div class="a_0"> <div class="a_0">
<!-- <cu-amap ref="amap" :options="amapOptions()" /> -->
<div id="container"></div> <div id="container"></div>
<div class="a0_"> <div class="a0_">
<header id="header"> <header id="header">
...@@ -106,6 +104,9 @@ import request from "@/utils/request"; ...@@ -106,6 +104,9 @@ import request from "@/utils/request";
function closeInfoWindow(mapEle) { function closeInfoWindow(mapEle) {
mapEle.clearInfoWindow(); mapEle.clearInfoWindow();
} }
function isTechUser(){
return localStorage.getItem('groupIdByloginType')*1===2 // 是否为科技局用户
}
export default { export default {
data() { data() {
return { return {
...@@ -172,77 +173,19 @@ export default { ...@@ -172,77 +173,19 @@ export default {
}); });
}, },
goBackendHome(){ goBackendHome(){
// if(localStorage.getItem('groupIdByloginType')*1 == 1){ // 孵化器用户
// location.href = '/home/enterprise'
// return
// }
// if(localStorage.getItem('groupIdByloginType')*1 == 2){ // 科技据用户
// location.href = '/home/tech'
// return
// }
// location.reload()
location.href = '/home/enterprise' location.href = '/home/enterprise'
}, },
initMap() { initMap() {
var VUE = this; var VUE = this;
VUE.map = new AMap.Map("container", { VUE.map = new AMap.Map("container", {
resizeEnable: true, resizeEnable: true,
center: [116.481181, 39.989792], center: [122.050189, 37.515189],
zoom: 13, zoom: 13,
}); });
console.log(VUE.map, "map"); console.log(VUE.map, "map");
// addMarker(); // addMarker();
var markers = [ this.getIncubatorMarkers()
{
position: [116.481181, 39.989792],
extraData: {
incubatorName: "23423",
operatingAgency: "111",
incubatorCount: 0,
graduationCount: 11,
totalArea: 22,
totalIncome: 223,
},
},
{
position: [116.305467, 39.989799],
extraData: {
incubatorName: "666",
operatingAgency: "111",
incubatorCount: 0,
graduationCount: 11,
totalArea: 22,
totalIncome: 223,
},
},
{
position: [116.305467, 39.807761],
extraData: {
incubatorName: "6664444",
operatingAgency: "111",
incubatorCount: 0,
graduationCount: 11,
totalArea: 22,
totalIncome: 223,
},
},
];
// 添加一些分布不均的点到地图上,地图上添加三个点标记,作为参照
markers.forEach(function (item, index) {
var marker = new AMap.Marker({
map: VUE.map,
// position: [116.481181, 39.989792],
position: [item.position[0], item.position[1]],
icon: "/static/images/marker-dp.png",
});
//鼠标点击marker弹出自定义的信息窗体
marker.on("click", function () {
// VUE.infoWindow.open(VUE.map, marker.getPosition());
VUE.showInfoWindow(marker, item.extraData);
});
});
const item = {}; const item = {};
//实例化信息窗体 //实例化信息窗体
...@@ -260,7 +203,11 @@ export default { ...@@ -260,7 +203,11 @@ export default {
document.getElementById("goMoreBtn").onclick = function () { document.getElementById("goMoreBtn").onclick = function () {
// alert(this.getAttribute('data-id')) // alert(this.getAttribute('data-id'))
// VUE.$route.push('/home/enterprise') // VUE.$route.push('/home/enterprise')
location.href = "/home/tech?id=" + this.getAttribute("data-id"); if(isTechUser()){
location.href = "/home/overview?id=" + this.getAttribute("data-id");
}else{
location.href = "/home/enterprise?id=" + this.getAttribute("data-id");
}
}; };
}); });
}, },
...@@ -268,16 +215,16 @@ export default { ...@@ -268,16 +215,16 @@ export default {
const content = `<div class="popupBgImage" style=""> const content = `<div class="popupBgImage" style="">
<h4>详细信息</h4><i id="closeInfoWindowBtn"></i> <h4>详细信息</h4><i id="closeInfoWindowBtn"></i>
<dl> <dl>
<dd><font>孵化器名称:</font><span>${item.incubatorName}</span></dd> <dd class="textEllipsis"><font>孵化器名称:</font><span :title="${item.incubatorName}">${item.incubatorName}</span></dd>
<dd><font>运营机构:</font><span>${item.operatingAgency}</span></dd> <dd class="textEllipsis"><font>运营机构:</font><span :title="${item.operatingAgency}">${item.operatingAgency}</span></dd>
<dd><font>在孵企业:</font><span>${item.incubatorCount || 0}家</span></dd> <dd class="textEllipsis"><font>在孵企业:</font><span :title="${item.incubatorCount}">${item.incubatorCount || 0}家</span></dd>
<dd><font>毕业企业:</font><span>${item.graduationCount || 0}家</span></dd> <dd class="textEllipsis"><font>毕业企业:</font><span :title="${item.graduationCount}">${item.graduationCount || 0}家</span></dd>
<dd><font>使用总面积:</font><span>${item.totalArea || 0}(㎡)</span></dd> <dd><font>使用总面积:</font><span>${item.totalArea || 0}(㎡)</span></dd>
<dd><font>总收入:</font><span>${item.totalIncome || 0}万元</span></dd> <dd><font>总收入:</font><span>${item.totalIncome || 0}万元</span></dd>
</dl> </dl>
<button type="button" id="goMoreBtn" data-id="${ <button type="button" id="goMoreBtn" data-id="${
item.incubatorName item.id
}">更多</button> }">${isTechUser()?'更多':'进入后台'}</button>
</div>`; </div>`;
this.infoWindow.setContent(content); this.infoWindow.setContent(content);
this.infoWindow.open(this.map, marker.getPosition()); this.infoWindow.open(this.map, marker.getPosition());
...@@ -741,54 +688,44 @@ export default { ...@@ -741,54 +688,44 @@ export default {
}); });
}, },
amapOptions(cmap) { getIncubatorMarkers(){
var self = this; request({
var VUE = this; url: "api/homePage/incubatorLocation",
method: "get",
}).then((res) => {
let result = res.body || []
var markers = result.map((item, index)=>{
return { return {
zoom: 13, position: [item.longitude, item.latitude],
center: [122.050189, 37.515189], extraData: {
//showLabel: true, id: item.id,
//pitch: 40, incubatorName: item.incubatorName,
onload: function (cmap) { operatingAgency: item.operatingAgency,
console.log("onload ________________ ", self, cmap); incubatorCount: item.incubatorCount,
const form = { graduationCount: item.graduationCount,
longitude: 122.050189, totalArea: item.totalArea,
latitude: 37.515189, totalIncome: item.totalIncome,
}; }
self.cmap = cmap; }
// debugger })
VUE.cmap = cmap;
var center = cmap.options.center;
var lng = form.longitude || center[0],
lat = form.latitude || center[1];
if (lng && lat) {
cmap.setCenter([lng, lat]);
addMarker();
// // 添加标记
// cmap.addMarker({
// lnglat: [lng, lat],
// title: "",
// content: markerContent,
// offset: new AMap.Pixel(-13, -30),
// draggable: true,
// click: function () {
// infoWindow.open(cmap, marker.getPosition()); // 打开信息窗口
// },
// });
// //鼠标点击marker弹出自定义的信息窗体
// AMap.event.addListener(cmap, "click", function () {
// infoWindow.open(map, marker.getPosition());
// });
}
},
click: function (e, cmap) {
console.log("click ________________ ", cmap);
},
};
},
// 添加一些分布不均的点到地图上,地图上添加三个点标记,作为参照
markers.forEach((item, index) => {
var marker = new AMap.Marker({
map: this.map,
// position: [116.481181, 39.989792],
position: [item.position[0], item.position[1]],
icon: "/static/images/marker-dp.png",
imageSize: new AMap.Size(22, 22),
});
//鼠标点击marker弹出自定义的信息窗体
marker.on("click", () => {
// VUE.infoWindow.open(VUE.map, marker.getPosition());
this.showInfoWindow(marker, item.extraData);
});
});
})
},
// 首页 // 首页
module0(m, t, f, dmIndex, view) { module0(m, t, f, dmIndex, view) {
var self = this, var self = this,
...@@ -1200,6 +1137,19 @@ export default { ...@@ -1200,6 +1137,19 @@ export default {
</script> </script>
<style lang="scss" scope> <style lang="scss" scope>
.amap-icon{ // 高德地图样式覆盖
img{
width:0.42rem !important;
height: 0.42rem !important;
}
}
.textEllipsis {
display: inline-block;
white-space: nowrap; /* 不换行 */
overflow: hidden; /* 超出隐藏 */
text-overflow: ellipsis; /* 添加省略号 */
width: 320px; /* 设置宽度 */
}
#container { #container {
height: 100%; height: 100%;
width: 100%; width: 100%;
...@@ -1985,11 +1935,11 @@ export default { ...@@ -1985,11 +1935,11 @@ export default {
cursor: pointer; cursor: pointer;
} }
dl { dl {
padding: 0 0.4rem; padding: 0 0.25rem;
} }
dd { dd {
margin-top: 0.08rem; margin-top: 0.08rem;
margin-bottom: 0.08rem; // margin-bottom: 0.08rem;
} }
dd > font { dd > font {
// 标题 // 标题
......
<template> <template>
<div class="app-container">
<div class="header">
<ul>
<li @click="changeNav(0)" :class="{ active: activeIndex === 0 }">
<div class="title">孵化器概况</div>
</li>
<li @click="changeNav(1)" :class="{ active: activeIndex === 1 }">
<div class="title">在孵企业</div>
</li>
<li @click="changeNav(2)" :class="{ active: activeIndex === 2 }">
<div class="title">毕业企业</div>
</li>
<li @click="changeNav(3)" :class="{ active: activeIndex === 3 }">
<div class="title">中介机构</div>
</li>
<li @click="changeNav(4)" :class="{ active: activeIndex === 4 }">
<div class="title">创业导师</div>
</li>
</ul>
</div>
</template> <div class="bodyer">
<ul class="panelsWrapper">
<li class="overview tab_panel_0" v-if="activeIndex === 40">
<h2>{{ data4panel0.incubatorName }}</h2>
<div class="contentWrapper">
<div class="left">
<div class="item">
<div class="_title prefixDiv">
<span class="_left">总收入</span>
<span class="_right" @click="getMore4panel0">查看更多>></span>
</div>
<div class="body">
<div class="_left">
<ul>
<li>孵化器总收入:{{ data4panel0.totalRevenue }}万元</li>
<li>
综合服务收入:{{ data4panel0.serviceRevenue }}万元
</li>
<li>物业费收入:{{ data4panel0.propertyRevenue }}万元</li>
<li>房租费收入:{{ data4panel0.rentRevenue }}万元</li>
<li>投资收入:{{ data4panel0.investmentRevenue }}万元</li>
<li>政策性收入:{{ data4panel0.policyRevenue }}万元</li>
<li>其他:{{ data4panel0.otherRevenue }}万元</li>
</ul>
</div>
<div class="_right">
<div
ref="pieChart4panel0_1"
style="width: 300px; height: 300px"
class="charts pie"
></div>
</div>
</div>
</div>
<div class="item">
<div class="_title prefixDiv">
<span class="_left">使用面积</span>
</div>
<div class="body">
<div class="_left">
<ul>
<li>孵化器使用总面积:{{ data4panel0.totalArea }}</li>
<li>
用于企业孵化的面积:{{ data4panel0.incubationArea }}
</li>
<li>剩余孵化面积:{{ data4panel0.remainingArea }}</li>
</ul>
</div>
<div class="_right">
<div
ref="pieChart4panel0_2"
style="width: 300px; height: 300px"
class="charts pie"
></div>
</div>
</div>
</div>
</div>
<div class="right">
<div class="item">
<div class="_title prefixDiv">
<span class="_left">简介</span>
</div>
<div class="body">
<div class="_top">
<ul>
<li>运营机构:{{ data4panel0.operatingAgency }}</li>
<li>联 系人:{{ data4panel0.contactPerson }}</li>
<li>联系电话:{{ data4panel0.contactPhone }}</li>
<li>{{}}</li>
</ul>
</div>
<div class="_bottom">
<img
:src="`${baseAPI}file/${data4panel0.incubatorImage}`"
alt=""
/>
</div>
</div>
</div>
</div>
</div>
</li>
<li class="tab_panel_1" v-if="activeIndex === 10">
<div class="_left">
<div class="_title">
<span>在孵企业</span>
<span>280家</span>
</div>
<div class="_list">
<el-input
placeholder="请输入内容"
prefix-icon="el-icon-search"
v-model="searchText"
style="100%"
></el-input>
<script> <ul>
export default { <li v-for="item1 in 10" :key="item1">
威海众智惠新信息科技有限公司
</li>
</ul>
<el-pagination
@current-change="handleCurrentChange4panel1"
@size-change="handleSizeChange4panel1"
:current-page="currentPage4panel1"
:page-size="pageSize4panel1"
:total="totalItems4panel1"
:page-sizes="[10, 20, 30, 40]"
layout="prev, pager, next, sizes"
/>
</div>
</div>
<div class="_right">
<h2>威海众智惠新信息科技有限公司</h2>
<div class="divider"></div>
<div class="_title prefixDiv">
<div class="_left">企业基础信息</div>
<div class="_right">查看企业简介>></div>
</div>
<div class="_body">
<ul>
<li v-for="item in 10" class="prefixPoint">
入驻时间: 2021-10-10
</li>
</ul>
</div>
} <div class="_title prefixDiv">
</script> <div class="_left">知识产权</div>
</div>
<div class="_body">
<ul>
<li v-for="item in 10" class="prefixPoint">
入驻时间: 2021-10-10
</li>
</ul>
</div>
<div class="_title prefixDiv">
<div class="_left">创业创新企业情况</div>
</div>
<div class="_body">
<ul>
<li v-for="item in 10" class="prefixPoint">
入驻时间: 2021-10-10
</li>
</ul>
</div>
<div class="_title prefixDiv">
<div class="_left">今年企业经营信息</div>
<div class="_right">查看更多>></div>
</div>
<div class="_body">
<ul>
<li v-for="item in 10" class="prefixPoint">
入驻时间: 2021-10-10
</li>
</ul>
</div>
<!-- -->
<div class="_title prefixDiv">
<div class="_left">企业产品</div>
<div class="_right">查看更多>></div>
</div>
<div class="_body">
<dl>
<dd v-for="item in 10">
<img src="" alt="" />
<h3>环境监测设备</h3>
<p>
内置NB-IoT物联网SIM卡,把数据传
输到晶合云平台或客户私有云平台, 实现数据
</p>
</dd>
</dl>
</div>
</div>
</li>
<li class="tab_panel_4" v-if="activeIndex === 0">
<div class="_title">
<span>创业导师</span>
<el-input
placeholder="请输入姓名搜索"
prefix-icon="el-icon-search"
v-model="searchQuery4panel4"
style="width: 300px;"
></el-input>
</div>
<ul>
<li v-for="item in tableData4panel4" :key="item.id">
<img
:src="`${baseAPI}file/${item.photo}`"
alt=""
/>
<p>姓名:{{ item.mentorName }}</p>
<p>学历:{{ item.education }}</p>
<p>毕业学校:{{ item.graduationSchool }}</p>
<p>联系电话:{{ item.contactPhone }}</p>
<a @click="getMore4panel4(item)">查看简介&gt;</a>
</li>
</ul>
<el-pagination
style="text-align: center; margin-top: 20px;"
@current-change="handleCurrentChange4panel4"
@size-change="handleSizeChange4panel4"
:current-page="currentPage4panel4"
:page-size="pageSize4panel4"
:total="totalCount4panel4"
:page-sizes="[10, 20, 30, 40]"
layout="prev, pager, next, sizes"
></el-pagination>
</li>
</ul>
</div>
<el-dialog
title="孵化器年度收入信息"
:visible.sync="dialogVisible4panel0"
width="1100px"
>
<el-input
placeholder="请输入年度搜索"
prefix-icon="el-icon-search"
v-model="searchQuery4panel0"
style="width: 300px;margin-bottom: 10px;"
@blur="filterData4panel0"
></el-input>
<el-table :data="tableData4panel0" style="width: 100%">
<el-table-column
prop="year"
label="年度"
width="50"
></el-table-column>
<el-table-column
prop="totalRevenue"
label="孵化器总收入(万元)"
></el-table-column>
<el-table-column
prop="serviceRevenue"
label="综合服务收入(万元)"
></el-table-column>
<el-table-column
prop="rentRevenue"
label="房租收入(万元)"
></el-table-column>
<el-table-column
prop="propertyRevenue"
label="物业收入(万元)"
></el-table-column>
<el-table-column
prop="investmentRevenue"
label="投资收入(万元)"
></el-table-column>
<el-table-column
prop="policyRevenue"
label="政策性收入(万元)"
></el-table-column>
<el-table-column
prop="otherRevenue"
label="其他收入(万元)"
></el-table-column>
</el-table>
<el-pagination
@current-change="handleCurrentChange4panel0"
@size-change="handleSizeChange4panel0"
:current-page="currentPage4panel0"
:page-size="pageSize4panel0"
:total="totalCount4panel0"
:page-sizes="[10, 20, 30, 40]"
layout="prev, pager, next, sizes"
></el-pagination>
</el-dialog>
<el-dialog
title="简介信息"
:visible.sync="dialogVisible4panel4"
>
<div v-html="introduction4panel4"></div>
</el-dialog>
</div>
</template>
<script>
var baseAPI =
process.env.NODE_ENV === "development"
? process.env.VUE_APP_LOCAL_API + "/"
: (VUE_APP_API.ServiceURL || process.env.VUE_APP_LOCAL_API) + "/";
import overviewApi from "@/api/system/overview.js";
import * as echarts from "echarts";
export default {
name: "Overview",
components: {},
data() {
return {
// 公共用
baseAPI: baseAPI,
incubatorId: "",
// 顶部切换菜单
activeIndex: 0,
// panel0 孵化器概况
data4panel0: {},
totalCount4panel0: 0, // 总条目数
currentPage4panel0: 0, // 当前页码
pageSize4panel0: 10, // 每页显示的条目数量
dialogVisible4panel0: false,
searchQuery4panel0: '',
tableData4panel0: [],
// panel4 创业导师
totalCount4panel4: 0, // 总条目数
currentPage4panel4: 0, // 当前页码
pageSize4panel4: 10, // 每页显示的条目数量
dialogVisible4panel4: false,
searchQuery4panel4: '',
tableData4panel4: [],
introduction4panel4: '',
};
},
computed: {},
mounted() {
this.incubatorId = this.$route.query.id;
// this.getData4panel0();
this.getData4panel4();
},
methods: {
changeNav(index) {
this.activeIndex = ~~index;
},
/**
* panel0
*/
filterData4panel0() {
this.currentPage4panel0 = 1; // 重置当前分页
this.getDialogData4panel0();
},
getMore4panel0(){
this.dialogVisible4panel0 = true
this.getDialogData4panel0()
},
handleCurrentChange4panel0(newPage) {
// 切换分页
this.currentPage4panel0 = newPage;
// 这里可以添加代码来加载新页的数据
this.getDialogData4panel0()
},
handleSizeChange4panel0(newSize){
this.pageSize4panel0 = newSize;
this.getDialogData4panel0()
},
initChart4panel0_1() {
const chartDom = this.$refs.pieChart4panel0_1;
const myChart = echarts.init(chartDom);
const option = {
tooltip: {
trigger: "item",
},
series: [
{
name: "孵化器总收入",
type: "pie",
radius: "50%",
data: this.data4panel0.revenueChartData || [],
emphasis: {
itemStyle: {
shadowBlur: 10,
shadowOffsetX: 0,
shadowColor: "rgba(0, 0, 0, 0.5)",
},
},
},
],
};
myChart.setOption(option);
},
initChart4panel0_2() {
const chartDom = this.$refs.pieChart4panel0_2;
const myChart = echarts.init(chartDom);
const option = {
tooltip: {
trigger: "item",
},
series: [
{
name: "孵化器使用总面积",
type: "pie",
radius: "50%",
data: this.data4panel0.areaChartData || [],
emphasis: {
itemStyle: {
shadowBlur: 10,
shadowOffsetX: 0,
shadowColor: "rgba(0, 0, 0, 0.5)",
},
},
},
],
};
myChart.setOption(option);
},
getDialogData4panel0(fn) { // 获取panel0弹窗列表信息
overviewApi
.getDialogData4panel0({
page: this.currentPage4panel0 > 0 ? this.currentPage4panel0-1 : this.currentPage4panel0,
size: this.pageSize4panel0,
incubatorId: this.incubatorId,
year: this.searchQuery4panel0
})
.then((res) => {
this.tableData4panel0 = res.body.list || [];
this.totalCount4panel0 = res.body.total
});
},
getData4panel0(fn) { // 获取panel0页面统计信息
overviewApi
.getData4panel0({
incubatorId: this.incubatorId,
})
.then((res) => {
this.data4panel0 = res.body;
this.initChart4panel0_1();
});
},
/**
* panel4
* @param {*} fn
*/
filterData4panel4() {
this.currentPage4panel4 = 1; // 重置当前分页
this.getData4panel4();
},
getMore4panel4(item){
this.dialogVisible4panel4 = true
this.introduction4panel4 = item.introduction
},
handleCurrentChange4panel4(newPage) {
// 切换分页
this.currentPage4panel4 = newPage;
this.getData4panel4()
},
handleSizeChange4panel4(newSize){
this.pageSize4panel4 = newSize;
this.getData4panel4()
},
getData4panel4(fn) { // 获取panel4导师信息
overviewApi
.getData4panel4({
page: this.currentPage4panel4 > 0 ? this.currentPage4panel4-1 : this.currentPage4panel4,
size: this.pageSize4panel4,
incubatorId: this.incubatorId,
mentorName: this.searchQuery4panel4
})
.then((res) => {
this.tableData4panel4 = res.body.list || [];
this.totalCount4panel4 = res.body.total
});
},
},
};
</script>
<style rel="stylesheet/scss" lang="scss" scoped>
.app-container {
padding: 20px;
background-color: #fff;
font-family: Microsoft YaHei;
}
.page-footer {
display: none !important;
}
.header {
// 菜单标题头
background: #f5f7fa;
ul {
display: flex;
justify-content: start;
border: 1px solid #d8dce5;
background-color: #fff;
li {
width: 238px;
height: 48px;
display: flex;
align-items: center;
list-style: none;
justify-content: center;
cursor: pointer;
&:active,
&.active {
background: #1890ff;
.title {
color: #ffffff;
}
}
.title {
font-size: 16px;
color: #303133;
font-weight: bold;
}
}
}
}
.bodyer {
// panels最外层容器
background-color: #fff;
}
.panelsWrapper {
// panels父容器
background: #f5f6fb;
display: flex;
flex-wrap: wrap;
& > li {
width: 100%;
height: 442px;
background: #ffffff;
position: relative;
}
}
/**公共类 */
.divider {
width: 100%;
height: 1px;
border: 1px dashed #dddee1;
}
.prefixDiv {
position: relative;
&:before {
width: 4px;
height: 16px;
background: #1890ff;
position: absolute;
top: 50%; /* 垂直居中 */
transform: translateY(-50%); /* 精确居中 */
left: 16px;
content: "";
}
}
.prefixPoint {
position: relative;
&:before {
content: "";
width: 6px;
height: 6px;
background: #1890ff;
border-radius: 50%;
position: absolute;
left: 5px;
top: 50%; /* 垂直居中 */
transform: translateY(-50%); /* 精确居中 */
}
}
/** 第五个面板 */
.tab_panel_4 {
._title {
font-size: 16px;
color: #1890ff;
width: 100%;
height: 50px;
background: #e4f2ff;
display: flex;
justify-content: space-between;
align-items: center;
position: relative;
padding-left: 26px;
&:before {
width: 4px;
height: 16px;
background: #1890ff;
position: absolute;
// top: 19px;
top: 50%; /* 垂直居中 */
transform: translateY(-50%); /* 精确居中 */
left: 16px;
content: "";
}
}
ul {
display: flex;
flex-wrap: wrap;
margin-left: 60px;
// margin-top: 20px;
& > li {
position: relative;
width: 260px;
height: 334px;
background: #fff;
border: 1px solid #dddee1;
text-align: center;
padding: 10px;
margin-left: 10px;
margin-right: 40px;
margin-top: 20px;
img {
width: 200px;
height: 200px;
margin: 0 auto;
}
a {
position: absolute;
right: 6px;
bottom: 96px;
font-size: 15px;
color: #1890ff;
}
p {
font-size: 15px;
color: #606266;
padding-left: 18px;
text-align: left;
position: relative;
padding-top: 3px;
padding-bottom: 3px;
&:before {
content: "";
width: 6px;
height: 6px;
background: #1890ff;
border-radius: 50%;
position: absolute;
left: 5px;
top: 50%; /* 垂直居中 */
transform: translateY(-50%); /* 精确居中 */
}
}
}
}
}
.tab_panel_1 {
display: flex;
padding: 10px;
& > ._left {
flex: 1;
margin-right: 20px;
height: 798px !important;
border: 1px solid #dddee1;
padding: 20px;
._title {
display: flex;
width: 100%;
justify-content: space-between;
margin-top: 10px;
margin-bottom: 20px;
span {
&:first-child {
font-size: 19px;
color: #303133;
}
&:last-child {
font-size: 19px;
color: #42b983;
}
}
}
li {
font-size: 15px;
color: #666666;
width: 100%;
height: 38px;
line-height: 38px;
text-align: left;
padding-left: 10px;
cursor: pointer;
&.active,
&:hover {
background: #1890ff;
color: #fff;
}
}
}
& > ._right {
flex: 4;
h2 {
font-weight: 400;
font-size: 27px;
color: #42b983;
text-align: center;
margin-top: 20px;
margin-block: 20px;
}
._title {
width: 100%;
height: 36px;
background: #e4f2ff;
font-size: 16px;
color: #1890ff;
margin-top: 10px;
margin-bottom: 6px;
._left {
float: left;
margin-left: 30px;
margin-top: 6px;
}
._right {
float: right;
margin-right: 30px;
margin-top: 6px;
}
}
ul {
display: flex;
flex-wrap: wrap;
padding-left: 20px;
li {
width: 290px;
font-size: 15px;
color: #606266;
padding: 10px;
padding-left: 20px;
}
}
dl {
display: flex;
flex-wrap: wrap;
padding-left: 20px;
dd {
width: 250px;
height: 274px;
font-size: 15px;
color: #606266;
/* padding: 10px; */
margin-left: 20px;
margin-right: 20px;
border: 1px solid #dddee1;
margin-top: 10px;
img {
width: 250px;
height: 150px;
}
h3 {
font-size: 15px;
color: #606266;
padding-left: 15px;
}
p {
font-size: 13px;
color: #969aa3;
padding-left: 15px;
line-height: 20px;
}
}
}
}
}
.tab_panel_0 {
h2 {
font-weight: 400;
font-size: 27px;
color: #42b983;
text-align: center;
padding-top: 16px;
padding-bottom: 16px;
}
._title {
color: #1890ff;
height: 48px;
background: #e4f2ff;
font-weight: 400;
font-size: 16px;
line-height: 48px;
margin-bottom: 20px;
display: flex;
justify-content: space-between;
padding-left: 26px;
padding-right: 20px;
&>._right{
cursor: pointer;
}
}
.contentWrapper {
border-top: 1px dashed #dddee1;
display: flex;
padding: 16px;
& > div {
flex: 1;
}
.left {
border-right: 1px dashed #dddee1;
padding-left: 20px;
padding-right: 20px;
.body {
display: flex;
._left,
._right {
flex: 1;
}
}
li {
font-size: 15px;
color: #606266;
line-height: 26px;
padding: 4px 42px;
}
}
.right {
padding-left: 20px;
padding-right: 20px;
.body {
display: flex;
flex-direction: column;
}
._top {
li {
font-size: 15px;
color: #606266;
line-height: 26px;
padding: 4px 42px;
}
}
._bottom {
padding-left: 40px;
img {
width: 418px;
height: 272px;
}
}
}
}
}
::v-deep .el-dialog__body .el-table th.el-table__cell{
background-color: #f9ffec;
}
</style>
<style>
\ No newline at end of file
</style>
\ No newline at end of file
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