接口对接

This commit is contained in:
“hhk” 2024-07-29 09:36:51 +08:00
parent 8402565665
commit 2235a78db8
4 changed files with 99 additions and 19 deletions

2
.gitignore vendored
View File

@ -45,3 +45,5 @@ dist-ssr
*.local
build.sh
ruoyi-admin/target/
*.iml

View File

@ -0,0 +1,9 @@
import request from '@/utils/request'
export function getPageData(data) {
return request({
url: '/api/category/content',
method: 'post',
data
})
}

View File

@ -47,14 +47,14 @@
</div>
<!-- 组织机构 -->
<div class="about-conts-item2" v-if="currentActive == 1">
<div class="div" v-for="(item, index) in 8">
教学中心办公室
<div class="div" v-for="(item, index) in orgList">
{{ item.contentDetail }}
</div>
</div>
<!-- 现任领导 -->
<div class="about-conts-item3" v-if="currentActive == 2">
<div class="about-conts-item3-div">
<!-- <div class="about-conts-item3-div" v-for="postList">
<div class="left">
主任
</div>
@ -66,7 +66,7 @@
<div class="tt">钟离</div>
</div>
</div>
</div>
</div> -->
<div class="about-conts-item3-div">
<div class="left">
主任
@ -210,6 +210,7 @@
<script>
import { Swiper, SwiperSlide } from "vue-awesome-swiper";
import "swiper/css/swiper.min.css";
import { getPageData } from "@/api/officialWebsite/getPageData";
export default {
components: {
Swiper,
@ -242,23 +243,31 @@ export default {
],
currentActive: 2,
isMounted: false,
content: `<p style="box-sizing: inherit; text-align: justify; text-indent: 2em; margin-bottom: 5px; margin-top: 5px; line-height: 1.75em;">
<span style="font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;">淄博瑞安输变电工程有限公司成立于2006年公司原属国网淄博供电公司下属施工企业现为山东泉舜控股集团有限公司全资子公司注册资本5000万元公司设立于历史悠久的齐文化发祥地淄博市并在济南青岛聊城东营潍坊济宁泰安李庄邯郸等各地设有分支机构企业人才结构合理大专以上学历及具有各种专业技术职称的近300余人是一支经过国家电网公司多年锻造专业技术强电力工程施工经验丰富的的铁军队伍<br/></span>
</p>
<p style="text-indent: 2em; margin-bottom: 5px; margin-top: 5px; line-height: 1.75em;">
<span style="font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;">公司主要经营范围包括:220千伏及以下电力工程总承包施工电力输配电线路架设施工变电站电气设备安装建筑物土建施工城市及道路照明工程施工高低压电气设备修试:电力技术咨询输配变电电力线路设备巡视维护维修及带电作业服务电力销售房屋设备车辆租赁及新能源技术开发技术转让技术服务</span>
</p>
<p style="text-indent: 2em; margin-bottom: 5px; margin-top: 5px; line-height: 1.75em;">
<span style="font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;">公司秉承山东泉舜控股集团有限公司建设泉心立业舜势百年的百年企业的美好愿景坚持专业规范服务诚信创新实力的经营宗旨为广大客户提供电保姆式的电力全产业链服务</span>
</p>
<p style="box-sizing: inherit; margin-top: 0px; text-align: justify; text-indent: 2em; margin-bottom: 5px; line-height: 1.75em;">
<span style="box-sizing: inherit; font-family: 微软雅黑, MicrosoftYaHei;"></span><br/>
</p>`
orgList:[],
postList:[],
// content: `<p style="box-sizing: inherit; text-align: justify; text-indent: 2em; margin-bottom: 5px; margin-top: 5px; line-height: 1.75em;">
// <span style="font-family: , &quot;Microsoft YaHei&quot;; font-size: 18px;">20065000300<br/></span>
// </p>
// <p style="text-indent: 2em; margin-bottom: 5px; margin-top: 5px; line-height: 1.75em;">
// <span style="font-family: , &quot;Microsoft YaHei&quot;; font-size: 18px;">:220线:线</span>
// </p>
// <p style="text-indent: 2em; margin-bottom: 5px; margin-top: 5px; line-height: 1.75em;">
// <span style="font-family: , &quot;Microsoft YaHei&quot;; font-size: 18px;">广</span>
// </p>
// <p style="box-sizing: inherit; margin-top: 0px; text-align: justify; text-indent: 2em; margin-bottom: 5px; line-height: 1.75em;">
// <span style="box-sizing: inherit; font-family: , MicrosoftYaHei;"></span><br/>
// </p>`
content:""
}
},
computed: {
},
mounted() {
//
debugger;
this.initPageData();
},
methods: {
//
@ -267,7 +276,45 @@ export default {
return
}
this.currentActive = value
}
},
initPageData() {
let introduction_center_param = {
"categoryId": "1813827591224823808",
"pageNum": 1,
"pageSize": 1000
};
getPageData(introduction_center_param).then(response => {
response.data.list.forEach(element => {
this.content += element.contentDetail;
});
});
let organizational_structure_param = {
"categoryId": "1813827750121836544",
"pageNum": 1,
"pageSize": 1000
};
getPageData(organizational_structure_param).then(response => {
response.data.list.forEach(element => {
this.orgList.push(element);
});
});
let current_leader_param = {
"categoryId": "1813827861774209024",
"pageNum": 1,
"pageSize": 1000
};
getPageData(current_leader_param).then(response => {
response.data.list.forEach(element => {
// this.content += element.contentDetail;
});
});
},
}
}
@ -479,10 +526,12 @@ export default {
justify-content: space-between;
align-items: center;
}
.about-conts .about-conts-item3 .about-conts-item3-div:last-child{
.about-conts .about-conts-item3 .about-conts-item3-div:last-child {
margin-bottom: 0;
border-bottom: 1px solid transparent;
}
.about-conts .about-conts-item3 .about-conts-item3-div .left {
width: 20%;
/* background-color: #f0f; */

View File

@ -185,6 +185,7 @@
<script>
import { Swiper, SwiperSlide } from "vue-awesome-swiper";
import "swiper/css/swiper.min.css";
import {getPageData} from "@/api/officialWebsite/getPageData";
export default {
components: {
Swiper,
@ -233,6 +234,11 @@ export default {
computed: {
},
mounted() {
//
debugger;
this.initPageData();
},
methods: {
//
@ -241,7 +247,21 @@ export default {
return
}
this.currentActive = value
}
},
initPageData() {
let param = {
"categoryId": "1813827750121836544",
"pageNum": 1,
"pageSize": 10
}
getPageData(param).then(response => {
response.data.list.forEach(element => {
this.content += element.contentDetail;
});
})
},
}
}