|
@@ -1,8 +1,265 @@
|
|
<template>
|
|
<template>
|
|
- 高校详情视频
|
|
|
|
|
|
+
|
|
|
|
+ <div>
|
|
|
|
+
|
|
|
|
+ 创建时间:{{entity.ctime}} 所在地区:{{entity.areaname}}
|
|
|
|
+ 学历层次:
|
|
|
|
+ <dict-tag :options="educationlevel" :value="entity.educationlevel"/>
|
|
|
|
+ 办学性质:
|
|
|
|
+ <dict-tag :options="property" :value="entity.property"/>
|
|
|
|
+ 院校类型:
|
|
|
|
+ <dict-tag :options="school_category" :value="entity.school_category"/>
|
|
|
|
+ 院校隶属:{{entity.subjection}}
|
|
|
|
+ 联系电话:{{entity.telephone}}
|
|
|
|
+ 通讯地址:{{entity.address}}
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <el-button @click="collection" v-if="collectionList.length == 0">收藏</el-button>
|
|
|
|
+ <el-button @click="cancle_collection" v-if="collectionList.length == 1">取消收藏</el-button>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <el-card style="width:80%;">
|
|
|
|
+ <div style="display: flex;flex-direction: row;justify-content: space-between">
|
|
|
|
+ <div @click="changeShowIndex(1)">学校简介</div>
|
|
|
|
+ <div @click="changeShowIndex(2)">院系设置</div>
|
|
|
|
+ <div @click="changeShowIndex(3)">学科专业</div>
|
|
|
|
+ <div @click="changeShowIndex(4)">奖励资助</div>
|
|
|
|
+ <div @click="changeShowIndex(5)">考分查询</div>
|
|
|
|
+ <div @click="changeShowIndex(6)">计划查询</div>
|
|
|
|
+ <div @click="changeShowIndex(7)">招生简章</div>
|
|
|
|
+ <div @click="changeShowIndex(8)">学校视频</div>
|
|
|
|
+ </div>
|
|
|
|
+ </el-card>
|
|
|
|
+
|
|
|
|
+ <div v-show="showIndex == 1">
|
|
|
|
+ <div v-html="entity.summary">
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-show="showIndex == 2">
|
|
|
|
+ <div v-html="entity.collegeset">
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-show="showIndex == 3">
|
|
|
|
+ <div v-html="entity.specialtyintroduction">
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-show="showIndex == 4">
|
|
|
|
+ <div v-html="entity.incentivegrant">
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-show="showIndex == 5">
|
|
|
|
+ -------考分查询-------
|
|
|
|
+ <div @click="showAreaChooseHandler">招生地区::{{form.areaname}}</div>
|
|
|
|
+ <div @click="showCategoryHandler">考生类别::{{form.categoryName}}</div>
|
|
|
|
+ <el-button @click="getScore">点击查询</el-button>
|
|
|
|
+ <el-table :data="kf_tableData">
|
|
|
|
+ <el-table-column label="招生年份" align="center" key="years" prop="years"/>
|
|
|
|
+ <el-table-column label="录取批次" align="center" key="batchname" prop="batchname"/>
|
|
|
|
+ <el-table-column label="最低分" align="center" key="lowscore" prop="lowscore"/>
|
|
|
|
+ <el-table-column label="最低分位次" align="center" key="totalorder" prop="totalorder"/>
|
|
|
|
+ </el-table>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-show="showIndex == 6">
|
|
|
|
+ <div @click="showAreaChooseHandler">招生地区::{{form.areaname}}</div>
|
|
|
|
+ <div @click="showGradeHandler">年份::{{form.grade}}</div>
|
|
|
|
+ <div @click="showCategoryHandler">考生类别::{{form.categoryName}}</div>
|
|
|
|
+ <el-button @click="getPlan">点击查询</el-button>
|
|
|
|
+ <el-table :data="jh_tableData">
|
|
|
|
+ <el-table-column label="招生年份" align="center" key="years" prop="years"/>
|
|
|
|
+ <el-table-column label="专业名称" align="center" key="enrollname" prop="enrollname"/>
|
|
|
|
+ <el-table-column label="大学学制" align="center" key="studyyears" prop="studyyears"/>
|
|
|
|
+ <el-table-column label="批次" align="center" key="batch_name" prop="batch_name"/>
|
|
|
|
+ <el-table-column label="计划招生人数" align="center" key="plannum" prop="plannum"/>
|
|
|
|
+ <el-table-column label="学费" align="center" key="fee" prop="fee"/>
|
|
|
|
+ </el-table>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-show="showIndex == 7">
|
|
|
|
+ <div v-html="entity.sturecruitmen">
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-show="showIndex == 8">
|
|
|
|
+ <div ref="videoContainer" class="video-container">
|
|
|
|
+ <video ref="videoPlayer" class="video-js vjs-default-skin" controls preload="auto" :data-setup="{}">
|
|
|
|
+ <!-- 可以在这里插入source标签以指定你的视频源 -->
|
|
|
|
+ <source :src="entity.path" type="video/mp4">
|
|
|
|
+ </video>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div>
|
|
|
|
+ <!--招生地区-->
|
|
|
|
+ <el-dialog v-model="showAreaChoose" width="600px" append-to-body>
|
|
|
|
+ <div v-for="dict in gk_province" :key="dict.value" @click="chooseArea(dict)">{{dict.label}}</div>
|
|
|
|
+ </el-dialog>
|
|
|
|
+ <!--考生类别-->
|
|
|
|
+ <el-dialog v-model="showCategoryChoose" width="600px" append-to-body>
|
|
|
|
+ <div v-for="dict in category" :key="dict.value" @click="chooseCategory(dict)">{{dict.label}}</div>
|
|
|
|
+ </el-dialog>
|
|
|
|
+ <!--年份-->
|
|
|
|
+ <el-dialog v-model="showGradeChoose" width="600px" append-to-body>
|
|
|
|
+ <div v-for="item in grade" :key="item" @click="chooseGrade(item)">{{item}}</div>
|
|
|
|
+ </el-dialog>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
|
|
+ import {
|
|
|
|
+ universityDetail,
|
|
|
|
+ getPlanYearList,
|
|
|
|
+ getScoreList,
|
|
|
|
+ getPlanList,
|
|
|
|
+ addCollection,
|
|
|
|
+ getCollection,
|
|
|
|
+ removeCollection
|
|
|
|
+ } from '@/api/xjc-integratedmachine/university.js'
|
|
|
|
+ import videojs from 'video.js';
|
|
|
|
+ import 'video.js/dist/video-js.css';
|
|
|
|
+
|
|
|
|
+ const showAreaChoose = ref(false)
|
|
|
|
+ const showCategoryChoose = ref(false)
|
|
|
|
+ const showGradeChoose = ref(false)
|
|
|
|
+
|
|
|
|
+ const router = useRouter()
|
|
|
|
+ const route = useRoute()
|
|
|
|
+
|
|
|
|
+ const param = route.query
|
|
|
|
+ const showIndex = ref(1)
|
|
|
|
+
|
|
|
|
+ const grade = ref([])
|
|
|
|
+
|
|
|
|
+ const {proxy} = getCurrentInstance()
|
|
|
|
+
|
|
|
|
+ const {gk_province, category, educationlevel, property, school_category} = proxy.useDict('gk_province', 'category', 'educationlevel', 'property', 'school_category')
|
|
|
|
+
|
|
|
|
+ const form = ref({
|
|
|
|
+ area: null,
|
|
|
|
+ areaname: null,
|
|
|
|
+ university: param.name,
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ const entity = ref({})
|
|
|
|
+ const collectionList = ref([])
|
|
|
|
+
|
|
|
|
+ function detail() {
|
|
|
|
+ universityDetail({
|
|
|
|
+ id: param.id
|
|
|
|
+ }).then(resp => {
|
|
|
|
+ entity.value.oldid = resp.entity.oldid
|
|
|
|
+ //学校信息在这里
|
|
|
|
+ entity.value = resp.entity
|
|
|
|
+ //看看收藏
|
|
|
|
+ queryConnection()
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function changeShowIndex(index) {
|
|
|
|
+ showIndex.value = index
|
|
|
|
+ if (showIndex.value == 8) {
|
|
|
|
+ const player = videojs(playerId, {autoplay: true});
|
|
|
|
+ player.src(entity.value.path);
|
|
|
|
+ player.on("ended", () => {
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function showAreaChooseHandler() {
|
|
|
|
+ showAreaChoose.value = true
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function chooseArea(item) {
|
|
|
|
+ form.value.area = item.value
|
|
|
|
+ form.value.areaname = item.label
|
|
|
|
+ showAreaChoose.value = false
|
|
|
|
+ getPlanYear()
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function showCategoryHandler() {
|
|
|
|
+ showCategoryChoose.value = true
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function chooseCategory(item) {
|
|
|
|
+ form.value.category = item.value
|
|
|
|
+ form.value.categoryName = item.label
|
|
|
|
+ showCategoryChoose.value = false
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function showGradeHandler() {
|
|
|
|
+ showGradeChoose.value = true
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function chooseGrade(item) {
|
|
|
|
+ form.value.grade = item
|
|
|
|
+ showGradeChoose.value = false
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function getPlanYear() {
|
|
|
|
+ getPlanYearList({
|
|
|
|
+ university: param.name,
|
|
|
|
+ area: form.value.area
|
|
|
|
+ }).then(resp => {
|
|
|
|
+ grade.value = resp.list
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ const kf_tableData = ref([])
|
|
|
|
+
|
|
|
|
+ function getScore() {
|
|
|
|
+ let data = {
|
|
|
|
+ area: form.value.area,
|
|
|
|
+ university: entity.value.oldid,
|
|
|
|
+ category: form.value.category
|
|
|
|
+ }
|
|
|
|
+ getScoreList(data).then(resp => {
|
|
|
|
+ kf_tableData.value = resp.list
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ const jh_tableData = ref([])
|
|
|
|
+
|
|
|
|
+ function getPlan() {
|
|
|
|
+ let data = {
|
|
|
|
+ university: param.name,
|
|
|
|
+ area: form.value.area,
|
|
|
|
+ category: form.value.category,
|
|
|
|
+ year: form.value.grade
|
|
|
|
+ }
|
|
|
|
+ getPlanList(data).then(resp => {
|
|
|
|
+ jh_tableData.value = resp.list
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function collection() {
|
|
|
|
+ let data = {
|
|
|
|
+ contentType: 1,
|
|
|
|
+ contentId: param.id,
|
|
|
|
+ }
|
|
|
|
+ addCollection(data).then(resp => {
|
|
|
|
+ queryConnection()
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ function queryConnection() {
|
|
|
|
+ let data = {
|
|
|
|
+ contentType: 1,
|
|
|
|
+ contentId: param.id,
|
|
|
|
+ }
|
|
|
|
+ getCollection(data).then(resp => {
|
|
|
|
+ collectionList.value = resp.collection
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ function cancle_collection() {
|
|
|
|
+ let data = {
|
|
|
|
+ id: collectionList.value[0].id,
|
|
|
|
+ }
|
|
|
|
+ removeCollection(data).then(resp => {
|
|
|
|
+ queryConnection()
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ detail()
|
|
|
|
|
|
</script>
|
|
</script>
|
|
|
|
|