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

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

View File

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

View File

@@ -24,9 +24,9 @@ module.exports = {
proxy: {
"/api": {
// 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.111:8000',
target: 'http://192.168.3.111:8000',
ws: true,
changeOrigin: true,
pathRewrite: {