集团单位单选变多选

pull/11/head
liujun 2024-02-29 16:09:01 +08:00
parent 8c334a40cb
commit c7f24f47e4
3 changed files with 7 additions and 12 deletions

View File

@ -42,8 +42,8 @@
<el-table-column label="操作" align="center" width="450">
<template slot-scope="{row}">
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleShow(row)"></el-button>
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleFlowShow(row)"></el-button>
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleFlowStepShow(row)"></el-button>
<el-button v-if="false" type="primary" icon="el-icon-edit" size="mini" @click="handleFlowShow(row)"></el-button>
<el-button v-if="false" type="primary" icon="el-icon-edit" size="mini" @click="handleFlowStepShow(row)"></el-button>
<el-button v-if="row.power_flag === '1'" type="primary" icon="el-icon-s-claim" size="mini" @click="approve([row])"></el-button>
<el-button v-if="false" type="success" icon="el-icon-edit" size="mini" @click="getUserInfo(row)"></el-button>
</template>

View File

@ -97,7 +97,7 @@
<el-row>
<el-col :span="12">
<el-form-item label="集团单位" prop="CORP_TYPE">
<el-select v-model="form.CORP_TYPE" style="width: 100%">
<el-select v-model="form.CORP_TYPE" multiple style="width: 100%">
<el-option v-for="item in corpTypeList" :key="item.BIANMA" :label="item.NAME" :value="item.BIANMA"/>
</el-select>
</el-form-item>
@ -439,13 +439,13 @@ export default {
this.form.COMPANY_AREA = this.$refs.POSSESSION.getCheckedNodes()[0].pathLabels ? this.$refs.POSSESSION.getCheckedNodes()[0].pathLabels.join(',') : ''
}
this.form.SELECT_FORM = this.form.SELECT_FORMS.join(',')
this.form.SELECT_FORM = this.form.SELECT_FORMS.join(',')
if (this.form.COMPETENT_DEPT_ID) {
this.form.COMPETENT_DEPT_ID = this.form.COMPETENT_DEPT_ID.join(',')
}
if (this.form.MANAGER_DEPARTMENT_ID) {
this.form.MANAGER_DEPARTMENT_ID = this.form.MANAGER_DEPARTMENT_ID.join(',')
}
this.form.CORP_TYPE = JSON.stringify(this.form.CORP_TYPE)
requestFN(
'/relevantunits/saveCorpInfo',
this.form

View File

@ -97,7 +97,7 @@
<el-row :gutter="24">
<el-col :span="12">
<el-form-item label="集团单位" prop="CORP_TYPE">
<el-select v-model="form.CORP_TYPE" style="width: 100%">
<el-select v-model="form.CORP_TYPE" multiple style="width: 100%">
<el-option v-for="item in corpTypeList" :key="item.BIANMA" :label="item.NAME" :value="item.BIANMA"/>
</el-select>
</el-form-item>
@ -474,6 +474,7 @@ export default {
}
).then((data) => {
this.form = Object.assign(this.form, data.pd)
this.form.CORP_TYPE = JSON.parse(this.form.CORP_TYPE)
var sz = this.form.SELECT_FORM
var cdi = this.form.COMPETENT_DEPT_ID
var mdi = this.form.MANAGER_DEPARTMENT_ID
@ -552,13 +553,7 @@ export default {
if (this.form.MANAGER_DEPARTMENT_ID) {
this.form.MANAGER_DEPARTMENT_ID = this.form.MANAGER_DEPARTMENT_ID.join(',')
}
/* if (this.form.INDUSTRYALL && this.form.INDUSTRYALL.length > 0) {
this.form.CORP_TYPE = this.form.INDUSTRYALL[0] || ''
this.form.CORP_TYPE2 = this.form.INDUSTRYALL[1] || ''
this.form.CORP_TYPE3 = this.form.INDUSTRYALL[2] || ''
this.form.CORP_TYPE4 = this.form.INDUSTRYALL[3] || ''
this.form.CORP_TYPE_NAME = this.$refs.industryCascader.getCheckedNodes()[0].pathLabels ? this.$refs.industryCascader.getCheckedNodes()[0].pathLabels.join('/') : ''
} */
this.form.CORP_TYPE = JSON.stringify(this.form.CORP_TYPE)
requestFN(
'/xgf/corp/editCorpInfo',
this.form