zhibin 6 gadi atpakaļ
vecāks
revīzija
592e6c09c5
2 mainītis faili ar 16 papildinājumiem un 120 dzēšanām
  1. 15 119
      src/components/recruit/index.vue
  2. 1 1
      src/components/recruit/model.vue

+ 15 - 119
src/components/recruit/index.vue

@@ -94,127 +94,10 @@
 import browser from '@/util/browser'
 import model from './model.vue'
 
-const data = [
-  {
-    name: 'Image Algorithm Researcher (Mechanical Arm Vision)',
-    type: 'Development',
-    address: 'Zhuhai',
-    count: 1,
-    date: '2018-06-12',
-    desc: '1. Responsible for the development and optimization of image recognition algorithm based on robotic arm.',
-    req: `1. Responsible for the development and optimization of image recognition algorithm based on robotic arm.<br>
-          2. Experienced in using graphics and image open source like OpenCV/OpenGL/PCL etc;<br>
-          3. Experience in programming in Linux and Windows system environment.<br>
-          4. Fast learner, familiar with common data structure and algorithm, ability to analyze and optimize calculation logic and improve performance.`,
-    bonus: `1. Experience in projects of embedded image recognition algorithm is preferred.<br>
-            2. Experience in related projects using HALCON computer vision base is preferred.`
-  },
-  {
-    name: 'Image Algorithm Researcher (SLAM)',
-    type: 'Development',
-    address: 'Zhuhai',
-    count: 1,
-    date: '2018-06-12',
-    desc: `1.Transplantation and production of algorithm<br>
-           2.Develop SLAM algorithm for mobile devices such as camera and IMU in unknown environments.<br>
-           3.Develop path planning algorithm for autonomous navigation of mobile robots`,
-    req: `1. Proficient in using C/C++ and OpenCV, and programming in Linux environment, familiar with ROS<br>
-          2. Familiar with visual SLAM algorithm, understand its basic theory, familiar with vision sensor and IMU sensor calibration.<br>
-          3. Fast learner`,
-    bonus: `1. Experienced in SLAM development such as ORB SLAM, SVO, DSO, LSD SLAM is preferred.<br>
-            2. Experienced in embedded system visual algorithm development or transplantation is preferred.<br>
-            3. Experienced in ROS development is preferred`
-  },
-  {
-    name: 'Graphics Algorithms Researcher (SfM Direction)',
-    type: 'Development',
-    address: 'Zhuhai',
-    count: 1,
-    date: '2018-06-12',
-    desc: `1. Responsible to develop and optimize 3D reconstruction algorithms of images;<br>
-           2. Build new functionality based upon existing 3D reconstruction algorithms;<br>
-           3.   Work closely with your teams to solve other problems.`,
-    req: `1. MS or PhD degree in Pattern Recognition, Communications Engineering, Computer Science, Automation, Mathematics or related field; <br>
-          2. Demonstrated knowledge on C++ and MATLAB and strong programming skills;<br>
-          3. Experience with OpenCV/ceres-solver or related libraries;<br>
-          4. Experience programming using Linux and Windows;<br>
-          5. Fast learner, proficiency in English reading; <br>
-          6. Proficiency in commonly used data structures and algorithms, ability to analyze and optimize calculation logic to improve performance<br>
-          7. Post-graduate students with no work experience but are willing to engage in 3D reconstruction are also accepted.`,
-    bonus: `1. Experienced in related projects of feature extraction and matching, based on image 3D reconstruction (SFM) is preferred.`
-  },
-  {
-    name: 'Graphics Algorithms Researcher (Deep Learning for Visual Understanding Direction)',
-    type: 'Development',
-    address: 'Zhuhai',
-    count: 1,
-    date: '2018-06-12',
-    desc: `1.Researchers are responsible to investigate feature point descriptors for deep learning, stereo vision, SLAM, and depth prediction method of images.`,
-    req: `1. Familiar with clustering, classification, regression, graph model and other machine learning algorithms.<br>
-          2. Proficient in one or more of pytorch, tensorflow and other deep learning frameworks.<br>
-          3. Understand classical computer vision tasks, such as SFM, SLAM, object detection, etc.<br>
-          4. Relevant conmputer vision project experience or intent to apply deep learning methods to classic computer vision task.`,
-    bonus: `1. Experienced in related projects of feature extraction and matching, based on image 3D reconstruction (SFM) is preferred.`
-  },
-  {
-    name: 'Graphics Algorithms Researcher (Panoramic Images Mapping Direction)',
-    type: 'Development',
-    address: 'Zhuhai',
-    count: 1,
-    date: '2018-06-12',
-    desc: `1.Responsible to develop and optimize fisheye camera calibration algorithms.<br>
-           2.Responsible to develop and optimize panoramic image mapping algorithms.`,
-    req: `1.MS or PhD degree in Pattern Recognition, Communications Engineering, Computer Science, Automation, Mathematics or related field; <br>
-          2.Demonstrated knowledge on C++ and MATLAB and strong programming skills;<br>
-          3.Experience with OpenCV/OpenGL or related libraries. <br>
-          4.Solid understanding of fisheye camera calibration and hardware structure as well as related parameters.<br>
-          5.Proficiency in commonly used data structures and algorithms, ability to analyze and optimize calculation logic to improve performance`,
-    bonus: `1. Experienced in related projects of feature extraction and matching, based on image 3D reconstruction (SFM) is preferred.`
-  },
-  {
-    name: 'Web Designer',
-    type: ' Design',
-    address: 'Wuhu',
-    count: 1,
-    date: '2018-06-12',
-    desc: `1. Analyze the location and style of the website according to the characteristics of the website audience.<br>
-           2. Responsible for visual expression with multiple creative expressions.<br>
-           3. Website UI (user interface) and UE (user experience) design;`,
-    req: `1. Experience in typesetting, color matching, font design, techniques of lighting and material quality.<br>
-          2. Proficient in web design related software like Photoshop, Illustrator, Fireworks, Dreamweaver<br>
-          3. Proficient in web design specification, web layout, production process, layout, cut and interactive knowledge.`,
-    bonus: '1. Ability to use some front-end code HTML and CSS.'
-  },
-  {
-    name: 'Graphic Designer',
-    type: ' Design',
-    address: 'Wuhu',
-    count: 1,
-    date: '2018-06-12',
-    desc: `1. Responsible for the company's graphic design of products and projects both in PC and mobile<br>
-           2. Responsible for designing and developing all projects from concept to production and related publicity and promotion plans.<br>
-           3. Responsible for the visual design of daily operation promotion topics, such as corporate image VI design, publicity materials design, exhibition frame design, packaging design, PPT design, etc.<br>
-           4. Other design related work arranged by the superior`,
-    req: `1. Proficiency in using design software like Dreamweaver, Fireworks, Photoshop, Illustrator, PageMaker, InDesign, Fan Tart etc.<br>
-          2. Good design ability, color sense and art skills; knowledge of typesetting, color matching, font design, printing material and printing specifications.`
-  },
-  {
-    name: 'Embedded Hardware Engineer',
-    type: ' Hardware',
-    address: 'Zhuhai',
-    count: 1,
-    date: '2018-06-12',
-    desc: `1. Solid understanding of digital analog circuit<br>
-           2. Familiar with the ARM processor system, the DDR memory system<br>
-           3. 3. Ability to design of EMC`,
-    req: `1. With knowledge of FPGA programmable logic device Preferred`
-  }
-]
-
 export default {
   data () {
     return {
-      position: data,
+      position: [],
       aIndex: 'All',
       tIndex: 'All',
       filterVal: '',
@@ -266,7 +149,20 @@ export default {
       return filterPosition
     }
   },
-  components: {model}
+  components: {model},
+  async mounted () {
+    let ret = (await this.$http.get('/personnel')).data
+    this.position = ret.content.map(item => ({
+      name: item.title,
+      type: item.type,
+      address: item.address,
+      count: item.count,
+      date: new Date(Number(item.time)).format('yyyy-MM-dd'),
+      desc: item.describe && JSON.parse(item.describe).map((t, i) => i + 1 + '.' + t).join('<br>'),
+      req: item.requirement && JSON.parse(item.requirement).map((t, i) => i + 1 + '.' + t).join('<br>'),
+      bonus: item.bonus && JSON.parse(item.bonus).map((t, i) => i + 1 + '.' + t).join('<br>')
+    }))
+  }
 }
 </script>
 <style lang="css" scoped>

+ 1 - 1
src/components/recruit/model.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="m-layout" @click.stop>
+  <div class="m-layout" @click.stop v-if="item">
     <h2 class="title">{{item.name}}</h2>
     <div class="desc">
       <p><span>Category</span>{{item.type}}</p>