flat: 国庆节暂存

This commit is contained in:
史典卓
2024-10-09 09:39:34 +08:00
parent c40af81ac4
commit 9d9d7972c9
24 changed files with 571 additions and 285 deletions

View File

@@ -54,6 +54,7 @@
filterable
v-model="obj.cityId"
placeholder="请选择 工作地址"
:filterCity="['四川省', '德阳市']"
></jl-cityLabel-cascader>
</template>
@@ -178,7 +179,8 @@
</template>
<!--/自定义表单-->
<template slot-scope="{ disabled }" slot="menuForm">
<!-- <el-button type="primary" icon="el-icon-check" @click="copy" :disabled="formLoading">提交</el-button> -->
<!-- <el-button type="primary" icon="el-icon-check" @click="submit">提交</el-button>-->
<el-button type="warning" icon="el-icon-close" @click="closed">重置</el-button>
<el-button
icon="el-icon-circle-close"
@click="drawer = false"
@@ -192,7 +194,7 @@
</template>
<script>
import {listCompany} from "@/api/tenant/mission";
import {listCompany, jkWorksHistory, missionHistory} from "@/api/tenant/mission";
import {add, detail, update, tradeListAdd, getMounthDays, getDictionary} from "@/api/tenant/postzp";
import {getTrade, getWork, getSkillList, getWorkTypes} from "@/api/tenant/common";
import SkillSelect from "../Dialog/Skill";
@@ -271,6 +273,7 @@ export default {
this.$store.dispatch("InitArea");
this.initData();
this.getMaxAndMin()
this.getHistroyCompanyList()
},
watch: {
"obj.tradeId": function (val, oldval) {
@@ -617,6 +620,7 @@ export default {
label: "岗位工种",
prop: "workSkills",
type: "cascader",
filterable: true,
search: true,
display: true,
dicUrl: `/api/jobslink-api/tenant/worktypes/base/list?type=2`,
@@ -770,7 +774,7 @@ export default {
{
label: "单位信用代码",
prop: "jobCompanyScale",
disabled: true,
// disabled: true,
// rules: [
// {
// required: true,
@@ -783,7 +787,7 @@ export default {
{
label: "所属行业",
prop: "jobCompanyIndustry",
disabled: true,
// disabled: true,
// rules: [
// {
// required: true,
@@ -797,7 +801,7 @@ export default {
prop: "jobCompanyNature",
label: "单位性质",
type: 'select',
disabled: true,
// disabled: true,
dicUrl: "/api/jobslink-api/system/dict-biz/dictionary?code=company_nature",
props: {
label: "dictValue",
@@ -908,11 +912,59 @@ export default {
},
},
methods: {
getHistroyCompanyList() {
jkWorksHistory().then((res) => {
this.options23 = res.data.data.map((item) => {
return {
...item,
label: item.jobCompanyName,
}
})
})
},
resetForm() {
this.obj.jobName = ""
this.obj.stime = ""
this.obj.etime = ""
this.obj.wage = ""
this.obj.tradeId = ""
this.obj.workSkills = true
this.obj.jobDescription = ""
this.obj.ageDesc = ""
this.obj.education = ""
this.obj.experienceDesc = ""
// this.obj.jobCompanyName = ""
// this.obj.jobCompanyIndustry = ""
// this.obj.jobCompanyNature = ""
// this.obj.jobCompanyDescription = ""
// this.obj.callName = ""
// this.obj.callTel = ""
// this.obj.callNumber = ""
// this.obj.cityId = ""
// this.obj.address = ""
this.obj.selectedSkills = []
this.obj.$tradeId = ""
this.obj.$workSkills = true
this.obj.$ageDesc = ""
this.obj.$education = ""
this.obj.$experienceDesc = ""
this.obj.$jobCompanyNature = ""
},
selectMissionCompany(item) {
const value = this.options23.find((vi) => vi.label === item)
this.obj.jobCompanyScale = value.jobCompanyScale
this.obj.jobCompanyIndustry = value.jobCompanyIndustry
this.obj.jobCompanyNature = value.jobCompanyNature
if (value.callTel) {
this.obj.jobCompanyDescription = value.jobCompanyDescription
this.obj.callName = value.callName
this.obj.callTel = value.callTel
this.obj.callNumber = value.callNumber
this.obj.cityId = value.cityId
this.obj.address = value.address
this.obj.lon = value.lon
this.obj.lat = value.lat
}
},
async remoteMethod(query) {
this.missionCompanyLoad = true
@@ -1229,13 +1281,23 @@ export default {
lon: row.lon,
}).then(
() => {
this.drawer = false;
done();
this.$message({
type: "success",
message: "操作成功!",
});
this.$emit("back");
done()
this.$confirm('是否继续发布岗位?', {
confirmButtonText: "继 续",
cancelButtonText: "取 消",
})
.then(_ => {
this.resetForm()
})
.catch(_ => {
this.drawer = false;
this.$emit("back");
});
},
(error) => {
window.console.log(error);
@@ -1279,13 +1341,22 @@ export default {
lon: row.lon,
}).then(
() => {
this.drawer = false;
done();
this.$message({
type: "success",
message: "操作成功!",
});
this.$emit("back");
done()
this.$confirm('是否继续发布岗位?', {
confirmButtonText: "继 续",
cancelButtonText: "取 消",
})
.then(_ => {
this.closed()
})
.catch(_ => {
this.drawer = false;
this.$emit("back");
});
},
(error) => {
window.console.log(error);
@@ -1381,7 +1452,7 @@ export default {
} else if (type === "add") {
this.title = "发布岗位";
this.obj = {
wageUnitCategory: 2,
wageUnitCategory: 3,
sex: 0,
ageDesc: "不限年龄",
education: 7,
@@ -1406,7 +1477,6 @@ export default {
// this.obj.workSkills = []
// console.log(res.worktypeIds)
this.obj.workSkills = !res.worktypeIds || res.worktypeIds.split(',')
console.log(res, this.obj)
// this.obj.workSkills.push(res.worktypeIds)
// this.obj.workSkills.push(res.skillIds)
this.drawer = true;