|
@@ -67,6 +67,23 @@
|
|
</ul>
|
|
</ul>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
|
|
+ <el-row class="homeMessage" style="margin-bottom:1rem;">
|
|
|
|
+ <el-col class="homeResTop">
|
|
|
|
+ <h4>待办事项</h4>
|
|
|
|
+ <a href=""></a>
|
|
|
|
+ </el-col>
|
|
|
|
+ <ul class="homeMessageMain">
|
|
|
|
+ <li v-for="(item, index) in noticeList" :key="index">
|
|
|
|
+ <el-col class="MessageMainTit text-owt"> {{ item.name }} {{ item.content }} </el-col>
|
|
|
|
+ <el-col class="MessageMainDay text-owt">
|
|
|
|
+ <el-link type="primary" @click="handleDelete(item.id)">[不再提示]</el-link>
|
|
|
|
+ </el-col>
|
|
|
|
+ </li>
|
|
|
|
+ <li v-if="noticeList.length <= 0">
|
|
|
|
+ <el-col :span="24" style="text-align:center">暂无待办事项</el-col>
|
|
|
|
+ </li>
|
|
|
|
+ </ul>
|
|
|
|
+ </el-row>
|
|
<el-row class="homeRes">
|
|
<el-row class="homeRes">
|
|
<el-col class="homeResTop">
|
|
<el-col class="homeResTop">
|
|
<h4>最新简历</h4>
|
|
<h4>最新简历</h4>
|
|
@@ -96,7 +113,7 @@
|
|
</li>
|
|
</li>
|
|
</ul>
|
|
</ul>
|
|
</el-row>
|
|
</el-row>
|
|
- <el-row class="homeMessage">
|
|
|
|
|
|
+ <el-row class="homeMessage" style="margin-bottom:1rem">
|
|
<el-col class="homeResTop">
|
|
<el-col class="homeResTop">
|
|
<h4>系统消息</h4>
|
|
<h4>系统消息</h4>
|
|
<a href=""></a>
|
|
<a href=""></a>
|
|
@@ -123,9 +140,6 @@ import resumes from '@publics/src/views/resume.vue';
|
|
import { mapActions, mapState } from 'vuex';
|
|
import { mapActions, mapState } from 'vuex';
|
|
export default {
|
|
export default {
|
|
name: 'home',
|
|
name: 'home',
|
|
- // metaInfo: {
|
|
|
|
- // title: '企业主页',
|
|
|
|
- // },
|
|
|
|
components: {
|
|
components: {
|
|
resumes,
|
|
resumes,
|
|
},
|
|
},
|
|
@@ -146,15 +160,17 @@ export default {
|
|
{ message: '【在线招聘】您申请的在线招聘:"fffffff,已通过审批', day: '2019-07-02 16:05' },
|
|
{ message: '【在线招聘】您申请的在线招聘:"fffffff,已通过审批', day: '2019-07-02 16:05' },
|
|
],
|
|
],
|
|
info: {},
|
|
info: {},
|
|
|
|
+ noticeList: [],
|
|
}),
|
|
}),
|
|
created() {
|
|
created() {
|
|
this.search();
|
|
this.search();
|
|
|
|
+ this.getNoticeList();
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
...mapState(['user']),
|
|
...mapState(['user']),
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- ...mapActions(['resumesOperation', 'lettersOperation', 'corpSchInfo', 'postOperation', 'stucorpOperation']),
|
|
|
|
|
|
+ ...mapActions(['resumesOperation', 'lettersOperation', 'corpSchInfo', 'postOperation', 'stucorpOperation', 'noticeOperation']),
|
|
async search(searchInfo) {
|
|
async search(searchInfo) {
|
|
//1直接拿着参数发送请求
|
|
//1直接拿着参数发送请求
|
|
let result = await this.lettersOperation({ type: 'list', data: { corpname: this.user.corpname } });
|
|
let result = await this.lettersOperation({ type: 'list', data: { corpname: this.user.corpname } });
|
|
@@ -206,6 +222,18 @@ export default {
|
|
this.resumeDialog = true;
|
|
this.resumeDialog = true;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ async getNoticeList() {
|
|
|
|
+ let result = await this.noticeOperation({ type: 'list', data: { userid: this.user.corpid, type: 1 } });
|
|
|
|
+ if (`${result.errcode}` === '0') {
|
|
|
|
+ this.$set(this, `noticeList`, result.data ? result.data : []);
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ async noticeDelete(id) {
|
|
|
|
+ let result = await this.noticeOperation({ type: 'delete', data: { id: id } });
|
|
|
|
+ if (`${result.errcode}` === '0') {
|
|
|
|
+ this.getNoticeList();
|
|
|
|
+ }
|
|
|
|
+ },
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|