Browse Source

驻场招聘详情页

wanyongkang 6 years ago
parent
commit
2f3dc2caa3
78 changed files with 409 additions and 107 deletions
  1. 6 1
      components/menu/data.js
  2. 2 2
      dist/200.html
  3. 1 1
      dist/_nuxt/d64db91af6f4aefb1eea.js
  4. 1 1
      dist/_nuxt/3964a6f38555d75181ae.js
  5. 1 1
      dist/_nuxt/bb1cd517ee651b5db08b.js
  6. 0 1
      dist/_nuxt/1e434dcb31b66e48655a.js
  7. 1 1
      dist/_nuxt/57b0c1da3c527c283d7c.js
  8. 1 1
      dist/_nuxt/0406ee64e0a93d3693a0.js
  9. 1 1
      dist/_nuxt/85380a010f99a97b3ed9.js
  10. 1 1
      dist/_nuxt/6ca06461299fca4716b9.js
  11. 1 1
      dist/_nuxt/8fe889c3eb008cbf3de0.js
  12. 1 0
      dist/_nuxt/3bffd4a338a0f2618da8.js
  13. 1 1
      dist/_nuxt/929b81c39e5c4a177cb5.js
  14. 1 0
      dist/_nuxt/45a1912ac8bb0b406265.js
  15. 1 1
      dist/_nuxt/09eee95aabc2217e487f.js
  16. 1 1
      dist/_nuxt/676eba227ede9d7ee5e1.js
  17. 1 1
      dist/_nuxt/573ef76514b12380e6d1.js
  18. 1 1
      dist/_nuxt/d5db82448fd0e618b005.js
  19. 1 1
      dist/_nuxt/d5883e178523a26c2271.js
  20. 1 1
      dist/_nuxt/849cb7a7b59ec3b562b1.js
  21. 1 1
      dist/_nuxt/3f37ff88cc7c1758aa70.js
  22. 1 1
      dist/_nuxt/8e2384c29331443ea224.js
  23. 1 1
      dist/_nuxt/5878e90e7b9a8520c4e7.js
  24. 1 1
      dist/_nuxt/70fdaac44e1ab61a79cf.js
  25. 1 1
      dist/_nuxt/7c0636bd0c3a1a1bdaf2.js
  26. 1 1
      dist/_nuxt/7db7e12e9586106cb91a.js
  27. 1 1
      dist/_nuxt/3158a14ed92cc4d73dd1.js
  28. 1 1
      dist/_nuxt/4ba673e45e35b8346f47.js
  29. 1 1
      dist/_nuxt/87b9b76f823370d8a0c9.js
  30. 1 1
      dist/_nuxt/470c68028fe155bdd598.js
  31. 1 1
      dist/_nuxt/8257fd26220914bfd72c.js
  32. 1 1
      dist/_nuxt/6cf2545838bd08907efc.js
  33. 1 1
      dist/_nuxt/af5b8d50d2595fb232d7.js
  34. 1 1
      dist/_nuxt/42eedbfb1031f8f7d774.js
  35. 0 1
      dist/_nuxt/c5cbe69918f0e00b5771.js
  36. 1 1
      dist/_nuxt/a32feaa0d823b74f5020.js
  37. 1 1
      dist/_nuxt/227243e556e88a05c387.js
  38. 1 1
      dist/_nuxt/f036d0aab18876a934d8.js
  39. 1 1
      dist/_nuxt/c7d48e2a99bc34c6fedc.js
  40. 1 0
      dist/_nuxt/e4f5378e8c91a15cfb41.js
  41. 1 1
      dist/_nuxt/9c5415143a7ffdd30acc.js
  42. 1 1
      dist/_nuxt/bcfc4b66412a38786484.js
  43. 1 1
      dist/_nuxt/2e19056dc375ad8515a7.js
  44. 2 2
      dist/index.html
  45. 2 2
      dist/login/index.html
  46. 2 2
      dist/main/404/index.html
  47. 2 2
      dist/main/artificial_order/index.html
  48. 2 2
      dist/main/artificial_orders/index.html
  49. 2 2
      dist/main/balance_change/index.html
  50. 2 2
      dist/main/cats copy/index.html
  51. 2 2
      dist/main/cats/index.html
  52. 2 2
      dist/main/cert_check/index.html
  53. 2 2
      dist/main/cert_edit/index.html
  54. 2 2
      dist/main/cert_pro/index.html
  55. 2 2
      dist/main/cloud_balance/index.html
  56. 2 2
      dist/main/cloud_developer/index.html
  57. 2 2
      dist/main/cloud_job/index.html
  58. 2 2
      dist/main/cloud_order copy/index.html
  59. 2 2
      dist/main/dev_check/index.html
  60. 2 2
      dist/main/dev_check_detail/index.html
  61. 2 2
      dist/main/dev_show/index.html
  62. 2 2
      dist/main/gongmall/index.html
  63. 2 2
      dist/main/group_list/index.html
  64. 2 2
      dist/main/index.html
  65. 2 2
      dist/main/orders/index.html
  66. 2 2
      dist/main/orders_detail/index.html
  67. 2 2
      dist/main/orders_frozen/index.html
  68. 2 2
      dist/main/outsource_bill/index.html
  69. 9 0
      dist/main/publish_present/index.html
  70. 2 2
      dist/main/user_bills/index.html
  71. 2 2
      dist/main/vip_manager/index.html
  72. 2 2
      dist/main/vip_order/index.html
  73. 2 2
      dist/main/vip_setting/index.html
  74. 2 2
      dist/main/wage_details/index.html
  75. 2 2
      dist/main/wage_settlement/index.html
  76. 2 2
      dist/main/withdraw/index.html
  77. 2 2
      dist/main/work_bill/index.html
  78. 287 0
      pages/main/index/publish_present.vue

+ 6 - 1
components/menu/data.js

@@ -107,7 +107,12 @@ export default [
 			{
 				title: '工猫结算订单',
 				path: baseUrl + 'gongmall'
-			}
+			},
+      {
+        title: '驻场招聘信息',
+        path: baseUrl + 'publish_present',
+        hidden: true
+      }
 		]
 	},
 	{

File diff suppressed because it is too large
+ 2 - 2
dist/200.html


File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/d64db91af6f4aefb1eea.js


File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/3964a6f38555d75181ae.js


File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/bb1cd517ee651b5db08b.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/1e434dcb31b66e48655a.js


File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/57b0c1da3c527c283d7c.js


File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/0406ee64e0a93d3693a0.js


File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/85380a010f99a97b3ed9.js


File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/6ca06461299fca4716b9.js


File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/8fe889c3eb008cbf3de0.js


File diff suppressed because it is too large
+ 1 - 0
dist/_nuxt/3bffd4a338a0f2618da8.js


File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/929b81c39e5c4a177cb5.js


File diff suppressed because it is too large
+ 1 - 0
dist/_nuxt/45a1912ac8bb0b406265.js


File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/09eee95aabc2217e487f.js


File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/676eba227ede9d7ee5e1.js


File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/573ef76514b12380e6d1.js


File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/d5db82448fd0e618b005.js


File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/d5883e178523a26c2271.js


File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/849cb7a7b59ec3b562b1.js


File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/3f37ff88cc7c1758aa70.js


File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/8e2384c29331443ea224.js


File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/5878e90e7b9a8520c4e7.js


File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/70fdaac44e1ab61a79cf.js


File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/7c0636bd0c3a1a1bdaf2.js


File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/7db7e12e9586106cb91a.js


File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/3158a14ed92cc4d73dd1.js


File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/4ba673e45e35b8346f47.js


File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/87b9b76f823370d8a0c9.js


File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/470c68028fe155bdd598.js


File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/8257fd26220914bfd72c.js


File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/6cf2545838bd08907efc.js


File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/af5b8d50d2595fb232d7.js


File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/42eedbfb1031f8f7d774.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/c5cbe69918f0e00b5771.js


File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/a32feaa0d823b74f5020.js


File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/227243e556e88a05c387.js


File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/f036d0aab18876a934d8.js


File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/c7d48e2a99bc34c6fedc.js


File diff suppressed because it is too large
+ 1 - 0
dist/_nuxt/e4f5378e8c91a15cfb41.js


File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/9c5415143a7ffdd30acc.js


File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/bcfc4b66412a38786484.js


File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/2e19056dc375ad8515a7.js


File diff suppressed because it is too large
+ 2 - 2
dist/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/login/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/404/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/artificial_order/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/artificial_orders/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/balance_change/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/cats copy/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/cats/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/cert_check/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/cert_edit/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/cert_pro/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/cloud_balance/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/cloud_developer/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/cloud_job/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/cloud_order copy/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/dev_check/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/dev_check_detail/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/dev_show/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/gongmall/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/group_list/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/orders/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/orders_detail/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/orders_frozen/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/outsource_bill/index.html


File diff suppressed because it is too large
+ 9 - 0
dist/main/publish_present/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/user_bills/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/vip_manager/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/vip_order/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/vip_setting/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/wage_details/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/wage_settlement/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/withdraw/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/work_bill/index.html


+ 287 - 0
pages/main/index/publish_present.vue

@@ -0,0 +1,287 @@
+<template>
+  <div id="publish-present">
+    <el-row>
+      <el-col :span="16" :offset="8"><h2>驻场招聘信息表</h2></el-col>
+    </el-row>
+    <el-row>
+      <el-col :span="19" :offset="5"><h3>基本信息</h3></el-col>
+    </el-row>
+    <el-row>
+      <el-col :span="7" :offset="5">项目ID:<span>{{related_id}}</span></el-col>
+      <el-col :span="12" >需求方:<span>{{uid}}</span></el-col>
+    </el-row>
+    <el-row>
+      <el-col :span="19" :offset="5">项目名称:<span>{{title}}</span></el-col>
+    </el-row>
+    <el-row>
+      <el-col :span="19" :offset="5">项目类型:<span>{{related_type}}</span></el-col>
+    </el-row>
+    <el-row>
+      <el-col :span="7" :offset="5">客户经理:<span>{{manager}}</span></el-col>
+      <el-col :span="12" >
+        <div class="inlineb">
+          <span class>开放状态:</span>
+          <div class="inlineb">
+            <el-select v-model="statusValue" >
+              <el-option
+                v-for="item of status"
+                :key="item.statusValue"
+                :label="item.label"
+                :value="item.statusValue"
+              ></el-option>
+            </el-select>
+          </div>
+        </div>
+    </el-col>
+    </el-row>
+    <el-row>
+      <el-col :span="19" :offset="5"><h3>驻场信息</h3></el-col>
+    </el-row>
+    <el-row>
+      <el-col :span="19" :offset="5" >
+        <div class="inlineb">
+          <span class>薪酬范围:</span>
+          <div class="inlineb">
+            ¥<el-input style="width: 230px;"  v-model="salary_from" ></el-input>至
+          </div>
+          <div class="inlineb">
+            ¥<el-input style="width: 230px;" v-model="salary_to" ></el-input>
+          </div>
+          <el-alert
+            title=""
+            class="top"
+            id="salaryAlert"
+            type="warning"
+            style="display: none"
+            show-icon>
+          </el-alert>
+        </div>
+      </el-col>
+    </el-row>
+    <el-row>
+      <el-col :span="19" :offset="5">
+        <div class="inlineb">
+          <span class>驻场地点:</span>
+          <div class="inlineb">
+            <el-select v-model="city" >
+              <el-option
+                v-for="item of citys"
+                :key="item.city"
+                :label="item.label"
+                :value="item.city"
+              ></el-option>
+            </el-select>
+          </div>
+        </div>
+      </el-col>
+    </el-row>
+    <el-row>
+      <el-col :span="19" :offset="5">
+        <div class="inlineb">
+          <span class>驻场周期:</span>
+          <div class="inlineb">
+            <el-input style="width: 230px;" v-model="month" ></el-input>个月
+          </div>
+          <el-alert
+            title=""
+            class="top"
+            id="monthAlert"
+            type="warning"
+            style="display: none"
+            show-icon>
+          </el-alert>
+        </div>
+      </el-col>
+    </el-row>
+    <el-row>
+      <el-col :span="19" :offset="5">职位方向:<span>{{directions}}</span></el-col>
+    </el-row>
+    <el-row>
+      <el-col :span="19" :offset="5">技能要求:<span>{{skill}}</span></el-col>
+    </el-row>
+    <el-row>
+      <el-col :span="15" :offset="5">工作内容:
+        <el-alert
+          title=""
+          class="top"
+          id="jobInfoAlert"
+          type="warning"
+          style="display: none"
+          show-icon>
+        </el-alert>
+        <el-input
+          type="textarea"
+          :autosize="{ minRows: 5, maxRows: 4}"
+          placeholder="请输入内容"
+          v-model="job_description">
+        </el-input>
+      </el-col>
+    </el-row>
+    <el-row>
+      <el-col :span="19" :offset="5">
+        <el-button type="primary" @click="savePresent">保存</el-button>
+        <el-button type="info" @click="cancelPresent">取消</el-button>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+    export default {
+        data () {
+            return {
+                related_id:'',
+                uid:'',
+                title:'',
+                related_type:'',
+                manager:'',
+                salary_from:'',
+                salary_to:'',
+                month:'',
+                directions:'',
+                skill:'',
+                job_description:'',
+                status: [{
+                    statusValue: '0',
+                    label: '下架隐藏'
+                }, {
+                    statusValue: '1',
+                    label: '开放中'
+                }, {
+                    statusValue: '2',
+                    label: '停止申请'
+                }, {
+                    statusValue: '3',
+                    label: '开发中'
+                }, {
+                    statusValue: '4',
+                    label: '已结束'
+                }],
+                statusValue: '0',
+                citys: [{
+                    city: '0',
+                    label: '不限'
+                }, {
+                    city: '1',
+                    label: '北京'
+                }, {
+                    city: '2',
+                    label: '上海'
+                }, {
+                    city: '3',
+                    label: '广州'
+                }, {
+                    city: '4',
+                    label: '深圳'
+                }, {
+                    city: '5',
+                    label: '成都'
+                }, {
+                    city: '6',
+                    label: '杭州'
+                }],
+                city: '0',
+            }
+        },
+        mounted() {
+            this.getPresentInfo();
+        },
+        methods: {
+            async getPresentInfo() {
+
+                let query = window.location.search.substring(1);
+                let vars = query.split("&");
+                let body = {
+                    'job_id' : vars[0].split("=")[1],
+                    'job_type' : vars[1].split("=")[1],
+                }
+
+
+                const res = await this.$post("/api/admin/present_job/present_info",body);
+                this.related_id = res.data.job.id;
+                this.uid = res.data.job.uid;
+                this.title = res.data.job.title2;
+                this.related_type = res.data.job_type;
+                this.manager = res.data.manager;
+                this.salary_from = res.data.job.match_salary_min;
+                this.salary_to = res.data.job.match_salary_max;
+                this.month = res.data.job.month;
+                this.directions = res.data.job.directions;
+                this.skill = res.data.job.skill;
+                this.statusValue = res.data.job.status;
+                this.city = res.data.job.city;
+                this.job_description = res.data.job.description;
+            },
+            async cancelPresent() {
+                window.history.back();
+            },
+            async savePresent() {
+                let flag = false;
+                let salaryAlert = document.getElementById('salaryAlert');
+                let monthAlert = document.getElementById('monthAlert');
+                let jobInfoAlert = document.getElementById('jobInfoAlert');
+                if (this.salary_from.length==0||this.salary_to.length==0){
+                    salaryAlert.innerText = '请正确输入薪酬范围';
+                    salaryAlert.style.display = 'block';
+                    flag = true;
+                }
+                if (this.month.length==0){
+                    monthAlert.innerText = '请输入驻场周期';
+                    monthAlert.style.display = 'block';
+                    flag = true;
+                }
+                if (this.job_description.length==0){
+                    jobInfoAlert.innerText = '请输入工作内容';
+                    jobInfoAlert.style.display = 'block';
+                    flag = true;
+                }
+                if (this.salary_from<1||this.salary_from>1000000||this.salary_to<1||this.salary_to>1000000||this.salary_from>=this.salary_to){
+                    salaryAlert.innerText = '薪酬填写范围1-1000000且前一个值要小于后一个值';
+                    salaryAlert.style.display = 'block';
+                    flag = true;
+                }
+                if ((this.month<1||this.month>99)&&this.month.length!=0){
+                    monthAlert.innerText = '驻场周期正确填写范围1-99';
+                    monthAlert.style.display = 'block';
+                    flag = true;
+                }
+                if (this.job_description.length>10000){
+                    jobInfoAlert.innerText = '工作内容填写最多10000个字符且不能为空';
+                    jobInfoAlert.style.display = 'block';
+                    flag = true;
+                }
+                if (flag){
+                    return false;
+                }
+                let body = {
+                    'related_id' : this.related_id,
+                    'title' : this.title,
+                    'related_type' : this.related_type,
+                    'status' : this.statusValue,
+                    'salary_from' : this.salary_from,
+                    'salary_to' : this.salary_to,
+                    'city' : this.city,
+                    'month' : this.month,
+                    'job_direction' : this.job_direction,
+                    'job_skills' : this.job_skills,
+                    'job_description' :this.job_description
+                }
+                const res = await this.$post("/api/admin/present_job/present_edit",body);
+                if (res.status==1) {
+                    alert(res.info);
+                    self.location=document.referrer;
+                }
+            }
+        }
+    }
+</script>
+
+<style lang="scss" scoped>
+  .el-row {
+    margin-bottom: 20px;
+  }
+  .top{
+    margin-top: 10px;
+  }
+
+</style>