wangxia 2 years ago
commit 2234c176ee

@ -13,6 +13,17 @@ export function JobListApi(data) {
data: setqs(data), data: setqs(data),
}); });
} }
// 获取职位列表
export function JobListApiYicai(data) {
return request({
url: "/assistant/custom/job/v2/list",
method: "post",
// data: setqs(data),
// headers: { "Content-Type": "application/x-www-form-urlencoded" },
data: setqs(data),
});
}
// 获取职位详情 // 获取职位详情
export function getJobDetailApi(data) { export function getJobDetailApi(data) {
return request({ return request({
@ -20,6 +31,13 @@ export function getJobDetailApi(data) {
method: "get", method: "get",
}); });
} }
// 获取职位详情
export function getJobDetailYicaiApi(data) {
return request({
url: `/assistant/custom/job/v2/detail/${data}`,
method: "get",
});
}
// 获取职位特色 // 获取职位特色
export function getJobSpecialApi() { export function getJobSpecialApi() {
return request({ return request({
@ -50,6 +68,15 @@ export function recordBillApi(data) {
headers: { "Content-Type": "application/x-www-form-urlencoded" }, headers: { "Content-Type": "application/x-www-form-urlencoded" },
}); });
} }
// 一才录单报名
export function recordBillYicaiApi(data) {
return request({
url: "/assistant/apply/handler/add",
method: "post",
data:data,
headers: { "Content-Type": "application/x-www-form-urlencoded" },
});
}
// 报名上传识别身份证信息 // 报名上传识别身份证信息
export function getIdCardInfoApi(data) { export function getIdCardInfoApi(data) {
return request({ return request({

@ -91,7 +91,7 @@ export default {
// //
methods: { methods: {
onClose() { onClose() {
this.$router.push("/detail?id=" + this.firminfo.id); this.$router.go(-1);
}, },
handleOk() { handleOk() {
this.$router.push("/mybill"); this.$router.push("/mybill");

File diff suppressed because it is too large Load Diff

@ -215,10 +215,10 @@
<div class="maincontentleft" style="padding-top: 50px"> <div class="maincontentleft" style="padding-top: 50px">
<div class="tabBar" @click="changeTab($event)"> <div class="tabBar" @click="changeTab($event)">
<div class="tabSubset" :class="{ active: signType == '' }" data-type="0">全部</div> <div class="tabSubset" :class="{ active: signType == '' }" data-type="0">全部</div>
<!-- <div class="tabSubset" :class="{ active: signType == 1 }" data-type="1">自营</div> --> <div class="tabSubset" :class="{ active: signType == 1 }" v-if="loginValue.agencyName == '郑州一才工作'" data-type="1"></div>
<!-- <div class="tabSubset" :class="{ active: signType == 2 }" data-type="2">三方</div> --> <!-- <div class="tabSubset" :class="{ active: signType == 2 }" data-type="2">三方</div> -->
</div> </div>
<div class="filter" :class="[filterStatus == 0 ? '' : 'nobd']" style> <div class="filter" v-show="signType == ''" :class="[filterStatus == 0 ? '' : 'nobd']" style>
<div class="filter-title" :style="{ top: filterStatus == 0 ? '-32px' : '-21px' }"> <div class="filter-title" :style="{ top: filterStatus == 0 ? '-32px' : '-21px' }">
<span> <span>
<span> <span>
@ -404,11 +404,14 @@
<div class="subset" v-for="(item, index) in jobMainList" :key="index" :style="{ <div class="subset" v-for="(item, index) in jobMainList" :key="index" :style="{
background: item.recruitment == '1' ? '#fff' : '#f5f5f5', background: item.recruitment == '1' ? '#fff' : '#f5f5f5',
}"> }">
<router-link target="_blank" :to="'/detail?' + 'id=' + item.id + '&' + 'page=' + formvalue.pageNum" rel="opener">
<!-- v-if="signType == ''" -->
<router-link target="_blank" :to="signType == '' ? ('/detail?' + 'id=' + item.id + '&' + 'page=' + formvalue.pageNum) : ('/detailYicai?' + 'id=' + item.id)" rel="opener">
<div class="subsetleft" @click="totop"> <div class="subsetleft" @click="totop">
<div class="imgbox"> <div class="imgbox">
<img v-if="item.logo.length !== 0" :src="item.logo" /> <img v-if="item.logo.length !== 0" :src="item.logo" />
<div v-else class="default_avatar">{{item.brandName}}</div> <div v-else class="default_avatar">{{item.brandName || item.jobName}}</div>
<!-- <img v-else src="../../../static/img/nopicture.png" /> --> <!-- <img v-else src="../../../static/img/nopicture.png" /> -->
</div> </div>
<div class="jobinfobox"> <div class="jobinfobox">
@ -435,7 +438,7 @@
<span v-for="(item1, index) in item.jobSpecialLabelNames" :key="index">{{ item1 }}</span> <span v-for="(item1, index) in item.jobSpecialLabelNames" :key="index">{{ item1 }}</span>
<span v-if="item.jobSpecialLabelNames.length == 0"></span> <span v-if="item.jobSpecialLabelNames.length == 0"></span>
</div> </div>
<div class="jobpricemonth"> <div class="jobpricemonth" v-if="item.minMonthlyPay">
<!-- :style="{ opacity: item.minMonthlyPay ? '1' : '0' }" --> <!-- :style="{ opacity: item.minMonthlyPay ? '1' : '0' }" -->
<span>{{ item.minMonthlyPay ? item.minMonthlyPay : "" }}</span>- <span>{{ item.minMonthlyPay ? item.minMonthlyPay : "" }}</span>-
@ -471,7 +474,7 @@
<span v-if="item.jobDesp" :class="'copyInfo' + index">{{ item.jobDesp }}</span <span v-if="item.jobDesp" :class="'copyInfo' + index">{{ item.jobDesp }}</span
><span v-else></span> ><span v-else></span>
</template>--> </template>-->
<router-link target="_blank" :to="'/detail?' + 'id=' + item.id + '&' + 'page=' + formvalue.pageNum" rel="opener"> <router-link target="_blank" :to="signType == '' ? ('/detail?' + 'id=' + item.id + '&' + 'page=' + formvalue.pageNum) : ('/detailYicai?' + 'id=' + item.id)" rel="opener">
<button type="primary" class="jobDesp br4" :style="{ <button type="primary" class="jobDesp br4" :style="{
background: item.recruitment == '1' ? '#fff' : '#f5f5f5', background: item.recruitment == '1' ? '#fff' : '#f5f5f5',
}">更多</button> }">更多</button>
@ -555,7 +558,7 @@ import Clipboard from 'clipboard'
// import recordbill from "@/components/FirstJob/components/recordbill.vue"; // import recordbill from "@/components/FirstJob/components/recordbill.vue";
export default { export default {
// //
inject: ['getJobList', 'reload'], inject: ['getJobList','getJobListYicai', 'reload'],
// //
name: '', name: '',
// //
@ -623,6 +626,7 @@ export default {
proxyinfo: JSON.parse(localStorage.getItem('LOGIN_DATA')), proxyinfo: JSON.parse(localStorage.getItem('LOGIN_DATA')),
nationlist: nationlist, nationlist: nationlist,
specialHotTag: [], specialHotTag: [],
loginValue:{},
dateinfo: { dateinfo: {
day: '', day: '',
week: '', week: '',
@ -816,12 +820,18 @@ export default {
// console.log(this.proxyinfo); // console.log(this.proxyinfo);
// console.log(this.$route); // console.log(this.$route);
this.currentPage = this.$route.params.pagenum this.currentPage = this.$route.params.pagenum
this.signType = this.$route.params.signType ? this.$route.params.signType : ''
if (this.currentPage) { if (this.currentPage) {
// console.log(this.currentPage); // console.log(this.currentPage);
this.formvalue.pageNum = this.currentPage this.formvalue.pageNum = this.currentPage
} }
// this.reload(); if(this.signType == ''){
this.getJobList() this.getJobList()
}else{
this.getJobListYicai()
}
this.getJobSpecial() this.getJobSpecial()
this.getProvince() this.getProvince()
this.getdateinfo() this.getdateinfo()
@ -843,12 +853,16 @@ export default {
} else { } else {
this.getPosition() this.getPosition()
} }
}, },
/** /**
* el 被新创建的 vm.el 替换并挂载到实例上去之后调用该钩子 * el 被新创建的 vm.el 替换并挂载到实例上去之后调用该钩子
* 如果 root 实例挂载了一个文档内元素 mounted 被调用时 vm.el 也在文档内 * 如果 root 实例挂载了一个文档内元素 mounted 被调用时 vm.el 也在文档内
*/ */
mounted() {}, mounted() {
this.loginValue = localStorage.getItem('LOGIN_DATA') !== null ? JSON.parse(localStorage.getItem('LOGIN_DATA')) : { tel: '' }
console.log(this.loginValue)
},
// //
methods: { methods: {
// //
@ -1067,11 +1081,13 @@ export default {
if (e.target.dataset.type != undefined) { if (e.target.dataset.type != undefined) {
if (e.target.dataset.type != 0) { if (e.target.dataset.type != 0) {
this.formvalue.signType = this.signType = e.target.dataset.type this.formvalue.signType = this.signType = e.target.dataset.type
this.getJobListYicai()
} else { } else {
this.formvalue.signType = this.signType = '' this.formvalue.signType = this.signType = ''
this.formvalue.pageNum = 1
this.getJobList()
} }
this.formvalue.pageNum = 1
this.getJobList()
} }
}, },
async getJobSpecialList() { async getJobSpecialList() {
@ -1334,9 +1350,14 @@ export default {
// //
// console.log(item); // console.log(item);
// let userinfo = JSON.stringify(item); // let userinfo = JSON.stringify(item);
if(this.signType == ''){
this.$router.push({ name: 'recordbill', params: item })
sessionStorage.setItem('CURRENT_FIRM', JSON.stringify(item))
}else if(this.signType == '1'){
this.$router.push({ name: 'recordbillYicai', params: item })
sessionStorage.setItem('CURRENT_FIRM_YICAI', JSON.stringify(item))
}
this.$router.push({ name: 'recordbill', params: item })
sessionStorage.setItem('CURRENT_FIRM', JSON.stringify(item))
}, },
getSalaryClassifyValue(salaryClassify, salaryClassifyValue) { getSalaryClassifyValue(salaryClassify, salaryClassifyValue) {
return getSalaryClassifyValue(salaryClassify, salaryClassifyValue) return getSalaryClassifyValue(salaryClassify, salaryClassifyValue)
@ -1422,7 +1443,9 @@ export default {
this.classifyList = data.data.labels this.classifyList = data.data.labels
this.$nextTick(() => { this.$nextTick(() => {
let fileterContent = document.querySelector('.filter-content') let fileterContent = document.querySelector('.filter-content')
this.filterHeight = fileterContent.scrollHeight if(isNotEmptyCheck(fileterContent.scrollHeight)){
this.filterHeight = fileterContent.scrollHeight
}
// fileterContent.style.height = this.filterHeight + "px"; // fileterContent.style.height = this.filterHeight + "px";
}) })
} }

File diff suppressed because it is too large Load Diff

@ -34,6 +34,11 @@ const routes = [
name: "Detail", name: "Detail",
component: () => import("../components/FirstJob/detail.vue"), component: () => import("../components/FirstJob/detail.vue"),
}, },
{
path: "/detailYicai",
name: "DetailYicai",
component: () => import("../components/FirstJob/detailYicai.vue"),
},
// { // {
// path: "/serviceoutlets", // path: "/serviceoutlets",
// name: "serviceoutlets", // name: "serviceoutlets",
@ -58,6 +63,14 @@ const routes = [
// which is lazy-loaded when the route is visited. // which is lazy-loaded when the route is visited.
component: () => import("../components/FirstJob/recordBill.vue"), component: () => import("../components/FirstJob/recordBill.vue"),
}, },
{
path: "/recordbillYicai",
name: "recordbillYicai",
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: () => import("../components/FirstJob/recordBillYicai.vue"),
},
{ {
path: "/recordsuccess", path: "/recordsuccess",
name: "recordsuccess", name: "recordsuccess",

@ -1052,7 +1052,7 @@ export function formatDateYMDHM (val) {
} }
function getJobSpecialLabelNamesArray (jobSpecialLabelNames) { function getJobSpecialLabelNamesArray (jobSpecialLabelNames) {
if (isNotEmptyCheck(jobSpecialLabelNames)) { if (isNotEmptyCheck(jobSpecialLabelNames)) {
return jobSpecialLabelNames.split(", "); return new String(jobSpecialLabelNames).split(", ");
} }
return []; return [];
} }

@ -109,7 +109,7 @@
</div> </div>
</router-link>--> </router-link>-->
<!-- 2023-11-29 注释该条件 && (loginValue.agencyRole == 2 || loginValue.agencyRole == 1 ) --> <!-- 2023-11-29 注释该条件 && (loginValue.agencyRole == 2 || loginValue.agencyRole == 1 ) -->
<router-link to="###" v-if="loginValue.agencyName == '郑州一才工作'"> <router-link to="###" v-if="loginValue.agencyName == '郑州一才工作' || loginValue.id == '116253'">
<div @click="goAdmin"> <div @click="goAdmin">
<span> <span>
<i class="iconfont icon-shangjiahoutai"></i>商家后台 <i class="iconfont icon-shangjiahoutai"></i>商家后台
@ -240,17 +240,19 @@
import Cookies from 'js-cookie' import Cookies from 'js-cookie'
import { import {
JobListApi, JobListApi,
JobListApiYicai
// getCityApi, // getCityApi,
} from '../api/job' } from '../api/job'
import { logoutApi } from '../api/login' import { logoutApi } from '../api/login'
import { disposeJobListData } from '../utils/commonUtil' import { disposeJobListData,setReturnFee } from '../utils/commonUtil'
export default { export default {
inject: ['reload'], inject: ['reload'],
provide() { provide() {
return { return {
getJobList: this.getJobList, getJobList: this.getJobList,
getJobListYicai: this.getJobListYicai,
logout: this.logout, logout: this.logout,
} }
}, },
@ -400,6 +402,7 @@ export default {
this.isLogin = true this.isLogin = true
} }
this.getJobList() this.getJobList()
this.getJobListYicai()
this.isLaoxiangshow() this.isLaoxiangshow()
this.getRecommendJob() this.getRecommendJob()
this.showfooter() this.showfooter()
@ -517,6 +520,57 @@ export default {
this.isspinning = false this.isspinning = false
}, },
//
async getJobListYicai(newdata) {
this.isspinning = true
console.log(this.formvalue)
try {
newdata = {
agencyId: '3087',
recruitment:"1",
keys: '',
pageNum: 1,
pageSize: 8,
total: null, //
}
for (var k in this.formvalue) {
// console.log(this.formvalue[k]);
if (Array.isArray(this.formvalue[k])) {
newdata[k] = this.formvalue[k].length > 0 ? this.formvalue[k].join() : ''
} else {
newdata[k] = this.formvalue[k]
}
}
// console.log(newdata);
// debugger;
// console.log(this.isLogin);
if (this.isLogin) {
const { data } = await JobListApiYicai(newdata)
// console.log(data);
if (data.status === 200) {
this.jobMainList = disposeJobListData(data.data.recordList)
this.jobMainList.forEach((item,index) => {
item['servetype'] = setReturnFee(item.returnFee,item.returnFeeType);
})
this.formvalue.total = data.data.recordCount
console.log(this.jobMainList)
} else {
this.$message.info('数据获取失败')
}
}
this.totop()
// = data.data.recordList;
// console.log(this.formvalue);
} catch (error) {
console.log(error)
}
this.isspinning = false
},
totop() { totop() {
// console.log(window); // console.log(window);
document.body.scrollTop = 0 document.body.scrollTop = 0

Loading…
Cancel
Save