|
@@ -45,6 +45,25 @@
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
+ <el-col class="main">
|
|
|
|
+ <el-col class="line">待办事项</el-col>
|
|
|
|
+ <el-card size="mini">
|
|
|
|
+ <el-col class="newest">
|
|
|
|
+ <el-table :data="noticeList" border :max-height="200">
|
|
|
|
+ <el-table-column width="700">
|
|
|
|
+ <template slot-scope="scoped">
|
|
|
|
+ {{ scoped.row.name }} {{ scoped.row.content }}
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column align="center">
|
|
|
|
+ <template slot-scope="scoped">
|
|
|
|
+ <el-link type="primary" @click="handleDelete(scoped.row.id)">[不再提示]</el-link>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </el-table>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-card>
|
|
|
|
+ </el-col>
|
|
<el-col class="main">
|
|
<el-col class="main">
|
|
<el-col class="line">求职招聘</el-col>
|
|
<el-col class="line">求职招聘</el-col>
|
|
<el-col class="newest">
|
|
<el-col class="newest">
|
|
@@ -104,6 +123,8 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import formItem from '@/components/form-item.vue';
|
|
import formItem from '@/components/form-item.vue';
|
|
|
|
+import { mapActions, mapState, mapMutations } from 'vuex';
|
|
|
|
+
|
|
export default {
|
|
export default {
|
|
name: 'index',
|
|
name: 'index',
|
|
props: {},
|
|
props: {},
|
|
@@ -122,14 +143,45 @@ export default {
|
|
tableDataSch: [],
|
|
tableDataSch: [],
|
|
tableDataSign: [],
|
|
tableDataSign: [],
|
|
tableDataWhe: [],
|
|
tableDataWhe: [],
|
|
|
|
+ noticeList: [
|
|
|
|
+ { name: '测试企业', content: '刚刚添加一条测试信息' },
|
|
|
|
+ { name: '测试企业', content: '刚刚添加一条测试信息' },
|
|
|
|
+ { name: '测试企业', content: '刚刚添加一条测试信息' },
|
|
|
|
+ { name: '测试企业', content: '刚刚添加一条测试信息' },
|
|
|
|
+ { name: '测试企业', content: '刚刚添加一条测试信息' },
|
|
|
|
+ { name: '测试企业', content: '刚刚添加一条测试信息' },
|
|
|
|
+ { name: '测试企业', content: '刚刚添加一条测试信息' },
|
|
|
|
+ { name: '测试企业', content: '刚刚添加一条测试信息' },
|
|
|
|
+ { name: '测试企业', content: '刚刚添加一条测试信息' },
|
|
|
|
+ ],
|
|
}),
|
|
}),
|
|
- created() {},
|
|
|
|
|
|
+ created() {
|
|
|
|
+ this.getNoticeList();
|
|
|
|
+ },
|
|
computed: {},
|
|
computed: {},
|
|
- methods: {},
|
|
|
|
|
|
+ methods: {
|
|
|
|
+ ...mapActions(['noticeOperation']),
|
|
|
|
+ async getNoticeList() {
|
|
|
|
+ let result = await this.noticeOperation({ type: 'list', data: { userid: this.user.corpid, type: 3 } });
|
|
|
|
+ if (`${result.errcode}` === '0') {
|
|
|
|
+ this.$set(this, `total`, result.total);
|
|
|
|
+ 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>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|
|
|
|
+/deep/.has-gutter {
|
|
|
|
+ display: none;
|
|
|
|
+}
|
|
ul {
|
|
ul {
|
|
margin: 0;
|
|
margin: 0;
|
|
padding: 0;
|
|
padding: 0;
|