|
@@ -24,44 +24,25 @@
|
|
</el-row>
|
|
</el-row>
|
|
<el-card class="box-card" shadow="never" style="margin-top: 2rem">
|
|
<el-card class="box-card" shadow="never" style="margin-top: 2rem">
|
|
<el-row>
|
|
<el-row>
|
|
- <el-table :data="list" style="width: 100%" :show-header="false">
|
|
|
|
- <el-table-column align="left">
|
|
|
|
- <template v-slot="scope">
|
|
|
|
- <el-row type="flex" align="middle" justify="center">
|
|
|
|
- <el-col :span="3">
|
|
|
|
- <div class="demo-basic--circle">
|
|
|
|
- <div><el-avatar shape="square" :size="80" :src="squareUrl"></el-avatar></div>
|
|
|
|
- </div>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="21">
|
|
|
|
- <el-row type="flex" align="middle" justify="center">
|
|
|
|
- <el-col :span="18">
|
|
|
|
- <el-link type="primary" @click="turnDetail(scope.row.id)">{{ scope.row.title }}</el-link>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="6">
|
|
|
|
- <span style="color: #F56C6C;">{{ scope.row.date }}</span>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row type="flex" align="bottom" justify="center">
|
|
|
|
- <el-col :span="8"> </el-col>
|
|
|
|
- <el-col :span="10"> </el-col>
|
|
|
|
- <el-col :span="8"> </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row type="flex" align="bottom" justify="center">
|
|
|
|
- <el-col :span="8"> </el-col>
|
|
|
|
- <el-col :span="10">
|
|
|
|
-
|
|
|
|
- </el-col>
|
|
|
|
- <!-- <el-col :span="6">
|
|
|
|
- <i class="el-icon-view" style="padding-right: 0.3rem"></i>
|
|
|
|
- <span style="font-size: 0.9rem; color: #999999;">{{ scope.row.view }} </span>
|
|
|
|
- </el-col> -->
|
|
|
|
- </el-row>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- </el-table>
|
|
|
|
|
|
+ <el-col class="list" :span="24" v-for="(item, index) in list" :key="index">
|
|
|
|
+ <el-col :span="3" class="image">
|
|
|
|
+ <el-image style="width:80px;height:80px;" :src="item.logo_url"></el-image>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="20" class="info">
|
|
|
|
+ <el-col :span="24" class="title">
|
|
|
|
+ <el-link @click="turnDetail(item.id)">{{ item.title }}</el-link>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="24" class="type">
|
|
|
|
+ <p>招聘类型:{{ item.is_practice === 0 ? '全职' : '实习' }}</p>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="24" class="schname">
|
|
|
|
+ <p>主办方:{{ item.schname }}</p>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="24" class="corpname">
|
|
|
|
+ <p>参会企业:{{ item.corpname }}</p>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-col>
|
|
</el-row>
|
|
</el-row>
|
|
</el-card>
|
|
</el-card>
|
|
<el-row class="row_pagination">
|
|
<el-row class="row_pagination">
|
|
@@ -91,7 +72,7 @@ export default {
|
|
},
|
|
},
|
|
computed: {},
|
|
computed: {},
|
|
methods: {
|
|
methods: {
|
|
- ...mapActions(['jobinfoOperation']),
|
|
|
|
|
|
+ ...mapActions(['jobinfoOperation', 'corpOperation']),
|
|
async search(page) {
|
|
async search(page) {
|
|
let skip = 0;
|
|
let skip = 0;
|
|
if (page) {
|
|
if (page) {
|
|
@@ -99,8 +80,12 @@ export default {
|
|
}
|
|
}
|
|
let result = await this.jobinfoOperation({ type: 'list', data: { skip: skip, limit: this.$limit, ...this.searchInfo } });
|
|
let result = await this.jobinfoOperation({ type: 'list', data: { skip: skip, limit: this.$limit, ...this.searchInfo } });
|
|
if (`${result.errcode}` === '0') {
|
|
if (`${result.errcode}` === '0') {
|
|
- this.$set(this, `list`, result.data);
|
|
|
|
|
|
+ for (const val of result.data) {
|
|
|
|
+ let { identity } = await this.corpOperation({ type: 'search', data: { corpid: val.corpid } });
|
|
|
|
+ val.logo_url = identity.logo_url;
|
|
|
|
+ }
|
|
this.$set(this, `totalRow`, result.total);
|
|
this.$set(this, `totalRow`, result.total);
|
|
|
|
+ this.$set(this, `list`, result.data);
|
|
} else {
|
|
} else {
|
|
this.$message.error(result.errmsg ? result.errmsg : 'error');
|
|
this.$message.error(result.errmsg ? result.errmsg : 'error');
|
|
}
|
|
}
|
|
@@ -113,6 +98,10 @@ export default {
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|
|
|
|
+p {
|
|
|
|
+ padding: 0;
|
|
|
|
+ margin: 0;
|
|
|
|
+}
|
|
.row_pagination {
|
|
.row_pagination {
|
|
text-align: right;
|
|
text-align: right;
|
|
margin-top: 1rem;
|
|
margin-top: 1rem;
|
|
@@ -120,4 +109,21 @@ export default {
|
|
.search_center {
|
|
.search_center {
|
|
text-align: center;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
+.list {
|
|
|
|
+ padding: 12px 0;
|
|
|
|
+ border-bottom: 1px solid #ccc;
|
|
|
|
+}
|
|
|
|
+.list:hover {
|
|
|
|
+ background-color: #cccccc3f;
|
|
|
|
+}
|
|
|
|
+.image {
|
|
|
|
+ text-align: center;
|
|
|
|
+}
|
|
|
|
+/deep/.info .title .el-link {
|
|
|
|
+ font-size: 20px;
|
|
|
|
+ color: #409eff;
|
|
|
|
+}
|
|
|
|
+.info p {
|
|
|
|
+ font-size: 14px;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|