主管部门单选变多选

5_7_地图同步
liujun 2024-03-19 09:32:55 +08:00
parent 890597db65
commit 386483a0a5
2 changed files with 9 additions and 6 deletions

View File

@ -53,6 +53,7 @@
:normalizer="normalizer" :normalizer="normalizer"
v-model="form.MAIN_DEPARTMENT" v-model="form.MAIN_DEPARTMENT"
placeholder="请选择部门" placeholder="请选择部门"
multiple
no-options-text="暂无数据" no-options-text="暂无数据"
no-children-text="暂无数据" no-children-text="暂无数据"
style="width: 100%;" style="width: 100%;"
@ -504,6 +505,7 @@ export default {
this.form.MANAGER_DEPARTMENT_ID = this.form.MANAGER_DEPARTMENT_ID.join(',') this.form.MANAGER_DEPARTMENT_ID = this.form.MANAGER_DEPARTMENT_ID.join(',')
} }
this.form.CORP_TYPE = JSON.stringify(this.form.CORP_TYPE) this.form.CORP_TYPE = JSON.stringify(this.form.CORP_TYPE)
this.form.MAIN_DEPARTMENT = JSON.stringify(this.form.MAIN_DEPARTMENT)
requestFN( requestFN(
'/relevantunits/saveCorpInfo', '/relevantunits/saveCorpInfo',
this.form this.form

View File

@ -53,6 +53,7 @@
:normalizer="normalizer" :normalizer="normalizer"
v-model="form.MAIN_DEPARTMENT" v-model="form.MAIN_DEPARTMENT"
placeholder="请选择部门" placeholder="请选择部门"
multiple
no-options-text="暂无数据" no-options-text="暂无数据"
no-children-text="暂无数据" no-children-text="暂无数据"
style="width: 100%;" style="width: 100%;"
@ -154,9 +155,6 @@
<el-row :gutter="24"> <el-row :gutter="24">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="用工形式" prop="EMPLOYMENT_FORM"> <el-form-item label="用工形式" prop="EMPLOYMENT_FORM">
<!-- <el-select v-model="form.EMPLOYMENT_FORM" style="width: 100%;">-->
<!-- <el-option v-for="item in employmentTypeList" :key="item.BIANMA" :label="item.NAME" :value="item.BIANMA" />-->
<!-- </el-select>-->
<Treeselect <Treeselect
:options="employmentTypeList" :options="employmentTypeList"
:normalizer="normalizer" :normalizer="normalizer"
@ -175,9 +173,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<!--<el-form-item label="流动人员比例(%)" prop="FLOATING_PERCENT">
<el-input id="FLOATING_PERCENT" ref="FLOATING_PERCENT" v-model="form.FLOATING_PERCENT" maxlength="255" placeholder="这里输入流动人员比例..." title="流动人员比例"/>
</el-form-item>-->
</el-form> </el-form>
<div style="text-align: center"> <div style="text-align: center">
<el-button :loading="buttonLoading" type="primary" @click="submitForm"></el-button> <el-button :loading="buttonLoading" type="primary" @click="submitForm"></el-button>
@ -484,6 +479,11 @@ export default {
} else { } else {
this.form.CORP_TYPE = [this.form.CORP_TYPE] this.form.CORP_TYPE = [this.form.CORP_TYPE]
} }
if (this.form.MAIN_DEPARTMENT.indexOf('[') > -1) {
this.form.MAIN_DEPARTMENT = JSON.parse(this.form.MAIN_DEPARTMENT)
} else {
this.form.MAIN_DEPARTMENT = [this.form.MAIN_DEPARTMENT]
}
var sz = this.form.SELECT_FORM var sz = this.form.SELECT_FORM
var cdi = this.form.COMPETENT_DEPT_ID var cdi = this.form.COMPETENT_DEPT_ID
var mdi = this.form.MANAGER_DEPARTMENT_ID var mdi = this.form.MANAGER_DEPARTMENT_ID
@ -561,6 +561,7 @@ export default {
this.form.MANAGER_DEPARTMENT_ID = this.form.MANAGER_DEPARTMENT_ID.join(',') this.form.MANAGER_DEPARTMENT_ID = this.form.MANAGER_DEPARTMENT_ID.join(',')
} }
this.form.CORP_TYPE = JSON.stringify(this.form.CORP_TYPE) this.form.CORP_TYPE = JSON.stringify(this.form.CORP_TYPE)
this.form.MAIN_DEPARTMENT = JSON.stringify(this.form.MAIN_DEPARTMENT)
requestFN( requestFN(
'/xgf/corp/editCorpInfo', '/xgf/corp/editCorpInfo',
this.form this.form