发布岗位和任务去掉人员属性字段

This commit is contained in:
zxy
2024-03-10 18:44:25 +08:00
parent 14da318b3f
commit 61dad79d27
3 changed files with 91 additions and 91 deletions

View File

@@ -99,8 +99,8 @@
</template> </template>
<script> <script>
import { add, detail, update, tradeListAdd, workListAdd,getLastTaskInfo,getMounthDays} from "@/api/tenant/mission"; import { add, detail, update, tradeListAdd, workListAdd,getMounthDays} from "@/api/tenant/mission";
import { getTrade, getWork, getSkillList, getWorkTypes} from "@/api/tenant/common"; import { getTrade, getWork, getWorkTypes} from "@/api/tenant/common";
import SkillSelect from "../Dialog/Skill"; import SkillSelect from "../Dialog/Skill";
import SelectMap from "@/components/map/selectLocation"; import SelectMap from "@/components/map/selectLocation";
import { isvalidatemobile } from "@/util/validate"; import { isvalidatemobile } from "@/util/validate";
@@ -255,26 +255,26 @@ export default {
}, },
option() { option() {
const self = this; const self = this;
const tradeId = (rule, value, callback) => { // const tradeId = (rule, value, callback) => {
if(this.tradeState == null || this.tradeState == undefined || this.tradeState == ""){ // if(this.tradeState == null || this.tradeState == undefined || this.tradeState == ""){
callback( // callback(
new Error( // new Error(
"请选择行业类型" // "请选择行业类型"
) // )
) // )
}else{ // }else{
if(!this.tradeBtnState){ // if(!this.tradeBtnState){
callback( // callback(
new Error( // new Error(
"新增行业要添加后才能使用" // "新增行业要添加后才能使用"
) // )
) // )
}else{ // }else{
callback(); // callback();
} // }
} // }
}; // };
const validatePass = (rule, value, callback)=>{ const validatePass = (rule, value, callback)=>{
let specialKey = "[`~#$^&*()=|{}\\[\\]<>/~#¥……&*()——|{}【】《》%@‘”“']'"; let specialKey = "[`~#$^&*()=|{}\\[\\]<>/~#¥……&*()——|{}【】《》%@‘”“']'";
let flagValue = true; let flagValue = true;
@@ -531,25 +531,25 @@ export default {
prop: "personRequire", prop: "personRequire",
arrow: false, arrow: false,
column: [ column: [
{ // {
label: "人员属性", // label: "人员属性",
type: "select", // type: "select",
prop: "userNature", // prop: "userNature",
dicData: [ // dicData: [
{ // {
value: "灵活用工", // value: "灵活用工",
label: "灵活用工", // label: "灵活用工",
}, // },
], // ],
rules: [ // rules: [
{ // {
required: true, // required: true,
message: "请选择人员属性", // message: "请选择人员属性",
trigger: ["change", "blur"], // trigger: ["change", "blur"],
}, // },
], // ],
span: 8, // span: 8,
}, // },
{ {
label: "年龄要求", label: "年龄要求",
type: "select", type: "select",
@@ -1111,11 +1111,11 @@ export default {
this.id = row.id; this.id = row.id;
this.$nextTick(() => { this.$nextTick(() => {
if(type!='edit'){ if(type!='edit'){
getLastTaskInfo().then(res=>{ // getLastTaskInfo().then(res=>{
const data=res.data.data; // const data=res.data.data;
// this.obj.callName=data.callName; // this.obj.callName=data.callName;
// this.obj.callTel=data.callTel; // this.obj.callTel=data.callTel;
}) // })
} }
if (type === "copy") { if (type === "copy") {

View File

@@ -139,7 +139,7 @@
</template> </template>
<script> <script>
import { add, detail, update, tradeListAdd, workListAdd,getLastTaskInfo,getMounthDays} from "@/api/tenant/postzp"; import { add, detail, update, tradeListAdd,getMounthDays} from "@/api/tenant/postzp";
import { getTrade, getWork, getSkillList, getWorkTypes} from "@/api/tenant/common"; import { getTrade, getWork, getSkillList, getWorkTypes} from "@/api/tenant/common";
import SkillSelect from "../Dialog/Skill"; import SkillSelect from "../Dialog/Skill";
import SelectMap from "@/components/map/selectLocation"; import SelectMap from "@/components/map/selectLocation";
@@ -330,26 +330,26 @@ export default {
// callback(); // callback();
// } // }
// }; // };
const tradeId = (rule, value, callback) => { // const tradeId = (rule, value, callback) => {
if(this.tradeState == null || this.tradeState == undefined || this.tradeState == ""){ // if(this.tradeState == null || this.tradeState == undefined || this.tradeState == ""){
callback( // callback(
new Error( // new Error(
"请选择行业类型" // "请选择行业类型"
) // )
) // )
}else{ // }else{
if(!this.tradeBtnState){ // if(!this.tradeBtnState){
callback( // callback(
new Error( // new Error(
"新增行业要添加后才能使用" // "新增行业要添加后才能使用"
) // )
) // )
}else{ // }else{
callback(); // callback();
} // }
} // }
}; // };
// const workType = (rule, value, callback) => { // const workType = (rule, value, callback) => {
// if(this.workTypeState == null || this.workTypeState == undefined || this.workTypeState == ""){ // if(this.workTypeState == null || this.workTypeState == undefined || this.workTypeState == ""){
// callback( // callback(
@@ -602,25 +602,25 @@ export default {
prop: "personRequire", prop: "personRequire",
arrow: false, arrow: false,
column: [ column: [
{ // {
label: "人员属性", // label: "人员属性",
type: "select", // type: "select",
prop: "userNature", // prop: "userNature",
dicData: [ // dicData: [
{ // {
value: "灵活用工", // value: "灵活用工",
label: "灵活用工", // label: "灵活用工",
}, // },
], // ],
rules: [ // rules: [
{ // {
required: true, // required: true,
message: "请选择人员属性", // message: "请选择人员属性",
trigger: ["change", "blur"], // trigger: ["change", "blur"],
}, // },
], // ],
span: 8, // span: 8,
}, // },
{ {
label: "年龄要求", label: "年龄要求",
type: "select", type: "select",
@@ -1180,11 +1180,11 @@ export default {
this.id = row.id; this.id = row.id;
this.$nextTick(() => { this.$nextTick(() => {
if(type!='edit'){ if(type!='edit'){
getLastTaskInfo().then(res=>{ // getLastTaskInfo().then(res=>{
const data=res.data.data; // const data=res.data.data;
// this.obj.callName=data.callName; // this.obj.callName=data.callName;
// this.obj.callTel=data.callTel; // this.obj.callTel=data.callTel;
}) // })
} }
if (type === "copy") { if (type === "copy") {

View File

@@ -24,9 +24,9 @@ module.exports = {
proxy: { proxy: {
"/api": { "/api": {
// target: 'http://localhost:8000', // 本地服务接口地址 // target: 'http://localhost:8000', // 本地服务接口地址
target: "http://39.98.184.58:8000", // 阿里云后台地址 // target: "http://39.98.184.58:8000", // 阿里云后台地址
// target: "http://192.168.3.108:8000", // 本地 // target: "http://192.168.3.108:8000", // 本地
// target: 'http://192.168.3.111:8000', target: 'http://192.168.3.111:8000',
ws: true, ws: true,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {