You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
2.4 KiB
64 lines
2.4 KiB
<template>
|
|
<layout group="职业百科" title="职业百科" @search="search">
|
|
<div class="c-page">
|
|
<div class="c-row c-flex" style="height: 53vh; padding: 0 5vh; justify-content: start;">
|
|
<router-link :to="'/views/zhiye/list?query='+item.industry_name+'&id='+item.industry_id" v-for="item in model.table_List" style="width: 20%;height:20vh;box-sizing:border-box;overflow:hidden; text-align: center; cursor: pointer;">
|
|
<div class="c-item-cell" :style="'background-size:cover;width:70%;margin:0 auto;background-image:url(./images/zhiye/'+item.industry_logo+');'">
|
|
</div>
|
|
<!--{{item}}-->
|
|
<div style="width: 80%; line-height:4vh;margin:0 auto;height:4vh;overflow:hidden;">{{item.industry_name}}</div>
|
|
</router-link>
|
|
</div>
|
|
<div class="c-row" style=" height:13vh;position:relative;padding:0 5vh;">
|
|
<pagination v-model:index="model.pageNumber" v-model:size="model.pageSize" :total="model.totalRow" :callback="load" />
|
|
</div>
|
|
</div>
|
|
</layout>
|
|
</template>
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
url: '/dsideal_yy/zygh/occupation/getIndustryList',
|
|
model: {
|
|
pageNumber: 1,
|
|
pageSize: 10,
|
|
},
|
|
layout: store.state,
|
|
};
|
|
},
|
|
mounted() {
|
|
|
|
store.state.query = this.$route.query.query;
|
|
this.load();
|
|
},
|
|
methods: {
|
|
load() {
|
|
this.model.list = [];
|
|
var uri = new URI().setQuery("pageNumber", this.model.pageNumber).setQuery("pageSize", this.model.pageSize);
|
|
var parent = this;
|
|
$.post(this.url, uri.query(), function (response) {
|
|
parent.model = response;
|
|
});
|
|
|
|
},
|
|
search: function () {
|
|
if (store.state.query) {
|
|
this.$router.push('/views/zhiye/list?query=' + store.state.query);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
<style>
|
|
.c-item-cell {
|
|
width: 80%;
|
|
height: 16vh;
|
|
position: relative;
|
|
overflow: hidden;
|
|
text-align: center;
|
|
background-position: center center;
|
|
background-size: contain;
|
|
background-repeat: no-repeat;
|
|
}
|
|
</style> |