flat: 修改企业性质

This commit is contained in:
Apcallover
2024-05-06 18:01:43 +08:00
parent fe0d0af325
commit 5739f53062
3 changed files with 34 additions and 14 deletions

View File

@@ -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',
})

View File

@@ -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)
@@ -273,6 +278,12 @@
_this.formData = {} _this.formData = {}
}, },
}) })
},
async getDictInfo() {
let resData = await getDictionary2()
if (resData.data.code === 200) {
this.xzDic = resData.data.data
}
} }
}, },
} }

View File

@@ -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({