flat:12312

This commit is contained in:
Apcallover
2024-03-28 20:47:38 +08:00
parent b7fe412f29
commit 9cb331f414
4 changed files with 109 additions and 20 deletions

View File

@@ -365,3 +365,16 @@ export const dataSourcesEnum = [
{ value: 3, label: "社区发布" }, { value: 3, label: "社区发布" },
{ value: 4, label: "爬取" }, { value: 4, label: "爬取" },
] ]
export const companyEnum = [
{ value: 1, label: "机关/事业单位" },
{ value: 2, label: "国有企业" },
{ value: 3, label: "私营企业" },
{ value: 4, label: "外商及港澳台投资企业" },
{ value: 5, label: "股份制企业" },
{ value: 6, label: "学校/下级学院" },
{ value: 7, label: "医院" },
{ value: 8, label: "律师事务所" },
{ value: 9, label: "银行" },
{ value: 10, label: "非盈利社会组织" },
{ value: 11, label: "其它" },
]

View File

@@ -42,7 +42,8 @@ import { companyInfoAdd, companyStationInfo, companyDetail, companyUpdate, stati
import { mapGetters } from "vuex"; import { mapGetters } from "vuex";
import { isMobile, check18IdCardNo, validatenull } from "@/util/validate"; import { isMobile, check18IdCardNo, validatenull } from "@/util/validate";
import { putFile } from "@/api/resource/oss"; import { putFile } from "@/api/resource/oss";
import {getTradeDic} from "@/api/manage/trade";
import {companyEnum} from "@/common/dic"
const accept = [ const accept = [
"image/png", "image/png",
"image/jpeg", "image/jpeg",
@@ -269,6 +270,68 @@ export default {
}, },
], ],
}, },
{
type: "select",
label: "企业性质",
prop: "nature",
dicData: companyEnum,
rules: [
{
required: true,
message: "请输入企业性质",
trigger: "blur",
},
],
span: 12,
},
{
type: "select",
label: "行业",
size: "small",
prop: "tradeId",
dicUrl: getTradeDic(),
props: {
label: "name",
value: "id"
},
dicFormatter(resp) {
var result=[];
resp.data.forEach(ele => {
if(ele.name!="1"){
result.push(ele)
}
});
return result;
},
rules:[
{
required:true,
validator: (rule,value,callback) => {
if(value=='请选择行业'){
callback(new Error('请选择行业'));
}else{
callback();
}
},
trigger:'blur'
}
]
},
{
type: "textarea",
label: "备注",
span: 20,
display: true,
size: "small",
prop: "remarks",
rules: [
{
required: true,
whitespace: true,
message: "请输入备注",
},
],
},
{ {
type: "upload", type: "upload",
label: "法人身份证(人像)", label: "法人身份证(人像)",
@@ -395,6 +458,9 @@ export default {
// console.log(row, '----------------------------------'); // console.log(row, '----------------------------------');
companyInfoAdd({ companyInfoAdd({
authUrlId: row.authUrlId, authUrlId: row.authUrlId,
nature: row.nature,
tradeId: row.tradeId,
remarks: row.remarks,
cityId: row.cityId, cityId: row.cityId,
companyAddress: row.companyAddress, companyAddress: row.companyAddress,
companyName: row.companyName, companyName: row.companyName,
@@ -430,6 +496,9 @@ export default {
row.identityUrl5Id = getPath(row.identityUrl5Id) row.identityUrl5Id = getPath(row.identityUrl5Id)
companyUpdate({ companyUpdate({
id: row.id, id: row.id,
nature: row.nature,
tradeId: row.tradeId,
remarks: row.remarks,
authUrlId: row.authUrlId, authUrlId: row.authUrlId,
cityId: row.cityId, cityId: row.cityId,
companyAddress: row.companyAddress, companyAddress: row.companyAddress,

View File

@@ -426,24 +426,24 @@ export default {
], ],
span: 12, span: 12,
}, },
{ // {
label: "行业类型", // label: "行业类型",
prop: "tradeId", // prop: "tradeId",
type: "select", // type: "select",
dicData: this.tradeData, // dicData: this.tradeData,
props: { // props: {
label: "name", // label: "name",
value: "id", // value: "id",
}, // },
rules: [ // rules: [
{ // {
required: true, // required: true,
// validator: tradeId, // // validator: tradeId,
trigger: "blur", // trigger: "blur",
}, // },
], // ],
span: 12, // span: 12,
}, // },
{ {
label: "工种", label: "工种",
prop: "workSkills", prop: "workSkills",
@@ -640,6 +640,12 @@ export default {
trigger: "blur", trigger: "blur",
}, },
], ],
type: "select",
dicData: this.tradeData,
props: {
label: "name",
value: "id",
},
span: 12, span: 12,
}, },
{ {
@@ -1047,6 +1053,7 @@ export default {
ageDesc: row.ageDesc, ageDesc: row.ageDesc,
education: row.education, education: row.education,
experienceDesc: row.experienceDesc, experienceDesc: row.experienceDesc,
missionCompanyIndustry: row.missionCompanyIndustry,
missionCompanyDescription: row.missionCompanyDescription, missionCompanyDescription: row.missionCompanyDescription,
callName: row.callName, callName: row.callName,
callTel: row.callTel, callTel: row.callTel,

View File

@@ -23,7 +23,7 @@ module.exports = {
port: 1888, port: 1888,
proxy: { proxy: {
"/api": { "/api": {
target: 'http://10.165.0.173:8000', target: 'http://192.168.1.106:8000',
ws: true, ws: true,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {