|
@@ -9,12 +9,14 @@
|
|
|
</el-col>
|
|
|
</el-row> -->
|
|
|
<el-table :data="list" border style="width: 100%">
|
|
|
- <el-table-column fixed type="index" label="序号" width="80" align="center"> </el-table-column>
|
|
|
- <el-table-column prop="title" label="双选会名称">
|
|
|
+ <!-- <el-table-column fixed type="index" label="序号" width="80" align="center"> </el-table-column> -->
|
|
|
+ <el-table-column prop="title" label="双选会名称" width="200">
|
|
|
<template v-slot="scoped">
|
|
|
<el-row>
|
|
|
<el-col :span="24">
|
|
|
- <el-link type="primary" @click="$router.push({ path: '/jobs/jobfair/info', query: { id: scoped.row.id } })">{{ scoped.row.title }}</el-link>
|
|
|
+ <el-link type="primary" @click="$router.push({ path: '/jobs/jobfair/info', query: { id: type === 'my' ? scoped.row.fairid : scoped.row.id } })">
|
|
|
+ {{ scoped.row.title }}
|
|
|
+ </el-link>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</template>
|
|
@@ -23,9 +25,10 @@
|
|
|
<el-table-column prop="city" label="城市" width="120"></el-table-column>
|
|
|
<el-table-column prop="schname" label="学校" width="150" sortable></el-table-column>
|
|
|
<el-table-column prop="time" label="时间" width="150" sortable></el-table-column>
|
|
|
+ <el-table-column prop="booth" label="展位号" width="150" sortable v-if="type === 'my'"></el-table-column>
|
|
|
<el-table-column prop="status" label="状态" v-if="type === 'my'" sortable>
|
|
|
<template v-slot="scoped">
|
|
|
- {{ `${scoped.row.status}` === '0' ? '未审核' : `${scoped.row.status}` === '1' ? '审核成功' : '审核失败' }}
|
|
|
+ {{ `${scoped.row.status}` === '0' ? '审核成功' : `${scoped.row.status}` === '1' ? '未审核' : '审核失败' }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column fixed="right" label="操作">
|
|
@@ -34,7 +37,7 @@
|
|
|
<el-row>
|
|
|
<el-col :span="24">
|
|
|
<el-button
|
|
|
- v-if="`${scoped.row.status}` !== '1'"
|
|
|
+ v-if="`${scoped.row.status}` !== '0'"
|
|
|
type="text"
|
|
|
size="small"
|
|
|
@click="$router.push({ path: '/jobs/jobfair/detail', query: { id: scoped.row.id } })"
|
|
@@ -43,7 +46,7 @@
|
|
|
<el-button v-else type="text" size="small" :disabled="true">已参加</el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
- <el-button v-if="`${scoped.row.status}` !== '1'" type="text" size="small" @click="toFeedback()">上传回执</el-button>
|
|
|
+ <el-button v-if="`${scoped.row.status}` !== '1'" type="text" size="small" @click="toFeedback(scoped.row)">上传回执</el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
<el-button size="mini" type="text" @click="handleDelete(scoped.row.id)">删除</el-button>
|
|
@@ -72,13 +75,21 @@
|
|
|
</el-pagination>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
- <el-dialog title="上传回执" :visible.sync="dialog" width="30%">
|
|
|
- 上传回执,还没调好接口
|
|
|
+ <el-dialog title="上传回执" :visible.sync="dialog" width="30%" center>
|
|
|
+ <el-row style="text-align:center;">
|
|
|
+ <el-col :span="24">
|
|
|
+ <upload :url="`/files/corp/receipt/${info.id}/upload`" :limit="1" :data="info.receipt_letter" type="receipt_letter" @upload="uploadSuccess"></upload>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" style="padding-top:1rem">
|
|
|
+ <el-button type="primary" @click="saveReceipt()">保 存</el-button>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import upload from '@/components/upload.vue';
|
|
|
export default {
|
|
|
name: 'jobfairlist',
|
|
|
props: {
|
|
@@ -86,11 +97,14 @@ export default {
|
|
|
dataList: { type: Array, defalut: () => [] },
|
|
|
totalRow: { type: Number, defalut: 20 },
|
|
|
},
|
|
|
- components: {},
|
|
|
+ components: {
|
|
|
+ upload,
|
|
|
+ },
|
|
|
data: () => ({
|
|
|
keyword: '',
|
|
|
currentPage: 1,
|
|
|
list: [],
|
|
|
+ info: {},
|
|
|
dialog: false,
|
|
|
}),
|
|
|
created() {},
|
|
@@ -115,12 +129,21 @@ export default {
|
|
|
this.currentPage = val;
|
|
|
this.$emit('changePage', { type: this.type, currentPage: this.currentPage });
|
|
|
},
|
|
|
- toFeedback() {
|
|
|
+ toFeedback(item) {
|
|
|
+ this.$set(this, `info`, item);
|
|
|
this.dialog = true;
|
|
|
},
|
|
|
handleDelete(id) {
|
|
|
this.$emit('delete', { id: id });
|
|
|
},
|
|
|
+ uploadSuccess({ type, data }) {
|
|
|
+ this.$set(this.info, `${type}`, { name: data.name, uri: data.uri });
|
|
|
+ },
|
|
|
+ saveReceipt() {
|
|
|
+ this.$emit(`receipt`, this.info);
|
|
|
+ this.$set(this, `info`, {});
|
|
|
+ this.$set(this, `dialog`, false);
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|