This commit is contained in:
“hhk” 2024-07-29 14:34:34 +08:00
parent 834ccef6ea
commit 908a9d281e
4 changed files with 114 additions and 36 deletions

View File

@ -47,9 +47,10 @@
</div> </div>
<!-- 组织机构 --> <!-- 组织机构 -->
<div class="about-conts-item2" v-if="currentActive == 1"> <div class="about-conts-item2" v-if="currentActive == 1">
<div class="div" v-for="(item, index) in orgList"> <!-- <div class="div" v-for="(item, index) in orgList">
{{ item.contentDetail }} {{ item.contentDetail }}
</div> </div> -->
<div class="neirong" v-html="orgList"></div>
</div> </div>
<!-- 现任领导 --> <!-- 现任领导 -->
@ -67,7 +68,7 @@
</div> </div>
</div> </div>
</div> --> </div> -->
<div class="about-conts-item3-div"> <!-- <div class="about-conts-item3-div">
<div class="left"> <div class="left">
主任 主任
</div> </div>
@ -92,7 +93,8 @@
<div class="tt">钟离</div> <div class="tt">钟离</div>
</div> </div>
</div> </div>
</div> </div> -->
<div class="neirong" v-html="leaderList"></div>
</div> </div>
</div> </div>
@ -243,7 +245,7 @@ export default {
], ],
currentActive: 2, currentActive: 2,
isMounted: false, isMounted: false,
orgList:[], orgList:"",
postList:[], postList:[],
// content: `<p style="box-sizing: inherit; text-align: justify; text-indent: 2em; margin-bottom: 5px; margin-top: 5px; line-height: 1.75em;"> // 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> // <span style="font-family: , &quot;Microsoft YaHei&quot;; font-size: 18px;">20065000300<br/></span>
@ -257,7 +259,8 @@ export default {
// <p style="box-sizing: inherit; margin-top: 0px; text-align: justify; text-indent: 2em; margin-bottom: 5px; line-height: 1.75em;"> // <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/> // <span style="box-sizing: inherit; font-family: , MicrosoftYaHei;"></span><br/>
// </p>` // </p>`
content:"" content:"",
leaderList:"",
} }
}, },
computed: { computed: {
@ -297,7 +300,8 @@ export default {
}; };
getPageData(organizational_structure_param).then(response => { getPageData(organizational_structure_param).then(response => {
response.data.list.forEach(element => { response.data.list.forEach(element => {
this.orgList.push(element); // this.orgList.push(element);
this.orgList += element.contentDetail;
}); });
}); });
@ -309,7 +313,7 @@ export default {
}; };
getPageData(current_leader_param).then(response => { getPageData(current_leader_param).then(response => {
response.data.list.forEach(element => { response.data.list.forEach(element => {
// this.content += element.contentDetail; this.leaderList += element.contentDetail;
}); });
}); });

View File

@ -45,7 +45,7 @@
<!-- 专业平台介绍 --> <!-- 专业平台介绍 -->
<div class="ayptjs" v-if="currentActive == 0"> <div class="ayptjs" v-if="currentActive == 0">
<div class="tt">专业平台介绍</div> <div class="tt">专业平台介绍</div>
<div class="ayptjs-list"> <!-- <div class="ayptjs-list">
<div class="item" v-for="(item, index) in 8"> <div class="item" v-for="(item, index) in 8">
<div class="img"> <div class="img">
<img src="../../assets/gw/Snipaste_2024-07-23_22-51-23.jpg" alt=""> <img src="../../assets/gw/Snipaste_2024-07-23_22-51-23.jpg" alt="">
@ -61,7 +61,8 @@
<p>查看详情</p> <p>查看详情</p>
</div> </div>
</div> </div>
</div> </div> -->
<div class="neirong" v-html="professionalResources"></div>
</div> </div>
<!-- 软硬件资源介绍 --> <!-- 软硬件资源介绍 -->
@ -69,7 +70,6 @@
<div class="neirong" v-html="content"></div> <div class="neirong" v-html="content"></div>
</div> </div>
</div> </div>
<div class="index-footer"> <div class="index-footer">
<div class="footer"> <div class="footer">
@ -217,18 +217,20 @@ export default {
], ],
currentActive: 0, currentActive: 0,
isMounted: false, isMounted: false,
content: `<p style="box-sizing: inherit; text-align: justify; text-indent: 2em; margin-bottom: 5px; margin-top: 5px; line-height: 1.75em;"> professionalResources:"",
<span style="font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;">淄博瑞安输变电工程有限公司成立于2006年公司原属国网淄博供电公司下属施工企业现为山东泉舜控股集团有限公司全资子公司注册资本5000万元公司设立于历史悠久的齐文化发祥地淄博市并在济南青岛聊城东营潍坊济宁泰安李庄邯郸等各地设有分支机构企业人才结构合理大专以上学历及具有各种专业技术职称的近300余人是一支经过国家电网公司多年锻造专业技术强电力工程施工经验丰富的的铁军队伍<br/></span> content:"",
</p> // content: `<p style="box-sizing: inherit; text-align: justify; text-indent: 2em; margin-bottom: 5px; margin-top: 5px; line-height: 1.75em;">
<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;">20065000300<br/></span>
<span style="font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;">公司主要经营范围包括:220千伏及以下电力工程总承包施工电力输配电线路架设施工变电站电气设备安装建筑物土建施工城市及道路照明工程施工高低压电气设备修试:电力技术咨询输配变电电力线路设备巡视维护维修及带电作业服务电力销售房屋设备车辆租赁及新能源技术开发技术转让技术服务</span> // </p>
</p> // <p style="text-indent: 2em; margin-bottom: 5px; margin-top: 5px; line-height: 1.75em;">
<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>
<span style="font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;">公司秉承山东泉舜控股集团有限公司建设泉心立业舜势百年的百年企业的美好愿景坚持专业规范服务诚信创新实力的经营宗旨为广大客户提供电保姆式的电力全产业链服务</span> // </p>
</p> // <p style="text-indent: 2em; margin-bottom: 5px; margin-top: 5px; line-height: 1.75em;">
<p style="box-sizing: inherit; margin-top: 0px; text-align: justify; text-indent: 2em; margin-bottom: 5px; line-height: 1.75em;"> // <span style="font-family: , &quot;Microsoft YaHei&quot;; font-size: 18px;">广</span>
<span style="box-sizing: inherit; font-family: 微软雅黑, MicrosoftYaHei;"></span><br/> // </p>
</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>`
} }
}, },
computed: { computed: {
@ -236,7 +238,6 @@ export default {
}, },
mounted() { mounted() {
// //
debugger;
this.initPageData(); this.initPageData();
}, },
@ -248,6 +249,7 @@ export default {
} }
this.currentActive = value this.currentActive = value
}, },
initPageData() { initPageData() {
let param = { let param = {
"categoryId": "1813827750121836544", "categoryId": "1813827750121836544",
@ -258,9 +260,19 @@ export default {
response.data.list.forEach(element => { response.data.list.forEach(element => {
this.content += element.contentDetail; this.content += element.contentDetail;
}); });
}) })
let professionalResourcesParam = {
"categoryId": "1816771598271778816",
"pageNum": 1,
"pageSize": 10
}
getPageData(professionalResourcesParam).then(response => {
response.data.list.forEach(element => {
this.professionalResources += element.contentDetail;
});
})
}, },
} }

View File

@ -40,9 +40,11 @@
</div> </div>
</div> </div>
</div> </div>
<div class="teaching"> <div class="teaching" v-bind:class="[currentActive == 0 ? 'bj' : '']">
<div class="teaching-list">
<div class="item" v-for="(item, index) in 8"> <!-- 教学大纲 -->
<div class="teaching-list" v-if="currentActive == 0">
<!-- <div class="item" v-for="(item, index) in 8">
<div class="img"> <div class="img">
<img src="../../assets/gw/Snipaste_2024-07-23_22-51-23.jpg" alt="" class="imgWO"> <img src="../../assets/gw/Snipaste_2024-07-23_22-51-23.jpg" alt="" class="imgWO">
</div> </div>
@ -52,8 +54,20 @@
<div class="btn">在线预览</div> <div class="btn">在线预览</div>
<p>资源下载</p> <p>资源下载</p>
</div> </div>
</div> </div> -->
<div class="neirong" v-html="syllabus"></div>
</div> </div>
<!-- 实验指导书 -->
<div class="teaching-list" v-if="currentActive == 1">
<div class="neirong" v-html="guideBook"></div>
</div>
<!-- 资源共享 -->
<div class="teaching-list" v-if="currentActive == 2">
<div class="neirong" v-html="resourceSharing"></div>
</div>
<div class="page"><el-pagination background layout="prev, pager, next" :total="1000" class=""> <div class="page"><el-pagination background layout="prev, pager, next" :total="1000" class="">
</el-pagination></div> </el-pagination></div>
@ -172,6 +186,7 @@
<script> <script>
import { Swiper, SwiperSlide } from "vue-awesome-swiper"; import { Swiper, SwiperSlide } from "vue-awesome-swiper";
import "swiper/css/swiper.min.css"; import "swiper/css/swiper.min.css";
import { getPageData } from "@/api/officialWebsite/getPageData";
export default { export default {
components: { components: {
Swiper, Swiper,
@ -203,9 +218,16 @@ export default {
{ name: '资源共享' }, { name: '资源共享' },
], ],
currentActive: 2, currentActive: 2,
resourceSharing:"",
guideBook:"",
syllabus:"",
} }
}, },
mounted() {
//
this.initPageData();
},
computed: { computed: {
}, },
@ -217,7 +239,43 @@ export default {
return return
} }
this.currentActive = value this.currentActive = value
} },
initPageData() {
//
let resourceSharingParam = {
"categoryId": "1816771402032877568",
"pageNum": 1,
"pageSize": 10
}
getPageData(resourceSharingParam).then(response => {
response.data.list.forEach(element => {
this.resourceSharing += element.contentDetail;
});
})
//
let guideBookParam = {
"categoryId": "1813828546838269952",
"pageNum": 1,
"pageSize": 10
}
getPageData(guideBookParam).then(response => {
response.data.list.forEach(element => {
this.guideBook += element.contentDetail;
});
})
//
let syllabusParam = {
"categoryId": "1813828322673692672",
"pageNum": 1,
"pageSize": 10
}
getPageData(syllabusParam).then(response => {
response.data.list.forEach(element => {
this.syllabus += element.contentDetail;
});
})
},
} }
} }
@ -623,4 +681,8 @@ export default {
line-height: 18px; line-height: 18px;
} }
.about-conts {
padding: 40px 0;
}
</style> </style>

View File

@ -45,7 +45,7 @@
<!-- 教学成果 --> <!-- 教学成果 -->
<div class="ayptjs" v-if="currentActive == 1"> <div class="ayptjs" v-if="currentActive == 1">
<div class="tt">教学成果</div> <div class="tt">教学成果</div>
<div class="ayptjs-list"> <!-- <div class="ayptjs-list">
<div class="item" v-for="(item, index) in 8"> <div class="item" v-for="(item, index) in 8">
<div class="img"> <div class="img">
<img src="../../assets/gw/Snipaste_2024-07-23_22-51-23.jpg" alt=""> <img src="../../assets/gw/Snipaste_2024-07-23_22-51-23.jpg" alt="">
@ -61,20 +61,20 @@
<p>查看详情</p> <p>查看详情</p>
</div> </div>
</div> </div>
</div> </div> -->
</div> </div>
<!-- 教学团队 --> <!-- 教学团队 -->
<div class="team" v-if="currentActive == 0"> <div class="team" v-if="currentActive == 0">
<div class="tt">教学团队</div> <div class="tt">教学团队</div>
<div class="team-list"> <!-- <div class="team-list">
<div class="item" v-for="(item, index) in 8"> <div class="item" v-for="(item, index) in 8">
<div class="img"> <div class="img">
<img src="../../assets/gw/Snipaste_2024-07-23_22-51-23.jpg" alt="" class="imgWO"> <img src="../../assets/gw/Snipaste_2024-07-23_22-51-23.jpg" alt="" class="imgWO">
</div> </div>
<div class="tts">王尔特</div> <div class="tts">王尔特</div>
</div> </div>
</div> </div> -->
</div> </div>