flat: 暂存

This commit is contained in:
Apcallover
2024-05-09 11:03:05 +08:00
parent 9028cd68fc
commit c8bcf927b5
7 changed files with 162 additions and 4 deletions

View File

@@ -5,7 +5,6 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" <meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="Content-Security-Policy" content="default-src 'self' https://dy12333.org.cn/ ">
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> <link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title> <title>
<%= htmlWebpackPlugin.options.title %> <%= htmlWebpackPlugin.options.title %>

View File

@@ -421,6 +421,13 @@
"enablePullDownRefresh": true, "enablePullDownRefresh": true,
"navigationStyle": "custom" "navigationStyle": "custom"
} }
},
{
"path": "pages/recruit/subPage/updataTaskorWork/updataTaskorWork",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
} }
], ],
"subPackages": [{ "subPackages": [{

View File

@@ -130,8 +130,15 @@
}, },
goInfo: function({ goInfo: function({
id, id,
reviewState,
jobType jobType
}) { }) {
if (reviewState === 9) {
this.navTo(
`/pages/recruit/subPage/updataTaskorWork/updataTaskorWork?workId=${encodeURIComponent(id)}&isCan=${isCan}&jobType=${this.companyitem.jobType}&id=${this.companyitem.id}`
)
return
}
const isCan = this.noApply === false ? '0' : '1' const isCan = this.noApply === false ? '0' : '1'
switch (jobType) { switch (jobType) {
case 0: case 0:

View File

@@ -455,6 +455,35 @@
} }
}, },
async backfill(info) { async backfill(info) {
console.log(info, 'bos')
if (info.reviewState === 9) {
this.info.wage = info.wage
this.info.jobName = info.jobName
this.info.stime = info.stime
this.info.etime = info.etime
this.info.peopleNum = info.peopleNum
this.info.tradeId = info.tradeId
this.info.tradeNames = info.tradeNames
this.info.worktypeIds = info.worktypeIds
this.info.skillNames = info.skillNames
this.info.jobDescription = info.jobDescription
this.info.ageDesc = info.ageDesc
this.info.education = info.education
this.info.educationLabel = dic.eduArr[0].filter((vitem) => vitem.value === info.education)[0]
.label
this.info.experienceDesc = info.experienceDesc
this.info.cityId = info.cityId
this.info.jobCompanyName = info.jobCompanyName
this.info.jobCompanyScale = info.jobCompanyScale
this.info.jobCompanyIndustry = info.jobCompanyIndustry
this.info.jobCompanyNature = info.jobCompanyNature
this.info.jobCompanyDescription = info.jobCompanyDescription
this.info.callName = info.callName
this.info.callTel = info.callTel
this.info.callNumber = info.callNumber
this.info.address = info.address
return
}
const { const {
manager, manager,
companyTid, companyTid,
@@ -638,6 +667,9 @@
worktypeNames: names[0], // 工种名称 worktypeNames: names[0], // 工种名称
skillNames: names[1], // 工种二级名称 skillNames: names[1], // 工种二级名称
} }
if (this.company.reviewState === 9) {
params.id = this.company.id
}
let that = this let that = this
this.$refs.form1.validate().then(res => { this.$refs.form1.validate().then(res => {
if (!this.info.wageUnitCategory) { if (!this.info.wageUnitCategory) {

View File

@@ -0,0 +1,75 @@
<template>
<view class="app_container">
<view v-if="jobType === 0">
<TaskVue :company="info"></TaskVue>
</view>
<view v-if="jobType === 1">
<WorkVue :company="info"></WorkVue>
</view>
</view>
</template>
<script>
import {
getuserrecruitDetailApp
} from '@/api/userrecruit.js'
import {
userrecruitDetail
} from '@/api/userrecruit.js'
import TaskVue from '../task.vue'
import WorkVue from '../work.vue'
export default {
components: {
TaskVue,
WorkVue
},
data() {
return {
workId: '',
isShow: '',
type: '',
id: '',
jobType: 0,
info: {}
}
},
onLoad(option) {
if (option.workId) {
this.workId = decodeURIComponent(option.workId);
}
if (option.isCan) {
this.isShow = option.isCan; //isShow为'0'则为我的任务、我的评价过来的,需要隐藏抢任务按钮
}
if (option.type) {
this.type = option.type; //type为1则为消息邀请过来的,需要设置消息已读;
}
if (option.id) {
this.id = option.id; //消息id
}
if (option.jobType) {
this.jobType = Number(option.jobType)
}
this.getData()
},
methods: {
async getData() {
const self = this;
let resData = null
resData = await getuserrecruitDetailApp({
id: this.id,
jobType: this.jobType
})
if (resData.data?.code === 200) {
console.log(resData.data.data)
self.info = resData.data.data;
}
},
}
}
</script>
<style scoped>
.app_container {
padding: 24rpx;
}
</style>

View File

@@ -385,6 +385,12 @@
default: null, default: null,
} }
}, },
watch: {
company(val) {
if (!val) return;
this.getDataInit(val)
}
},
components: { components: {
PickerTree PickerTree
}, },
@@ -402,7 +408,7 @@
this.getWorkTypes() this.getWorkTypes()
this.dictionary() this.dictionary()
if (this.company) { if (this.company) {
this.getDataInit() this.getDataInit(this.company)
} }
}, },
methods: { methods: {
@@ -431,7 +437,35 @@
this.wallMaxAndMin = arr this.wallMaxAndMin = arr
} }
}, },
async getDataInit() { async getDataInit(info) {
if (info.reviewState === 9) {
this.info.wage = info.wage
this.info.jobName = info.jobName
this.info.stime = info.stime
this.info.etime = info.etime
this.info.peopleNum = info.peopleNum
this.info.tradeId = info.tradeId
this.info.tradeNames = info.tradeNames
this.info.worktypeIds = info.worktypeIds
this.info.skillNames = info.skillNames
this.info.jobDescription = info.jobDescription
this.info.ageDesc = info.ageDesc
this.info.education = info.education
this.info.educationLabel = dic.eduArr[0].filter((vitem) => vitem.value === info.education)[0]
.label
this.info.experienceDesc = info.experienceDesc
this.info.cityId = info.cityId
this.info.jobCompanyName = info.jobCompanyName
this.info.jobCompanyScale = info.jobCompanyScale
this.info.jobCompanyIndustry = info.jobCompanyIndustry
this.info.jobCompanyNature = info.jobCompanyNature
this.info.jobCompanyDescription = info.jobCompanyDescription
this.info.callName = info.callName
this.info.callTel = info.callTel
this.info.callNumber = info.callNumber
this.info.address = info.address
return
}
const { const {
companyTid, companyTid,
comname, comname,
@@ -613,6 +647,10 @@
worktypeIds: ids.join(','), worktypeIds: ids.join(','),
worktypeNames: names.join(',') worktypeNames: names.join(',')
} }
console.log(this.company)
if (this.company.reviewState === 9) {
params.id = this.company.id
}
let that = this let that = this
this.$refs.form1.validate().then(res => { this.$refs.form1.validate().then(res => {
if (!this.info.wageUnitCategory) { if (!this.info.wageUnitCategory) {

View File

@@ -3,7 +3,7 @@ module.exports = {
port: 1887, port: 1887,
proxy: { proxy: {
'/api': { '/api': {
target: 'http://10.165.0.173:8000', target: 'http://192.168.1.105:8000',
ws: true, ws: true,
pathRewrite: { pathRewrite: {
'^/api': '/' '^/api': '/'