|
@@ -20,12 +20,19 @@
|
|
<el-card>
|
|
<el-card>
|
|
<mx-search-group class="mb10" justify="end" :span="6" v-model="scoreRank" placeholder="请输入分数或位次" @search="getList"
|
|
<mx-search-group class="mb10" justify="end" :span="6" v-model="scoreRank" placeholder="请输入分数或位次" @search="getList"
|
|
></mx-search-group>
|
|
></mx-search-group>
|
|
- <mx-condition ref="condition" :query-params="queryParams" @query="handleQuery"
|
|
|
|
|
|
+ <mx-condition ref="condition" :query-params="queryParams" :require-fields="requireFields" @query="handleQuery"
|
|
@invalid="handleInvalidQuery"
|
|
@invalid="handleInvalidQuery"
|
|
></mx-condition>
|
|
></mx-condition>
|
|
<div class="content">
|
|
<div class="content">
|
|
<div class="table-wrap" v-loading="loading">
|
|
<div class="table-wrap" v-loading="loading">
|
|
- <mx-table :rows="batchData" :propDefines="propDefines"></mx-table>
|
|
|
|
|
|
+ <mx-table :rows="batchData" :propDefines="propDefines">
|
|
|
|
+ <template #rank="{row}">
|
|
|
|
+ <p>{{row.highestRank}}~{{row.lowestRank}}</p>
|
|
|
|
+ </template>
|
|
|
|
+ <template #score="{row}">
|
|
|
|
+ <p>{{row.score}}~{{row.maxScore}}</p>
|
|
|
|
+ </template>
|
|
|
|
+ </mx-table>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<pagination :total="pageForm.total" :autoScroll="false" @pagination="onChangePage" :page.sync="pageForm.pageNum"
|
|
<pagination :total="pageForm.total" :autoScroll="false" @pagination="onChangePage" :page.sync="pageForm.pageNum"
|
|
@@ -41,7 +48,7 @@ import { yfydList } from '@/api/webApi/career-other'
|
|
import MxCondition from '@/components/MxCondition/mx-condition'
|
|
import MxCondition from '@/components/MxCondition/mx-condition'
|
|
import MxSearchGroup from '@/components/MxSearch/mx-search-group'
|
|
import MxSearchGroup from '@/components/MxSearch/mx-search-group'
|
|
import Pagination from '@/components/Pagination'
|
|
import Pagination from '@/components/Pagination'
|
|
-
|
|
|
|
|
|
+import { mapGetters } from 'vuex'
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
MxCondition,
|
|
MxCondition,
|
|
@@ -56,6 +63,7 @@ export default {
|
|
yfydYear: '',
|
|
yfydYear: '',
|
|
yfydMode: ''
|
|
yfydMode: ''
|
|
},
|
|
},
|
|
|
|
+ requireFields:['yfydYear'],
|
|
pageForm: { pageNum: 1, pageSize: 10, total: 0 },
|
|
pageForm: { pageNum: 1, pageSize: 10, total: 0 },
|
|
backimg:
|
|
backimg:
|
|
'url(' + require('@/assets/images/career/icon_colleges.png') + ')',
|
|
'url(' + require('@/assets/images/career/icon_colleges.png') + ')',
|
|
@@ -72,16 +80,12 @@ export default {
|
|
label: '科类'
|
|
label: '科类'
|
|
},
|
|
},
|
|
score: {
|
|
score: {
|
|
- label: '最低分数'
|
|
|
|
- },
|
|
|
|
- maxScore: {
|
|
|
|
- label: '最高分数'
|
|
|
|
|
|
+ label: '分数',
|
|
|
|
+ slot:'score'
|
|
},
|
|
},
|
|
lowestRank: {
|
|
lowestRank: {
|
|
- label: '最低位次'
|
|
|
|
- },
|
|
|
|
- highestRank: {
|
|
|
|
- label: '最高位次'
|
|
|
|
|
|
+ label: '位次',
|
|
|
|
+ slot:'rank'
|
|
},
|
|
},
|
|
num: {
|
|
num: {
|
|
label: '人数'
|
|
label: '人数'
|
|
@@ -93,6 +97,10 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
|
|
+ this.queryParams.yfydLocation = this.currentUser.provinceName
|
|
|
|
+ },
|
|
|
|
+ computed:{
|
|
|
|
+ ...mapGetters(['currentUser']),
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
getList() {
|
|
getList() {
|