|
@@ -50,26 +50,25 @@
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
<td>学科门类</td>
|
|
<td>学科门类</td>
|
|
-<!-- <td class="text-td" v-for="(item,index) in contrastData" :key="index">-->
|
|
|
|
-<!-- <p style="text-align: center;font-size: 32px">{{ item.smoSpecialty.subjectcategories }}</p>-->
|
|
|
|
-<!-- </td>-->
|
|
|
|
|
|
+ <td class="text-td" v-for="(item,index) in contrastData" :key="index">
|
|
|
|
+ <p style="text-align: center;font-size: 32px">{{ item.smoSpecialty && item.smoSpecialty.subjectcategories }}</p>
|
|
|
|
+ </td>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
<td>一级学科</td>
|
|
<td>一级学科</td>
|
|
-<!-- <td class="text-td" v-for="(item,index) in contrastData" :key="index">-->
|
|
|
|
-<!-- <p style="text-align: center">{{ item.smoSpecialty.firstsubject }}</p>-->
|
|
|
|
-<!-- </td>-->
|
|
|
|
|
|
+ <td class="text-td" v-for="(item,index) in contrastData" :key="index">
|
|
|
|
+ <p style="text-align: center">{{ item.smoSpecialty && item.smoSpecialty.firstsubject }}</p>
|
|
|
|
+ </td>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
<td>授权学位</td>
|
|
<td>授权学位</td>
|
|
<td v-for="(item,index) in contrastData" :key="index" >
|
|
<td v-for="(item,index) in contrastData" :key="index" >
|
|
<p>{{ item.specialty.degree }}</p>
|
|
<p>{{ item.specialty.degree }}</p>
|
|
</td>
|
|
</td>
|
|
-
|
|
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
<td>修学年限</td>
|
|
<td>修学年限</td>
|
|
- <td v-for="(item,index) in contrastData" :key="index" class="text-td">{{ item.years }}</td>
|
|
|
|
|
|
+ <td v-for="(item,index) in contrastData" :key="index" class="text-td">{{ item.specialty.years }}</td>
|
|
</tr>
|
|
</tr>
|
|
</tbody>
|
|
</tbody>
|
|
</table>
|
|
</table>
|
|
@@ -87,7 +86,7 @@
|
|
<tr class="two-tr">
|
|
<tr class="two-tr">
|
|
<td>主修课程</td>
|
|
<td>主修课程</td>
|
|
<td class="text-td" v-for="(item,index) in contrastData" :key="index">
|
|
<td class="text-td" v-for="(item,index) in contrastData" :key="index">
|
|
- <p style="text-align: center" v-html="item.course"></p>
|
|
|
|
|
|
+ <p style="text-align: left;padding:10px;font-size: 28px" v-html="item.specialty.course"></p>
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
</tbody>
|
|
</tbody>
|
|
@@ -106,10 +105,8 @@
|
|
<tr class="two-tr">
|
|
<tr class="two-tr">
|
|
<td>专业解读</td>
|
|
<td>专业解读</td>
|
|
<td class="text-td" v-for="(item,index) in contrastData" :key="index">
|
|
<td class="text-td" v-for="(item,index) in contrastData" :key="index">
|
|
- <div class="info" v-if="!item.describe" v-html="item.describe"></div>
|
|
|
|
|
|
+ <div class="info" v-if="!item.specialty.describe" v-html="item.specialty.describe"></div>
|
|
<div class="info" v-else >暂无</div>
|
|
<div class="info" v-else >暂无</div>
|
|
-
|
|
|
|
-<!-- <p style="text-align: center" >{{ item.code }}</p>-->
|
|
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
</tbody>
|
|
</tbody>
|
|
@@ -120,7 +117,7 @@
|
|
<thead>
|
|
<thead>
|
|
<tr class="one-tr">
|
|
<tr class="one-tr">
|
|
<td class="first-title">专业名称</td>
|
|
<td class="first-title">专业名称</td>
|
|
- <td v-for="(item,index) in contrastData" :key="index">{{ item.name }}</td>
|
|
|
|
|
|
+ <td v-for="(item,index) in contrastData" :key="index">{{ item.specialty.name }}</td>
|
|
</tr>
|
|
</tr>
|
|
</thead>
|
|
</thead>
|
|
<tbody>
|
|
<tbody>
|
|
@@ -128,7 +125,7 @@
|
|
<tr class="two-tr">
|
|
<tr class="two-tr">
|
|
<td>就业前景与方向</td>
|
|
<td>就业前景与方向</td>
|
|
<td class="text-td" v-for="(item,index) in contrastData" :key="index">
|
|
<td class="text-td" v-for="(item,index) in contrastData" :key="index">
|
|
- <div class="info" v-html="item.describe"></div>
|
|
|
|
|
|
+ <div class="info" v-html="item.specialty.describe"></div>
|
|
<!-- <p style="text-align: center" >{{ item.code }}</p>-->
|
|
<!-- <p style="text-align: center" >{{ item.code }}</p>-->
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
@@ -169,6 +166,8 @@ import Drag_component from "@/views/xjc-integratedmachine/components/drag_compon
|
|
import {ref} from "vue";
|
|
import {ref} from "vue";
|
|
import {getUniversityByKeyword} from "@/api/xjc-integratedmachine/environment/university.js";
|
|
import {getUniversityByKeyword} from "@/api/xjc-integratedmachine/environment/university.js";
|
|
import {getCompareList} from "@/api/xjc-integratedmachine/environment/common.js";
|
|
import {getCompareList} from "@/api/xjc-integratedmachine/environment/common.js";
|
|
|
|
+import {occupationDetail} from "@/api/xjc-integratedmachine/environment/occupation.js";
|
|
|
|
+import {specialtyDetail} from "@/api/xjc-integratedmachine/environment/specialty.js";
|
|
|
|
|
|
|
|
|
|
const router = useRouter()
|
|
const router = useRouter()
|
|
@@ -253,7 +252,6 @@ function backTo() {
|
|
|
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
setHeadinfo()
|
|
setHeadinfo()
|
|
-
|
|
|
|
})
|
|
})
|
|
|
|
|
|
const contrastData = ref([])
|
|
const contrastData = ref([])
|
|
@@ -262,9 +260,17 @@ function getData() {
|
|
getCompareList({
|
|
getCompareList({
|
|
type:'2'
|
|
type:'2'
|
|
}).then(resp => {
|
|
}).then(resp => {
|
|
- console.log("resp.rows",resp.rows)
|
|
|
|
contrastData.value = resp.rows
|
|
contrastData.value = resp.rows
|
|
- console.log("contrastData.value----",contrastData.value)
|
|
|
|
|
|
+ contrastData.value.map(item =>{
|
|
|
|
+ specialtyDetail({
|
|
|
|
+ id: item.businessId
|
|
|
|
+ }).then(resp => {
|
|
|
|
+ console.log(resp,"resp")
|
|
|
|
+ item.smoSpecialty = resp.smoSpecialty
|
|
|
|
+ item.kaishe_list = resp.kaishe_list
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ console.log("contrastData.value",contrastData.value);
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|