guhongwei 5 vuotta sitten
vanhempi
commit
bcf6064d84

+ 12 - 1
src/layout/layout-part/menus.vue

@@ -60,6 +60,17 @@
           <el-menu-item index="/supermarket/transShen/index">交易申请审核</el-menu-item>
         </el-menu-item-group>
       </el-submenu>
+      <el-submenu index="5">
+        <template v-slot:title>
+          <i class="el-icon-files"></i>
+          <span>科技人才</span>
+        </template>
+        <el-menu-item-group>
+          <el-menu-item index="/personnel/type/index">职业类型管理</el-menu-item>
+          <el-menu-item index="/personnel/resume/index">简历管理</el-menu-item>
+          <el-menu-item index="/personnel/guidance/index">就业指导信息管理</el-menu-item>
+        </el-menu-item-group>
+      </el-submenu>
     </el-menu>
   </div>
 </template>
@@ -71,7 +82,7 @@ export default {
   components: {},
   data: () => ({
     // defalutMenu: ['1', '2', '3'],
-    defalutMenu: ['1'],
+    defalutMenu: [],
     defalutPage: '',
   }),
   created() {},

+ 47 - 0
src/layout/personnel/searchInfo.vue

@@ -0,0 +1,47 @@
+<template>
+  <div id="searchInfo">
+    <el-row>
+      <el-col :span="24" class="searchInfo">
+        <el-col :span="6" class="left">
+          <span>查看类型名称:</span>
+          <el-input v-model="input" placeholder="请输入职业类型名称"></el-input>
+        </el-col>
+        <el-col :span="6" class="right">
+          <el-button size="mini" type="primary" icon="el-icon-search">查询</el-button>
+          <el-button size="mini" type="success" icon="el-icon-check" @click="addData()">添加用户</el-button>
+        </el-col>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'searchInfo',
+  props: {},
+  components: {},
+  data: () => ({
+    input: '',
+  }),
+  created() {},
+  computed: {},
+  methods: {
+    addData() {
+      this.$router.push({ path: './detail' });
+    },
+  },
+};
+</script>
+
+<style lang="less" scoped>
+.searchInfo .left span {
+  font-size: 13px;
+  color: #393939;
+}
+.searchInfo .left .el-input {
+  width: 50%;
+}
+/deep/.searchInfo .left .el-input .el-input__inner {
+  height: 28px;
+}
+</style>

+ 96 - 0
src/layout/personnel/typeData.vue

@@ -0,0 +1,96 @@
+<template>
+  <div id="typeData">
+    <el-row>
+      <el-col :span="24" class="typeData">
+        <el-table :data="tableData" style="width: 100%" border>
+          <el-table-column prop="title" label="职业类别名称" width="209px;" align="left"> </el-table-column>
+          <el-table-column prop="bianma" label="职业类别编码" width="209px;" align="left"> </el-table-column>
+          <el-table-column prop="date" label="创建时间" width="209px;" align="left"> </el-table-column>
+          <el-table-column prop="content" label="职业类别说明" width="209px;" align="left"> </el-table-column>
+          <el-table-column label="操作" width="209px;" align="left">
+            <template slot-scope="scoped">
+              <el-button size="mini" type="primary" icon="el-icon-edit" @click="addData(scoped.$index)"></el-button>
+              <el-button size="mini" type="danger" icon="el-icon-delete" @click.native.prevent="deleteRow(scoped.$index, tableData)"></el-button>
+            </template>
+          </el-table-column>
+        </el-table>
+        <el-col :span="24" class="page">
+          <el-pagination
+            @size-change="handleSizeChange"
+            @current-change="handleCurrentChange"
+            :current-page="currentPage"
+            layout="total, prev, pager, next, jumper"
+            :total="1"
+          >
+          </el-pagination>
+        </el-col>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'typeData',
+  props: {
+    tableData: null,
+  },
+  components: {},
+  data: () => ({
+    currentPage: 1,
+  }),
+  created() {},
+  computed: {},
+  methods: {
+    handleSizeChange(val) {
+      console.log(`每页 ${val} 条`);
+    },
+    handleCurrentChange(val) {
+      console.log(`当前页: ${val}`);
+    },
+    addData(index) {
+      if (index !== undefined) {
+        let data = this.tableData[index];
+      } else {
+        this.form = {};
+      }
+      this.$router.push({ path: './detail' });
+    },
+    deleteRow(index, rows) {
+      rows.splice(index, 1);
+    },
+  },
+};
+</script>
+
+<style lang="less" scoped>
+p {
+  padding: 0;
+  margin: 0;
+}
+/deep/.el-table th {
+  padding: 5px 0;
+  background: #f2f2f2;
+}
+/deep/.el-table td {
+  padding: 5px 0;
+}
+/deep/.el-table tr {
+  background: #f9f9f9;
+}
+/deep/.el-table tr:nth-child(2n) {
+  background: #fff;
+}
+.page {
+  text-align: center;
+  padding: 30px 0;
+}
+.text {
+  font-size: 16px;
+  padding: 0 0 10px 0;
+}
+.text span {
+  display: inherit;
+  text-indent: 1rem;
+}
+</style>

+ 20 - 0
src/router/index.js

@@ -228,5 +228,25 @@ export default new Router({
       path: '/supermarket/transShen/index',
       component: () => import('../views/supermarket/transShen/index.vue'),
     },
+    // 科技人才
+    // 科技人才-职业类型管理
+    {
+      path: '/personnel/type/index',
+      component: () => import('../views/personnel/type/index.vue'),
+    },
+    {
+      path: '/personnel/type/detail',
+      component: () => import('../views/personnel/type/detail.vue'),
+    },
+    // 科技人才-简历管理
+    {
+      path: '/personnel/resume/index',
+      component: () => import('../views/personnel/resume/index.vue'),
+    },
+    // 科技人才-就业指导信息管理
+    {
+      path: '/personnel/guidance/index',
+      component: () => import('../views/personnel/guidance/index.vue'),
+    },
   ],
 });

+ 19 - 0
src/views/personnel/guidance/index.vue

@@ -0,0 +1,19 @@
+<template>
+  <div id="index">
+    <p>index</p>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'index',
+  props: {},
+  components: {},
+  data: () => ({}),
+  created() {},
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style lang="less" scoped></style>

+ 19 - 0
src/views/personnel/resume/index.vue

@@ -0,0 +1,19 @@
+<template>
+  <div id="index">
+    <p>index</p>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'index',
+  props: {},
+  components: {},
+  data: () => ({}),
+  created() {},
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style lang="less" scoped></style>

+ 19 - 0
src/views/personnel/type/detail.vue

@@ -0,0 +1,19 @@
+<template>
+  <div id="detail">
+    <p>detail</p>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'detail',
+  props: {},
+  components: {},
+  data: () => ({}),
+  created() {},
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style lang="less" scoped></style>

+ 69 - 0
src/views/personnel/type/index.vue

@@ -0,0 +1,69 @@
+<template>
+  <div id="index">
+    <el-row>
+      <el-col :span="24" class="info">
+        <el-col :span="24" class="top">
+          <topInfo :topTitle="topTitle"></topInfo>
+        </el-col>
+        <el-col :span="24" class="search">
+          <searchInfo></searchInfo>
+        </el-col>
+        <el-col :span="24" class="main">
+          <typeData :tableData="tableData"></typeData>
+        </el-col>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+import topInfo from '@/layout/public/top.vue';
+import searchInfo from '@/layout/personnel/searchInfo.vue';
+import typeData from '@/layout/personnel/typeData.vue';
+
+export default {
+  name: 'index',
+  props: {},
+  components: {
+    topInfo, //头部标题
+    searchInfo, //头部搜索
+    typeData, //信息列表
+  },
+  data: () => ({
+    topTitle: '职业类型管理',
+    tableData: [
+      {
+        title: '测试名称',
+        bianma: 'asdf',
+        date: '2019-01-14',
+        content: '为新手提供实习岗位',
+      },
+      {
+        title: '十条数据',
+        bianma: 'asdf',
+        date: '2019-01-14',
+        content: '为新手提供实习岗位',
+      },
+    ],
+  }),
+  created() {},
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style lang="less" scoped>
+.top {
+  height: 40px;
+  background-color: #f5f5f5;
+}
+.search {
+  height: 40px;
+  line-height: 40px;
+  padding: 0 15px;
+}
+.main {
+  width: 97%;
+  margin: 0 15px;
+}
+</style>