flat: 修改企业性质
This commit is contained in:
@@ -116,3 +116,7 @@ export const getDictionary = (params) => {
|
|||||||
params
|
params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export const getDictionary2 = () => request({
|
||||||
|
url: '/api/jobslink-api/system/dict-biz/dictionary?code=company_nature',
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
@@ -27,8 +27,9 @@
|
|||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item label="用工单位性质" labelWidth="100" prop="nature" borderBottom ref="item1"
|
<u-form-item label="用工单位性质" labelWidth="100" prop="nature" borderBottom ref="item1"
|
||||||
@click="showJobCompanyNature = true; hideKeyboard()">
|
@click="showJobCompanyNature = true; hideKeyboard()">
|
||||||
<PickerList placeholder="请选择企业性质" :columns="[dic.companyEnum]" :visibel="showJobCompanyNature"
|
<PickerList placeholder="请选择企业性质" :columns="[xzDic]" :visibel="showJobCompanyNature"
|
||||||
v-model="formData.nature" @cancel="showJobCompanyNature = false">
|
labelName="dictValue" valueName="dictKey" v-model="formData.nature"
|
||||||
|
@cancel="showJobCompanyNature = false">
|
||||||
</PickerList>
|
</PickerList>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item label="所属行业" labelWidth="100" prop="tradeId" borderBottom ref="item1"
|
<u-form-item label="所属行业" labelWidth="100" prop="tradeId" borderBottom ref="item1"
|
||||||
@@ -88,7 +89,8 @@
|
|||||||
import PickerList from './pickerList.vue';
|
import PickerList from './pickerList.vue';
|
||||||
import {
|
import {
|
||||||
addInviteCompanyAuth,
|
addInviteCompanyAuth,
|
||||||
getInviteCompanyAuthInfo
|
getInviteCompanyAuthInfo,
|
||||||
|
getDictionary2
|
||||||
} from '@/api/userrecruit.js'
|
} from '@/api/userrecruit.js'
|
||||||
import {
|
import {
|
||||||
mapState
|
mapState
|
||||||
@@ -195,6 +197,7 @@
|
|||||||
showJobCompanyNature: false,
|
showJobCompanyNature: false,
|
||||||
showjobCompanyIndustry: false,
|
showjobCompanyIndustry: false,
|
||||||
dic,
|
dic,
|
||||||
|
xzDic: [],
|
||||||
formData: {},
|
formData: {},
|
||||||
rules
|
rules
|
||||||
};
|
};
|
||||||
@@ -203,6 +206,7 @@
|
|||||||
if (options.reviewStatus === '9') {
|
if (options.reviewStatus === '9') {
|
||||||
this.getInfo()
|
this.getInfo()
|
||||||
}
|
}
|
||||||
|
this.getDictInfo()
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState({
|
...mapState({
|
||||||
@@ -234,7 +238,8 @@
|
|||||||
tradeId: Number(_this.formData.tradeId),
|
tradeId: Number(_this.formData.tradeId),
|
||||||
manager: _this.authInfo.realName,
|
manager: _this.authInfo.realName,
|
||||||
idNumber: _this.authInfo.idNumber,
|
idNumber: _this.authInfo.idNumber,
|
||||||
companyName: dic.addressColumn[0].filter((item) => item.value == _this.formData.cityId)[0].label
|
companyName: dic.addressColumn[0].filter((item) => item.value == _this
|
||||||
|
.formData.cityId)[0].label
|
||||||
}
|
}
|
||||||
console.log(params)
|
console.log(params)
|
||||||
let resData = await addInviteCompanyAuth(params)
|
let resData = await addInviteCompanyAuth(params)
|
||||||
@@ -245,7 +250,7 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}).catch(errors => {
|
}).catch(errors => {
|
||||||
if(/[\u4e00-\u9fff]/.test(errors.message)) {
|
if (/[\u4e00-\u9fff]/.test(errors.message)) {
|
||||||
_this.$api.msg(errors.message)
|
_this.$api.msg(errors.message)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -273,6 +278,12 @@
|
|||||||
_this.formData = {}
|
_this.formData = {}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
async getDictInfo() {
|
||||||
|
let resData = await getDictionary2()
|
||||||
|
if (resData.data.code === 200) {
|
||||||
|
this.xzDic = resData.data.data
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,13 +43,18 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
if (Array.isArray(this.columns)) {
|
|
||||||
this.columns.map((item) => {
|
},
|
||||||
|
watch: {
|
||||||
|
columns(val) {
|
||||||
|
if (Array.isArray(val)) {
|
||||||
|
val.map((item) => {
|
||||||
item.map((child) => {
|
item.map((child) => {
|
||||||
this.valueEnum[child[this.valueName]] = child[this.labelName]
|
this.valueEnum[child[this.valueName]] = child[this.labelName]
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
skillConfirm({
|
skillConfirm({
|
||||||
|
|||||||
Reference in New Issue
Block a user